@sniipwebmaster/kyc-client-grpcweb 21.8.17 → 21.8.24
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.
|
@@ -90,6 +90,61 @@ proto.kycserviceapi.KYCServiceAPIServicePromiseClient =
|
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
|
|
93
|
+
/**
|
|
94
|
+
* @const
|
|
95
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
96
|
+
* !proto.kycserviceapi.GetDocumentRequest,
|
|
97
|
+
* !proto.kycserviceapi.DocumentResponse>}
|
|
98
|
+
*/
|
|
99
|
+
const methodInfo_KYCServiceAPIService_GetDocument = new grpc.web.AbstractClientBase.MethodInfo(
|
|
100
|
+
proto.kycserviceapi.DocumentResponse,
|
|
101
|
+
/** @param {!proto.kycserviceapi.GetDocumentRequest} request */
|
|
102
|
+
function(request) {
|
|
103
|
+
return request.serializeBinary();
|
|
104
|
+
},
|
|
105
|
+
proto.kycserviceapi.DocumentResponse.deserializeBinary
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @param {!proto.kycserviceapi.GetDocumentRequest} request The
|
|
111
|
+
* request proto
|
|
112
|
+
* @param {?Object<string, string>} metadata User defined
|
|
113
|
+
* call metadata
|
|
114
|
+
* @param {function(?grpc.web.Error, ?proto.kycserviceapi.DocumentResponse)}
|
|
115
|
+
* callback The callback function(error, response)
|
|
116
|
+
* @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.DocumentResponse>|undefined}
|
|
117
|
+
* The XHR Node Readable Stream
|
|
118
|
+
*/
|
|
119
|
+
proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.getDocument =
|
|
120
|
+
function(request, metadata, callback) {
|
|
121
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
122
|
+
'/kycserviceapi.KYCServiceAPIService/GetDocument',
|
|
123
|
+
request,
|
|
124
|
+
metadata || {},
|
|
125
|
+
methodInfo_KYCServiceAPIService_GetDocument,
|
|
126
|
+
callback);
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @param {!proto.kycserviceapi.GetDocumentRequest} request The
|
|
132
|
+
* request proto
|
|
133
|
+
* @param {?Object<string, string>} metadata User defined
|
|
134
|
+
* call metadata
|
|
135
|
+
* @return {!Promise<!proto.kycserviceapi.DocumentResponse>}
|
|
136
|
+
* A native promise that resolves to the response
|
|
137
|
+
*/
|
|
138
|
+
proto.kycserviceapi.KYCServiceAPIServicePromiseClient.prototype.getDocument =
|
|
139
|
+
function(request, metadata) {
|
|
140
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
141
|
+
'/kycserviceapi.KYCServiceAPIService/GetDocument',
|
|
142
|
+
request,
|
|
143
|
+
metadata || {},
|
|
144
|
+
methodInfo_KYCServiceAPIService_GetDocument);
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
|
|
93
148
|
/**
|
|
94
149
|
* @const
|
|
95
150
|
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
@@ -11,9 +11,13 @@ var global = Function('return this')();
|
|
|
11
11
|
|
|
12
12
|
var google_api_annotations_pb = require('./google/api/annotations_pb.js');
|
|
13
13
|
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
14
|
+
goog.exportSymbol('proto.kycserviceapi.Document', null, global);
|
|
15
|
+
goog.exportSymbol('proto.kycserviceapi.DocumentResponse', null, global);
|
|
14
16
|
goog.exportSymbol('proto.kycserviceapi.DocumentStatus', null, global);
|
|
15
17
|
goog.exportSymbol('proto.kycserviceapi.DocumentType', null, global);
|
|
18
|
+
goog.exportSymbol('proto.kycserviceapi.GetDocumentRequest', null, global);
|
|
16
19
|
goog.exportSymbol('proto.kycserviceapi.GetUserKycStatusRequest', null, global);
|
|
20
|
+
goog.exportSymbol('proto.kycserviceapi.Passport', null, global);
|
|
17
21
|
goog.exportSymbol('proto.kycserviceapi.RequestUserKycRequest', null, global);
|
|
18
22
|
goog.exportSymbol('proto.kycserviceapi.RequestedDocument', null, global);
|
|
19
23
|
goog.exportSymbol('proto.kycserviceapi.ResponseCode', null, global);
|
|
@@ -22,6 +26,843 @@ goog.exportSymbol('proto.kycserviceapi.UserKycRequest', null, global);
|
|
|
22
26
|
goog.exportSymbol('proto.kycserviceapi.UserKycStatusResponse', null, global);
|
|
23
27
|
goog.exportSymbol('proto.kycserviceapi.UserStatus', null, global);
|
|
24
28
|
|
|
29
|
+
/**
|
|
30
|
+
* Generated by JsPbCodeGenerator.
|
|
31
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
32
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
33
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
34
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
35
|
+
* valid.
|
|
36
|
+
* @extends {jspb.Message}
|
|
37
|
+
* @constructor
|
|
38
|
+
*/
|
|
39
|
+
proto.kycserviceapi.Document = function(opt_data) {
|
|
40
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.kycserviceapi.Document.repeatedFields_, null);
|
|
41
|
+
};
|
|
42
|
+
goog.inherits(proto.kycserviceapi.Document, jspb.Message);
|
|
43
|
+
if (goog.DEBUG && !COMPILED) {
|
|
44
|
+
proto.kycserviceapi.Document.displayName = 'proto.kycserviceapi.Document';
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* List of repeated fields within this message type.
|
|
48
|
+
* @private {!Array<number>}
|
|
49
|
+
* @const
|
|
50
|
+
*/
|
|
51
|
+
proto.kycserviceapi.Document.repeatedFields_ = [8];
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
56
|
+
/**
|
|
57
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
58
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
59
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
60
|
+
* For the list of reserved names please see:
|
|
61
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
62
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
63
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
64
|
+
* @return {!Object}
|
|
65
|
+
*/
|
|
66
|
+
proto.kycserviceapi.Document.prototype.toObject = function(opt_includeInstance) {
|
|
67
|
+
return proto.kycserviceapi.Document.toObject(opt_includeInstance, this);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Static version of the {@see toObject} method.
|
|
73
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
74
|
+
* instance for transitional soy proto support:
|
|
75
|
+
* http://goto/soy-param-migration
|
|
76
|
+
* @param {!proto.kycserviceapi.Document} msg The msg instance to transform.
|
|
77
|
+
* @return {!Object}
|
|
78
|
+
*/
|
|
79
|
+
proto.kycserviceapi.Document.toObject = function(includeInstance, msg) {
|
|
80
|
+
var f, obj = {
|
|
81
|
+
documentid: msg.getDocumentid(),
|
|
82
|
+
type: msg.getType(),
|
|
83
|
+
status: msg.getStatus(),
|
|
84
|
+
required: msg.getRequired(),
|
|
85
|
+
passport: (f = msg.getPassport()) && proto.kycserviceapi.Passport.toObject(includeInstance, f),
|
|
86
|
+
driverslicense: msg.getDriverslicense(),
|
|
87
|
+
paymentmethod: msg.getPaymentmethod(),
|
|
88
|
+
attachmentidsList: jspb.Message.getField(msg, 8)
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
if (includeInstance) {
|
|
92
|
+
obj.$jspbMessageInstance = msg;
|
|
93
|
+
}
|
|
94
|
+
return obj;
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Deserializes binary data (in protobuf wire format).
|
|
101
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
102
|
+
* @return {!proto.kycserviceapi.Document}
|
|
103
|
+
*/
|
|
104
|
+
proto.kycserviceapi.Document.deserializeBinary = function(bytes) {
|
|
105
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
106
|
+
var msg = new proto.kycserviceapi.Document;
|
|
107
|
+
return proto.kycserviceapi.Document.deserializeBinaryFromReader(msg, reader);
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
113
|
+
* given reader into the given message object.
|
|
114
|
+
* @param {!proto.kycserviceapi.Document} msg The message object to deserialize into.
|
|
115
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
116
|
+
* @return {!proto.kycserviceapi.Document}
|
|
117
|
+
*/
|
|
118
|
+
proto.kycserviceapi.Document.deserializeBinaryFromReader = function(msg, reader) {
|
|
119
|
+
while (reader.nextField()) {
|
|
120
|
+
if (reader.isEndGroup()) {
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
var field = reader.getFieldNumber();
|
|
124
|
+
switch (field) {
|
|
125
|
+
case 1:
|
|
126
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
127
|
+
msg.setDocumentid(value);
|
|
128
|
+
break;
|
|
129
|
+
case 2:
|
|
130
|
+
var value = /** @type {!proto.kycserviceapi.DocumentType} */ (reader.readEnum());
|
|
131
|
+
msg.setType(value);
|
|
132
|
+
break;
|
|
133
|
+
case 3:
|
|
134
|
+
var value = /** @type {!proto.kycserviceapi.DocumentStatus} */ (reader.readEnum());
|
|
135
|
+
msg.setStatus(value);
|
|
136
|
+
break;
|
|
137
|
+
case 4:
|
|
138
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
139
|
+
msg.setRequired(value);
|
|
140
|
+
break;
|
|
141
|
+
case 5:
|
|
142
|
+
var value = new proto.kycserviceapi.Passport;
|
|
143
|
+
reader.readMessage(value,proto.kycserviceapi.Passport.deserializeBinaryFromReader);
|
|
144
|
+
msg.setPassport(value);
|
|
145
|
+
break;
|
|
146
|
+
case 6:
|
|
147
|
+
var value = /** @type {string} */ (reader.readString());
|
|
148
|
+
msg.setDriverslicense(value);
|
|
149
|
+
break;
|
|
150
|
+
case 7:
|
|
151
|
+
var value = /** @type {string} */ (reader.readString());
|
|
152
|
+
msg.setPaymentmethod(value);
|
|
153
|
+
break;
|
|
154
|
+
case 8:
|
|
155
|
+
var value = /** @type {!Array.<number>} */ (reader.readPackedInt64());
|
|
156
|
+
msg.setAttachmentidsList(value);
|
|
157
|
+
break;
|
|
158
|
+
default:
|
|
159
|
+
reader.skipField();
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return msg;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Class method variant: serializes the given message to binary data
|
|
169
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
170
|
+
* @param {!proto.kycserviceapi.Document} message
|
|
171
|
+
* @param {!jspb.BinaryWriter} writer
|
|
172
|
+
*/
|
|
173
|
+
proto.kycserviceapi.Document.serializeBinaryToWriter = function(message, writer) {
|
|
174
|
+
message.serializeBinaryToWriter(writer);
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
180
|
+
* @return {!Uint8Array}
|
|
181
|
+
*/
|
|
182
|
+
proto.kycserviceapi.Document.prototype.serializeBinary = function() {
|
|
183
|
+
var writer = new jspb.BinaryWriter();
|
|
184
|
+
this.serializeBinaryToWriter(writer);
|
|
185
|
+
return writer.getResultBuffer();
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
191
|
+
* writing to the given BinaryWriter.
|
|
192
|
+
* @param {!jspb.BinaryWriter} writer
|
|
193
|
+
*/
|
|
194
|
+
proto.kycserviceapi.Document.prototype.serializeBinaryToWriter = function (writer) {
|
|
195
|
+
var f = undefined;
|
|
196
|
+
f = this.getDocumentid();
|
|
197
|
+
if (f !== 0) {
|
|
198
|
+
writer.writeInt64(
|
|
199
|
+
1,
|
|
200
|
+
f
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
f = this.getType();
|
|
204
|
+
if (f !== 0.0) {
|
|
205
|
+
writer.writeEnum(
|
|
206
|
+
2,
|
|
207
|
+
f
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
f = this.getStatus();
|
|
211
|
+
if (f !== 0.0) {
|
|
212
|
+
writer.writeEnum(
|
|
213
|
+
3,
|
|
214
|
+
f
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
f = this.getRequired();
|
|
218
|
+
if (f) {
|
|
219
|
+
writer.writeBool(
|
|
220
|
+
4,
|
|
221
|
+
f
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
f = this.getPassport();
|
|
225
|
+
if (f != null) {
|
|
226
|
+
writer.writeMessage(
|
|
227
|
+
5,
|
|
228
|
+
f,
|
|
229
|
+
proto.kycserviceapi.Passport.serializeBinaryToWriter
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
f = this.getDriverslicense();
|
|
233
|
+
if (f.length > 0) {
|
|
234
|
+
writer.writeString(
|
|
235
|
+
6,
|
|
236
|
+
f
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
f = this.getPaymentmethod();
|
|
240
|
+
if (f.length > 0) {
|
|
241
|
+
writer.writeString(
|
|
242
|
+
7,
|
|
243
|
+
f
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
f = this.getAttachmentidsList();
|
|
247
|
+
if (f.length > 0) {
|
|
248
|
+
writer.writePackedInt64(
|
|
249
|
+
8,
|
|
250
|
+
f
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
258
|
+
* @return {!proto.kycserviceapi.Document} The clone.
|
|
259
|
+
*/
|
|
260
|
+
proto.kycserviceapi.Document.prototype.cloneMessage = function() {
|
|
261
|
+
return /** @type {!proto.kycserviceapi.Document} */ (jspb.Message.cloneMessage(this));
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* optional int64 documentId = 1;
|
|
267
|
+
* @return {number}
|
|
268
|
+
*/
|
|
269
|
+
proto.kycserviceapi.Document.prototype.getDocumentid = function() {
|
|
270
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
/** @param {number} value */
|
|
275
|
+
proto.kycserviceapi.Document.prototype.setDocumentid = function(value) {
|
|
276
|
+
jspb.Message.setField(this, 1, value);
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* optional DocumentType type = 2;
|
|
282
|
+
* @return {!proto.kycserviceapi.DocumentType}
|
|
283
|
+
*/
|
|
284
|
+
proto.kycserviceapi.Document.prototype.getType = function() {
|
|
285
|
+
return /** @type {!proto.kycserviceapi.DocumentType} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
/** @param {!proto.kycserviceapi.DocumentType} value */
|
|
290
|
+
proto.kycserviceapi.Document.prototype.setType = function(value) {
|
|
291
|
+
jspb.Message.setField(this, 2, value);
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* optional DocumentStatus status = 3;
|
|
297
|
+
* @return {!proto.kycserviceapi.DocumentStatus}
|
|
298
|
+
*/
|
|
299
|
+
proto.kycserviceapi.Document.prototype.getStatus = function() {
|
|
300
|
+
return /** @type {!proto.kycserviceapi.DocumentStatus} */ (jspb.Message.getFieldProto3(this, 3, 0));
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
/** @param {!proto.kycserviceapi.DocumentStatus} value */
|
|
305
|
+
proto.kycserviceapi.Document.prototype.setStatus = function(value) {
|
|
306
|
+
jspb.Message.setField(this, 3, value);
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* optional bool required = 4;
|
|
312
|
+
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
|
313
|
+
* You should avoid comparisons like {@code val === true/false} in those cases.
|
|
314
|
+
* @return {boolean}
|
|
315
|
+
*/
|
|
316
|
+
proto.kycserviceapi.Document.prototype.getRequired = function() {
|
|
317
|
+
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 4, false));
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
/** @param {boolean} value */
|
|
322
|
+
proto.kycserviceapi.Document.prototype.setRequired = function(value) {
|
|
323
|
+
jspb.Message.setField(this, 4, value);
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* optional Passport passport = 5;
|
|
329
|
+
* @return {proto.kycserviceapi.Passport}
|
|
330
|
+
*/
|
|
331
|
+
proto.kycserviceapi.Document.prototype.getPassport = function() {
|
|
332
|
+
return /** @type{proto.kycserviceapi.Passport} */ (
|
|
333
|
+
jspb.Message.getWrapperField(this, proto.kycserviceapi.Passport, 5));
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
/** @param {proto.kycserviceapi.Passport|undefined} value */
|
|
338
|
+
proto.kycserviceapi.Document.prototype.setPassport = function(value) {
|
|
339
|
+
jspb.Message.setWrapperField(this, 5, value);
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
proto.kycserviceapi.Document.prototype.clearPassport = function() {
|
|
344
|
+
this.setPassport(undefined);
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Returns whether this field is set.
|
|
350
|
+
* @return{!boolean}
|
|
351
|
+
*/
|
|
352
|
+
proto.kycserviceapi.Document.prototype.hasPassport = function() {
|
|
353
|
+
return jspb.Message.getField(this, 5) != null;
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* optional string driversLicense = 6;
|
|
359
|
+
* @return {string}
|
|
360
|
+
*/
|
|
361
|
+
proto.kycserviceapi.Document.prototype.getDriverslicense = function() {
|
|
362
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 6, ""));
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
/** @param {string} value */
|
|
367
|
+
proto.kycserviceapi.Document.prototype.setDriverslicense = function(value) {
|
|
368
|
+
jspb.Message.setField(this, 6, value);
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* optional string paymentMethod = 7;
|
|
374
|
+
* @return {string}
|
|
375
|
+
*/
|
|
376
|
+
proto.kycserviceapi.Document.prototype.getPaymentmethod = function() {
|
|
377
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 7, ""));
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
/** @param {string} value */
|
|
382
|
+
proto.kycserviceapi.Document.prototype.setPaymentmethod = function(value) {
|
|
383
|
+
jspb.Message.setField(this, 7, value);
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* repeated int64 attachmentIds = 8;
|
|
389
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
390
|
+
* replace the array itself, then you must call the setter to update it.
|
|
391
|
+
* @return {!Array.<number>}
|
|
392
|
+
*/
|
|
393
|
+
proto.kycserviceapi.Document.prototype.getAttachmentidsList = function() {
|
|
394
|
+
return /** @type {!Array.<number>} */ (jspb.Message.getField(this, 8));
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
/** @param {Array.<number>} value */
|
|
399
|
+
proto.kycserviceapi.Document.prototype.setAttachmentidsList = function(value) {
|
|
400
|
+
jspb.Message.setField(this, 8, value || []);
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
proto.kycserviceapi.Document.prototype.clearAttachmentidsList = function() {
|
|
405
|
+
jspb.Message.setField(this, 8, []);
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Generated by JsPbCodeGenerator.
|
|
412
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
413
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
414
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
415
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
416
|
+
* valid.
|
|
417
|
+
* @extends {jspb.Message}
|
|
418
|
+
* @constructor
|
|
419
|
+
*/
|
|
420
|
+
proto.kycserviceapi.DocumentResponse = function(opt_data) {
|
|
421
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.kycserviceapi.DocumentResponse.repeatedFields_, null);
|
|
422
|
+
};
|
|
423
|
+
goog.inherits(proto.kycserviceapi.DocumentResponse, jspb.Message);
|
|
424
|
+
if (goog.DEBUG && !COMPILED) {
|
|
425
|
+
proto.kycserviceapi.DocumentResponse.displayName = 'proto.kycserviceapi.DocumentResponse';
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* List of repeated fields within this message type.
|
|
429
|
+
* @private {!Array<number>}
|
|
430
|
+
* @const
|
|
431
|
+
*/
|
|
432
|
+
proto.kycserviceapi.DocumentResponse.repeatedFields_ = [3,4];
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
437
|
+
/**
|
|
438
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
439
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
440
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
441
|
+
* For the list of reserved names please see:
|
|
442
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
443
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
444
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
445
|
+
* @return {!Object}
|
|
446
|
+
*/
|
|
447
|
+
proto.kycserviceapi.DocumentResponse.prototype.toObject = function(opt_includeInstance) {
|
|
448
|
+
return proto.kycserviceapi.DocumentResponse.toObject(opt_includeInstance, this);
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Static version of the {@see toObject} method.
|
|
454
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
455
|
+
* instance for transitional soy proto support:
|
|
456
|
+
* http://goto/soy-param-migration
|
|
457
|
+
* @param {!proto.kycserviceapi.DocumentResponse} msg The msg instance to transform.
|
|
458
|
+
* @return {!Object}
|
|
459
|
+
*/
|
|
460
|
+
proto.kycserviceapi.DocumentResponse.toObject = function(includeInstance, msg) {
|
|
461
|
+
var f, obj = {
|
|
462
|
+
responsecode: (f = msg.getResponsecode()) && proto.kycserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
463
|
+
document: (f = msg.getDocument()) && proto.kycserviceapi.Document.toObject(includeInstance, f),
|
|
464
|
+
countriesList: jspb.Message.getField(msg, 3),
|
|
465
|
+
statesList: jspb.Message.getField(msg, 4)
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
if (includeInstance) {
|
|
469
|
+
obj.$jspbMessageInstance = msg;
|
|
470
|
+
}
|
|
471
|
+
return obj;
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Deserializes binary data (in protobuf wire format).
|
|
478
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
479
|
+
* @return {!proto.kycserviceapi.DocumentResponse}
|
|
480
|
+
*/
|
|
481
|
+
proto.kycserviceapi.DocumentResponse.deserializeBinary = function(bytes) {
|
|
482
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
483
|
+
var msg = new proto.kycserviceapi.DocumentResponse;
|
|
484
|
+
return proto.kycserviceapi.DocumentResponse.deserializeBinaryFromReader(msg, reader);
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
490
|
+
* given reader into the given message object.
|
|
491
|
+
* @param {!proto.kycserviceapi.DocumentResponse} msg The message object to deserialize into.
|
|
492
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
493
|
+
* @return {!proto.kycserviceapi.DocumentResponse}
|
|
494
|
+
*/
|
|
495
|
+
proto.kycserviceapi.DocumentResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
496
|
+
while (reader.nextField()) {
|
|
497
|
+
if (reader.isEndGroup()) {
|
|
498
|
+
break;
|
|
499
|
+
}
|
|
500
|
+
var field = reader.getFieldNumber();
|
|
501
|
+
switch (field) {
|
|
502
|
+
case 1:
|
|
503
|
+
var value = new proto.kycserviceapi.ResponseCode;
|
|
504
|
+
reader.readMessage(value,proto.kycserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
505
|
+
msg.setResponsecode(value);
|
|
506
|
+
break;
|
|
507
|
+
case 2:
|
|
508
|
+
var value = new proto.kycserviceapi.Document;
|
|
509
|
+
reader.readMessage(value,proto.kycserviceapi.Document.deserializeBinaryFromReader);
|
|
510
|
+
msg.setDocument(value);
|
|
511
|
+
break;
|
|
512
|
+
case 3:
|
|
513
|
+
var value = /** @type {string} */ (reader.readString());
|
|
514
|
+
msg.getCountriesList().push(value);
|
|
515
|
+
msg.setCountriesList(msg.getCountriesList());
|
|
516
|
+
break;
|
|
517
|
+
case 4:
|
|
518
|
+
var value = /** @type {string} */ (reader.readString());
|
|
519
|
+
msg.getStatesList().push(value);
|
|
520
|
+
msg.setStatesList(msg.getStatesList());
|
|
521
|
+
break;
|
|
522
|
+
default:
|
|
523
|
+
reader.skipField();
|
|
524
|
+
break;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
return msg;
|
|
528
|
+
};
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Class method variant: serializes the given message to binary data
|
|
533
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
534
|
+
* @param {!proto.kycserviceapi.DocumentResponse} message
|
|
535
|
+
* @param {!jspb.BinaryWriter} writer
|
|
536
|
+
*/
|
|
537
|
+
proto.kycserviceapi.DocumentResponse.serializeBinaryToWriter = function(message, writer) {
|
|
538
|
+
message.serializeBinaryToWriter(writer);
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
544
|
+
* @return {!Uint8Array}
|
|
545
|
+
*/
|
|
546
|
+
proto.kycserviceapi.DocumentResponse.prototype.serializeBinary = function() {
|
|
547
|
+
var writer = new jspb.BinaryWriter();
|
|
548
|
+
this.serializeBinaryToWriter(writer);
|
|
549
|
+
return writer.getResultBuffer();
|
|
550
|
+
};
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
555
|
+
* writing to the given BinaryWriter.
|
|
556
|
+
* @param {!jspb.BinaryWriter} writer
|
|
557
|
+
*/
|
|
558
|
+
proto.kycserviceapi.DocumentResponse.prototype.serializeBinaryToWriter = function (writer) {
|
|
559
|
+
var f = undefined;
|
|
560
|
+
f = this.getResponsecode();
|
|
561
|
+
if (f != null) {
|
|
562
|
+
writer.writeMessage(
|
|
563
|
+
1,
|
|
564
|
+
f,
|
|
565
|
+
proto.kycserviceapi.ResponseCode.serializeBinaryToWriter
|
|
566
|
+
);
|
|
567
|
+
}
|
|
568
|
+
f = this.getDocument();
|
|
569
|
+
if (f != null) {
|
|
570
|
+
writer.writeMessage(
|
|
571
|
+
2,
|
|
572
|
+
f,
|
|
573
|
+
proto.kycserviceapi.Document.serializeBinaryToWriter
|
|
574
|
+
);
|
|
575
|
+
}
|
|
576
|
+
f = this.getCountriesList();
|
|
577
|
+
if (f.length > 0) {
|
|
578
|
+
writer.writeRepeatedString(
|
|
579
|
+
3,
|
|
580
|
+
f
|
|
581
|
+
);
|
|
582
|
+
}
|
|
583
|
+
f = this.getStatesList();
|
|
584
|
+
if (f.length > 0) {
|
|
585
|
+
writer.writeRepeatedString(
|
|
586
|
+
4,
|
|
587
|
+
f
|
|
588
|
+
);
|
|
589
|
+
}
|
|
590
|
+
};
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
595
|
+
* @return {!proto.kycserviceapi.DocumentResponse} The clone.
|
|
596
|
+
*/
|
|
597
|
+
proto.kycserviceapi.DocumentResponse.prototype.cloneMessage = function() {
|
|
598
|
+
return /** @type {!proto.kycserviceapi.DocumentResponse} */ (jspb.Message.cloneMessage(this));
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* optional ResponseCode responseCode = 1;
|
|
604
|
+
* @return {proto.kycserviceapi.ResponseCode}
|
|
605
|
+
*/
|
|
606
|
+
proto.kycserviceapi.DocumentResponse.prototype.getResponsecode = function() {
|
|
607
|
+
return /** @type{proto.kycserviceapi.ResponseCode} */ (
|
|
608
|
+
jspb.Message.getWrapperField(this, proto.kycserviceapi.ResponseCode, 1));
|
|
609
|
+
};
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
/** @param {proto.kycserviceapi.ResponseCode|undefined} value */
|
|
613
|
+
proto.kycserviceapi.DocumentResponse.prototype.setResponsecode = function(value) {
|
|
614
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
proto.kycserviceapi.DocumentResponse.prototype.clearResponsecode = function() {
|
|
619
|
+
this.setResponsecode(undefined);
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Returns whether this field is set.
|
|
625
|
+
* @return{!boolean}
|
|
626
|
+
*/
|
|
627
|
+
proto.kycserviceapi.DocumentResponse.prototype.hasResponsecode = function() {
|
|
628
|
+
return jspb.Message.getField(this, 1) != null;
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* optional Document document = 2;
|
|
634
|
+
* @return {proto.kycserviceapi.Document}
|
|
635
|
+
*/
|
|
636
|
+
proto.kycserviceapi.DocumentResponse.prototype.getDocument = function() {
|
|
637
|
+
return /** @type{proto.kycserviceapi.Document} */ (
|
|
638
|
+
jspb.Message.getWrapperField(this, proto.kycserviceapi.Document, 2));
|
|
639
|
+
};
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
/** @param {proto.kycserviceapi.Document|undefined} value */
|
|
643
|
+
proto.kycserviceapi.DocumentResponse.prototype.setDocument = function(value) {
|
|
644
|
+
jspb.Message.setWrapperField(this, 2, value);
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
proto.kycserviceapi.DocumentResponse.prototype.clearDocument = function() {
|
|
649
|
+
this.setDocument(undefined);
|
|
650
|
+
};
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Returns whether this field is set.
|
|
655
|
+
* @return{!boolean}
|
|
656
|
+
*/
|
|
657
|
+
proto.kycserviceapi.DocumentResponse.prototype.hasDocument = function() {
|
|
658
|
+
return jspb.Message.getField(this, 2) != null;
|
|
659
|
+
};
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* repeated string countries = 3;
|
|
664
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
665
|
+
* replace the array itself, then you must call the setter to update it.
|
|
666
|
+
* @return {!Array.<string>}
|
|
667
|
+
*/
|
|
668
|
+
proto.kycserviceapi.DocumentResponse.prototype.getCountriesList = function() {
|
|
669
|
+
return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 3));
|
|
670
|
+
};
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
/** @param {Array.<string>} value */
|
|
674
|
+
proto.kycserviceapi.DocumentResponse.prototype.setCountriesList = function(value) {
|
|
675
|
+
jspb.Message.setField(this, 3, value || []);
|
|
676
|
+
};
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
proto.kycserviceapi.DocumentResponse.prototype.clearCountriesList = function() {
|
|
680
|
+
jspb.Message.setField(this, 3, []);
|
|
681
|
+
};
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* repeated string states = 4;
|
|
686
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
687
|
+
* replace the array itself, then you must call the setter to update it.
|
|
688
|
+
* @return {!Array.<string>}
|
|
689
|
+
*/
|
|
690
|
+
proto.kycserviceapi.DocumentResponse.prototype.getStatesList = function() {
|
|
691
|
+
return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 4));
|
|
692
|
+
};
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
/** @param {Array.<string>} value */
|
|
696
|
+
proto.kycserviceapi.DocumentResponse.prototype.setStatesList = function(value) {
|
|
697
|
+
jspb.Message.setField(this, 4, value || []);
|
|
698
|
+
};
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
proto.kycserviceapi.DocumentResponse.prototype.clearStatesList = function() {
|
|
702
|
+
jspb.Message.setField(this, 4, []);
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Generated by JsPbCodeGenerator.
|
|
709
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
710
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
711
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
712
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
713
|
+
* valid.
|
|
714
|
+
* @extends {jspb.Message}
|
|
715
|
+
* @constructor
|
|
716
|
+
*/
|
|
717
|
+
proto.kycserviceapi.GetDocumentRequest = function(opt_data) {
|
|
718
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
719
|
+
};
|
|
720
|
+
goog.inherits(proto.kycserviceapi.GetDocumentRequest, jspb.Message);
|
|
721
|
+
if (goog.DEBUG && !COMPILED) {
|
|
722
|
+
proto.kycserviceapi.GetDocumentRequest.displayName = 'proto.kycserviceapi.GetDocumentRequest';
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
727
|
+
/**
|
|
728
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
729
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
730
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
731
|
+
* For the list of reserved names please see:
|
|
732
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
733
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
734
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
735
|
+
* @return {!Object}
|
|
736
|
+
*/
|
|
737
|
+
proto.kycserviceapi.GetDocumentRequest.prototype.toObject = function(opt_includeInstance) {
|
|
738
|
+
return proto.kycserviceapi.GetDocumentRequest.toObject(opt_includeInstance, this);
|
|
739
|
+
};
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Static version of the {@see toObject} method.
|
|
744
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
745
|
+
* instance for transitional soy proto support:
|
|
746
|
+
* http://goto/soy-param-migration
|
|
747
|
+
* @param {!proto.kycserviceapi.GetDocumentRequest} msg The msg instance to transform.
|
|
748
|
+
* @return {!Object}
|
|
749
|
+
*/
|
|
750
|
+
proto.kycserviceapi.GetDocumentRequest.toObject = function(includeInstance, msg) {
|
|
751
|
+
var f, obj = {
|
|
752
|
+
documentid: msg.getDocumentid()
|
|
753
|
+
};
|
|
754
|
+
|
|
755
|
+
if (includeInstance) {
|
|
756
|
+
obj.$jspbMessageInstance = msg;
|
|
757
|
+
}
|
|
758
|
+
return obj;
|
|
759
|
+
};
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Deserializes binary data (in protobuf wire format).
|
|
765
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
766
|
+
* @return {!proto.kycserviceapi.GetDocumentRequest}
|
|
767
|
+
*/
|
|
768
|
+
proto.kycserviceapi.GetDocumentRequest.deserializeBinary = function(bytes) {
|
|
769
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
770
|
+
var msg = new proto.kycserviceapi.GetDocumentRequest;
|
|
771
|
+
return proto.kycserviceapi.GetDocumentRequest.deserializeBinaryFromReader(msg, reader);
|
|
772
|
+
};
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
777
|
+
* given reader into the given message object.
|
|
778
|
+
* @param {!proto.kycserviceapi.GetDocumentRequest} msg The message object to deserialize into.
|
|
779
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
780
|
+
* @return {!proto.kycserviceapi.GetDocumentRequest}
|
|
781
|
+
*/
|
|
782
|
+
proto.kycserviceapi.GetDocumentRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
783
|
+
while (reader.nextField()) {
|
|
784
|
+
if (reader.isEndGroup()) {
|
|
785
|
+
break;
|
|
786
|
+
}
|
|
787
|
+
var field = reader.getFieldNumber();
|
|
788
|
+
switch (field) {
|
|
789
|
+
case 1:
|
|
790
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
791
|
+
msg.setDocumentid(value);
|
|
792
|
+
break;
|
|
793
|
+
default:
|
|
794
|
+
reader.skipField();
|
|
795
|
+
break;
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
return msg;
|
|
799
|
+
};
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* Class method variant: serializes the given message to binary data
|
|
804
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
805
|
+
* @param {!proto.kycserviceapi.GetDocumentRequest} message
|
|
806
|
+
* @param {!jspb.BinaryWriter} writer
|
|
807
|
+
*/
|
|
808
|
+
proto.kycserviceapi.GetDocumentRequest.serializeBinaryToWriter = function(message, writer) {
|
|
809
|
+
message.serializeBinaryToWriter(writer);
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
815
|
+
* @return {!Uint8Array}
|
|
816
|
+
*/
|
|
817
|
+
proto.kycserviceapi.GetDocumentRequest.prototype.serializeBinary = function() {
|
|
818
|
+
var writer = new jspb.BinaryWriter();
|
|
819
|
+
this.serializeBinaryToWriter(writer);
|
|
820
|
+
return writer.getResultBuffer();
|
|
821
|
+
};
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
826
|
+
* writing to the given BinaryWriter.
|
|
827
|
+
* @param {!jspb.BinaryWriter} writer
|
|
828
|
+
*/
|
|
829
|
+
proto.kycserviceapi.GetDocumentRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
830
|
+
var f = undefined;
|
|
831
|
+
f = this.getDocumentid();
|
|
832
|
+
if (f !== 0) {
|
|
833
|
+
writer.writeInt64(
|
|
834
|
+
1,
|
|
835
|
+
f
|
|
836
|
+
);
|
|
837
|
+
}
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
843
|
+
* @return {!proto.kycserviceapi.GetDocumentRequest} The clone.
|
|
844
|
+
*/
|
|
845
|
+
proto.kycserviceapi.GetDocumentRequest.prototype.cloneMessage = function() {
|
|
846
|
+
return /** @type {!proto.kycserviceapi.GetDocumentRequest} */ (jspb.Message.cloneMessage(this));
|
|
847
|
+
};
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* optional int64 documentId = 1;
|
|
852
|
+
* @return {number}
|
|
853
|
+
*/
|
|
854
|
+
proto.kycserviceapi.GetDocumentRequest.prototype.getDocumentid = function() {
|
|
855
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
856
|
+
};
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
/** @param {number} value */
|
|
860
|
+
proto.kycserviceapi.GetDocumentRequest.prototype.setDocumentid = function(value) {
|
|
861
|
+
jspb.Message.setField(this, 1, value);
|
|
862
|
+
};
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
|
|
25
866
|
/**
|
|
26
867
|
* Generated by JsPbCodeGenerator.
|
|
27
868
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -181,6 +1022,219 @@ proto.kycserviceapi.GetUserKycStatusRequest.prototype.setUserid = function(value
|
|
|
181
1022
|
|
|
182
1023
|
|
|
183
1024
|
|
|
1025
|
+
/**
|
|
1026
|
+
* Generated by JsPbCodeGenerator.
|
|
1027
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1028
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1029
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1030
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1031
|
+
* valid.
|
|
1032
|
+
* @extends {jspb.Message}
|
|
1033
|
+
* @constructor
|
|
1034
|
+
*/
|
|
1035
|
+
proto.kycserviceapi.Passport = function(opt_data) {
|
|
1036
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1037
|
+
};
|
|
1038
|
+
goog.inherits(proto.kycserviceapi.Passport, jspb.Message);
|
|
1039
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1040
|
+
proto.kycserviceapi.Passport.displayName = 'proto.kycserviceapi.Passport';
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1045
|
+
/**
|
|
1046
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1047
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1048
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1049
|
+
* For the list of reserved names please see:
|
|
1050
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1051
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1052
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1053
|
+
* @return {!Object}
|
|
1054
|
+
*/
|
|
1055
|
+
proto.kycserviceapi.Passport.prototype.toObject = function(opt_includeInstance) {
|
|
1056
|
+
return proto.kycserviceapi.Passport.toObject(opt_includeInstance, this);
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
/**
|
|
1061
|
+
* Static version of the {@see toObject} method.
|
|
1062
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1063
|
+
* instance for transitional soy proto support:
|
|
1064
|
+
* http://goto/soy-param-migration
|
|
1065
|
+
* @param {!proto.kycserviceapi.Passport} msg The msg instance to transform.
|
|
1066
|
+
* @return {!Object}
|
|
1067
|
+
*/
|
|
1068
|
+
proto.kycserviceapi.Passport.toObject = function(includeInstance, msg) {
|
|
1069
|
+
var f, obj = {
|
|
1070
|
+
passportid: msg.getPassportid(),
|
|
1071
|
+
country: msg.getCountry(),
|
|
1072
|
+
passportnumber: msg.getPassportnumber()
|
|
1073
|
+
};
|
|
1074
|
+
|
|
1075
|
+
if (includeInstance) {
|
|
1076
|
+
obj.$jspbMessageInstance = msg;
|
|
1077
|
+
}
|
|
1078
|
+
return obj;
|
|
1079
|
+
};
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1085
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1086
|
+
* @return {!proto.kycserviceapi.Passport}
|
|
1087
|
+
*/
|
|
1088
|
+
proto.kycserviceapi.Passport.deserializeBinary = function(bytes) {
|
|
1089
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1090
|
+
var msg = new proto.kycserviceapi.Passport;
|
|
1091
|
+
return proto.kycserviceapi.Passport.deserializeBinaryFromReader(msg, reader);
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1097
|
+
* given reader into the given message object.
|
|
1098
|
+
* @param {!proto.kycserviceapi.Passport} msg The message object to deserialize into.
|
|
1099
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1100
|
+
* @return {!proto.kycserviceapi.Passport}
|
|
1101
|
+
*/
|
|
1102
|
+
proto.kycserviceapi.Passport.deserializeBinaryFromReader = function(msg, reader) {
|
|
1103
|
+
while (reader.nextField()) {
|
|
1104
|
+
if (reader.isEndGroup()) {
|
|
1105
|
+
break;
|
|
1106
|
+
}
|
|
1107
|
+
var field = reader.getFieldNumber();
|
|
1108
|
+
switch (field) {
|
|
1109
|
+
case 1:
|
|
1110
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
1111
|
+
msg.setPassportid(value);
|
|
1112
|
+
break;
|
|
1113
|
+
case 2:
|
|
1114
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1115
|
+
msg.setCountry(value);
|
|
1116
|
+
break;
|
|
1117
|
+
case 3:
|
|
1118
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1119
|
+
msg.setPassportnumber(value);
|
|
1120
|
+
break;
|
|
1121
|
+
default:
|
|
1122
|
+
reader.skipField();
|
|
1123
|
+
break;
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
return msg;
|
|
1127
|
+
};
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* Class method variant: serializes the given message to binary data
|
|
1132
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1133
|
+
* @param {!proto.kycserviceapi.Passport} message
|
|
1134
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1135
|
+
*/
|
|
1136
|
+
proto.kycserviceapi.Passport.serializeBinaryToWriter = function(message, writer) {
|
|
1137
|
+
message.serializeBinaryToWriter(writer);
|
|
1138
|
+
};
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1143
|
+
* @return {!Uint8Array}
|
|
1144
|
+
*/
|
|
1145
|
+
proto.kycserviceapi.Passport.prototype.serializeBinary = function() {
|
|
1146
|
+
var writer = new jspb.BinaryWriter();
|
|
1147
|
+
this.serializeBinaryToWriter(writer);
|
|
1148
|
+
return writer.getResultBuffer();
|
|
1149
|
+
};
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
1154
|
+
* writing to the given BinaryWriter.
|
|
1155
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1156
|
+
*/
|
|
1157
|
+
proto.kycserviceapi.Passport.prototype.serializeBinaryToWriter = function (writer) {
|
|
1158
|
+
var f = undefined;
|
|
1159
|
+
f = this.getPassportid();
|
|
1160
|
+
if (f !== 0) {
|
|
1161
|
+
writer.writeInt64(
|
|
1162
|
+
1,
|
|
1163
|
+
f
|
|
1164
|
+
);
|
|
1165
|
+
}
|
|
1166
|
+
f = this.getCountry();
|
|
1167
|
+
if (f.length > 0) {
|
|
1168
|
+
writer.writeString(
|
|
1169
|
+
2,
|
|
1170
|
+
f
|
|
1171
|
+
);
|
|
1172
|
+
}
|
|
1173
|
+
f = this.getPassportnumber();
|
|
1174
|
+
if (f.length > 0) {
|
|
1175
|
+
writer.writeString(
|
|
1176
|
+
3,
|
|
1177
|
+
f
|
|
1178
|
+
);
|
|
1179
|
+
}
|
|
1180
|
+
};
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
/**
|
|
1184
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1185
|
+
* @return {!proto.kycserviceapi.Passport} The clone.
|
|
1186
|
+
*/
|
|
1187
|
+
proto.kycserviceapi.Passport.prototype.cloneMessage = function() {
|
|
1188
|
+
return /** @type {!proto.kycserviceapi.Passport} */ (jspb.Message.cloneMessage(this));
|
|
1189
|
+
};
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* optional int64 passportId = 1;
|
|
1194
|
+
* @return {number}
|
|
1195
|
+
*/
|
|
1196
|
+
proto.kycserviceapi.Passport.prototype.getPassportid = function() {
|
|
1197
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
1198
|
+
};
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
/** @param {number} value */
|
|
1202
|
+
proto.kycserviceapi.Passport.prototype.setPassportid = function(value) {
|
|
1203
|
+
jspb.Message.setField(this, 1, value);
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* optional string country = 2;
|
|
1209
|
+
* @return {string}
|
|
1210
|
+
*/
|
|
1211
|
+
proto.kycserviceapi.Passport.prototype.getCountry = function() {
|
|
1212
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
|
1213
|
+
};
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
/** @param {string} value */
|
|
1217
|
+
proto.kycserviceapi.Passport.prototype.setCountry = function(value) {
|
|
1218
|
+
jspb.Message.setField(this, 2, value);
|
|
1219
|
+
};
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* optional string passportNumber = 3;
|
|
1224
|
+
* @return {string}
|
|
1225
|
+
*/
|
|
1226
|
+
proto.kycserviceapi.Passport.prototype.getPassportnumber = function() {
|
|
1227
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
|
|
1228
|
+
};
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
/** @param {string} value */
|
|
1232
|
+
proto.kycserviceapi.Passport.prototype.setPassportnumber = function(value) {
|
|
1233
|
+
jspb.Message.setField(this, 3, value);
|
|
1234
|
+
};
|
|
1235
|
+
|
|
1236
|
+
|
|
1237
|
+
|
|
184
1238
|
/**
|
|
185
1239
|
* Generated by JsPbCodeGenerator.
|
|
186
1240
|
* @param {Array=} opt_data Optional initial data array, typically from a
|