protobuf-platform 1.2.324 → 1.2.326

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.324",
3
+ "version": "1.2.326",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -76,6 +76,7 @@ service User {
76
76
  rpc updateUserKycDocumentReview(UpdateUserKycDocumentReviewRequest) returns (UserKycDocumentItem);
77
77
  rpc readUserKycDocument(ReadUserKycDocumentRequest) returns (UserKycDocumentItem);
78
78
  rpc readListUserKycDocuments(ReadListUserKycDocumentsRequest) returns (UserKycDocumentListResponse);
79
+ rpc readUserKycDocumentOptions(ReadUserKycDocumentOptionsRequest) returns (UserKycDocumentOptionsResponse);
79
80
  //Dashboard
80
81
  rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
81
82
  //Notes
@@ -883,6 +884,10 @@ message UserKycDocumentItem {
883
884
  optional int64 file_size = 14;
884
885
  optional string created_at = 15;
885
886
  optional string updated_at = 16;
887
+ // Backend-derived actor email resolved from uploaded_by; omitted when user-service cannot resolve.
888
+ optional string uploaded_by_email = 17;
889
+ // Backend-derived actor email resolved from reviewer_id; omitted when user-service cannot resolve.
890
+ optional string reviewer_email = 18;
886
891
  }
887
892
  message UserKycDocumentsResponse {
888
893
  int32 user_id = 1;
@@ -937,6 +942,17 @@ message UserKycDocumentListResponse {
937
942
  optional int32 total_pages = 2;
938
943
  optional int32 total_items = 3;
939
944
  }
945
+ // KYC document BackOffice option lists (string values; no enums).
946
+ message ReadUserKycDocumentOptionsRequest {}
947
+ message UserKycDocumentOptionItem {
948
+ string value = 1;
949
+ string title = 2;
950
+ }
951
+ message UserKycDocumentOptionsResponse {
952
+ repeated UserKycDocumentOptionItem document_types = 1;
953
+ repeated UserKycDocumentOptionItem document_sides = 2;
954
+ repeated UserKycDocumentOptionItem document_statuses = 3;
955
+ }
940
956
  //Dashboard
941
957
  message DashboardRequest {
942
958
  string start_date = 1;
@@ -433,6 +433,17 @@ function deserialize_user_ReadUserCalculatedRestrictionsRequest(buffer_arg) {
433
433
  return user_pb.ReadUserCalculatedRestrictionsRequest.deserializeBinary(new Uint8Array(buffer_arg));
434
434
  }
435
435
 
436
+ function serialize_user_ReadUserKycDocumentOptionsRequest(arg) {
437
+ if (!(arg instanceof user_pb.ReadUserKycDocumentOptionsRequest)) {
438
+ throw new Error('Expected argument of type user.ReadUserKycDocumentOptionsRequest');
439
+ }
440
+ return Buffer.from(arg.serializeBinary());
441
+ }
442
+
443
+ function deserialize_user_ReadUserKycDocumentOptionsRequest(buffer_arg) {
444
+ return user_pb.ReadUserKycDocumentOptionsRequest.deserializeBinary(new Uint8Array(buffer_arg));
445
+ }
446
+
436
447
  function serialize_user_ReadUserKycDocumentRequest(arg) {
437
448
  if (!(arg instanceof user_pb.ReadUserKycDocumentRequest)) {
438
449
  throw new Error('Expected argument of type user.ReadUserKycDocumentRequest');
@@ -994,6 +1005,17 @@ function deserialize_user_UserKycDocumentListResponse(buffer_arg) {
994
1005
  return user_pb.UserKycDocumentListResponse.deserializeBinary(new Uint8Array(buffer_arg));
995
1006
  }
996
1007
 
1008
+ function serialize_user_UserKycDocumentOptionsResponse(arg) {
1009
+ if (!(arg instanceof user_pb.UserKycDocumentOptionsResponse)) {
1010
+ throw new Error('Expected argument of type user.UserKycDocumentOptionsResponse');
1011
+ }
1012
+ return Buffer.from(arg.serializeBinary());
1013
+ }
1014
+
1015
+ function deserialize_user_UserKycDocumentOptionsResponse(buffer_arg) {
1016
+ return user_pb.UserKycDocumentOptionsResponse.deserializeBinary(new Uint8Array(buffer_arg));
1017
+ }
1018
+
997
1019
  function serialize_user_UserKycDocumentsResponse(arg) {
998
1020
  if (!(arg instanceof user_pb.UserKycDocumentsResponse)) {
999
1021
  throw new Error('Expected argument of type user.UserKycDocumentsResponse');
@@ -1834,6 +1856,17 @@ readUserKycDocuments: {
1834
1856
  responseSerialize: serialize_user_UserKycDocumentListResponse,
1835
1857
  responseDeserialize: deserialize_user_UserKycDocumentListResponse,
1836
1858
  },
1859
+ readUserKycDocumentOptions: {
1860
+ path: '/user.User/readUserKycDocumentOptions',
1861
+ requestStream: false,
1862
+ responseStream: false,
1863
+ requestType: user_pb.ReadUserKycDocumentOptionsRequest,
1864
+ responseType: user_pb.UserKycDocumentOptionsResponse,
1865
+ requestSerialize: serialize_user_ReadUserKycDocumentOptionsRequest,
1866
+ requestDeserialize: deserialize_user_ReadUserKycDocumentOptionsRequest,
1867
+ responseSerialize: serialize_user_UserKycDocumentOptionsResponse,
1868
+ responseDeserialize: deserialize_user_UserKycDocumentOptionsResponse,
1869
+ },
1837
1870
  // Dashboard
1838
1871
  getDashboardInfo: {
1839
1872
  path: '/user.User/getDashboardInfo',
package/user/user_pb.js CHANGED
@@ -65,6 +65,7 @@ goog.exportSymbol('proto.user.ReadListUserKycDocumentsRequest', null, global);
65
65
  goog.exportSymbol('proto.user.ReadRiskPermissionMatrixLimitsRequest', null, global);
66
66
  goog.exportSymbol('proto.user.ReadRiskPermissionMatrixRequest', null, global);
67
67
  goog.exportSymbol('proto.user.ReadUserCalculatedRestrictionsRequest', null, global);
68
+ goog.exportSymbol('proto.user.ReadUserKycDocumentOptionsRequest', null, global);
68
69
  goog.exportSymbol('proto.user.ReadUserKycDocumentRequest', null, global);
69
70
  goog.exportSymbol('proto.user.ReadUserKycDocumentsRequest', null, global);
70
71
  goog.exportSymbol('proto.user.ReadUserKycProfileRequest', null, global);
@@ -133,6 +134,8 @@ goog.exportSymbol('proto.user.UserGameRequest', null, global);
133
134
  goog.exportSymbol('proto.user.UserKycDocumentItem', null, global);
134
135
  goog.exportSymbol('proto.user.UserKycDocumentListItem', null, global);
135
136
  goog.exportSymbol('proto.user.UserKycDocumentListResponse', null, global);
137
+ goog.exportSymbol('proto.user.UserKycDocumentOptionItem', null, global);
138
+ goog.exportSymbol('proto.user.UserKycDocumentOptionsResponse', null, global);
136
139
  goog.exportSymbol('proto.user.UserKycDocumentsResponse', null, global);
137
140
  goog.exportSymbol('proto.user.UserKycProfileResponse', null, global);
138
141
  goog.exportSymbol('proto.user.UserLimitsRequest', null, global);
@@ -2294,6 +2297,69 @@ if (goog.DEBUG && !COMPILED) {
2294
2297
  */
2295
2298
  proto.user.UserKycDocumentListResponse.displayName = 'proto.user.UserKycDocumentListResponse';
2296
2299
  }
2300
+ /**
2301
+ * Generated by JsPbCodeGenerator.
2302
+ * @param {Array=} opt_data Optional initial data array, typically from a
2303
+ * server response, or constructed directly in Javascript. The array is used
2304
+ * in place and becomes part of the constructed object. It is not cloned.
2305
+ * If no data is provided, the constructed object will be empty, but still
2306
+ * valid.
2307
+ * @extends {jspb.Message}
2308
+ * @constructor
2309
+ */
2310
+ proto.user.ReadUserKycDocumentOptionsRequest = function(opt_data) {
2311
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2312
+ };
2313
+ goog.inherits(proto.user.ReadUserKycDocumentOptionsRequest, jspb.Message);
2314
+ if (goog.DEBUG && !COMPILED) {
2315
+ /**
2316
+ * @public
2317
+ * @override
2318
+ */
2319
+ proto.user.ReadUserKycDocumentOptionsRequest.displayName = 'proto.user.ReadUserKycDocumentOptionsRequest';
2320
+ }
2321
+ /**
2322
+ * Generated by JsPbCodeGenerator.
2323
+ * @param {Array=} opt_data Optional initial data array, typically from a
2324
+ * server response, or constructed directly in Javascript. The array is used
2325
+ * in place and becomes part of the constructed object. It is not cloned.
2326
+ * If no data is provided, the constructed object will be empty, but still
2327
+ * valid.
2328
+ * @extends {jspb.Message}
2329
+ * @constructor
2330
+ */
2331
+ proto.user.UserKycDocumentOptionItem = function(opt_data) {
2332
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2333
+ };
2334
+ goog.inherits(proto.user.UserKycDocumentOptionItem, jspb.Message);
2335
+ if (goog.DEBUG && !COMPILED) {
2336
+ /**
2337
+ * @public
2338
+ * @override
2339
+ */
2340
+ proto.user.UserKycDocumentOptionItem.displayName = 'proto.user.UserKycDocumentOptionItem';
2341
+ }
2342
+ /**
2343
+ * Generated by JsPbCodeGenerator.
2344
+ * @param {Array=} opt_data Optional initial data array, typically from a
2345
+ * server response, or constructed directly in Javascript. The array is used
2346
+ * in place and becomes part of the constructed object. It is not cloned.
2347
+ * If no data is provided, the constructed object will be empty, but still
2348
+ * valid.
2349
+ * @extends {jspb.Message}
2350
+ * @constructor
2351
+ */
2352
+ proto.user.UserKycDocumentOptionsResponse = function(opt_data) {
2353
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.UserKycDocumentOptionsResponse.repeatedFields_, null);
2354
+ };
2355
+ goog.inherits(proto.user.UserKycDocumentOptionsResponse, jspb.Message);
2356
+ if (goog.DEBUG && !COMPILED) {
2357
+ /**
2358
+ * @public
2359
+ * @override
2360
+ */
2361
+ proto.user.UserKycDocumentOptionsResponse.displayName = 'proto.user.UserKycDocumentOptionsResponse';
2362
+ }
2297
2363
  /**
2298
2364
  * Generated by JsPbCodeGenerator.
2299
2365
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -37340,7 +37406,9 @@ proto.user.UserKycDocumentItem.toObject = function(includeInstance, msg) {
37340
37406
  mimeType: jspb.Message.getFieldWithDefault(msg, 13, ""),
37341
37407
  fileSize: jspb.Message.getFieldWithDefault(msg, 14, 0),
37342
37408
  createdAt: jspb.Message.getFieldWithDefault(msg, 15, ""),
37343
- updatedAt: jspb.Message.getFieldWithDefault(msg, 16, "")
37409
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 16, ""),
37410
+ uploadedByEmail: jspb.Message.getFieldWithDefault(msg, 17, ""),
37411
+ reviewerEmail: jspb.Message.getFieldWithDefault(msg, 18, "")
37344
37412
  };
37345
37413
 
37346
37414
  if (includeInstance) {
@@ -37441,6 +37509,14 @@ proto.user.UserKycDocumentItem.deserializeBinaryFromReader = function(msg, reade
37441
37509
  var value = /** @type {string} */ (reader.readString());
37442
37510
  msg.setUpdatedAt(value);
37443
37511
  break;
37512
+ case 17:
37513
+ var value = /** @type {string} */ (reader.readString());
37514
+ msg.setUploadedByEmail(value);
37515
+ break;
37516
+ case 18:
37517
+ var value = /** @type {string} */ (reader.readString());
37518
+ msg.setReviewerEmail(value);
37519
+ break;
37444
37520
  default:
37445
37521
  reader.skipField();
37446
37522
  break;
@@ -37582,6 +37658,20 @@ proto.user.UserKycDocumentItem.serializeBinaryToWriter = function(message, write
37582
37658
  f
37583
37659
  );
37584
37660
  }
37661
+ f = /** @type {string} */ (jspb.Message.getField(message, 17));
37662
+ if (f != null) {
37663
+ writer.writeString(
37664
+ 17,
37665
+ f
37666
+ );
37667
+ }
37668
+ f = /** @type {string} */ (jspb.Message.getField(message, 18));
37669
+ if (f != null) {
37670
+ writer.writeString(
37671
+ 18,
37672
+ f
37673
+ );
37674
+ }
37585
37675
  };
37586
37676
 
37587
37677
 
@@ -38071,6 +38161,78 @@ proto.user.UserKycDocumentItem.prototype.hasUpdatedAt = function() {
38071
38161
  };
38072
38162
 
38073
38163
 
38164
+ /**
38165
+ * optional string uploaded_by_email = 17;
38166
+ * @return {string}
38167
+ */
38168
+ proto.user.UserKycDocumentItem.prototype.getUploadedByEmail = function() {
38169
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
38170
+ };
38171
+
38172
+
38173
+ /**
38174
+ * @param {string} value
38175
+ * @return {!proto.user.UserKycDocumentItem} returns this
38176
+ */
38177
+ proto.user.UserKycDocumentItem.prototype.setUploadedByEmail = function(value) {
38178
+ return jspb.Message.setField(this, 17, value);
38179
+ };
38180
+
38181
+
38182
+ /**
38183
+ * Clears the field making it undefined.
38184
+ * @return {!proto.user.UserKycDocumentItem} returns this
38185
+ */
38186
+ proto.user.UserKycDocumentItem.prototype.clearUploadedByEmail = function() {
38187
+ return jspb.Message.setField(this, 17, undefined);
38188
+ };
38189
+
38190
+
38191
+ /**
38192
+ * Returns whether this field is set.
38193
+ * @return {boolean}
38194
+ */
38195
+ proto.user.UserKycDocumentItem.prototype.hasUploadedByEmail = function() {
38196
+ return jspb.Message.getField(this, 17) != null;
38197
+ };
38198
+
38199
+
38200
+ /**
38201
+ * optional string reviewer_email = 18;
38202
+ * @return {string}
38203
+ */
38204
+ proto.user.UserKycDocumentItem.prototype.getReviewerEmail = function() {
38205
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
38206
+ };
38207
+
38208
+
38209
+ /**
38210
+ * @param {string} value
38211
+ * @return {!proto.user.UserKycDocumentItem} returns this
38212
+ */
38213
+ proto.user.UserKycDocumentItem.prototype.setReviewerEmail = function(value) {
38214
+ return jspb.Message.setField(this, 18, value);
38215
+ };
38216
+
38217
+
38218
+ /**
38219
+ * Clears the field making it undefined.
38220
+ * @return {!proto.user.UserKycDocumentItem} returns this
38221
+ */
38222
+ proto.user.UserKycDocumentItem.prototype.clearReviewerEmail = function() {
38223
+ return jspb.Message.setField(this, 18, undefined);
38224
+ };
38225
+
38226
+
38227
+ /**
38228
+ * Returns whether this field is set.
38229
+ * @return {boolean}
38230
+ */
38231
+ proto.user.UserKycDocumentItem.prototype.hasReviewerEmail = function() {
38232
+ return jspb.Message.getField(this, 18) != null;
38233
+ };
38234
+
38235
+
38074
38236
 
38075
38237
  /**
38076
38238
  * List of repeated fields within this message type.
@@ -40500,6 +40662,533 @@ proto.user.UserKycDocumentListResponse.prototype.hasTotalItems = function() {
40500
40662
 
40501
40663
 
40502
40664
 
40665
+ if (jspb.Message.GENERATE_TO_OBJECT) {
40666
+ /**
40667
+ * Creates an object representation of this proto.
40668
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
40669
+ * Optional fields that are not set will be set to undefined.
40670
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
40671
+ * For the list of reserved names please see:
40672
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
40673
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
40674
+ * JSPB instance for transitional soy proto support:
40675
+ * http://goto/soy-param-migration
40676
+ * @return {!Object}
40677
+ */
40678
+ proto.user.ReadUserKycDocumentOptionsRequest.prototype.toObject = function(opt_includeInstance) {
40679
+ return proto.user.ReadUserKycDocumentOptionsRequest.toObject(opt_includeInstance, this);
40680
+ };
40681
+
40682
+
40683
+ /**
40684
+ * Static version of the {@see toObject} method.
40685
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40686
+ * the JSPB instance for transitional soy proto support:
40687
+ * http://goto/soy-param-migration
40688
+ * @param {!proto.user.ReadUserKycDocumentOptionsRequest} msg The msg instance to transform.
40689
+ * @return {!Object}
40690
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40691
+ */
40692
+ proto.user.ReadUserKycDocumentOptionsRequest.toObject = function(includeInstance, msg) {
40693
+ var f, obj = {
40694
+
40695
+ };
40696
+
40697
+ if (includeInstance) {
40698
+ obj.$jspbMessageInstance = msg;
40699
+ }
40700
+ return obj;
40701
+ };
40702
+ }
40703
+
40704
+
40705
+ /**
40706
+ * Deserializes binary data (in protobuf wire format).
40707
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
40708
+ * @return {!proto.user.ReadUserKycDocumentOptionsRequest}
40709
+ */
40710
+ proto.user.ReadUserKycDocumentOptionsRequest.deserializeBinary = function(bytes) {
40711
+ var reader = new jspb.BinaryReader(bytes);
40712
+ var msg = new proto.user.ReadUserKycDocumentOptionsRequest;
40713
+ return proto.user.ReadUserKycDocumentOptionsRequest.deserializeBinaryFromReader(msg, reader);
40714
+ };
40715
+
40716
+
40717
+ /**
40718
+ * Deserializes binary data (in protobuf wire format) from the
40719
+ * given reader into the given message object.
40720
+ * @param {!proto.user.ReadUserKycDocumentOptionsRequest} msg The message object to deserialize into.
40721
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40722
+ * @return {!proto.user.ReadUserKycDocumentOptionsRequest}
40723
+ */
40724
+ proto.user.ReadUserKycDocumentOptionsRequest.deserializeBinaryFromReader = function(msg, reader) {
40725
+ while (reader.nextField()) {
40726
+ if (reader.isEndGroup()) {
40727
+ break;
40728
+ }
40729
+ var field = reader.getFieldNumber();
40730
+ switch (field) {
40731
+ default:
40732
+ reader.skipField();
40733
+ break;
40734
+ }
40735
+ }
40736
+ return msg;
40737
+ };
40738
+
40739
+
40740
+ /**
40741
+ * Serializes the message to binary data (in protobuf wire format).
40742
+ * @return {!Uint8Array}
40743
+ */
40744
+ proto.user.ReadUserKycDocumentOptionsRequest.prototype.serializeBinary = function() {
40745
+ var writer = new jspb.BinaryWriter();
40746
+ proto.user.ReadUserKycDocumentOptionsRequest.serializeBinaryToWriter(this, writer);
40747
+ return writer.getResultBuffer();
40748
+ };
40749
+
40750
+
40751
+ /**
40752
+ * Serializes the given message to binary data (in protobuf wire
40753
+ * format), writing to the given BinaryWriter.
40754
+ * @param {!proto.user.ReadUserKycDocumentOptionsRequest} message
40755
+ * @param {!jspb.BinaryWriter} writer
40756
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40757
+ */
40758
+ proto.user.ReadUserKycDocumentOptionsRequest.serializeBinaryToWriter = function(message, writer) {
40759
+ var f = undefined;
40760
+ };
40761
+
40762
+
40763
+
40764
+
40765
+
40766
+ if (jspb.Message.GENERATE_TO_OBJECT) {
40767
+ /**
40768
+ * Creates an object representation of this proto.
40769
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
40770
+ * Optional fields that are not set will be set to undefined.
40771
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
40772
+ * For the list of reserved names please see:
40773
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
40774
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
40775
+ * JSPB instance for transitional soy proto support:
40776
+ * http://goto/soy-param-migration
40777
+ * @return {!Object}
40778
+ */
40779
+ proto.user.UserKycDocumentOptionItem.prototype.toObject = function(opt_includeInstance) {
40780
+ return proto.user.UserKycDocumentOptionItem.toObject(opt_includeInstance, this);
40781
+ };
40782
+
40783
+
40784
+ /**
40785
+ * Static version of the {@see toObject} method.
40786
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40787
+ * the JSPB instance for transitional soy proto support:
40788
+ * http://goto/soy-param-migration
40789
+ * @param {!proto.user.UserKycDocumentOptionItem} msg The msg instance to transform.
40790
+ * @return {!Object}
40791
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40792
+ */
40793
+ proto.user.UserKycDocumentOptionItem.toObject = function(includeInstance, msg) {
40794
+ var f, obj = {
40795
+ value: jspb.Message.getFieldWithDefault(msg, 1, ""),
40796
+ title: jspb.Message.getFieldWithDefault(msg, 2, "")
40797
+ };
40798
+
40799
+ if (includeInstance) {
40800
+ obj.$jspbMessageInstance = msg;
40801
+ }
40802
+ return obj;
40803
+ };
40804
+ }
40805
+
40806
+
40807
+ /**
40808
+ * Deserializes binary data (in protobuf wire format).
40809
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
40810
+ * @return {!proto.user.UserKycDocumentOptionItem}
40811
+ */
40812
+ proto.user.UserKycDocumentOptionItem.deserializeBinary = function(bytes) {
40813
+ var reader = new jspb.BinaryReader(bytes);
40814
+ var msg = new proto.user.UserKycDocumentOptionItem;
40815
+ return proto.user.UserKycDocumentOptionItem.deserializeBinaryFromReader(msg, reader);
40816
+ };
40817
+
40818
+
40819
+ /**
40820
+ * Deserializes binary data (in protobuf wire format) from the
40821
+ * given reader into the given message object.
40822
+ * @param {!proto.user.UserKycDocumentOptionItem} msg The message object to deserialize into.
40823
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40824
+ * @return {!proto.user.UserKycDocumentOptionItem}
40825
+ */
40826
+ proto.user.UserKycDocumentOptionItem.deserializeBinaryFromReader = function(msg, reader) {
40827
+ while (reader.nextField()) {
40828
+ if (reader.isEndGroup()) {
40829
+ break;
40830
+ }
40831
+ var field = reader.getFieldNumber();
40832
+ switch (field) {
40833
+ case 1:
40834
+ var value = /** @type {string} */ (reader.readString());
40835
+ msg.setValue(value);
40836
+ break;
40837
+ case 2:
40838
+ var value = /** @type {string} */ (reader.readString());
40839
+ msg.setTitle(value);
40840
+ break;
40841
+ default:
40842
+ reader.skipField();
40843
+ break;
40844
+ }
40845
+ }
40846
+ return msg;
40847
+ };
40848
+
40849
+
40850
+ /**
40851
+ * Serializes the message to binary data (in protobuf wire format).
40852
+ * @return {!Uint8Array}
40853
+ */
40854
+ proto.user.UserKycDocumentOptionItem.prototype.serializeBinary = function() {
40855
+ var writer = new jspb.BinaryWriter();
40856
+ proto.user.UserKycDocumentOptionItem.serializeBinaryToWriter(this, writer);
40857
+ return writer.getResultBuffer();
40858
+ };
40859
+
40860
+
40861
+ /**
40862
+ * Serializes the given message to binary data (in protobuf wire
40863
+ * format), writing to the given BinaryWriter.
40864
+ * @param {!proto.user.UserKycDocumentOptionItem} message
40865
+ * @param {!jspb.BinaryWriter} writer
40866
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40867
+ */
40868
+ proto.user.UserKycDocumentOptionItem.serializeBinaryToWriter = function(message, writer) {
40869
+ var f = undefined;
40870
+ f = message.getValue();
40871
+ if (f.length > 0) {
40872
+ writer.writeString(
40873
+ 1,
40874
+ f
40875
+ );
40876
+ }
40877
+ f = message.getTitle();
40878
+ if (f.length > 0) {
40879
+ writer.writeString(
40880
+ 2,
40881
+ f
40882
+ );
40883
+ }
40884
+ };
40885
+
40886
+
40887
+ /**
40888
+ * optional string value = 1;
40889
+ * @return {string}
40890
+ */
40891
+ proto.user.UserKycDocumentOptionItem.prototype.getValue = function() {
40892
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
40893
+ };
40894
+
40895
+
40896
+ /**
40897
+ * @param {string} value
40898
+ * @return {!proto.user.UserKycDocumentOptionItem} returns this
40899
+ */
40900
+ proto.user.UserKycDocumentOptionItem.prototype.setValue = function(value) {
40901
+ return jspb.Message.setProto3StringField(this, 1, value);
40902
+ };
40903
+
40904
+
40905
+ /**
40906
+ * optional string title = 2;
40907
+ * @return {string}
40908
+ */
40909
+ proto.user.UserKycDocumentOptionItem.prototype.getTitle = function() {
40910
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
40911
+ };
40912
+
40913
+
40914
+ /**
40915
+ * @param {string} value
40916
+ * @return {!proto.user.UserKycDocumentOptionItem} returns this
40917
+ */
40918
+ proto.user.UserKycDocumentOptionItem.prototype.setTitle = function(value) {
40919
+ return jspb.Message.setProto3StringField(this, 2, value);
40920
+ };
40921
+
40922
+
40923
+
40924
+ /**
40925
+ * List of repeated fields within this message type.
40926
+ * @private {!Array<number>}
40927
+ * @const
40928
+ */
40929
+ proto.user.UserKycDocumentOptionsResponse.repeatedFields_ = [1,2,3];
40930
+
40931
+
40932
+
40933
+ if (jspb.Message.GENERATE_TO_OBJECT) {
40934
+ /**
40935
+ * Creates an object representation of this proto.
40936
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
40937
+ * Optional fields that are not set will be set to undefined.
40938
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
40939
+ * For the list of reserved names please see:
40940
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
40941
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
40942
+ * JSPB instance for transitional soy proto support:
40943
+ * http://goto/soy-param-migration
40944
+ * @return {!Object}
40945
+ */
40946
+ proto.user.UserKycDocumentOptionsResponse.prototype.toObject = function(opt_includeInstance) {
40947
+ return proto.user.UserKycDocumentOptionsResponse.toObject(opt_includeInstance, this);
40948
+ };
40949
+
40950
+
40951
+ /**
40952
+ * Static version of the {@see toObject} method.
40953
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40954
+ * the JSPB instance for transitional soy proto support:
40955
+ * http://goto/soy-param-migration
40956
+ * @param {!proto.user.UserKycDocumentOptionsResponse} msg The msg instance to transform.
40957
+ * @return {!Object}
40958
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40959
+ */
40960
+ proto.user.UserKycDocumentOptionsResponse.toObject = function(includeInstance, msg) {
40961
+ var f, obj = {
40962
+ documentTypesList: jspb.Message.toObjectList(msg.getDocumentTypesList(),
40963
+ proto.user.UserKycDocumentOptionItem.toObject, includeInstance),
40964
+ documentSidesList: jspb.Message.toObjectList(msg.getDocumentSidesList(),
40965
+ proto.user.UserKycDocumentOptionItem.toObject, includeInstance),
40966
+ documentStatusesList: jspb.Message.toObjectList(msg.getDocumentStatusesList(),
40967
+ proto.user.UserKycDocumentOptionItem.toObject, includeInstance)
40968
+ };
40969
+
40970
+ if (includeInstance) {
40971
+ obj.$jspbMessageInstance = msg;
40972
+ }
40973
+ return obj;
40974
+ };
40975
+ }
40976
+
40977
+
40978
+ /**
40979
+ * Deserializes binary data (in protobuf wire format).
40980
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
40981
+ * @return {!proto.user.UserKycDocumentOptionsResponse}
40982
+ */
40983
+ proto.user.UserKycDocumentOptionsResponse.deserializeBinary = function(bytes) {
40984
+ var reader = new jspb.BinaryReader(bytes);
40985
+ var msg = new proto.user.UserKycDocumentOptionsResponse;
40986
+ return proto.user.UserKycDocumentOptionsResponse.deserializeBinaryFromReader(msg, reader);
40987
+ };
40988
+
40989
+
40990
+ /**
40991
+ * Deserializes binary data (in protobuf wire format) from the
40992
+ * given reader into the given message object.
40993
+ * @param {!proto.user.UserKycDocumentOptionsResponse} msg The message object to deserialize into.
40994
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40995
+ * @return {!proto.user.UserKycDocumentOptionsResponse}
40996
+ */
40997
+ proto.user.UserKycDocumentOptionsResponse.deserializeBinaryFromReader = function(msg, reader) {
40998
+ while (reader.nextField()) {
40999
+ if (reader.isEndGroup()) {
41000
+ break;
41001
+ }
41002
+ var field = reader.getFieldNumber();
41003
+ switch (field) {
41004
+ case 1:
41005
+ var value = new proto.user.UserKycDocumentOptionItem;
41006
+ reader.readMessage(value,proto.user.UserKycDocumentOptionItem.deserializeBinaryFromReader);
41007
+ msg.addDocumentTypes(value);
41008
+ break;
41009
+ case 2:
41010
+ var value = new proto.user.UserKycDocumentOptionItem;
41011
+ reader.readMessage(value,proto.user.UserKycDocumentOptionItem.deserializeBinaryFromReader);
41012
+ msg.addDocumentSides(value);
41013
+ break;
41014
+ case 3:
41015
+ var value = new proto.user.UserKycDocumentOptionItem;
41016
+ reader.readMessage(value,proto.user.UserKycDocumentOptionItem.deserializeBinaryFromReader);
41017
+ msg.addDocumentStatuses(value);
41018
+ break;
41019
+ default:
41020
+ reader.skipField();
41021
+ break;
41022
+ }
41023
+ }
41024
+ return msg;
41025
+ };
41026
+
41027
+
41028
+ /**
41029
+ * Serializes the message to binary data (in protobuf wire format).
41030
+ * @return {!Uint8Array}
41031
+ */
41032
+ proto.user.UserKycDocumentOptionsResponse.prototype.serializeBinary = function() {
41033
+ var writer = new jspb.BinaryWriter();
41034
+ proto.user.UserKycDocumentOptionsResponse.serializeBinaryToWriter(this, writer);
41035
+ return writer.getResultBuffer();
41036
+ };
41037
+
41038
+
41039
+ /**
41040
+ * Serializes the given message to binary data (in protobuf wire
41041
+ * format), writing to the given BinaryWriter.
41042
+ * @param {!proto.user.UserKycDocumentOptionsResponse} message
41043
+ * @param {!jspb.BinaryWriter} writer
41044
+ * @suppress {unusedLocalVariables} f is only used for nested messages
41045
+ */
41046
+ proto.user.UserKycDocumentOptionsResponse.serializeBinaryToWriter = function(message, writer) {
41047
+ var f = undefined;
41048
+ f = message.getDocumentTypesList();
41049
+ if (f.length > 0) {
41050
+ writer.writeRepeatedMessage(
41051
+ 1,
41052
+ f,
41053
+ proto.user.UserKycDocumentOptionItem.serializeBinaryToWriter
41054
+ );
41055
+ }
41056
+ f = message.getDocumentSidesList();
41057
+ if (f.length > 0) {
41058
+ writer.writeRepeatedMessage(
41059
+ 2,
41060
+ f,
41061
+ proto.user.UserKycDocumentOptionItem.serializeBinaryToWriter
41062
+ );
41063
+ }
41064
+ f = message.getDocumentStatusesList();
41065
+ if (f.length > 0) {
41066
+ writer.writeRepeatedMessage(
41067
+ 3,
41068
+ f,
41069
+ proto.user.UserKycDocumentOptionItem.serializeBinaryToWriter
41070
+ );
41071
+ }
41072
+ };
41073
+
41074
+
41075
+ /**
41076
+ * repeated UserKycDocumentOptionItem document_types = 1;
41077
+ * @return {!Array<!proto.user.UserKycDocumentOptionItem>}
41078
+ */
41079
+ proto.user.UserKycDocumentOptionsResponse.prototype.getDocumentTypesList = function() {
41080
+ return /** @type{!Array<!proto.user.UserKycDocumentOptionItem>} */ (
41081
+ jspb.Message.getRepeatedWrapperField(this, proto.user.UserKycDocumentOptionItem, 1));
41082
+ };
41083
+
41084
+
41085
+ /**
41086
+ * @param {!Array<!proto.user.UserKycDocumentOptionItem>} value
41087
+ * @return {!proto.user.UserKycDocumentOptionsResponse} returns this
41088
+ */
41089
+ proto.user.UserKycDocumentOptionsResponse.prototype.setDocumentTypesList = function(value) {
41090
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
41091
+ };
41092
+
41093
+
41094
+ /**
41095
+ * @param {!proto.user.UserKycDocumentOptionItem=} opt_value
41096
+ * @param {number=} opt_index
41097
+ * @return {!proto.user.UserKycDocumentOptionItem}
41098
+ */
41099
+ proto.user.UserKycDocumentOptionsResponse.prototype.addDocumentTypes = function(opt_value, opt_index) {
41100
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.user.UserKycDocumentOptionItem, opt_index);
41101
+ };
41102
+
41103
+
41104
+ /**
41105
+ * Clears the list making it empty but non-null.
41106
+ * @return {!proto.user.UserKycDocumentOptionsResponse} returns this
41107
+ */
41108
+ proto.user.UserKycDocumentOptionsResponse.prototype.clearDocumentTypesList = function() {
41109
+ return this.setDocumentTypesList([]);
41110
+ };
41111
+
41112
+
41113
+ /**
41114
+ * repeated UserKycDocumentOptionItem document_sides = 2;
41115
+ * @return {!Array<!proto.user.UserKycDocumentOptionItem>}
41116
+ */
41117
+ proto.user.UserKycDocumentOptionsResponse.prototype.getDocumentSidesList = function() {
41118
+ return /** @type{!Array<!proto.user.UserKycDocumentOptionItem>} */ (
41119
+ jspb.Message.getRepeatedWrapperField(this, proto.user.UserKycDocumentOptionItem, 2));
41120
+ };
41121
+
41122
+
41123
+ /**
41124
+ * @param {!Array<!proto.user.UserKycDocumentOptionItem>} value
41125
+ * @return {!proto.user.UserKycDocumentOptionsResponse} returns this
41126
+ */
41127
+ proto.user.UserKycDocumentOptionsResponse.prototype.setDocumentSidesList = function(value) {
41128
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
41129
+ };
41130
+
41131
+
41132
+ /**
41133
+ * @param {!proto.user.UserKycDocumentOptionItem=} opt_value
41134
+ * @param {number=} opt_index
41135
+ * @return {!proto.user.UserKycDocumentOptionItem}
41136
+ */
41137
+ proto.user.UserKycDocumentOptionsResponse.prototype.addDocumentSides = function(opt_value, opt_index) {
41138
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.user.UserKycDocumentOptionItem, opt_index);
41139
+ };
41140
+
41141
+
41142
+ /**
41143
+ * Clears the list making it empty but non-null.
41144
+ * @return {!proto.user.UserKycDocumentOptionsResponse} returns this
41145
+ */
41146
+ proto.user.UserKycDocumentOptionsResponse.prototype.clearDocumentSidesList = function() {
41147
+ return this.setDocumentSidesList([]);
41148
+ };
41149
+
41150
+
41151
+ /**
41152
+ * repeated UserKycDocumentOptionItem document_statuses = 3;
41153
+ * @return {!Array<!proto.user.UserKycDocumentOptionItem>}
41154
+ */
41155
+ proto.user.UserKycDocumentOptionsResponse.prototype.getDocumentStatusesList = function() {
41156
+ return /** @type{!Array<!proto.user.UserKycDocumentOptionItem>} */ (
41157
+ jspb.Message.getRepeatedWrapperField(this, proto.user.UserKycDocumentOptionItem, 3));
41158
+ };
41159
+
41160
+
41161
+ /**
41162
+ * @param {!Array<!proto.user.UserKycDocumentOptionItem>} value
41163
+ * @return {!proto.user.UserKycDocumentOptionsResponse} returns this
41164
+ */
41165
+ proto.user.UserKycDocumentOptionsResponse.prototype.setDocumentStatusesList = function(value) {
41166
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
41167
+ };
41168
+
41169
+
41170
+ /**
41171
+ * @param {!proto.user.UserKycDocumentOptionItem=} opt_value
41172
+ * @param {number=} opt_index
41173
+ * @return {!proto.user.UserKycDocumentOptionItem}
41174
+ */
41175
+ proto.user.UserKycDocumentOptionsResponse.prototype.addDocumentStatuses = function(opt_value, opt_index) {
41176
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.user.UserKycDocumentOptionItem, opt_index);
41177
+ };
41178
+
41179
+
41180
+ /**
41181
+ * Clears the list making it empty but non-null.
41182
+ * @return {!proto.user.UserKycDocumentOptionsResponse} returns this
41183
+ */
41184
+ proto.user.UserKycDocumentOptionsResponse.prototype.clearDocumentStatusesList = function() {
41185
+ return this.setDocumentStatusesList([]);
41186
+ };
41187
+
41188
+
41189
+
41190
+
41191
+
40503
41192
  if (jspb.Message.GENERATE_TO_OBJECT) {
40504
41193
  /**
40505
41194
  * Creates an object representation of this proto.