protobuf-platform 1.2.324 → 1.2.325

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.324",
3
+ "version": "1.2.325",
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
@@ -937,6 +938,17 @@ message UserKycDocumentListResponse {
937
938
  optional int32 total_pages = 2;
938
939
  optional int32 total_items = 3;
939
940
  }
941
+ // KYC document BackOffice option lists (string values; no enums).
942
+ message ReadUserKycDocumentOptionsRequest {}
943
+ message UserKycDocumentOptionItem {
944
+ string value = 1;
945
+ string title = 2;
946
+ }
947
+ message UserKycDocumentOptionsResponse {
948
+ repeated UserKycDocumentOptionItem document_types = 1;
949
+ repeated UserKycDocumentOptionItem document_sides = 2;
950
+ repeated UserKycDocumentOptionItem document_statuses = 3;
951
+ }
940
952
  //Dashboard
941
953
  message DashboardRequest {
942
954
  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
@@ -40500,6 +40566,533 @@ proto.user.UserKycDocumentListResponse.prototype.hasTotalItems = function() {
40500
40566
 
40501
40567
 
40502
40568
 
40569
+ if (jspb.Message.GENERATE_TO_OBJECT) {
40570
+ /**
40571
+ * Creates an object representation of this proto.
40572
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
40573
+ * Optional fields that are not set will be set to undefined.
40574
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
40575
+ * For the list of reserved names please see:
40576
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
40577
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
40578
+ * JSPB instance for transitional soy proto support:
40579
+ * http://goto/soy-param-migration
40580
+ * @return {!Object}
40581
+ */
40582
+ proto.user.ReadUserKycDocumentOptionsRequest.prototype.toObject = function(opt_includeInstance) {
40583
+ return proto.user.ReadUserKycDocumentOptionsRequest.toObject(opt_includeInstance, this);
40584
+ };
40585
+
40586
+
40587
+ /**
40588
+ * Static version of the {@see toObject} method.
40589
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40590
+ * the JSPB instance for transitional soy proto support:
40591
+ * http://goto/soy-param-migration
40592
+ * @param {!proto.user.ReadUserKycDocumentOptionsRequest} msg The msg instance to transform.
40593
+ * @return {!Object}
40594
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40595
+ */
40596
+ proto.user.ReadUserKycDocumentOptionsRequest.toObject = function(includeInstance, msg) {
40597
+ var f, obj = {
40598
+
40599
+ };
40600
+
40601
+ if (includeInstance) {
40602
+ obj.$jspbMessageInstance = msg;
40603
+ }
40604
+ return obj;
40605
+ };
40606
+ }
40607
+
40608
+
40609
+ /**
40610
+ * Deserializes binary data (in protobuf wire format).
40611
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
40612
+ * @return {!proto.user.ReadUserKycDocumentOptionsRequest}
40613
+ */
40614
+ proto.user.ReadUserKycDocumentOptionsRequest.deserializeBinary = function(bytes) {
40615
+ var reader = new jspb.BinaryReader(bytes);
40616
+ var msg = new proto.user.ReadUserKycDocumentOptionsRequest;
40617
+ return proto.user.ReadUserKycDocumentOptionsRequest.deserializeBinaryFromReader(msg, reader);
40618
+ };
40619
+
40620
+
40621
+ /**
40622
+ * Deserializes binary data (in protobuf wire format) from the
40623
+ * given reader into the given message object.
40624
+ * @param {!proto.user.ReadUserKycDocumentOptionsRequest} msg The message object to deserialize into.
40625
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40626
+ * @return {!proto.user.ReadUserKycDocumentOptionsRequest}
40627
+ */
40628
+ proto.user.ReadUserKycDocumentOptionsRequest.deserializeBinaryFromReader = function(msg, reader) {
40629
+ while (reader.nextField()) {
40630
+ if (reader.isEndGroup()) {
40631
+ break;
40632
+ }
40633
+ var field = reader.getFieldNumber();
40634
+ switch (field) {
40635
+ default:
40636
+ reader.skipField();
40637
+ break;
40638
+ }
40639
+ }
40640
+ return msg;
40641
+ };
40642
+
40643
+
40644
+ /**
40645
+ * Serializes the message to binary data (in protobuf wire format).
40646
+ * @return {!Uint8Array}
40647
+ */
40648
+ proto.user.ReadUserKycDocumentOptionsRequest.prototype.serializeBinary = function() {
40649
+ var writer = new jspb.BinaryWriter();
40650
+ proto.user.ReadUserKycDocumentOptionsRequest.serializeBinaryToWriter(this, writer);
40651
+ return writer.getResultBuffer();
40652
+ };
40653
+
40654
+
40655
+ /**
40656
+ * Serializes the given message to binary data (in protobuf wire
40657
+ * format), writing to the given BinaryWriter.
40658
+ * @param {!proto.user.ReadUserKycDocumentOptionsRequest} message
40659
+ * @param {!jspb.BinaryWriter} writer
40660
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40661
+ */
40662
+ proto.user.ReadUserKycDocumentOptionsRequest.serializeBinaryToWriter = function(message, writer) {
40663
+ var f = undefined;
40664
+ };
40665
+
40666
+
40667
+
40668
+
40669
+
40670
+ if (jspb.Message.GENERATE_TO_OBJECT) {
40671
+ /**
40672
+ * Creates an object representation of this proto.
40673
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
40674
+ * Optional fields that are not set will be set to undefined.
40675
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
40676
+ * For the list of reserved names please see:
40677
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
40678
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
40679
+ * JSPB instance for transitional soy proto support:
40680
+ * http://goto/soy-param-migration
40681
+ * @return {!Object}
40682
+ */
40683
+ proto.user.UserKycDocumentOptionItem.prototype.toObject = function(opt_includeInstance) {
40684
+ return proto.user.UserKycDocumentOptionItem.toObject(opt_includeInstance, this);
40685
+ };
40686
+
40687
+
40688
+ /**
40689
+ * Static version of the {@see toObject} method.
40690
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40691
+ * the JSPB instance for transitional soy proto support:
40692
+ * http://goto/soy-param-migration
40693
+ * @param {!proto.user.UserKycDocumentOptionItem} msg The msg instance to transform.
40694
+ * @return {!Object}
40695
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40696
+ */
40697
+ proto.user.UserKycDocumentOptionItem.toObject = function(includeInstance, msg) {
40698
+ var f, obj = {
40699
+ value: jspb.Message.getFieldWithDefault(msg, 1, ""),
40700
+ title: jspb.Message.getFieldWithDefault(msg, 2, "")
40701
+ };
40702
+
40703
+ if (includeInstance) {
40704
+ obj.$jspbMessageInstance = msg;
40705
+ }
40706
+ return obj;
40707
+ };
40708
+ }
40709
+
40710
+
40711
+ /**
40712
+ * Deserializes binary data (in protobuf wire format).
40713
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
40714
+ * @return {!proto.user.UserKycDocumentOptionItem}
40715
+ */
40716
+ proto.user.UserKycDocumentOptionItem.deserializeBinary = function(bytes) {
40717
+ var reader = new jspb.BinaryReader(bytes);
40718
+ var msg = new proto.user.UserKycDocumentOptionItem;
40719
+ return proto.user.UserKycDocumentOptionItem.deserializeBinaryFromReader(msg, reader);
40720
+ };
40721
+
40722
+
40723
+ /**
40724
+ * Deserializes binary data (in protobuf wire format) from the
40725
+ * given reader into the given message object.
40726
+ * @param {!proto.user.UserKycDocumentOptionItem} msg The message object to deserialize into.
40727
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40728
+ * @return {!proto.user.UserKycDocumentOptionItem}
40729
+ */
40730
+ proto.user.UserKycDocumentOptionItem.deserializeBinaryFromReader = function(msg, reader) {
40731
+ while (reader.nextField()) {
40732
+ if (reader.isEndGroup()) {
40733
+ break;
40734
+ }
40735
+ var field = reader.getFieldNumber();
40736
+ switch (field) {
40737
+ case 1:
40738
+ var value = /** @type {string} */ (reader.readString());
40739
+ msg.setValue(value);
40740
+ break;
40741
+ case 2:
40742
+ var value = /** @type {string} */ (reader.readString());
40743
+ msg.setTitle(value);
40744
+ break;
40745
+ default:
40746
+ reader.skipField();
40747
+ break;
40748
+ }
40749
+ }
40750
+ return msg;
40751
+ };
40752
+
40753
+
40754
+ /**
40755
+ * Serializes the message to binary data (in protobuf wire format).
40756
+ * @return {!Uint8Array}
40757
+ */
40758
+ proto.user.UserKycDocumentOptionItem.prototype.serializeBinary = function() {
40759
+ var writer = new jspb.BinaryWriter();
40760
+ proto.user.UserKycDocumentOptionItem.serializeBinaryToWriter(this, writer);
40761
+ return writer.getResultBuffer();
40762
+ };
40763
+
40764
+
40765
+ /**
40766
+ * Serializes the given message to binary data (in protobuf wire
40767
+ * format), writing to the given BinaryWriter.
40768
+ * @param {!proto.user.UserKycDocumentOptionItem} message
40769
+ * @param {!jspb.BinaryWriter} writer
40770
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40771
+ */
40772
+ proto.user.UserKycDocumentOptionItem.serializeBinaryToWriter = function(message, writer) {
40773
+ var f = undefined;
40774
+ f = message.getValue();
40775
+ if (f.length > 0) {
40776
+ writer.writeString(
40777
+ 1,
40778
+ f
40779
+ );
40780
+ }
40781
+ f = message.getTitle();
40782
+ if (f.length > 0) {
40783
+ writer.writeString(
40784
+ 2,
40785
+ f
40786
+ );
40787
+ }
40788
+ };
40789
+
40790
+
40791
+ /**
40792
+ * optional string value = 1;
40793
+ * @return {string}
40794
+ */
40795
+ proto.user.UserKycDocumentOptionItem.prototype.getValue = function() {
40796
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
40797
+ };
40798
+
40799
+
40800
+ /**
40801
+ * @param {string} value
40802
+ * @return {!proto.user.UserKycDocumentOptionItem} returns this
40803
+ */
40804
+ proto.user.UserKycDocumentOptionItem.prototype.setValue = function(value) {
40805
+ return jspb.Message.setProto3StringField(this, 1, value);
40806
+ };
40807
+
40808
+
40809
+ /**
40810
+ * optional string title = 2;
40811
+ * @return {string}
40812
+ */
40813
+ proto.user.UserKycDocumentOptionItem.prototype.getTitle = function() {
40814
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
40815
+ };
40816
+
40817
+
40818
+ /**
40819
+ * @param {string} value
40820
+ * @return {!proto.user.UserKycDocumentOptionItem} returns this
40821
+ */
40822
+ proto.user.UserKycDocumentOptionItem.prototype.setTitle = function(value) {
40823
+ return jspb.Message.setProto3StringField(this, 2, value);
40824
+ };
40825
+
40826
+
40827
+
40828
+ /**
40829
+ * List of repeated fields within this message type.
40830
+ * @private {!Array<number>}
40831
+ * @const
40832
+ */
40833
+ proto.user.UserKycDocumentOptionsResponse.repeatedFields_ = [1,2,3];
40834
+
40835
+
40836
+
40837
+ if (jspb.Message.GENERATE_TO_OBJECT) {
40838
+ /**
40839
+ * Creates an object representation of this proto.
40840
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
40841
+ * Optional fields that are not set will be set to undefined.
40842
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
40843
+ * For the list of reserved names please see:
40844
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
40845
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
40846
+ * JSPB instance for transitional soy proto support:
40847
+ * http://goto/soy-param-migration
40848
+ * @return {!Object}
40849
+ */
40850
+ proto.user.UserKycDocumentOptionsResponse.prototype.toObject = function(opt_includeInstance) {
40851
+ return proto.user.UserKycDocumentOptionsResponse.toObject(opt_includeInstance, this);
40852
+ };
40853
+
40854
+
40855
+ /**
40856
+ * Static version of the {@see toObject} method.
40857
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40858
+ * the JSPB instance for transitional soy proto support:
40859
+ * http://goto/soy-param-migration
40860
+ * @param {!proto.user.UserKycDocumentOptionsResponse} msg The msg instance to transform.
40861
+ * @return {!Object}
40862
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40863
+ */
40864
+ proto.user.UserKycDocumentOptionsResponse.toObject = function(includeInstance, msg) {
40865
+ var f, obj = {
40866
+ documentTypesList: jspb.Message.toObjectList(msg.getDocumentTypesList(),
40867
+ proto.user.UserKycDocumentOptionItem.toObject, includeInstance),
40868
+ documentSidesList: jspb.Message.toObjectList(msg.getDocumentSidesList(),
40869
+ proto.user.UserKycDocumentOptionItem.toObject, includeInstance),
40870
+ documentStatusesList: jspb.Message.toObjectList(msg.getDocumentStatusesList(),
40871
+ proto.user.UserKycDocumentOptionItem.toObject, includeInstance)
40872
+ };
40873
+
40874
+ if (includeInstance) {
40875
+ obj.$jspbMessageInstance = msg;
40876
+ }
40877
+ return obj;
40878
+ };
40879
+ }
40880
+
40881
+
40882
+ /**
40883
+ * Deserializes binary data (in protobuf wire format).
40884
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
40885
+ * @return {!proto.user.UserKycDocumentOptionsResponse}
40886
+ */
40887
+ proto.user.UserKycDocumentOptionsResponse.deserializeBinary = function(bytes) {
40888
+ var reader = new jspb.BinaryReader(bytes);
40889
+ var msg = new proto.user.UserKycDocumentOptionsResponse;
40890
+ return proto.user.UserKycDocumentOptionsResponse.deserializeBinaryFromReader(msg, reader);
40891
+ };
40892
+
40893
+
40894
+ /**
40895
+ * Deserializes binary data (in protobuf wire format) from the
40896
+ * given reader into the given message object.
40897
+ * @param {!proto.user.UserKycDocumentOptionsResponse} msg The message object to deserialize into.
40898
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40899
+ * @return {!proto.user.UserKycDocumentOptionsResponse}
40900
+ */
40901
+ proto.user.UserKycDocumentOptionsResponse.deserializeBinaryFromReader = function(msg, reader) {
40902
+ while (reader.nextField()) {
40903
+ if (reader.isEndGroup()) {
40904
+ break;
40905
+ }
40906
+ var field = reader.getFieldNumber();
40907
+ switch (field) {
40908
+ case 1:
40909
+ var value = new proto.user.UserKycDocumentOptionItem;
40910
+ reader.readMessage(value,proto.user.UserKycDocumentOptionItem.deserializeBinaryFromReader);
40911
+ msg.addDocumentTypes(value);
40912
+ break;
40913
+ case 2:
40914
+ var value = new proto.user.UserKycDocumentOptionItem;
40915
+ reader.readMessage(value,proto.user.UserKycDocumentOptionItem.deserializeBinaryFromReader);
40916
+ msg.addDocumentSides(value);
40917
+ break;
40918
+ case 3:
40919
+ var value = new proto.user.UserKycDocumentOptionItem;
40920
+ reader.readMessage(value,proto.user.UserKycDocumentOptionItem.deserializeBinaryFromReader);
40921
+ msg.addDocumentStatuses(value);
40922
+ break;
40923
+ default:
40924
+ reader.skipField();
40925
+ break;
40926
+ }
40927
+ }
40928
+ return msg;
40929
+ };
40930
+
40931
+
40932
+ /**
40933
+ * Serializes the message to binary data (in protobuf wire format).
40934
+ * @return {!Uint8Array}
40935
+ */
40936
+ proto.user.UserKycDocumentOptionsResponse.prototype.serializeBinary = function() {
40937
+ var writer = new jspb.BinaryWriter();
40938
+ proto.user.UserKycDocumentOptionsResponse.serializeBinaryToWriter(this, writer);
40939
+ return writer.getResultBuffer();
40940
+ };
40941
+
40942
+
40943
+ /**
40944
+ * Serializes the given message to binary data (in protobuf wire
40945
+ * format), writing to the given BinaryWriter.
40946
+ * @param {!proto.user.UserKycDocumentOptionsResponse} message
40947
+ * @param {!jspb.BinaryWriter} writer
40948
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40949
+ */
40950
+ proto.user.UserKycDocumentOptionsResponse.serializeBinaryToWriter = function(message, writer) {
40951
+ var f = undefined;
40952
+ f = message.getDocumentTypesList();
40953
+ if (f.length > 0) {
40954
+ writer.writeRepeatedMessage(
40955
+ 1,
40956
+ f,
40957
+ proto.user.UserKycDocumentOptionItem.serializeBinaryToWriter
40958
+ );
40959
+ }
40960
+ f = message.getDocumentSidesList();
40961
+ if (f.length > 0) {
40962
+ writer.writeRepeatedMessage(
40963
+ 2,
40964
+ f,
40965
+ proto.user.UserKycDocumentOptionItem.serializeBinaryToWriter
40966
+ );
40967
+ }
40968
+ f = message.getDocumentStatusesList();
40969
+ if (f.length > 0) {
40970
+ writer.writeRepeatedMessage(
40971
+ 3,
40972
+ f,
40973
+ proto.user.UserKycDocumentOptionItem.serializeBinaryToWriter
40974
+ );
40975
+ }
40976
+ };
40977
+
40978
+
40979
+ /**
40980
+ * repeated UserKycDocumentOptionItem document_types = 1;
40981
+ * @return {!Array<!proto.user.UserKycDocumentOptionItem>}
40982
+ */
40983
+ proto.user.UserKycDocumentOptionsResponse.prototype.getDocumentTypesList = function() {
40984
+ return /** @type{!Array<!proto.user.UserKycDocumentOptionItem>} */ (
40985
+ jspb.Message.getRepeatedWrapperField(this, proto.user.UserKycDocumentOptionItem, 1));
40986
+ };
40987
+
40988
+
40989
+ /**
40990
+ * @param {!Array<!proto.user.UserKycDocumentOptionItem>} value
40991
+ * @return {!proto.user.UserKycDocumentOptionsResponse} returns this
40992
+ */
40993
+ proto.user.UserKycDocumentOptionsResponse.prototype.setDocumentTypesList = function(value) {
40994
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
40995
+ };
40996
+
40997
+
40998
+ /**
40999
+ * @param {!proto.user.UserKycDocumentOptionItem=} opt_value
41000
+ * @param {number=} opt_index
41001
+ * @return {!proto.user.UserKycDocumentOptionItem}
41002
+ */
41003
+ proto.user.UserKycDocumentOptionsResponse.prototype.addDocumentTypes = function(opt_value, opt_index) {
41004
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.user.UserKycDocumentOptionItem, opt_index);
41005
+ };
41006
+
41007
+
41008
+ /**
41009
+ * Clears the list making it empty but non-null.
41010
+ * @return {!proto.user.UserKycDocumentOptionsResponse} returns this
41011
+ */
41012
+ proto.user.UserKycDocumentOptionsResponse.prototype.clearDocumentTypesList = function() {
41013
+ return this.setDocumentTypesList([]);
41014
+ };
41015
+
41016
+
41017
+ /**
41018
+ * repeated UserKycDocumentOptionItem document_sides = 2;
41019
+ * @return {!Array<!proto.user.UserKycDocumentOptionItem>}
41020
+ */
41021
+ proto.user.UserKycDocumentOptionsResponse.prototype.getDocumentSidesList = function() {
41022
+ return /** @type{!Array<!proto.user.UserKycDocumentOptionItem>} */ (
41023
+ jspb.Message.getRepeatedWrapperField(this, proto.user.UserKycDocumentOptionItem, 2));
41024
+ };
41025
+
41026
+
41027
+ /**
41028
+ * @param {!Array<!proto.user.UserKycDocumentOptionItem>} value
41029
+ * @return {!proto.user.UserKycDocumentOptionsResponse} returns this
41030
+ */
41031
+ proto.user.UserKycDocumentOptionsResponse.prototype.setDocumentSidesList = function(value) {
41032
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
41033
+ };
41034
+
41035
+
41036
+ /**
41037
+ * @param {!proto.user.UserKycDocumentOptionItem=} opt_value
41038
+ * @param {number=} opt_index
41039
+ * @return {!proto.user.UserKycDocumentOptionItem}
41040
+ */
41041
+ proto.user.UserKycDocumentOptionsResponse.prototype.addDocumentSides = function(opt_value, opt_index) {
41042
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.user.UserKycDocumentOptionItem, opt_index);
41043
+ };
41044
+
41045
+
41046
+ /**
41047
+ * Clears the list making it empty but non-null.
41048
+ * @return {!proto.user.UserKycDocumentOptionsResponse} returns this
41049
+ */
41050
+ proto.user.UserKycDocumentOptionsResponse.prototype.clearDocumentSidesList = function() {
41051
+ return this.setDocumentSidesList([]);
41052
+ };
41053
+
41054
+
41055
+ /**
41056
+ * repeated UserKycDocumentOptionItem document_statuses = 3;
41057
+ * @return {!Array<!proto.user.UserKycDocumentOptionItem>}
41058
+ */
41059
+ proto.user.UserKycDocumentOptionsResponse.prototype.getDocumentStatusesList = function() {
41060
+ return /** @type{!Array<!proto.user.UserKycDocumentOptionItem>} */ (
41061
+ jspb.Message.getRepeatedWrapperField(this, proto.user.UserKycDocumentOptionItem, 3));
41062
+ };
41063
+
41064
+
41065
+ /**
41066
+ * @param {!Array<!proto.user.UserKycDocumentOptionItem>} value
41067
+ * @return {!proto.user.UserKycDocumentOptionsResponse} returns this
41068
+ */
41069
+ proto.user.UserKycDocumentOptionsResponse.prototype.setDocumentStatusesList = function(value) {
41070
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
41071
+ };
41072
+
41073
+
41074
+ /**
41075
+ * @param {!proto.user.UserKycDocumentOptionItem=} opt_value
41076
+ * @param {number=} opt_index
41077
+ * @return {!proto.user.UserKycDocumentOptionItem}
41078
+ */
41079
+ proto.user.UserKycDocumentOptionsResponse.prototype.addDocumentStatuses = function(opt_value, opt_index) {
41080
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.user.UserKycDocumentOptionItem, opt_index);
41081
+ };
41082
+
41083
+
41084
+ /**
41085
+ * Clears the list making it empty but non-null.
41086
+ * @return {!proto.user.UserKycDocumentOptionsResponse} returns this
41087
+ */
41088
+ proto.user.UserKycDocumentOptionsResponse.prototype.clearDocumentStatusesList = function() {
41089
+ return this.setDocumentStatusesList([]);
41090
+ };
41091
+
41092
+
41093
+
41094
+
41095
+
40503
41096
  if (jspb.Message.GENERATE_TO_OBJECT) {
40504
41097
  /**
40505
41098
  * Creates an object representation of this proto.