protobuf-platform 1.2.540 → 1.2.541

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.540",
3
+ "version": "1.2.541",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -112,6 +112,8 @@ service User {
112
112
  rpc syncUserKycProviderStatus(SyncUserKycProviderStatusRequest) returns (UserKycProfileResponse);
113
113
  rpc readUserKycVerificationDocuments(ReadUserKycVerificationDocumentsRequest) returns (UserKycVerificationDocumentsResponse);
114
114
  rpc readUserKycVerificationDocumentPreview(ReadUserKycVerificationDocumentPreviewRequest) returns (UserKycVerificationDocumentPreviewResponse);
115
+ // Provider-agnostic KYC: runtime verification requirements for a user and generic verification purpose.
116
+ rpc getUserKycVerificationRequirements(GetUserKycVerificationRequirementsRequest) returns (GetUserKycVerificationRequirementsResponse);
115
117
  // KYC requirement matrix: configured trigger rules and presets (separate from provider KYC flow).
116
118
  // KYC rule definitions
117
119
  rpc createKycRuleDefinition(CreateKycRuleDefinitionRequest) returns (KycRuleDefinitionResponse);
@@ -1339,6 +1341,33 @@ message UserKycVerificationDocumentPreviewResponse {
1339
1341
  optional string mime_type = 2;
1340
1342
  optional string expires_at = 3;
1341
1343
  }
1344
+ message GetUserKycVerificationRequirementsRequest {
1345
+ int32 user_id = 1;
1346
+ string purpose = 2;
1347
+ optional string correlation_id = 3;
1348
+ }
1349
+ message UserKycVerificationRequirementUploadItem {
1350
+ string side = 1;
1351
+ bool required = 2;
1352
+ optional string status = 3;
1353
+ }
1354
+ message UserKycVerificationRequirementOptionItem {
1355
+ string document_type = 1;
1356
+ bool supported = 2;
1357
+ bool upload_requirements_resolved = 3;
1358
+ repeated UserKycVerificationRequirementUploadItem uploads = 4;
1359
+ }
1360
+ message UserKycVerificationRequirementItem {
1361
+ string category = 1;
1362
+ bool required = 2;
1363
+ string selection_mode = 3;
1364
+ repeated UserKycVerificationRequirementOptionItem options = 4;
1365
+ }
1366
+ message GetUserKycVerificationRequirementsResponse {
1367
+ int32 user_id = 1;
1368
+ string purpose = 2;
1369
+ repeated UserKycVerificationRequirementItem requirements = 3;
1370
+ }
1342
1371
  message ReadListRiskPlayersRequest {
1343
1372
  int32 limit = 1;
1344
1373
  int32 offset = 2;
@@ -444,6 +444,28 @@ function deserialize_user_GetSumSubApplicantRequest(buffer_arg) {
444
444
  return user_pb.GetSumSubApplicantRequest.deserializeBinary(new Uint8Array(buffer_arg));
445
445
  }
446
446
 
447
+ function serialize_user_GetUserKycVerificationRequirementsRequest(arg) {
448
+ if (!(arg instanceof user_pb.GetUserKycVerificationRequirementsRequest)) {
449
+ throw new Error('Expected argument of type user.GetUserKycVerificationRequirementsRequest');
450
+ }
451
+ return Buffer.from(arg.serializeBinary());
452
+ }
453
+
454
+ function deserialize_user_GetUserKycVerificationRequirementsRequest(buffer_arg) {
455
+ return user_pb.GetUserKycVerificationRequirementsRequest.deserializeBinary(new Uint8Array(buffer_arg));
456
+ }
457
+
458
+ function serialize_user_GetUserKycVerificationRequirementsResponse(arg) {
459
+ if (!(arg instanceof user_pb.GetUserKycVerificationRequirementsResponse)) {
460
+ throw new Error('Expected argument of type user.GetUserKycVerificationRequirementsResponse');
461
+ }
462
+ return Buffer.from(arg.serializeBinary());
463
+ }
464
+
465
+ function deserialize_user_GetUserKycVerificationRequirementsResponse(buffer_arg) {
466
+ return user_pb.GetUserKycVerificationRequirementsResponse.deserializeBinary(new Uint8Array(buffer_arg));
467
+ }
468
+
447
469
  function serialize_user_GetUserLimitsRequest(arg) {
448
470
  if (!(arg instanceof user_pb.GetUserLimitsRequest)) {
449
471
  throw new Error('Expected argument of type user.GetUserLimitsRequest');
@@ -2954,6 +2976,18 @@ syncUserKycProviderStatus: {
2954
2976
  responseSerialize: serialize_user_UserKycVerificationDocumentPreviewResponse,
2955
2977
  responseDeserialize: deserialize_user_UserKycVerificationDocumentPreviewResponse,
2956
2978
  },
2979
+ // Provider-agnostic KYC: runtime verification requirements for a user and generic verification purpose.
2980
+ getUserKycVerificationRequirements: {
2981
+ path: '/user.User/getUserKycVerificationRequirements',
2982
+ requestStream: false,
2983
+ responseStream: false,
2984
+ requestType: user_pb.GetUserKycVerificationRequirementsRequest,
2985
+ responseType: user_pb.GetUserKycVerificationRequirementsResponse,
2986
+ requestSerialize: serialize_user_GetUserKycVerificationRequirementsRequest,
2987
+ requestDeserialize: deserialize_user_GetUserKycVerificationRequirementsRequest,
2988
+ responseSerialize: serialize_user_GetUserKycVerificationRequirementsResponse,
2989
+ responseDeserialize: deserialize_user_GetUserKycVerificationRequirementsResponse,
2990
+ },
2957
2991
  // KYC requirement matrix: configured trigger rules and presets (separate from provider KYC flow).
2958
2992
  // KYC rule definitions
2959
2993
  createKycRuleDefinition: {
package/user/user_pb.js CHANGED
@@ -65,6 +65,8 @@ goog.exportSymbol('proto.user.GetRoleRequest', null, global);
65
65
  goog.exportSymbol('proto.user.GetSegmentRequest', null, global);
66
66
  goog.exportSymbol('proto.user.GetSegmentRuleRequest', null, global);
67
67
  goog.exportSymbol('proto.user.GetSumSubApplicantRequest', null, global);
68
+ goog.exportSymbol('proto.user.GetUserKycVerificationRequirementsRequest', null, global);
69
+ goog.exportSymbol('proto.user.GetUserKycVerificationRequirementsResponse', null, global);
68
70
  goog.exportSymbol('proto.user.GetUserLimitsRequest', null, global);
69
71
  goog.exportSymbol('proto.user.GetUserSegmentIdsRequest', null, global);
70
72
  goog.exportSymbol('proto.user.GetUserWalletBalancesRequest', null, global);
@@ -217,6 +219,9 @@ goog.exportSymbol('proto.user.UserKycVerificationDocumentItem', null, global);
217
219
  goog.exportSymbol('proto.user.UserKycVerificationDocumentPreviewResponse', null, global);
218
220
  goog.exportSymbol('proto.user.UserKycVerificationDocumentSide', null, global);
219
221
  goog.exportSymbol('proto.user.UserKycVerificationDocumentsResponse', null, global);
222
+ goog.exportSymbol('proto.user.UserKycVerificationRequirementItem', null, global);
223
+ goog.exportSymbol('proto.user.UserKycVerificationRequirementOptionItem', null, global);
224
+ goog.exportSymbol('proto.user.UserKycVerificationRequirementUploadItem', null, global);
220
225
  goog.exportSymbol('proto.user.UserLimitsRequest', null, global);
221
226
  goog.exportSymbol('proto.user.UserLimitsResponse', null, global);
222
227
  goog.exportSymbol('proto.user.UserLoyaltyItem', null, global);
@@ -3093,6 +3098,111 @@ if (goog.DEBUG && !COMPILED) {
3093
3098
  */
3094
3099
  proto.user.UserKycVerificationDocumentPreviewResponse.displayName = 'proto.user.UserKycVerificationDocumentPreviewResponse';
3095
3100
  }
3101
+ /**
3102
+ * Generated by JsPbCodeGenerator.
3103
+ * @param {Array=} opt_data Optional initial data array, typically from a
3104
+ * server response, or constructed directly in Javascript. The array is used
3105
+ * in place and becomes part of the constructed object. It is not cloned.
3106
+ * If no data is provided, the constructed object will be empty, but still
3107
+ * valid.
3108
+ * @extends {jspb.Message}
3109
+ * @constructor
3110
+ */
3111
+ proto.user.GetUserKycVerificationRequirementsRequest = function(opt_data) {
3112
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3113
+ };
3114
+ goog.inherits(proto.user.GetUserKycVerificationRequirementsRequest, jspb.Message);
3115
+ if (goog.DEBUG && !COMPILED) {
3116
+ /**
3117
+ * @public
3118
+ * @override
3119
+ */
3120
+ proto.user.GetUserKycVerificationRequirementsRequest.displayName = 'proto.user.GetUserKycVerificationRequirementsRequest';
3121
+ }
3122
+ /**
3123
+ * Generated by JsPbCodeGenerator.
3124
+ * @param {Array=} opt_data Optional initial data array, typically from a
3125
+ * server response, or constructed directly in Javascript. The array is used
3126
+ * in place and becomes part of the constructed object. It is not cloned.
3127
+ * If no data is provided, the constructed object will be empty, but still
3128
+ * valid.
3129
+ * @extends {jspb.Message}
3130
+ * @constructor
3131
+ */
3132
+ proto.user.UserKycVerificationRequirementUploadItem = function(opt_data) {
3133
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3134
+ };
3135
+ goog.inherits(proto.user.UserKycVerificationRequirementUploadItem, jspb.Message);
3136
+ if (goog.DEBUG && !COMPILED) {
3137
+ /**
3138
+ * @public
3139
+ * @override
3140
+ */
3141
+ proto.user.UserKycVerificationRequirementUploadItem.displayName = 'proto.user.UserKycVerificationRequirementUploadItem';
3142
+ }
3143
+ /**
3144
+ * Generated by JsPbCodeGenerator.
3145
+ * @param {Array=} opt_data Optional initial data array, typically from a
3146
+ * server response, or constructed directly in Javascript. The array is used
3147
+ * in place and becomes part of the constructed object. It is not cloned.
3148
+ * If no data is provided, the constructed object will be empty, but still
3149
+ * valid.
3150
+ * @extends {jspb.Message}
3151
+ * @constructor
3152
+ */
3153
+ proto.user.UserKycVerificationRequirementOptionItem = function(opt_data) {
3154
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.UserKycVerificationRequirementOptionItem.repeatedFields_, null);
3155
+ };
3156
+ goog.inherits(proto.user.UserKycVerificationRequirementOptionItem, jspb.Message);
3157
+ if (goog.DEBUG && !COMPILED) {
3158
+ /**
3159
+ * @public
3160
+ * @override
3161
+ */
3162
+ proto.user.UserKycVerificationRequirementOptionItem.displayName = 'proto.user.UserKycVerificationRequirementOptionItem';
3163
+ }
3164
+ /**
3165
+ * Generated by JsPbCodeGenerator.
3166
+ * @param {Array=} opt_data Optional initial data array, typically from a
3167
+ * server response, or constructed directly in Javascript. The array is used
3168
+ * in place and becomes part of the constructed object. It is not cloned.
3169
+ * If no data is provided, the constructed object will be empty, but still
3170
+ * valid.
3171
+ * @extends {jspb.Message}
3172
+ * @constructor
3173
+ */
3174
+ proto.user.UserKycVerificationRequirementItem = function(opt_data) {
3175
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.UserKycVerificationRequirementItem.repeatedFields_, null);
3176
+ };
3177
+ goog.inherits(proto.user.UserKycVerificationRequirementItem, jspb.Message);
3178
+ if (goog.DEBUG && !COMPILED) {
3179
+ /**
3180
+ * @public
3181
+ * @override
3182
+ */
3183
+ proto.user.UserKycVerificationRequirementItem.displayName = 'proto.user.UserKycVerificationRequirementItem';
3184
+ }
3185
+ /**
3186
+ * Generated by JsPbCodeGenerator.
3187
+ * @param {Array=} opt_data Optional initial data array, typically from a
3188
+ * server response, or constructed directly in Javascript. The array is used
3189
+ * in place and becomes part of the constructed object. It is not cloned.
3190
+ * If no data is provided, the constructed object will be empty, but still
3191
+ * valid.
3192
+ * @extends {jspb.Message}
3193
+ * @constructor
3194
+ */
3195
+ proto.user.GetUserKycVerificationRequirementsResponse = function(opt_data) {
3196
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.GetUserKycVerificationRequirementsResponse.repeatedFields_, null);
3197
+ };
3198
+ goog.inherits(proto.user.GetUserKycVerificationRequirementsResponse, jspb.Message);
3199
+ if (goog.DEBUG && !COMPILED) {
3200
+ /**
3201
+ * @public
3202
+ * @override
3203
+ */
3204
+ proto.user.GetUserKycVerificationRequirementsResponse.displayName = 'proto.user.GetUserKycVerificationRequirementsResponse';
3205
+ }
3096
3206
  /**
3097
3207
  * Generated by JsPbCodeGenerator.
3098
3208
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -56268,6 +56378,1142 @@ proto.user.UserKycVerificationDocumentPreviewResponse.prototype.hasExpiresAt = f
56268
56378
 
56269
56379
 
56270
56380
 
56381
+
56382
+
56383
+ if (jspb.Message.GENERATE_TO_OBJECT) {
56384
+ /**
56385
+ * Creates an object representation of this proto.
56386
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
56387
+ * Optional fields that are not set will be set to undefined.
56388
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
56389
+ * For the list of reserved names please see:
56390
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
56391
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
56392
+ * JSPB instance for transitional soy proto support:
56393
+ * http://goto/soy-param-migration
56394
+ * @return {!Object}
56395
+ */
56396
+ proto.user.GetUserKycVerificationRequirementsRequest.prototype.toObject = function(opt_includeInstance) {
56397
+ return proto.user.GetUserKycVerificationRequirementsRequest.toObject(opt_includeInstance, this);
56398
+ };
56399
+
56400
+
56401
+ /**
56402
+ * Static version of the {@see toObject} method.
56403
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
56404
+ * the JSPB instance for transitional soy proto support:
56405
+ * http://goto/soy-param-migration
56406
+ * @param {!proto.user.GetUserKycVerificationRequirementsRequest} msg The msg instance to transform.
56407
+ * @return {!Object}
56408
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56409
+ */
56410
+ proto.user.GetUserKycVerificationRequirementsRequest.toObject = function(includeInstance, msg) {
56411
+ var f, obj = {
56412
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
56413
+ purpose: jspb.Message.getFieldWithDefault(msg, 2, ""),
56414
+ correlationId: jspb.Message.getFieldWithDefault(msg, 3, "")
56415
+ };
56416
+
56417
+ if (includeInstance) {
56418
+ obj.$jspbMessageInstance = msg;
56419
+ }
56420
+ return obj;
56421
+ };
56422
+ }
56423
+
56424
+
56425
+ /**
56426
+ * Deserializes binary data (in protobuf wire format).
56427
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
56428
+ * @return {!proto.user.GetUserKycVerificationRequirementsRequest}
56429
+ */
56430
+ proto.user.GetUserKycVerificationRequirementsRequest.deserializeBinary = function(bytes) {
56431
+ var reader = new jspb.BinaryReader(bytes);
56432
+ var msg = new proto.user.GetUserKycVerificationRequirementsRequest;
56433
+ return proto.user.GetUserKycVerificationRequirementsRequest.deserializeBinaryFromReader(msg, reader);
56434
+ };
56435
+
56436
+
56437
+ /**
56438
+ * Deserializes binary data (in protobuf wire format) from the
56439
+ * given reader into the given message object.
56440
+ * @param {!proto.user.GetUserKycVerificationRequirementsRequest} msg The message object to deserialize into.
56441
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
56442
+ * @return {!proto.user.GetUserKycVerificationRequirementsRequest}
56443
+ */
56444
+ proto.user.GetUserKycVerificationRequirementsRequest.deserializeBinaryFromReader = function(msg, reader) {
56445
+ while (reader.nextField()) {
56446
+ if (reader.isEndGroup()) {
56447
+ break;
56448
+ }
56449
+ var field = reader.getFieldNumber();
56450
+ switch (field) {
56451
+ case 1:
56452
+ var value = /** @type {number} */ (reader.readInt32());
56453
+ msg.setUserId(value);
56454
+ break;
56455
+ case 2:
56456
+ var value = /** @type {string} */ (reader.readString());
56457
+ msg.setPurpose(value);
56458
+ break;
56459
+ case 3:
56460
+ var value = /** @type {string} */ (reader.readString());
56461
+ msg.setCorrelationId(value);
56462
+ break;
56463
+ default:
56464
+ reader.skipField();
56465
+ break;
56466
+ }
56467
+ }
56468
+ return msg;
56469
+ };
56470
+
56471
+
56472
+ /**
56473
+ * Serializes the message to binary data (in protobuf wire format).
56474
+ * @return {!Uint8Array}
56475
+ */
56476
+ proto.user.GetUserKycVerificationRequirementsRequest.prototype.serializeBinary = function() {
56477
+ var writer = new jspb.BinaryWriter();
56478
+ proto.user.GetUserKycVerificationRequirementsRequest.serializeBinaryToWriter(this, writer);
56479
+ return writer.getResultBuffer();
56480
+ };
56481
+
56482
+
56483
+ /**
56484
+ * Serializes the given message to binary data (in protobuf wire
56485
+ * format), writing to the given BinaryWriter.
56486
+ * @param {!proto.user.GetUserKycVerificationRequirementsRequest} message
56487
+ * @param {!jspb.BinaryWriter} writer
56488
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56489
+ */
56490
+ proto.user.GetUserKycVerificationRequirementsRequest.serializeBinaryToWriter = function(message, writer) {
56491
+ var f = undefined;
56492
+ f = message.getUserId();
56493
+ if (f !== 0) {
56494
+ writer.writeInt32(
56495
+ 1,
56496
+ f
56497
+ );
56498
+ }
56499
+ f = message.getPurpose();
56500
+ if (f.length > 0) {
56501
+ writer.writeString(
56502
+ 2,
56503
+ f
56504
+ );
56505
+ }
56506
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
56507
+ if (f != null) {
56508
+ writer.writeString(
56509
+ 3,
56510
+ f
56511
+ );
56512
+ }
56513
+ };
56514
+
56515
+
56516
+ /**
56517
+ * optional int32 user_id = 1;
56518
+ * @return {number}
56519
+ */
56520
+ proto.user.GetUserKycVerificationRequirementsRequest.prototype.getUserId = function() {
56521
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
56522
+ };
56523
+
56524
+
56525
+ /**
56526
+ * @param {number} value
56527
+ * @return {!proto.user.GetUserKycVerificationRequirementsRequest} returns this
56528
+ */
56529
+ proto.user.GetUserKycVerificationRequirementsRequest.prototype.setUserId = function(value) {
56530
+ return jspb.Message.setProto3IntField(this, 1, value);
56531
+ };
56532
+
56533
+
56534
+ /**
56535
+ * optional string purpose = 2;
56536
+ * @return {string}
56537
+ */
56538
+ proto.user.GetUserKycVerificationRequirementsRequest.prototype.getPurpose = function() {
56539
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
56540
+ };
56541
+
56542
+
56543
+ /**
56544
+ * @param {string} value
56545
+ * @return {!proto.user.GetUserKycVerificationRequirementsRequest} returns this
56546
+ */
56547
+ proto.user.GetUserKycVerificationRequirementsRequest.prototype.setPurpose = function(value) {
56548
+ return jspb.Message.setProto3StringField(this, 2, value);
56549
+ };
56550
+
56551
+
56552
+ /**
56553
+ * optional string correlation_id = 3;
56554
+ * @return {string}
56555
+ */
56556
+ proto.user.GetUserKycVerificationRequirementsRequest.prototype.getCorrelationId = function() {
56557
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
56558
+ };
56559
+
56560
+
56561
+ /**
56562
+ * @param {string} value
56563
+ * @return {!proto.user.GetUserKycVerificationRequirementsRequest} returns this
56564
+ */
56565
+ proto.user.GetUserKycVerificationRequirementsRequest.prototype.setCorrelationId = function(value) {
56566
+ return jspb.Message.setField(this, 3, value);
56567
+ };
56568
+
56569
+
56570
+ /**
56571
+ * Clears the field making it undefined.
56572
+ * @return {!proto.user.GetUserKycVerificationRequirementsRequest} returns this
56573
+ */
56574
+ proto.user.GetUserKycVerificationRequirementsRequest.prototype.clearCorrelationId = function() {
56575
+ return jspb.Message.setField(this, 3, undefined);
56576
+ };
56577
+
56578
+
56579
+ /**
56580
+ * Returns whether this field is set.
56581
+ * @return {boolean}
56582
+ */
56583
+ proto.user.GetUserKycVerificationRequirementsRequest.prototype.hasCorrelationId = function() {
56584
+ return jspb.Message.getField(this, 3) != null;
56585
+ };
56586
+
56587
+
56588
+
56589
+
56590
+
56591
+ if (jspb.Message.GENERATE_TO_OBJECT) {
56592
+ /**
56593
+ * Creates an object representation of this proto.
56594
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
56595
+ * Optional fields that are not set will be set to undefined.
56596
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
56597
+ * For the list of reserved names please see:
56598
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
56599
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
56600
+ * JSPB instance for transitional soy proto support:
56601
+ * http://goto/soy-param-migration
56602
+ * @return {!Object}
56603
+ */
56604
+ proto.user.UserKycVerificationRequirementUploadItem.prototype.toObject = function(opt_includeInstance) {
56605
+ return proto.user.UserKycVerificationRequirementUploadItem.toObject(opt_includeInstance, this);
56606
+ };
56607
+
56608
+
56609
+ /**
56610
+ * Static version of the {@see toObject} method.
56611
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
56612
+ * the JSPB instance for transitional soy proto support:
56613
+ * http://goto/soy-param-migration
56614
+ * @param {!proto.user.UserKycVerificationRequirementUploadItem} msg The msg instance to transform.
56615
+ * @return {!Object}
56616
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56617
+ */
56618
+ proto.user.UserKycVerificationRequirementUploadItem.toObject = function(includeInstance, msg) {
56619
+ var f, obj = {
56620
+ side: jspb.Message.getFieldWithDefault(msg, 1, ""),
56621
+ required: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
56622
+ status: jspb.Message.getFieldWithDefault(msg, 3, "")
56623
+ };
56624
+
56625
+ if (includeInstance) {
56626
+ obj.$jspbMessageInstance = msg;
56627
+ }
56628
+ return obj;
56629
+ };
56630
+ }
56631
+
56632
+
56633
+ /**
56634
+ * Deserializes binary data (in protobuf wire format).
56635
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
56636
+ * @return {!proto.user.UserKycVerificationRequirementUploadItem}
56637
+ */
56638
+ proto.user.UserKycVerificationRequirementUploadItem.deserializeBinary = function(bytes) {
56639
+ var reader = new jspb.BinaryReader(bytes);
56640
+ var msg = new proto.user.UserKycVerificationRequirementUploadItem;
56641
+ return proto.user.UserKycVerificationRequirementUploadItem.deserializeBinaryFromReader(msg, reader);
56642
+ };
56643
+
56644
+
56645
+ /**
56646
+ * Deserializes binary data (in protobuf wire format) from the
56647
+ * given reader into the given message object.
56648
+ * @param {!proto.user.UserKycVerificationRequirementUploadItem} msg The message object to deserialize into.
56649
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
56650
+ * @return {!proto.user.UserKycVerificationRequirementUploadItem}
56651
+ */
56652
+ proto.user.UserKycVerificationRequirementUploadItem.deserializeBinaryFromReader = function(msg, reader) {
56653
+ while (reader.nextField()) {
56654
+ if (reader.isEndGroup()) {
56655
+ break;
56656
+ }
56657
+ var field = reader.getFieldNumber();
56658
+ switch (field) {
56659
+ case 1:
56660
+ var value = /** @type {string} */ (reader.readString());
56661
+ msg.setSide(value);
56662
+ break;
56663
+ case 2:
56664
+ var value = /** @type {boolean} */ (reader.readBool());
56665
+ msg.setRequired(value);
56666
+ break;
56667
+ case 3:
56668
+ var value = /** @type {string} */ (reader.readString());
56669
+ msg.setStatus(value);
56670
+ break;
56671
+ default:
56672
+ reader.skipField();
56673
+ break;
56674
+ }
56675
+ }
56676
+ return msg;
56677
+ };
56678
+
56679
+
56680
+ /**
56681
+ * Serializes the message to binary data (in protobuf wire format).
56682
+ * @return {!Uint8Array}
56683
+ */
56684
+ proto.user.UserKycVerificationRequirementUploadItem.prototype.serializeBinary = function() {
56685
+ var writer = new jspb.BinaryWriter();
56686
+ proto.user.UserKycVerificationRequirementUploadItem.serializeBinaryToWriter(this, writer);
56687
+ return writer.getResultBuffer();
56688
+ };
56689
+
56690
+
56691
+ /**
56692
+ * Serializes the given message to binary data (in protobuf wire
56693
+ * format), writing to the given BinaryWriter.
56694
+ * @param {!proto.user.UserKycVerificationRequirementUploadItem} message
56695
+ * @param {!jspb.BinaryWriter} writer
56696
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56697
+ */
56698
+ proto.user.UserKycVerificationRequirementUploadItem.serializeBinaryToWriter = function(message, writer) {
56699
+ var f = undefined;
56700
+ f = message.getSide();
56701
+ if (f.length > 0) {
56702
+ writer.writeString(
56703
+ 1,
56704
+ f
56705
+ );
56706
+ }
56707
+ f = message.getRequired();
56708
+ if (f) {
56709
+ writer.writeBool(
56710
+ 2,
56711
+ f
56712
+ );
56713
+ }
56714
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
56715
+ if (f != null) {
56716
+ writer.writeString(
56717
+ 3,
56718
+ f
56719
+ );
56720
+ }
56721
+ };
56722
+
56723
+
56724
+ /**
56725
+ * optional string side = 1;
56726
+ * @return {string}
56727
+ */
56728
+ proto.user.UserKycVerificationRequirementUploadItem.prototype.getSide = function() {
56729
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
56730
+ };
56731
+
56732
+
56733
+ /**
56734
+ * @param {string} value
56735
+ * @return {!proto.user.UserKycVerificationRequirementUploadItem} returns this
56736
+ */
56737
+ proto.user.UserKycVerificationRequirementUploadItem.prototype.setSide = function(value) {
56738
+ return jspb.Message.setProto3StringField(this, 1, value);
56739
+ };
56740
+
56741
+
56742
+ /**
56743
+ * optional bool required = 2;
56744
+ * @return {boolean}
56745
+ */
56746
+ proto.user.UserKycVerificationRequirementUploadItem.prototype.getRequired = function() {
56747
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
56748
+ };
56749
+
56750
+
56751
+ /**
56752
+ * @param {boolean} value
56753
+ * @return {!proto.user.UserKycVerificationRequirementUploadItem} returns this
56754
+ */
56755
+ proto.user.UserKycVerificationRequirementUploadItem.prototype.setRequired = function(value) {
56756
+ return jspb.Message.setProto3BooleanField(this, 2, value);
56757
+ };
56758
+
56759
+
56760
+ /**
56761
+ * optional string status = 3;
56762
+ * @return {string}
56763
+ */
56764
+ proto.user.UserKycVerificationRequirementUploadItem.prototype.getStatus = function() {
56765
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
56766
+ };
56767
+
56768
+
56769
+ /**
56770
+ * @param {string} value
56771
+ * @return {!proto.user.UserKycVerificationRequirementUploadItem} returns this
56772
+ */
56773
+ proto.user.UserKycVerificationRequirementUploadItem.prototype.setStatus = function(value) {
56774
+ return jspb.Message.setField(this, 3, value);
56775
+ };
56776
+
56777
+
56778
+ /**
56779
+ * Clears the field making it undefined.
56780
+ * @return {!proto.user.UserKycVerificationRequirementUploadItem} returns this
56781
+ */
56782
+ proto.user.UserKycVerificationRequirementUploadItem.prototype.clearStatus = function() {
56783
+ return jspb.Message.setField(this, 3, undefined);
56784
+ };
56785
+
56786
+
56787
+ /**
56788
+ * Returns whether this field is set.
56789
+ * @return {boolean}
56790
+ */
56791
+ proto.user.UserKycVerificationRequirementUploadItem.prototype.hasStatus = function() {
56792
+ return jspb.Message.getField(this, 3) != null;
56793
+ };
56794
+
56795
+
56796
+
56797
+ /**
56798
+ * List of repeated fields within this message type.
56799
+ * @private {!Array<number>}
56800
+ * @const
56801
+ */
56802
+ proto.user.UserKycVerificationRequirementOptionItem.repeatedFields_ = [4];
56803
+
56804
+
56805
+
56806
+ if (jspb.Message.GENERATE_TO_OBJECT) {
56807
+ /**
56808
+ * Creates an object representation of this proto.
56809
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
56810
+ * Optional fields that are not set will be set to undefined.
56811
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
56812
+ * For the list of reserved names please see:
56813
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
56814
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
56815
+ * JSPB instance for transitional soy proto support:
56816
+ * http://goto/soy-param-migration
56817
+ * @return {!Object}
56818
+ */
56819
+ proto.user.UserKycVerificationRequirementOptionItem.prototype.toObject = function(opt_includeInstance) {
56820
+ return proto.user.UserKycVerificationRequirementOptionItem.toObject(opt_includeInstance, this);
56821
+ };
56822
+
56823
+
56824
+ /**
56825
+ * Static version of the {@see toObject} method.
56826
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
56827
+ * the JSPB instance for transitional soy proto support:
56828
+ * http://goto/soy-param-migration
56829
+ * @param {!proto.user.UserKycVerificationRequirementOptionItem} msg The msg instance to transform.
56830
+ * @return {!Object}
56831
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56832
+ */
56833
+ proto.user.UserKycVerificationRequirementOptionItem.toObject = function(includeInstance, msg) {
56834
+ var f, obj = {
56835
+ documentType: jspb.Message.getFieldWithDefault(msg, 1, ""),
56836
+ supported: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
56837
+ uploadRequirementsResolved: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
56838
+ uploadsList: jspb.Message.toObjectList(msg.getUploadsList(),
56839
+ proto.user.UserKycVerificationRequirementUploadItem.toObject, includeInstance)
56840
+ };
56841
+
56842
+ if (includeInstance) {
56843
+ obj.$jspbMessageInstance = msg;
56844
+ }
56845
+ return obj;
56846
+ };
56847
+ }
56848
+
56849
+
56850
+ /**
56851
+ * Deserializes binary data (in protobuf wire format).
56852
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
56853
+ * @return {!proto.user.UserKycVerificationRequirementOptionItem}
56854
+ */
56855
+ proto.user.UserKycVerificationRequirementOptionItem.deserializeBinary = function(bytes) {
56856
+ var reader = new jspb.BinaryReader(bytes);
56857
+ var msg = new proto.user.UserKycVerificationRequirementOptionItem;
56858
+ return proto.user.UserKycVerificationRequirementOptionItem.deserializeBinaryFromReader(msg, reader);
56859
+ };
56860
+
56861
+
56862
+ /**
56863
+ * Deserializes binary data (in protobuf wire format) from the
56864
+ * given reader into the given message object.
56865
+ * @param {!proto.user.UserKycVerificationRequirementOptionItem} msg The message object to deserialize into.
56866
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
56867
+ * @return {!proto.user.UserKycVerificationRequirementOptionItem}
56868
+ */
56869
+ proto.user.UserKycVerificationRequirementOptionItem.deserializeBinaryFromReader = function(msg, reader) {
56870
+ while (reader.nextField()) {
56871
+ if (reader.isEndGroup()) {
56872
+ break;
56873
+ }
56874
+ var field = reader.getFieldNumber();
56875
+ switch (field) {
56876
+ case 1:
56877
+ var value = /** @type {string} */ (reader.readString());
56878
+ msg.setDocumentType(value);
56879
+ break;
56880
+ case 2:
56881
+ var value = /** @type {boolean} */ (reader.readBool());
56882
+ msg.setSupported(value);
56883
+ break;
56884
+ case 3:
56885
+ var value = /** @type {boolean} */ (reader.readBool());
56886
+ msg.setUploadRequirementsResolved(value);
56887
+ break;
56888
+ case 4:
56889
+ var value = new proto.user.UserKycVerificationRequirementUploadItem;
56890
+ reader.readMessage(value,proto.user.UserKycVerificationRequirementUploadItem.deserializeBinaryFromReader);
56891
+ msg.addUploads(value);
56892
+ break;
56893
+ default:
56894
+ reader.skipField();
56895
+ break;
56896
+ }
56897
+ }
56898
+ return msg;
56899
+ };
56900
+
56901
+
56902
+ /**
56903
+ * Serializes the message to binary data (in protobuf wire format).
56904
+ * @return {!Uint8Array}
56905
+ */
56906
+ proto.user.UserKycVerificationRequirementOptionItem.prototype.serializeBinary = function() {
56907
+ var writer = new jspb.BinaryWriter();
56908
+ proto.user.UserKycVerificationRequirementOptionItem.serializeBinaryToWriter(this, writer);
56909
+ return writer.getResultBuffer();
56910
+ };
56911
+
56912
+
56913
+ /**
56914
+ * Serializes the given message to binary data (in protobuf wire
56915
+ * format), writing to the given BinaryWriter.
56916
+ * @param {!proto.user.UserKycVerificationRequirementOptionItem} message
56917
+ * @param {!jspb.BinaryWriter} writer
56918
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56919
+ */
56920
+ proto.user.UserKycVerificationRequirementOptionItem.serializeBinaryToWriter = function(message, writer) {
56921
+ var f = undefined;
56922
+ f = message.getDocumentType();
56923
+ if (f.length > 0) {
56924
+ writer.writeString(
56925
+ 1,
56926
+ f
56927
+ );
56928
+ }
56929
+ f = message.getSupported();
56930
+ if (f) {
56931
+ writer.writeBool(
56932
+ 2,
56933
+ f
56934
+ );
56935
+ }
56936
+ f = message.getUploadRequirementsResolved();
56937
+ if (f) {
56938
+ writer.writeBool(
56939
+ 3,
56940
+ f
56941
+ );
56942
+ }
56943
+ f = message.getUploadsList();
56944
+ if (f.length > 0) {
56945
+ writer.writeRepeatedMessage(
56946
+ 4,
56947
+ f,
56948
+ proto.user.UserKycVerificationRequirementUploadItem.serializeBinaryToWriter
56949
+ );
56950
+ }
56951
+ };
56952
+
56953
+
56954
+ /**
56955
+ * optional string document_type = 1;
56956
+ * @return {string}
56957
+ */
56958
+ proto.user.UserKycVerificationRequirementOptionItem.prototype.getDocumentType = function() {
56959
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
56960
+ };
56961
+
56962
+
56963
+ /**
56964
+ * @param {string} value
56965
+ * @return {!proto.user.UserKycVerificationRequirementOptionItem} returns this
56966
+ */
56967
+ proto.user.UserKycVerificationRequirementOptionItem.prototype.setDocumentType = function(value) {
56968
+ return jspb.Message.setProto3StringField(this, 1, value);
56969
+ };
56970
+
56971
+
56972
+ /**
56973
+ * optional bool supported = 2;
56974
+ * @return {boolean}
56975
+ */
56976
+ proto.user.UserKycVerificationRequirementOptionItem.prototype.getSupported = function() {
56977
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
56978
+ };
56979
+
56980
+
56981
+ /**
56982
+ * @param {boolean} value
56983
+ * @return {!proto.user.UserKycVerificationRequirementOptionItem} returns this
56984
+ */
56985
+ proto.user.UserKycVerificationRequirementOptionItem.prototype.setSupported = function(value) {
56986
+ return jspb.Message.setProto3BooleanField(this, 2, value);
56987
+ };
56988
+
56989
+
56990
+ /**
56991
+ * optional bool upload_requirements_resolved = 3;
56992
+ * @return {boolean}
56993
+ */
56994
+ proto.user.UserKycVerificationRequirementOptionItem.prototype.getUploadRequirementsResolved = function() {
56995
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
56996
+ };
56997
+
56998
+
56999
+ /**
57000
+ * @param {boolean} value
57001
+ * @return {!proto.user.UserKycVerificationRequirementOptionItem} returns this
57002
+ */
57003
+ proto.user.UserKycVerificationRequirementOptionItem.prototype.setUploadRequirementsResolved = function(value) {
57004
+ return jspb.Message.setProto3BooleanField(this, 3, value);
57005
+ };
57006
+
57007
+
57008
+ /**
57009
+ * repeated UserKycVerificationRequirementUploadItem uploads = 4;
57010
+ * @return {!Array<!proto.user.UserKycVerificationRequirementUploadItem>}
57011
+ */
57012
+ proto.user.UserKycVerificationRequirementOptionItem.prototype.getUploadsList = function() {
57013
+ return /** @type{!Array<!proto.user.UserKycVerificationRequirementUploadItem>} */ (
57014
+ jspb.Message.getRepeatedWrapperField(this, proto.user.UserKycVerificationRequirementUploadItem, 4));
57015
+ };
57016
+
57017
+
57018
+ /**
57019
+ * @param {!Array<!proto.user.UserKycVerificationRequirementUploadItem>} value
57020
+ * @return {!proto.user.UserKycVerificationRequirementOptionItem} returns this
57021
+ */
57022
+ proto.user.UserKycVerificationRequirementOptionItem.prototype.setUploadsList = function(value) {
57023
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
57024
+ };
57025
+
57026
+
57027
+ /**
57028
+ * @param {!proto.user.UserKycVerificationRequirementUploadItem=} opt_value
57029
+ * @param {number=} opt_index
57030
+ * @return {!proto.user.UserKycVerificationRequirementUploadItem}
57031
+ */
57032
+ proto.user.UserKycVerificationRequirementOptionItem.prototype.addUploads = function(opt_value, opt_index) {
57033
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.user.UserKycVerificationRequirementUploadItem, opt_index);
57034
+ };
57035
+
57036
+
57037
+ /**
57038
+ * Clears the list making it empty but non-null.
57039
+ * @return {!proto.user.UserKycVerificationRequirementOptionItem} returns this
57040
+ */
57041
+ proto.user.UserKycVerificationRequirementOptionItem.prototype.clearUploadsList = function() {
57042
+ return this.setUploadsList([]);
57043
+ };
57044
+
57045
+
57046
+
57047
+ /**
57048
+ * List of repeated fields within this message type.
57049
+ * @private {!Array<number>}
57050
+ * @const
57051
+ */
57052
+ proto.user.UserKycVerificationRequirementItem.repeatedFields_ = [4];
57053
+
57054
+
57055
+
57056
+ if (jspb.Message.GENERATE_TO_OBJECT) {
57057
+ /**
57058
+ * Creates an object representation of this proto.
57059
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
57060
+ * Optional fields that are not set will be set to undefined.
57061
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
57062
+ * For the list of reserved names please see:
57063
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
57064
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
57065
+ * JSPB instance for transitional soy proto support:
57066
+ * http://goto/soy-param-migration
57067
+ * @return {!Object}
57068
+ */
57069
+ proto.user.UserKycVerificationRequirementItem.prototype.toObject = function(opt_includeInstance) {
57070
+ return proto.user.UserKycVerificationRequirementItem.toObject(opt_includeInstance, this);
57071
+ };
57072
+
57073
+
57074
+ /**
57075
+ * Static version of the {@see toObject} method.
57076
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
57077
+ * the JSPB instance for transitional soy proto support:
57078
+ * http://goto/soy-param-migration
57079
+ * @param {!proto.user.UserKycVerificationRequirementItem} msg The msg instance to transform.
57080
+ * @return {!Object}
57081
+ * @suppress {unusedLocalVariables} f is only used for nested messages
57082
+ */
57083
+ proto.user.UserKycVerificationRequirementItem.toObject = function(includeInstance, msg) {
57084
+ var f, obj = {
57085
+ category: jspb.Message.getFieldWithDefault(msg, 1, ""),
57086
+ required: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
57087
+ selectionMode: jspb.Message.getFieldWithDefault(msg, 3, ""),
57088
+ optionsList: jspb.Message.toObjectList(msg.getOptionsList(),
57089
+ proto.user.UserKycVerificationRequirementOptionItem.toObject, includeInstance)
57090
+ };
57091
+
57092
+ if (includeInstance) {
57093
+ obj.$jspbMessageInstance = msg;
57094
+ }
57095
+ return obj;
57096
+ };
57097
+ }
57098
+
57099
+
57100
+ /**
57101
+ * Deserializes binary data (in protobuf wire format).
57102
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
57103
+ * @return {!proto.user.UserKycVerificationRequirementItem}
57104
+ */
57105
+ proto.user.UserKycVerificationRequirementItem.deserializeBinary = function(bytes) {
57106
+ var reader = new jspb.BinaryReader(bytes);
57107
+ var msg = new proto.user.UserKycVerificationRequirementItem;
57108
+ return proto.user.UserKycVerificationRequirementItem.deserializeBinaryFromReader(msg, reader);
57109
+ };
57110
+
57111
+
57112
+ /**
57113
+ * Deserializes binary data (in protobuf wire format) from the
57114
+ * given reader into the given message object.
57115
+ * @param {!proto.user.UserKycVerificationRequirementItem} msg The message object to deserialize into.
57116
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
57117
+ * @return {!proto.user.UserKycVerificationRequirementItem}
57118
+ */
57119
+ proto.user.UserKycVerificationRequirementItem.deserializeBinaryFromReader = function(msg, reader) {
57120
+ while (reader.nextField()) {
57121
+ if (reader.isEndGroup()) {
57122
+ break;
57123
+ }
57124
+ var field = reader.getFieldNumber();
57125
+ switch (field) {
57126
+ case 1:
57127
+ var value = /** @type {string} */ (reader.readString());
57128
+ msg.setCategory(value);
57129
+ break;
57130
+ case 2:
57131
+ var value = /** @type {boolean} */ (reader.readBool());
57132
+ msg.setRequired(value);
57133
+ break;
57134
+ case 3:
57135
+ var value = /** @type {string} */ (reader.readString());
57136
+ msg.setSelectionMode(value);
57137
+ break;
57138
+ case 4:
57139
+ var value = new proto.user.UserKycVerificationRequirementOptionItem;
57140
+ reader.readMessage(value,proto.user.UserKycVerificationRequirementOptionItem.deserializeBinaryFromReader);
57141
+ msg.addOptions(value);
57142
+ break;
57143
+ default:
57144
+ reader.skipField();
57145
+ break;
57146
+ }
57147
+ }
57148
+ return msg;
57149
+ };
57150
+
57151
+
57152
+ /**
57153
+ * Serializes the message to binary data (in protobuf wire format).
57154
+ * @return {!Uint8Array}
57155
+ */
57156
+ proto.user.UserKycVerificationRequirementItem.prototype.serializeBinary = function() {
57157
+ var writer = new jspb.BinaryWriter();
57158
+ proto.user.UserKycVerificationRequirementItem.serializeBinaryToWriter(this, writer);
57159
+ return writer.getResultBuffer();
57160
+ };
57161
+
57162
+
57163
+ /**
57164
+ * Serializes the given message to binary data (in protobuf wire
57165
+ * format), writing to the given BinaryWriter.
57166
+ * @param {!proto.user.UserKycVerificationRequirementItem} message
57167
+ * @param {!jspb.BinaryWriter} writer
57168
+ * @suppress {unusedLocalVariables} f is only used for nested messages
57169
+ */
57170
+ proto.user.UserKycVerificationRequirementItem.serializeBinaryToWriter = function(message, writer) {
57171
+ var f = undefined;
57172
+ f = message.getCategory();
57173
+ if (f.length > 0) {
57174
+ writer.writeString(
57175
+ 1,
57176
+ f
57177
+ );
57178
+ }
57179
+ f = message.getRequired();
57180
+ if (f) {
57181
+ writer.writeBool(
57182
+ 2,
57183
+ f
57184
+ );
57185
+ }
57186
+ f = message.getSelectionMode();
57187
+ if (f.length > 0) {
57188
+ writer.writeString(
57189
+ 3,
57190
+ f
57191
+ );
57192
+ }
57193
+ f = message.getOptionsList();
57194
+ if (f.length > 0) {
57195
+ writer.writeRepeatedMessage(
57196
+ 4,
57197
+ f,
57198
+ proto.user.UserKycVerificationRequirementOptionItem.serializeBinaryToWriter
57199
+ );
57200
+ }
57201
+ };
57202
+
57203
+
57204
+ /**
57205
+ * optional string category = 1;
57206
+ * @return {string}
57207
+ */
57208
+ proto.user.UserKycVerificationRequirementItem.prototype.getCategory = function() {
57209
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
57210
+ };
57211
+
57212
+
57213
+ /**
57214
+ * @param {string} value
57215
+ * @return {!proto.user.UserKycVerificationRequirementItem} returns this
57216
+ */
57217
+ proto.user.UserKycVerificationRequirementItem.prototype.setCategory = function(value) {
57218
+ return jspb.Message.setProto3StringField(this, 1, value);
57219
+ };
57220
+
57221
+
57222
+ /**
57223
+ * optional bool required = 2;
57224
+ * @return {boolean}
57225
+ */
57226
+ proto.user.UserKycVerificationRequirementItem.prototype.getRequired = function() {
57227
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
57228
+ };
57229
+
57230
+
57231
+ /**
57232
+ * @param {boolean} value
57233
+ * @return {!proto.user.UserKycVerificationRequirementItem} returns this
57234
+ */
57235
+ proto.user.UserKycVerificationRequirementItem.prototype.setRequired = function(value) {
57236
+ return jspb.Message.setProto3BooleanField(this, 2, value);
57237
+ };
57238
+
57239
+
57240
+ /**
57241
+ * optional string selection_mode = 3;
57242
+ * @return {string}
57243
+ */
57244
+ proto.user.UserKycVerificationRequirementItem.prototype.getSelectionMode = function() {
57245
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
57246
+ };
57247
+
57248
+
57249
+ /**
57250
+ * @param {string} value
57251
+ * @return {!proto.user.UserKycVerificationRequirementItem} returns this
57252
+ */
57253
+ proto.user.UserKycVerificationRequirementItem.prototype.setSelectionMode = function(value) {
57254
+ return jspb.Message.setProto3StringField(this, 3, value);
57255
+ };
57256
+
57257
+
57258
+ /**
57259
+ * repeated UserKycVerificationRequirementOptionItem options = 4;
57260
+ * @return {!Array<!proto.user.UserKycVerificationRequirementOptionItem>}
57261
+ */
57262
+ proto.user.UserKycVerificationRequirementItem.prototype.getOptionsList = function() {
57263
+ return /** @type{!Array<!proto.user.UserKycVerificationRequirementOptionItem>} */ (
57264
+ jspb.Message.getRepeatedWrapperField(this, proto.user.UserKycVerificationRequirementOptionItem, 4));
57265
+ };
57266
+
57267
+
57268
+ /**
57269
+ * @param {!Array<!proto.user.UserKycVerificationRequirementOptionItem>} value
57270
+ * @return {!proto.user.UserKycVerificationRequirementItem} returns this
57271
+ */
57272
+ proto.user.UserKycVerificationRequirementItem.prototype.setOptionsList = function(value) {
57273
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
57274
+ };
57275
+
57276
+
57277
+ /**
57278
+ * @param {!proto.user.UserKycVerificationRequirementOptionItem=} opt_value
57279
+ * @param {number=} opt_index
57280
+ * @return {!proto.user.UserKycVerificationRequirementOptionItem}
57281
+ */
57282
+ proto.user.UserKycVerificationRequirementItem.prototype.addOptions = function(opt_value, opt_index) {
57283
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.user.UserKycVerificationRequirementOptionItem, opt_index);
57284
+ };
57285
+
57286
+
57287
+ /**
57288
+ * Clears the list making it empty but non-null.
57289
+ * @return {!proto.user.UserKycVerificationRequirementItem} returns this
57290
+ */
57291
+ proto.user.UserKycVerificationRequirementItem.prototype.clearOptionsList = function() {
57292
+ return this.setOptionsList([]);
57293
+ };
57294
+
57295
+
57296
+
57297
+ /**
57298
+ * List of repeated fields within this message type.
57299
+ * @private {!Array<number>}
57300
+ * @const
57301
+ */
57302
+ proto.user.GetUserKycVerificationRequirementsResponse.repeatedFields_ = [3];
57303
+
57304
+
57305
+
57306
+ if (jspb.Message.GENERATE_TO_OBJECT) {
57307
+ /**
57308
+ * Creates an object representation of this proto.
57309
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
57310
+ * Optional fields that are not set will be set to undefined.
57311
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
57312
+ * For the list of reserved names please see:
57313
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
57314
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
57315
+ * JSPB instance for transitional soy proto support:
57316
+ * http://goto/soy-param-migration
57317
+ * @return {!Object}
57318
+ */
57319
+ proto.user.GetUserKycVerificationRequirementsResponse.prototype.toObject = function(opt_includeInstance) {
57320
+ return proto.user.GetUserKycVerificationRequirementsResponse.toObject(opt_includeInstance, this);
57321
+ };
57322
+
57323
+
57324
+ /**
57325
+ * Static version of the {@see toObject} method.
57326
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
57327
+ * the JSPB instance for transitional soy proto support:
57328
+ * http://goto/soy-param-migration
57329
+ * @param {!proto.user.GetUserKycVerificationRequirementsResponse} msg The msg instance to transform.
57330
+ * @return {!Object}
57331
+ * @suppress {unusedLocalVariables} f is only used for nested messages
57332
+ */
57333
+ proto.user.GetUserKycVerificationRequirementsResponse.toObject = function(includeInstance, msg) {
57334
+ var f, obj = {
57335
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
57336
+ purpose: jspb.Message.getFieldWithDefault(msg, 2, ""),
57337
+ requirementsList: jspb.Message.toObjectList(msg.getRequirementsList(),
57338
+ proto.user.UserKycVerificationRequirementItem.toObject, includeInstance)
57339
+ };
57340
+
57341
+ if (includeInstance) {
57342
+ obj.$jspbMessageInstance = msg;
57343
+ }
57344
+ return obj;
57345
+ };
57346
+ }
57347
+
57348
+
57349
+ /**
57350
+ * Deserializes binary data (in protobuf wire format).
57351
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
57352
+ * @return {!proto.user.GetUserKycVerificationRequirementsResponse}
57353
+ */
57354
+ proto.user.GetUserKycVerificationRequirementsResponse.deserializeBinary = function(bytes) {
57355
+ var reader = new jspb.BinaryReader(bytes);
57356
+ var msg = new proto.user.GetUserKycVerificationRequirementsResponse;
57357
+ return proto.user.GetUserKycVerificationRequirementsResponse.deserializeBinaryFromReader(msg, reader);
57358
+ };
57359
+
57360
+
57361
+ /**
57362
+ * Deserializes binary data (in protobuf wire format) from the
57363
+ * given reader into the given message object.
57364
+ * @param {!proto.user.GetUserKycVerificationRequirementsResponse} msg The message object to deserialize into.
57365
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
57366
+ * @return {!proto.user.GetUserKycVerificationRequirementsResponse}
57367
+ */
57368
+ proto.user.GetUserKycVerificationRequirementsResponse.deserializeBinaryFromReader = function(msg, reader) {
57369
+ while (reader.nextField()) {
57370
+ if (reader.isEndGroup()) {
57371
+ break;
57372
+ }
57373
+ var field = reader.getFieldNumber();
57374
+ switch (field) {
57375
+ case 1:
57376
+ var value = /** @type {number} */ (reader.readInt32());
57377
+ msg.setUserId(value);
57378
+ break;
57379
+ case 2:
57380
+ var value = /** @type {string} */ (reader.readString());
57381
+ msg.setPurpose(value);
57382
+ break;
57383
+ case 3:
57384
+ var value = new proto.user.UserKycVerificationRequirementItem;
57385
+ reader.readMessage(value,proto.user.UserKycVerificationRequirementItem.deserializeBinaryFromReader);
57386
+ msg.addRequirements(value);
57387
+ break;
57388
+ default:
57389
+ reader.skipField();
57390
+ break;
57391
+ }
57392
+ }
57393
+ return msg;
57394
+ };
57395
+
57396
+
57397
+ /**
57398
+ * Serializes the message to binary data (in protobuf wire format).
57399
+ * @return {!Uint8Array}
57400
+ */
57401
+ proto.user.GetUserKycVerificationRequirementsResponse.prototype.serializeBinary = function() {
57402
+ var writer = new jspb.BinaryWriter();
57403
+ proto.user.GetUserKycVerificationRequirementsResponse.serializeBinaryToWriter(this, writer);
57404
+ return writer.getResultBuffer();
57405
+ };
57406
+
57407
+
57408
+ /**
57409
+ * Serializes the given message to binary data (in protobuf wire
57410
+ * format), writing to the given BinaryWriter.
57411
+ * @param {!proto.user.GetUserKycVerificationRequirementsResponse} message
57412
+ * @param {!jspb.BinaryWriter} writer
57413
+ * @suppress {unusedLocalVariables} f is only used for nested messages
57414
+ */
57415
+ proto.user.GetUserKycVerificationRequirementsResponse.serializeBinaryToWriter = function(message, writer) {
57416
+ var f = undefined;
57417
+ f = message.getUserId();
57418
+ if (f !== 0) {
57419
+ writer.writeInt32(
57420
+ 1,
57421
+ f
57422
+ );
57423
+ }
57424
+ f = message.getPurpose();
57425
+ if (f.length > 0) {
57426
+ writer.writeString(
57427
+ 2,
57428
+ f
57429
+ );
57430
+ }
57431
+ f = message.getRequirementsList();
57432
+ if (f.length > 0) {
57433
+ writer.writeRepeatedMessage(
57434
+ 3,
57435
+ f,
57436
+ proto.user.UserKycVerificationRequirementItem.serializeBinaryToWriter
57437
+ );
57438
+ }
57439
+ };
57440
+
57441
+
57442
+ /**
57443
+ * optional int32 user_id = 1;
57444
+ * @return {number}
57445
+ */
57446
+ proto.user.GetUserKycVerificationRequirementsResponse.prototype.getUserId = function() {
57447
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
57448
+ };
57449
+
57450
+
57451
+ /**
57452
+ * @param {number} value
57453
+ * @return {!proto.user.GetUserKycVerificationRequirementsResponse} returns this
57454
+ */
57455
+ proto.user.GetUserKycVerificationRequirementsResponse.prototype.setUserId = function(value) {
57456
+ return jspb.Message.setProto3IntField(this, 1, value);
57457
+ };
57458
+
57459
+
57460
+ /**
57461
+ * optional string purpose = 2;
57462
+ * @return {string}
57463
+ */
57464
+ proto.user.GetUserKycVerificationRequirementsResponse.prototype.getPurpose = function() {
57465
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
57466
+ };
57467
+
57468
+
57469
+ /**
57470
+ * @param {string} value
57471
+ * @return {!proto.user.GetUserKycVerificationRequirementsResponse} returns this
57472
+ */
57473
+ proto.user.GetUserKycVerificationRequirementsResponse.prototype.setPurpose = function(value) {
57474
+ return jspb.Message.setProto3StringField(this, 2, value);
57475
+ };
57476
+
57477
+
57478
+ /**
57479
+ * repeated UserKycVerificationRequirementItem requirements = 3;
57480
+ * @return {!Array<!proto.user.UserKycVerificationRequirementItem>}
57481
+ */
57482
+ proto.user.GetUserKycVerificationRequirementsResponse.prototype.getRequirementsList = function() {
57483
+ return /** @type{!Array<!proto.user.UserKycVerificationRequirementItem>} */ (
57484
+ jspb.Message.getRepeatedWrapperField(this, proto.user.UserKycVerificationRequirementItem, 3));
57485
+ };
57486
+
57487
+
57488
+ /**
57489
+ * @param {!Array<!proto.user.UserKycVerificationRequirementItem>} value
57490
+ * @return {!proto.user.GetUserKycVerificationRequirementsResponse} returns this
57491
+ */
57492
+ proto.user.GetUserKycVerificationRequirementsResponse.prototype.setRequirementsList = function(value) {
57493
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
57494
+ };
57495
+
57496
+
57497
+ /**
57498
+ * @param {!proto.user.UserKycVerificationRequirementItem=} opt_value
57499
+ * @param {number=} opt_index
57500
+ * @return {!proto.user.UserKycVerificationRequirementItem}
57501
+ */
57502
+ proto.user.GetUserKycVerificationRequirementsResponse.prototype.addRequirements = function(opt_value, opt_index) {
57503
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.user.UserKycVerificationRequirementItem, opt_index);
57504
+ };
57505
+
57506
+
57507
+ /**
57508
+ * Clears the list making it empty but non-null.
57509
+ * @return {!proto.user.GetUserKycVerificationRequirementsResponse} returns this
57510
+ */
57511
+ proto.user.GetUserKycVerificationRequirementsResponse.prototype.clearRequirementsList = function() {
57512
+ return this.setRequirementsList([]);
57513
+ };
57514
+
57515
+
57516
+
56271
57517
  /**
56272
57518
  * List of repeated fields within this message type.
56273
57519
  * @private {!Array<number>}