@sniipwebmaster/kyc-client-grpcweb 21.8.17 → 21.8.31
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/dependancies/service_grpc_web_pb.js +55 -0
- package/dependancies/service_pb.js +1542 -26
- package/package.json +1 -1
|
@@ -11,9 +11,15 @@ 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.DriversLicense', null, global);
|
|
19
|
+
goog.exportSymbol('proto.kycserviceapi.GetDocumentRequest', null, global);
|
|
16
20
|
goog.exportSymbol('proto.kycserviceapi.GetUserKycStatusRequest', null, global);
|
|
21
|
+
goog.exportSymbol('proto.kycserviceapi.KycPaymentMethod', null, global);
|
|
22
|
+
goog.exportSymbol('proto.kycserviceapi.Passport', null, global);
|
|
17
23
|
goog.exportSymbol('proto.kycserviceapi.RequestUserKycRequest', null, global);
|
|
18
24
|
goog.exportSymbol('proto.kycserviceapi.RequestedDocument', null, global);
|
|
19
25
|
goog.exportSymbol('proto.kycserviceapi.ResponseCode', null, global);
|
|
@@ -22,6 +28,1117 @@ goog.exportSymbol('proto.kycserviceapi.UserKycRequest', null, global);
|
|
|
22
28
|
goog.exportSymbol('proto.kycserviceapi.UserKycStatusResponse', null, global);
|
|
23
29
|
goog.exportSymbol('proto.kycserviceapi.UserStatus', null, global);
|
|
24
30
|
|
|
31
|
+
/**
|
|
32
|
+
* Generated by JsPbCodeGenerator.
|
|
33
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
34
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
35
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
36
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
37
|
+
* valid.
|
|
38
|
+
* @extends {jspb.Message}
|
|
39
|
+
* @constructor
|
|
40
|
+
*/
|
|
41
|
+
proto.kycserviceapi.Document = function(opt_data) {
|
|
42
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.kycserviceapi.Document.repeatedFields_, null);
|
|
43
|
+
};
|
|
44
|
+
goog.inherits(proto.kycserviceapi.Document, jspb.Message);
|
|
45
|
+
if (goog.DEBUG && !COMPILED) {
|
|
46
|
+
proto.kycserviceapi.Document.displayName = 'proto.kycserviceapi.Document';
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* List of repeated fields within this message type.
|
|
50
|
+
* @private {!Array<number>}
|
|
51
|
+
* @const
|
|
52
|
+
*/
|
|
53
|
+
proto.kycserviceapi.Document.repeatedFields_ = [8];
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
58
|
+
/**
|
|
59
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
60
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
61
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
62
|
+
* For the list of reserved names please see:
|
|
63
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
64
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
65
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
66
|
+
* @return {!Object}
|
|
67
|
+
*/
|
|
68
|
+
proto.kycserviceapi.Document.prototype.toObject = function(opt_includeInstance) {
|
|
69
|
+
return proto.kycserviceapi.Document.toObject(opt_includeInstance, this);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Static version of the {@see toObject} method.
|
|
75
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
76
|
+
* instance for transitional soy proto support:
|
|
77
|
+
* http://goto/soy-param-migration
|
|
78
|
+
* @param {!proto.kycserviceapi.Document} msg The msg instance to transform.
|
|
79
|
+
* @return {!Object}
|
|
80
|
+
*/
|
|
81
|
+
proto.kycserviceapi.Document.toObject = function(includeInstance, msg) {
|
|
82
|
+
var f, obj = {
|
|
83
|
+
documentid: msg.getDocumentid(),
|
|
84
|
+
type: msg.getType(),
|
|
85
|
+
status: msg.getStatus(),
|
|
86
|
+
required: msg.getRequired(),
|
|
87
|
+
passport: (f = msg.getPassport()) && proto.kycserviceapi.Passport.toObject(includeInstance, f),
|
|
88
|
+
driverslicense: (f = msg.getDriverslicense()) && proto.kycserviceapi.DriversLicense.toObject(includeInstance, f),
|
|
89
|
+
paymentmethod: (f = msg.getPaymentmethod()) && proto.kycserviceapi.KycPaymentMethod.toObject(includeInstance, f),
|
|
90
|
+
attachmentidsList: jspb.Message.getField(msg, 8)
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
if (includeInstance) {
|
|
94
|
+
obj.$jspbMessageInstance = msg;
|
|
95
|
+
}
|
|
96
|
+
return obj;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Deserializes binary data (in protobuf wire format).
|
|
103
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
104
|
+
* @return {!proto.kycserviceapi.Document}
|
|
105
|
+
*/
|
|
106
|
+
proto.kycserviceapi.Document.deserializeBinary = function(bytes) {
|
|
107
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
108
|
+
var msg = new proto.kycserviceapi.Document;
|
|
109
|
+
return proto.kycserviceapi.Document.deserializeBinaryFromReader(msg, reader);
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
115
|
+
* given reader into the given message object.
|
|
116
|
+
* @param {!proto.kycserviceapi.Document} msg The message object to deserialize into.
|
|
117
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
118
|
+
* @return {!proto.kycserviceapi.Document}
|
|
119
|
+
*/
|
|
120
|
+
proto.kycserviceapi.Document.deserializeBinaryFromReader = function(msg, reader) {
|
|
121
|
+
while (reader.nextField()) {
|
|
122
|
+
if (reader.isEndGroup()) {
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
var field = reader.getFieldNumber();
|
|
126
|
+
switch (field) {
|
|
127
|
+
case 1:
|
|
128
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
129
|
+
msg.setDocumentid(value);
|
|
130
|
+
break;
|
|
131
|
+
case 2:
|
|
132
|
+
var value = /** @type {!proto.kycserviceapi.DocumentType} */ (reader.readEnum());
|
|
133
|
+
msg.setType(value);
|
|
134
|
+
break;
|
|
135
|
+
case 3:
|
|
136
|
+
var value = /** @type {!proto.kycserviceapi.DocumentStatus} */ (reader.readEnum());
|
|
137
|
+
msg.setStatus(value);
|
|
138
|
+
break;
|
|
139
|
+
case 4:
|
|
140
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
141
|
+
msg.setRequired(value);
|
|
142
|
+
break;
|
|
143
|
+
case 5:
|
|
144
|
+
var value = new proto.kycserviceapi.Passport;
|
|
145
|
+
reader.readMessage(value,proto.kycserviceapi.Passport.deserializeBinaryFromReader);
|
|
146
|
+
msg.setPassport(value);
|
|
147
|
+
break;
|
|
148
|
+
case 6:
|
|
149
|
+
var value = new proto.kycserviceapi.DriversLicense;
|
|
150
|
+
reader.readMessage(value,proto.kycserviceapi.DriversLicense.deserializeBinaryFromReader);
|
|
151
|
+
msg.setDriverslicense(value);
|
|
152
|
+
break;
|
|
153
|
+
case 7:
|
|
154
|
+
var value = new proto.kycserviceapi.KycPaymentMethod;
|
|
155
|
+
reader.readMessage(value,proto.kycserviceapi.KycPaymentMethod.deserializeBinaryFromReader);
|
|
156
|
+
msg.setPaymentmethod(value);
|
|
157
|
+
break;
|
|
158
|
+
case 8:
|
|
159
|
+
var value = /** @type {!Array.<number>} */ (reader.readPackedInt64());
|
|
160
|
+
msg.setAttachmentidsList(value);
|
|
161
|
+
break;
|
|
162
|
+
default:
|
|
163
|
+
reader.skipField();
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return msg;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Class method variant: serializes the given message to binary data
|
|
173
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
174
|
+
* @param {!proto.kycserviceapi.Document} message
|
|
175
|
+
* @param {!jspb.BinaryWriter} writer
|
|
176
|
+
*/
|
|
177
|
+
proto.kycserviceapi.Document.serializeBinaryToWriter = function(message, writer) {
|
|
178
|
+
message.serializeBinaryToWriter(writer);
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
184
|
+
* @return {!Uint8Array}
|
|
185
|
+
*/
|
|
186
|
+
proto.kycserviceapi.Document.prototype.serializeBinary = function() {
|
|
187
|
+
var writer = new jspb.BinaryWriter();
|
|
188
|
+
this.serializeBinaryToWriter(writer);
|
|
189
|
+
return writer.getResultBuffer();
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
195
|
+
* writing to the given BinaryWriter.
|
|
196
|
+
* @param {!jspb.BinaryWriter} writer
|
|
197
|
+
*/
|
|
198
|
+
proto.kycserviceapi.Document.prototype.serializeBinaryToWriter = function (writer) {
|
|
199
|
+
var f = undefined;
|
|
200
|
+
f = this.getDocumentid();
|
|
201
|
+
if (f !== 0) {
|
|
202
|
+
writer.writeInt64(
|
|
203
|
+
1,
|
|
204
|
+
f
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
f = this.getType();
|
|
208
|
+
if (f !== 0.0) {
|
|
209
|
+
writer.writeEnum(
|
|
210
|
+
2,
|
|
211
|
+
f
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
f = this.getStatus();
|
|
215
|
+
if (f !== 0.0) {
|
|
216
|
+
writer.writeEnum(
|
|
217
|
+
3,
|
|
218
|
+
f
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
f = this.getRequired();
|
|
222
|
+
if (f) {
|
|
223
|
+
writer.writeBool(
|
|
224
|
+
4,
|
|
225
|
+
f
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
f = this.getPassport();
|
|
229
|
+
if (f != null) {
|
|
230
|
+
writer.writeMessage(
|
|
231
|
+
5,
|
|
232
|
+
f,
|
|
233
|
+
proto.kycserviceapi.Passport.serializeBinaryToWriter
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
f = this.getDriverslicense();
|
|
237
|
+
if (f != null) {
|
|
238
|
+
writer.writeMessage(
|
|
239
|
+
6,
|
|
240
|
+
f,
|
|
241
|
+
proto.kycserviceapi.DriversLicense.serializeBinaryToWriter
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
f = this.getPaymentmethod();
|
|
245
|
+
if (f != null) {
|
|
246
|
+
writer.writeMessage(
|
|
247
|
+
7,
|
|
248
|
+
f,
|
|
249
|
+
proto.kycserviceapi.KycPaymentMethod.serializeBinaryToWriter
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
f = this.getAttachmentidsList();
|
|
253
|
+
if (f.length > 0) {
|
|
254
|
+
writer.writePackedInt64(
|
|
255
|
+
8,
|
|
256
|
+
f
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
264
|
+
* @return {!proto.kycserviceapi.Document} The clone.
|
|
265
|
+
*/
|
|
266
|
+
proto.kycserviceapi.Document.prototype.cloneMessage = function() {
|
|
267
|
+
return /** @type {!proto.kycserviceapi.Document} */ (jspb.Message.cloneMessage(this));
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* optional int64 documentId = 1;
|
|
273
|
+
* @return {number}
|
|
274
|
+
*/
|
|
275
|
+
proto.kycserviceapi.Document.prototype.getDocumentid = function() {
|
|
276
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
/** @param {number} value */
|
|
281
|
+
proto.kycserviceapi.Document.prototype.setDocumentid = function(value) {
|
|
282
|
+
jspb.Message.setField(this, 1, value);
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* optional DocumentType type = 2;
|
|
288
|
+
* @return {!proto.kycserviceapi.DocumentType}
|
|
289
|
+
*/
|
|
290
|
+
proto.kycserviceapi.Document.prototype.getType = function() {
|
|
291
|
+
return /** @type {!proto.kycserviceapi.DocumentType} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
/** @param {!proto.kycserviceapi.DocumentType} value */
|
|
296
|
+
proto.kycserviceapi.Document.prototype.setType = function(value) {
|
|
297
|
+
jspb.Message.setField(this, 2, value);
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* optional DocumentStatus status = 3;
|
|
303
|
+
* @return {!proto.kycserviceapi.DocumentStatus}
|
|
304
|
+
*/
|
|
305
|
+
proto.kycserviceapi.Document.prototype.getStatus = function() {
|
|
306
|
+
return /** @type {!proto.kycserviceapi.DocumentStatus} */ (jspb.Message.getFieldProto3(this, 3, 0));
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
/** @param {!proto.kycserviceapi.DocumentStatus} value */
|
|
311
|
+
proto.kycserviceapi.Document.prototype.setStatus = function(value) {
|
|
312
|
+
jspb.Message.setField(this, 3, value);
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* optional bool required = 4;
|
|
318
|
+
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
|
319
|
+
* You should avoid comparisons like {@code val === true/false} in those cases.
|
|
320
|
+
* @return {boolean}
|
|
321
|
+
*/
|
|
322
|
+
proto.kycserviceapi.Document.prototype.getRequired = function() {
|
|
323
|
+
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 4, false));
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
/** @param {boolean} value */
|
|
328
|
+
proto.kycserviceapi.Document.prototype.setRequired = function(value) {
|
|
329
|
+
jspb.Message.setField(this, 4, value);
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* optional Passport passport = 5;
|
|
335
|
+
* @return {proto.kycserviceapi.Passport}
|
|
336
|
+
*/
|
|
337
|
+
proto.kycserviceapi.Document.prototype.getPassport = function() {
|
|
338
|
+
return /** @type{proto.kycserviceapi.Passport} */ (
|
|
339
|
+
jspb.Message.getWrapperField(this, proto.kycserviceapi.Passport, 5));
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
/** @param {proto.kycserviceapi.Passport|undefined} value */
|
|
344
|
+
proto.kycserviceapi.Document.prototype.setPassport = function(value) {
|
|
345
|
+
jspb.Message.setWrapperField(this, 5, value);
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
proto.kycserviceapi.Document.prototype.clearPassport = function() {
|
|
350
|
+
this.setPassport(undefined);
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Returns whether this field is set.
|
|
356
|
+
* @return{!boolean}
|
|
357
|
+
*/
|
|
358
|
+
proto.kycserviceapi.Document.prototype.hasPassport = function() {
|
|
359
|
+
return jspb.Message.getField(this, 5) != null;
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* optional DriversLicense driversLicense = 6;
|
|
365
|
+
* @return {proto.kycserviceapi.DriversLicense}
|
|
366
|
+
*/
|
|
367
|
+
proto.kycserviceapi.Document.prototype.getDriverslicense = function() {
|
|
368
|
+
return /** @type{proto.kycserviceapi.DriversLicense} */ (
|
|
369
|
+
jspb.Message.getWrapperField(this, proto.kycserviceapi.DriversLicense, 6));
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
/** @param {proto.kycserviceapi.DriversLicense|undefined} value */
|
|
374
|
+
proto.kycserviceapi.Document.prototype.setDriverslicense = function(value) {
|
|
375
|
+
jspb.Message.setWrapperField(this, 6, value);
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
proto.kycserviceapi.Document.prototype.clearDriverslicense = function() {
|
|
380
|
+
this.setDriverslicense(undefined);
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Returns whether this field is set.
|
|
386
|
+
* @return{!boolean}
|
|
387
|
+
*/
|
|
388
|
+
proto.kycserviceapi.Document.prototype.hasDriverslicense = function() {
|
|
389
|
+
return jspb.Message.getField(this, 6) != null;
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* optional KycPaymentMethod paymentMethod = 7;
|
|
395
|
+
* @return {proto.kycserviceapi.KycPaymentMethod}
|
|
396
|
+
*/
|
|
397
|
+
proto.kycserviceapi.Document.prototype.getPaymentmethod = function() {
|
|
398
|
+
return /** @type{proto.kycserviceapi.KycPaymentMethod} */ (
|
|
399
|
+
jspb.Message.getWrapperField(this, proto.kycserviceapi.KycPaymentMethod, 7));
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
/** @param {proto.kycserviceapi.KycPaymentMethod|undefined} value */
|
|
404
|
+
proto.kycserviceapi.Document.prototype.setPaymentmethod = function(value) {
|
|
405
|
+
jspb.Message.setWrapperField(this, 7, value);
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
proto.kycserviceapi.Document.prototype.clearPaymentmethod = function() {
|
|
410
|
+
this.setPaymentmethod(undefined);
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Returns whether this field is set.
|
|
416
|
+
* @return{!boolean}
|
|
417
|
+
*/
|
|
418
|
+
proto.kycserviceapi.Document.prototype.hasPaymentmethod = function() {
|
|
419
|
+
return jspb.Message.getField(this, 7) != null;
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* repeated int64 attachmentIds = 8;
|
|
425
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
426
|
+
* replace the array itself, then you must call the setter to update it.
|
|
427
|
+
* @return {!Array.<number>}
|
|
428
|
+
*/
|
|
429
|
+
proto.kycserviceapi.Document.prototype.getAttachmentidsList = function() {
|
|
430
|
+
return /** @type {!Array.<number>} */ (jspb.Message.getField(this, 8));
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
/** @param {Array.<number>} value */
|
|
435
|
+
proto.kycserviceapi.Document.prototype.setAttachmentidsList = function(value) {
|
|
436
|
+
jspb.Message.setField(this, 8, value || []);
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
proto.kycserviceapi.Document.prototype.clearAttachmentidsList = function() {
|
|
441
|
+
jspb.Message.setField(this, 8, []);
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Generated by JsPbCodeGenerator.
|
|
448
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
449
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
450
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
451
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
452
|
+
* valid.
|
|
453
|
+
* @extends {jspb.Message}
|
|
454
|
+
* @constructor
|
|
455
|
+
*/
|
|
456
|
+
proto.kycserviceapi.DocumentResponse = function(opt_data) {
|
|
457
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.kycserviceapi.DocumentResponse.repeatedFields_, null);
|
|
458
|
+
};
|
|
459
|
+
goog.inherits(proto.kycserviceapi.DocumentResponse, jspb.Message);
|
|
460
|
+
if (goog.DEBUG && !COMPILED) {
|
|
461
|
+
proto.kycserviceapi.DocumentResponse.displayName = 'proto.kycserviceapi.DocumentResponse';
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* List of repeated fields within this message type.
|
|
465
|
+
* @private {!Array<number>}
|
|
466
|
+
* @const
|
|
467
|
+
*/
|
|
468
|
+
proto.kycserviceapi.DocumentResponse.repeatedFields_ = [3,4];
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
473
|
+
/**
|
|
474
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
475
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
476
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
477
|
+
* For the list of reserved names please see:
|
|
478
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
479
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
480
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
481
|
+
* @return {!Object}
|
|
482
|
+
*/
|
|
483
|
+
proto.kycserviceapi.DocumentResponse.prototype.toObject = function(opt_includeInstance) {
|
|
484
|
+
return proto.kycserviceapi.DocumentResponse.toObject(opt_includeInstance, this);
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Static version of the {@see toObject} method.
|
|
490
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
491
|
+
* instance for transitional soy proto support:
|
|
492
|
+
* http://goto/soy-param-migration
|
|
493
|
+
* @param {!proto.kycserviceapi.DocumentResponse} msg The msg instance to transform.
|
|
494
|
+
* @return {!Object}
|
|
495
|
+
*/
|
|
496
|
+
proto.kycserviceapi.DocumentResponse.toObject = function(includeInstance, msg) {
|
|
497
|
+
var f, obj = {
|
|
498
|
+
responsecode: (f = msg.getResponsecode()) && proto.kycserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
499
|
+
document: (f = msg.getDocument()) && proto.kycserviceapi.Document.toObject(includeInstance, f),
|
|
500
|
+
countriesList: jspb.Message.getField(msg, 3),
|
|
501
|
+
statesList: jspb.Message.getField(msg, 4)
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
if (includeInstance) {
|
|
505
|
+
obj.$jspbMessageInstance = msg;
|
|
506
|
+
}
|
|
507
|
+
return obj;
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Deserializes binary data (in protobuf wire format).
|
|
514
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
515
|
+
* @return {!proto.kycserviceapi.DocumentResponse}
|
|
516
|
+
*/
|
|
517
|
+
proto.kycserviceapi.DocumentResponse.deserializeBinary = function(bytes) {
|
|
518
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
519
|
+
var msg = new proto.kycserviceapi.DocumentResponse;
|
|
520
|
+
return proto.kycserviceapi.DocumentResponse.deserializeBinaryFromReader(msg, reader);
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
526
|
+
* given reader into the given message object.
|
|
527
|
+
* @param {!proto.kycserviceapi.DocumentResponse} msg The message object to deserialize into.
|
|
528
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
529
|
+
* @return {!proto.kycserviceapi.DocumentResponse}
|
|
530
|
+
*/
|
|
531
|
+
proto.kycserviceapi.DocumentResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
532
|
+
while (reader.nextField()) {
|
|
533
|
+
if (reader.isEndGroup()) {
|
|
534
|
+
break;
|
|
535
|
+
}
|
|
536
|
+
var field = reader.getFieldNumber();
|
|
537
|
+
switch (field) {
|
|
538
|
+
case 1:
|
|
539
|
+
var value = new proto.kycserviceapi.ResponseCode;
|
|
540
|
+
reader.readMessage(value,proto.kycserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
541
|
+
msg.setResponsecode(value);
|
|
542
|
+
break;
|
|
543
|
+
case 2:
|
|
544
|
+
var value = new proto.kycserviceapi.Document;
|
|
545
|
+
reader.readMessage(value,proto.kycserviceapi.Document.deserializeBinaryFromReader);
|
|
546
|
+
msg.setDocument(value);
|
|
547
|
+
break;
|
|
548
|
+
case 3:
|
|
549
|
+
var value = /** @type {string} */ (reader.readString());
|
|
550
|
+
msg.getCountriesList().push(value);
|
|
551
|
+
msg.setCountriesList(msg.getCountriesList());
|
|
552
|
+
break;
|
|
553
|
+
case 4:
|
|
554
|
+
var value = /** @type {string} */ (reader.readString());
|
|
555
|
+
msg.getStatesList().push(value);
|
|
556
|
+
msg.setStatesList(msg.getStatesList());
|
|
557
|
+
break;
|
|
558
|
+
default:
|
|
559
|
+
reader.skipField();
|
|
560
|
+
break;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
return msg;
|
|
564
|
+
};
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Class method variant: serializes the given message to binary data
|
|
569
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
570
|
+
* @param {!proto.kycserviceapi.DocumentResponse} message
|
|
571
|
+
* @param {!jspb.BinaryWriter} writer
|
|
572
|
+
*/
|
|
573
|
+
proto.kycserviceapi.DocumentResponse.serializeBinaryToWriter = function(message, writer) {
|
|
574
|
+
message.serializeBinaryToWriter(writer);
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
580
|
+
* @return {!Uint8Array}
|
|
581
|
+
*/
|
|
582
|
+
proto.kycserviceapi.DocumentResponse.prototype.serializeBinary = function() {
|
|
583
|
+
var writer = new jspb.BinaryWriter();
|
|
584
|
+
this.serializeBinaryToWriter(writer);
|
|
585
|
+
return writer.getResultBuffer();
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
591
|
+
* writing to the given BinaryWriter.
|
|
592
|
+
* @param {!jspb.BinaryWriter} writer
|
|
593
|
+
*/
|
|
594
|
+
proto.kycserviceapi.DocumentResponse.prototype.serializeBinaryToWriter = function (writer) {
|
|
595
|
+
var f = undefined;
|
|
596
|
+
f = this.getResponsecode();
|
|
597
|
+
if (f != null) {
|
|
598
|
+
writer.writeMessage(
|
|
599
|
+
1,
|
|
600
|
+
f,
|
|
601
|
+
proto.kycserviceapi.ResponseCode.serializeBinaryToWriter
|
|
602
|
+
);
|
|
603
|
+
}
|
|
604
|
+
f = this.getDocument();
|
|
605
|
+
if (f != null) {
|
|
606
|
+
writer.writeMessage(
|
|
607
|
+
2,
|
|
608
|
+
f,
|
|
609
|
+
proto.kycserviceapi.Document.serializeBinaryToWriter
|
|
610
|
+
);
|
|
611
|
+
}
|
|
612
|
+
f = this.getCountriesList();
|
|
613
|
+
if (f.length > 0) {
|
|
614
|
+
writer.writeRepeatedString(
|
|
615
|
+
3,
|
|
616
|
+
f
|
|
617
|
+
);
|
|
618
|
+
}
|
|
619
|
+
f = this.getStatesList();
|
|
620
|
+
if (f.length > 0) {
|
|
621
|
+
writer.writeRepeatedString(
|
|
622
|
+
4,
|
|
623
|
+
f
|
|
624
|
+
);
|
|
625
|
+
}
|
|
626
|
+
};
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
631
|
+
* @return {!proto.kycserviceapi.DocumentResponse} The clone.
|
|
632
|
+
*/
|
|
633
|
+
proto.kycserviceapi.DocumentResponse.prototype.cloneMessage = function() {
|
|
634
|
+
return /** @type {!proto.kycserviceapi.DocumentResponse} */ (jspb.Message.cloneMessage(this));
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* optional ResponseCode responseCode = 1;
|
|
640
|
+
* @return {proto.kycserviceapi.ResponseCode}
|
|
641
|
+
*/
|
|
642
|
+
proto.kycserviceapi.DocumentResponse.prototype.getResponsecode = function() {
|
|
643
|
+
return /** @type{proto.kycserviceapi.ResponseCode} */ (
|
|
644
|
+
jspb.Message.getWrapperField(this, proto.kycserviceapi.ResponseCode, 1));
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
/** @param {proto.kycserviceapi.ResponseCode|undefined} value */
|
|
649
|
+
proto.kycserviceapi.DocumentResponse.prototype.setResponsecode = function(value) {
|
|
650
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
651
|
+
};
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
proto.kycserviceapi.DocumentResponse.prototype.clearResponsecode = function() {
|
|
655
|
+
this.setResponsecode(undefined);
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Returns whether this field is set.
|
|
661
|
+
* @return{!boolean}
|
|
662
|
+
*/
|
|
663
|
+
proto.kycserviceapi.DocumentResponse.prototype.hasResponsecode = function() {
|
|
664
|
+
return jspb.Message.getField(this, 1) != null;
|
|
665
|
+
};
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* optional Document document = 2;
|
|
670
|
+
* @return {proto.kycserviceapi.Document}
|
|
671
|
+
*/
|
|
672
|
+
proto.kycserviceapi.DocumentResponse.prototype.getDocument = function() {
|
|
673
|
+
return /** @type{proto.kycserviceapi.Document} */ (
|
|
674
|
+
jspb.Message.getWrapperField(this, proto.kycserviceapi.Document, 2));
|
|
675
|
+
};
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
/** @param {proto.kycserviceapi.Document|undefined} value */
|
|
679
|
+
proto.kycserviceapi.DocumentResponse.prototype.setDocument = function(value) {
|
|
680
|
+
jspb.Message.setWrapperField(this, 2, value);
|
|
681
|
+
};
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
proto.kycserviceapi.DocumentResponse.prototype.clearDocument = function() {
|
|
685
|
+
this.setDocument(undefined);
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* Returns whether this field is set.
|
|
691
|
+
* @return{!boolean}
|
|
692
|
+
*/
|
|
693
|
+
proto.kycserviceapi.DocumentResponse.prototype.hasDocument = function() {
|
|
694
|
+
return jspb.Message.getField(this, 2) != null;
|
|
695
|
+
};
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* repeated string countries = 3;
|
|
700
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
701
|
+
* replace the array itself, then you must call the setter to update it.
|
|
702
|
+
* @return {!Array.<string>}
|
|
703
|
+
*/
|
|
704
|
+
proto.kycserviceapi.DocumentResponse.prototype.getCountriesList = function() {
|
|
705
|
+
return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 3));
|
|
706
|
+
};
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
/** @param {Array.<string>} value */
|
|
710
|
+
proto.kycserviceapi.DocumentResponse.prototype.setCountriesList = function(value) {
|
|
711
|
+
jspb.Message.setField(this, 3, value || []);
|
|
712
|
+
};
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
proto.kycserviceapi.DocumentResponse.prototype.clearCountriesList = function() {
|
|
716
|
+
jspb.Message.setField(this, 3, []);
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* repeated string states = 4;
|
|
722
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
723
|
+
* replace the array itself, then you must call the setter to update it.
|
|
724
|
+
* @return {!Array.<string>}
|
|
725
|
+
*/
|
|
726
|
+
proto.kycserviceapi.DocumentResponse.prototype.getStatesList = function() {
|
|
727
|
+
return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 4));
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
/** @param {Array.<string>} value */
|
|
732
|
+
proto.kycserviceapi.DocumentResponse.prototype.setStatesList = function(value) {
|
|
733
|
+
jspb.Message.setField(this, 4, value || []);
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
proto.kycserviceapi.DocumentResponse.prototype.clearStatesList = function() {
|
|
738
|
+
jspb.Message.setField(this, 4, []);
|
|
739
|
+
};
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* Generated by JsPbCodeGenerator.
|
|
745
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
746
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
747
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
748
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
749
|
+
* valid.
|
|
750
|
+
* @extends {jspb.Message}
|
|
751
|
+
* @constructor
|
|
752
|
+
*/
|
|
753
|
+
proto.kycserviceapi.DriversLicense = function(opt_data) {
|
|
754
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
755
|
+
};
|
|
756
|
+
goog.inherits(proto.kycserviceapi.DriversLicense, jspb.Message);
|
|
757
|
+
if (goog.DEBUG && !COMPILED) {
|
|
758
|
+
proto.kycserviceapi.DriversLicense.displayName = 'proto.kycserviceapi.DriversLicense';
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
763
|
+
/**
|
|
764
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
765
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
766
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
767
|
+
* For the list of reserved names please see:
|
|
768
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
769
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
770
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
771
|
+
* @return {!Object}
|
|
772
|
+
*/
|
|
773
|
+
proto.kycserviceapi.DriversLicense.prototype.toObject = function(opt_includeInstance) {
|
|
774
|
+
return proto.kycserviceapi.DriversLicense.toObject(opt_includeInstance, this);
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Static version of the {@see toObject} method.
|
|
780
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
781
|
+
* instance for transitional soy proto support:
|
|
782
|
+
* http://goto/soy-param-migration
|
|
783
|
+
* @param {!proto.kycserviceapi.DriversLicense} msg The msg instance to transform.
|
|
784
|
+
* @return {!Object}
|
|
785
|
+
*/
|
|
786
|
+
proto.kycserviceapi.DriversLicense.toObject = function(includeInstance, msg) {
|
|
787
|
+
var f, obj = {
|
|
788
|
+
driverslicenseid: msg.getDriverslicenseid(),
|
|
789
|
+
country: msg.getCountry(),
|
|
790
|
+
state: msg.getState(),
|
|
791
|
+
licensenumber: msg.getLicensenumber()
|
|
792
|
+
};
|
|
793
|
+
|
|
794
|
+
if (includeInstance) {
|
|
795
|
+
obj.$jspbMessageInstance = msg;
|
|
796
|
+
}
|
|
797
|
+
return obj;
|
|
798
|
+
};
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* Deserializes binary data (in protobuf wire format).
|
|
804
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
805
|
+
* @return {!proto.kycserviceapi.DriversLicense}
|
|
806
|
+
*/
|
|
807
|
+
proto.kycserviceapi.DriversLicense.deserializeBinary = function(bytes) {
|
|
808
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
809
|
+
var msg = new proto.kycserviceapi.DriversLicense;
|
|
810
|
+
return proto.kycserviceapi.DriversLicense.deserializeBinaryFromReader(msg, reader);
|
|
811
|
+
};
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
816
|
+
* given reader into the given message object.
|
|
817
|
+
* @param {!proto.kycserviceapi.DriversLicense} msg The message object to deserialize into.
|
|
818
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
819
|
+
* @return {!proto.kycserviceapi.DriversLicense}
|
|
820
|
+
*/
|
|
821
|
+
proto.kycserviceapi.DriversLicense.deserializeBinaryFromReader = function(msg, reader) {
|
|
822
|
+
while (reader.nextField()) {
|
|
823
|
+
if (reader.isEndGroup()) {
|
|
824
|
+
break;
|
|
825
|
+
}
|
|
826
|
+
var field = reader.getFieldNumber();
|
|
827
|
+
switch (field) {
|
|
828
|
+
case 1:
|
|
829
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
830
|
+
msg.setDriverslicenseid(value);
|
|
831
|
+
break;
|
|
832
|
+
case 2:
|
|
833
|
+
var value = /** @type {string} */ (reader.readString());
|
|
834
|
+
msg.setCountry(value);
|
|
835
|
+
break;
|
|
836
|
+
case 3:
|
|
837
|
+
var value = /** @type {string} */ (reader.readString());
|
|
838
|
+
msg.setState(value);
|
|
839
|
+
break;
|
|
840
|
+
case 4:
|
|
841
|
+
var value = /** @type {string} */ (reader.readString());
|
|
842
|
+
msg.setLicensenumber(value);
|
|
843
|
+
break;
|
|
844
|
+
default:
|
|
845
|
+
reader.skipField();
|
|
846
|
+
break;
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
return msg;
|
|
850
|
+
};
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* Class method variant: serializes the given message to binary data
|
|
855
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
856
|
+
* @param {!proto.kycserviceapi.DriversLicense} message
|
|
857
|
+
* @param {!jspb.BinaryWriter} writer
|
|
858
|
+
*/
|
|
859
|
+
proto.kycserviceapi.DriversLicense.serializeBinaryToWriter = function(message, writer) {
|
|
860
|
+
message.serializeBinaryToWriter(writer);
|
|
861
|
+
};
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
866
|
+
* @return {!Uint8Array}
|
|
867
|
+
*/
|
|
868
|
+
proto.kycserviceapi.DriversLicense.prototype.serializeBinary = function() {
|
|
869
|
+
var writer = new jspb.BinaryWriter();
|
|
870
|
+
this.serializeBinaryToWriter(writer);
|
|
871
|
+
return writer.getResultBuffer();
|
|
872
|
+
};
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
877
|
+
* writing to the given BinaryWriter.
|
|
878
|
+
* @param {!jspb.BinaryWriter} writer
|
|
879
|
+
*/
|
|
880
|
+
proto.kycserviceapi.DriversLicense.prototype.serializeBinaryToWriter = function (writer) {
|
|
881
|
+
var f = undefined;
|
|
882
|
+
f = this.getDriverslicenseid();
|
|
883
|
+
if (f !== 0) {
|
|
884
|
+
writer.writeInt64(
|
|
885
|
+
1,
|
|
886
|
+
f
|
|
887
|
+
);
|
|
888
|
+
}
|
|
889
|
+
f = this.getCountry();
|
|
890
|
+
if (f.length > 0) {
|
|
891
|
+
writer.writeString(
|
|
892
|
+
2,
|
|
893
|
+
f
|
|
894
|
+
);
|
|
895
|
+
}
|
|
896
|
+
f = this.getState();
|
|
897
|
+
if (f.length > 0) {
|
|
898
|
+
writer.writeString(
|
|
899
|
+
3,
|
|
900
|
+
f
|
|
901
|
+
);
|
|
902
|
+
}
|
|
903
|
+
f = this.getLicensenumber();
|
|
904
|
+
if (f.length > 0) {
|
|
905
|
+
writer.writeString(
|
|
906
|
+
4,
|
|
907
|
+
f
|
|
908
|
+
);
|
|
909
|
+
}
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
915
|
+
* @return {!proto.kycserviceapi.DriversLicense} The clone.
|
|
916
|
+
*/
|
|
917
|
+
proto.kycserviceapi.DriversLicense.prototype.cloneMessage = function() {
|
|
918
|
+
return /** @type {!proto.kycserviceapi.DriversLicense} */ (jspb.Message.cloneMessage(this));
|
|
919
|
+
};
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* optional int64 driversLicenseId = 1;
|
|
924
|
+
* @return {number}
|
|
925
|
+
*/
|
|
926
|
+
proto.kycserviceapi.DriversLicense.prototype.getDriverslicenseid = function() {
|
|
927
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
928
|
+
};
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
/** @param {number} value */
|
|
932
|
+
proto.kycserviceapi.DriversLicense.prototype.setDriverslicenseid = function(value) {
|
|
933
|
+
jspb.Message.setField(this, 1, value);
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* optional string country = 2;
|
|
939
|
+
* @return {string}
|
|
940
|
+
*/
|
|
941
|
+
proto.kycserviceapi.DriversLicense.prototype.getCountry = function() {
|
|
942
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
/** @param {string} value */
|
|
947
|
+
proto.kycserviceapi.DriversLicense.prototype.setCountry = function(value) {
|
|
948
|
+
jspb.Message.setField(this, 2, value);
|
|
949
|
+
};
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* optional string state = 3;
|
|
954
|
+
* @return {string}
|
|
955
|
+
*/
|
|
956
|
+
proto.kycserviceapi.DriversLicense.prototype.getState = function() {
|
|
957
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
|
|
958
|
+
};
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
/** @param {string} value */
|
|
962
|
+
proto.kycserviceapi.DriversLicense.prototype.setState = function(value) {
|
|
963
|
+
jspb.Message.setField(this, 3, value);
|
|
964
|
+
};
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* optional string licenseNumber = 4;
|
|
969
|
+
* @return {string}
|
|
970
|
+
*/
|
|
971
|
+
proto.kycserviceapi.DriversLicense.prototype.getLicensenumber = function() {
|
|
972
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
|
|
973
|
+
};
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
/** @param {string} value */
|
|
977
|
+
proto.kycserviceapi.DriversLicense.prototype.setLicensenumber = function(value) {
|
|
978
|
+
jspb.Message.setField(this, 4, value);
|
|
979
|
+
};
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
* Generated by JsPbCodeGenerator.
|
|
985
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
986
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
987
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
988
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
989
|
+
* valid.
|
|
990
|
+
* @extends {jspb.Message}
|
|
991
|
+
* @constructor
|
|
992
|
+
*/
|
|
993
|
+
proto.kycserviceapi.GetDocumentRequest = function(opt_data) {
|
|
994
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
995
|
+
};
|
|
996
|
+
goog.inherits(proto.kycserviceapi.GetDocumentRequest, jspb.Message);
|
|
997
|
+
if (goog.DEBUG && !COMPILED) {
|
|
998
|
+
proto.kycserviceapi.GetDocumentRequest.displayName = 'proto.kycserviceapi.GetDocumentRequest';
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1003
|
+
/**
|
|
1004
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1005
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1006
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1007
|
+
* For the list of reserved names please see:
|
|
1008
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1009
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1010
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1011
|
+
* @return {!Object}
|
|
1012
|
+
*/
|
|
1013
|
+
proto.kycserviceapi.GetDocumentRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1014
|
+
return proto.kycserviceapi.GetDocumentRequest.toObject(opt_includeInstance, this);
|
|
1015
|
+
};
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* Static version of the {@see toObject} method.
|
|
1020
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1021
|
+
* instance for transitional soy proto support:
|
|
1022
|
+
* http://goto/soy-param-migration
|
|
1023
|
+
* @param {!proto.kycserviceapi.GetDocumentRequest} msg The msg instance to transform.
|
|
1024
|
+
* @return {!Object}
|
|
1025
|
+
*/
|
|
1026
|
+
proto.kycserviceapi.GetDocumentRequest.toObject = function(includeInstance, msg) {
|
|
1027
|
+
var f, obj = {
|
|
1028
|
+
documentid: msg.getDocumentid()
|
|
1029
|
+
};
|
|
1030
|
+
|
|
1031
|
+
if (includeInstance) {
|
|
1032
|
+
obj.$jspbMessageInstance = msg;
|
|
1033
|
+
}
|
|
1034
|
+
return obj;
|
|
1035
|
+
};
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1041
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1042
|
+
* @return {!proto.kycserviceapi.GetDocumentRequest}
|
|
1043
|
+
*/
|
|
1044
|
+
proto.kycserviceapi.GetDocumentRequest.deserializeBinary = function(bytes) {
|
|
1045
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1046
|
+
var msg = new proto.kycserviceapi.GetDocumentRequest;
|
|
1047
|
+
return proto.kycserviceapi.GetDocumentRequest.deserializeBinaryFromReader(msg, reader);
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1053
|
+
* given reader into the given message object.
|
|
1054
|
+
* @param {!proto.kycserviceapi.GetDocumentRequest} msg The message object to deserialize into.
|
|
1055
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1056
|
+
* @return {!proto.kycserviceapi.GetDocumentRequest}
|
|
1057
|
+
*/
|
|
1058
|
+
proto.kycserviceapi.GetDocumentRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1059
|
+
while (reader.nextField()) {
|
|
1060
|
+
if (reader.isEndGroup()) {
|
|
1061
|
+
break;
|
|
1062
|
+
}
|
|
1063
|
+
var field = reader.getFieldNumber();
|
|
1064
|
+
switch (field) {
|
|
1065
|
+
case 1:
|
|
1066
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
1067
|
+
msg.setDocumentid(value);
|
|
1068
|
+
break;
|
|
1069
|
+
default:
|
|
1070
|
+
reader.skipField();
|
|
1071
|
+
break;
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
return msg;
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* Class method variant: serializes the given message to binary data
|
|
1080
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1081
|
+
* @param {!proto.kycserviceapi.GetDocumentRequest} message
|
|
1082
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1083
|
+
*/
|
|
1084
|
+
proto.kycserviceapi.GetDocumentRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1085
|
+
message.serializeBinaryToWriter(writer);
|
|
1086
|
+
};
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1091
|
+
* @return {!Uint8Array}
|
|
1092
|
+
*/
|
|
1093
|
+
proto.kycserviceapi.GetDocumentRequest.prototype.serializeBinary = function() {
|
|
1094
|
+
var writer = new jspb.BinaryWriter();
|
|
1095
|
+
this.serializeBinaryToWriter(writer);
|
|
1096
|
+
return writer.getResultBuffer();
|
|
1097
|
+
};
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
1102
|
+
* writing to the given BinaryWriter.
|
|
1103
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1104
|
+
*/
|
|
1105
|
+
proto.kycserviceapi.GetDocumentRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
1106
|
+
var f = undefined;
|
|
1107
|
+
f = this.getDocumentid();
|
|
1108
|
+
if (f !== 0) {
|
|
1109
|
+
writer.writeInt64(
|
|
1110
|
+
1,
|
|
1111
|
+
f
|
|
1112
|
+
);
|
|
1113
|
+
}
|
|
1114
|
+
};
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1119
|
+
* @return {!proto.kycserviceapi.GetDocumentRequest} The clone.
|
|
1120
|
+
*/
|
|
1121
|
+
proto.kycserviceapi.GetDocumentRequest.prototype.cloneMessage = function() {
|
|
1122
|
+
return /** @type {!proto.kycserviceapi.GetDocumentRequest} */ (jspb.Message.cloneMessage(this));
|
|
1123
|
+
};
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* optional int64 documentId = 1;
|
|
1128
|
+
* @return {number}
|
|
1129
|
+
*/
|
|
1130
|
+
proto.kycserviceapi.GetDocumentRequest.prototype.getDocumentid = function() {
|
|
1131
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
1132
|
+
};
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
/** @param {number} value */
|
|
1136
|
+
proto.kycserviceapi.GetDocumentRequest.prototype.setDocumentid = function(value) {
|
|
1137
|
+
jspb.Message.setField(this, 1, value);
|
|
1138
|
+
};
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
|
|
25
1142
|
/**
|
|
26
1143
|
* Generated by JsPbCodeGenerator.
|
|
27
1144
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -35,9 +1152,168 @@ goog.exportSymbol('proto.kycserviceapi.UserStatus', null, global);
|
|
|
35
1152
|
proto.kycserviceapi.GetUserKycStatusRequest = function(opt_data) {
|
|
36
1153
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
37
1154
|
};
|
|
38
|
-
goog.inherits(proto.kycserviceapi.GetUserKycStatusRequest, jspb.Message);
|
|
1155
|
+
goog.inherits(proto.kycserviceapi.GetUserKycStatusRequest, jspb.Message);
|
|
1156
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1157
|
+
proto.kycserviceapi.GetUserKycStatusRequest.displayName = 'proto.kycserviceapi.GetUserKycStatusRequest';
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1162
|
+
/**
|
|
1163
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1164
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1165
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1166
|
+
* For the list of reserved names please see:
|
|
1167
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1168
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1169
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1170
|
+
* @return {!Object}
|
|
1171
|
+
*/
|
|
1172
|
+
proto.kycserviceapi.GetUserKycStatusRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1173
|
+
return proto.kycserviceapi.GetUserKycStatusRequest.toObject(opt_includeInstance, this);
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* Static version of the {@see toObject} method.
|
|
1179
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1180
|
+
* instance for transitional soy proto support:
|
|
1181
|
+
* http://goto/soy-param-migration
|
|
1182
|
+
* @param {!proto.kycserviceapi.GetUserKycStatusRequest} msg The msg instance to transform.
|
|
1183
|
+
* @return {!Object}
|
|
1184
|
+
*/
|
|
1185
|
+
proto.kycserviceapi.GetUserKycStatusRequest.toObject = function(includeInstance, msg) {
|
|
1186
|
+
var f, obj = {
|
|
1187
|
+
userid: msg.getUserid()
|
|
1188
|
+
};
|
|
1189
|
+
|
|
1190
|
+
if (includeInstance) {
|
|
1191
|
+
obj.$jspbMessageInstance = msg;
|
|
1192
|
+
}
|
|
1193
|
+
return obj;
|
|
1194
|
+
};
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1200
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1201
|
+
* @return {!proto.kycserviceapi.GetUserKycStatusRequest}
|
|
1202
|
+
*/
|
|
1203
|
+
proto.kycserviceapi.GetUserKycStatusRequest.deserializeBinary = function(bytes) {
|
|
1204
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1205
|
+
var msg = new proto.kycserviceapi.GetUserKycStatusRequest;
|
|
1206
|
+
return proto.kycserviceapi.GetUserKycStatusRequest.deserializeBinaryFromReader(msg, reader);
|
|
1207
|
+
};
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1212
|
+
* given reader into the given message object.
|
|
1213
|
+
* @param {!proto.kycserviceapi.GetUserKycStatusRequest} msg The message object to deserialize into.
|
|
1214
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1215
|
+
* @return {!proto.kycserviceapi.GetUserKycStatusRequest}
|
|
1216
|
+
*/
|
|
1217
|
+
proto.kycserviceapi.GetUserKycStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1218
|
+
while (reader.nextField()) {
|
|
1219
|
+
if (reader.isEndGroup()) {
|
|
1220
|
+
break;
|
|
1221
|
+
}
|
|
1222
|
+
var field = reader.getFieldNumber();
|
|
1223
|
+
switch (field) {
|
|
1224
|
+
case 1:
|
|
1225
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
1226
|
+
msg.setUserid(value);
|
|
1227
|
+
break;
|
|
1228
|
+
default:
|
|
1229
|
+
reader.skipField();
|
|
1230
|
+
break;
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
return msg;
|
|
1234
|
+
};
|
|
1235
|
+
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* Class method variant: serializes the given message to binary data
|
|
1239
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1240
|
+
* @param {!proto.kycserviceapi.GetUserKycStatusRequest} message
|
|
1241
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1242
|
+
*/
|
|
1243
|
+
proto.kycserviceapi.GetUserKycStatusRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1244
|
+
message.serializeBinaryToWriter(writer);
|
|
1245
|
+
};
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1250
|
+
* @return {!Uint8Array}
|
|
1251
|
+
*/
|
|
1252
|
+
proto.kycserviceapi.GetUserKycStatusRequest.prototype.serializeBinary = function() {
|
|
1253
|
+
var writer = new jspb.BinaryWriter();
|
|
1254
|
+
this.serializeBinaryToWriter(writer);
|
|
1255
|
+
return writer.getResultBuffer();
|
|
1256
|
+
};
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
1261
|
+
* writing to the given BinaryWriter.
|
|
1262
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1263
|
+
*/
|
|
1264
|
+
proto.kycserviceapi.GetUserKycStatusRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
1265
|
+
var f = undefined;
|
|
1266
|
+
f = this.getUserid();
|
|
1267
|
+
if (f !== 0) {
|
|
1268
|
+
writer.writeInt64(
|
|
1269
|
+
1,
|
|
1270
|
+
f
|
|
1271
|
+
);
|
|
1272
|
+
}
|
|
1273
|
+
};
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1278
|
+
* @return {!proto.kycserviceapi.GetUserKycStatusRequest} The clone.
|
|
1279
|
+
*/
|
|
1280
|
+
proto.kycserviceapi.GetUserKycStatusRequest.prototype.cloneMessage = function() {
|
|
1281
|
+
return /** @type {!proto.kycserviceapi.GetUserKycStatusRequest} */ (jspb.Message.cloneMessage(this));
|
|
1282
|
+
};
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* optional int64 userId = 1;
|
|
1287
|
+
* @return {number}
|
|
1288
|
+
*/
|
|
1289
|
+
proto.kycserviceapi.GetUserKycStatusRequest.prototype.getUserid = function() {
|
|
1290
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
1291
|
+
};
|
|
1292
|
+
|
|
1293
|
+
|
|
1294
|
+
/** @param {number} value */
|
|
1295
|
+
proto.kycserviceapi.GetUserKycStatusRequest.prototype.setUserid = function(value) {
|
|
1296
|
+
jspb.Message.setField(this, 1, value);
|
|
1297
|
+
};
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
/**
|
|
1302
|
+
* Generated by JsPbCodeGenerator.
|
|
1303
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1304
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1305
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1306
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1307
|
+
* valid.
|
|
1308
|
+
* @extends {jspb.Message}
|
|
1309
|
+
* @constructor
|
|
1310
|
+
*/
|
|
1311
|
+
proto.kycserviceapi.KycPaymentMethod = function(opt_data) {
|
|
1312
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1313
|
+
};
|
|
1314
|
+
goog.inherits(proto.kycserviceapi.KycPaymentMethod, jspb.Message);
|
|
39
1315
|
if (goog.DEBUG && !COMPILED) {
|
|
40
|
-
proto.kycserviceapi.
|
|
1316
|
+
proto.kycserviceapi.KycPaymentMethod.displayName = 'proto.kycserviceapi.KycPaymentMethod';
|
|
41
1317
|
}
|
|
42
1318
|
|
|
43
1319
|
|
|
@@ -52,8 +1328,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
52
1328
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
53
1329
|
* @return {!Object}
|
|
54
1330
|
*/
|
|
55
|
-
proto.kycserviceapi.
|
|
56
|
-
return proto.kycserviceapi.
|
|
1331
|
+
proto.kycserviceapi.KycPaymentMethod.prototype.toObject = function(opt_includeInstance) {
|
|
1332
|
+
return proto.kycserviceapi.KycPaymentMethod.toObject(opt_includeInstance, this);
|
|
57
1333
|
};
|
|
58
1334
|
|
|
59
1335
|
|
|
@@ -62,12 +1338,13 @@ proto.kycserviceapi.GetUserKycStatusRequest.prototype.toObject = function(opt_in
|
|
|
62
1338
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
63
1339
|
* instance for transitional soy proto support:
|
|
64
1340
|
* http://goto/soy-param-migration
|
|
65
|
-
* @param {!proto.kycserviceapi.
|
|
1341
|
+
* @param {!proto.kycserviceapi.KycPaymentMethod} msg The msg instance to transform.
|
|
66
1342
|
* @return {!Object}
|
|
67
1343
|
*/
|
|
68
|
-
proto.kycserviceapi.
|
|
1344
|
+
proto.kycserviceapi.KycPaymentMethod.toObject = function(includeInstance, msg) {
|
|
69
1345
|
var f, obj = {
|
|
70
|
-
|
|
1346
|
+
kycpaymentmethodid: msg.getKycpaymentmethodid(),
|
|
1347
|
+
paymentmethodid: msg.getPaymentmethodid()
|
|
71
1348
|
};
|
|
72
1349
|
|
|
73
1350
|
if (includeInstance) {
|
|
@@ -81,23 +1358,23 @@ proto.kycserviceapi.GetUserKycStatusRequest.toObject = function(includeInstance,
|
|
|
81
1358
|
/**
|
|
82
1359
|
* Deserializes binary data (in protobuf wire format).
|
|
83
1360
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
84
|
-
* @return {!proto.kycserviceapi.
|
|
1361
|
+
* @return {!proto.kycserviceapi.KycPaymentMethod}
|
|
85
1362
|
*/
|
|
86
|
-
proto.kycserviceapi.
|
|
1363
|
+
proto.kycserviceapi.KycPaymentMethod.deserializeBinary = function(bytes) {
|
|
87
1364
|
var reader = new jspb.BinaryReader(bytes);
|
|
88
|
-
var msg = new proto.kycserviceapi.
|
|
89
|
-
return proto.kycserviceapi.
|
|
1365
|
+
var msg = new proto.kycserviceapi.KycPaymentMethod;
|
|
1366
|
+
return proto.kycserviceapi.KycPaymentMethod.deserializeBinaryFromReader(msg, reader);
|
|
90
1367
|
};
|
|
91
1368
|
|
|
92
1369
|
|
|
93
1370
|
/**
|
|
94
1371
|
* Deserializes binary data (in protobuf wire format) from the
|
|
95
1372
|
* given reader into the given message object.
|
|
96
|
-
* @param {!proto.kycserviceapi.
|
|
1373
|
+
* @param {!proto.kycserviceapi.KycPaymentMethod} msg The message object to deserialize into.
|
|
97
1374
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
98
|
-
* @return {!proto.kycserviceapi.
|
|
1375
|
+
* @return {!proto.kycserviceapi.KycPaymentMethod}
|
|
99
1376
|
*/
|
|
100
|
-
proto.kycserviceapi.
|
|
1377
|
+
proto.kycserviceapi.KycPaymentMethod.deserializeBinaryFromReader = function(msg, reader) {
|
|
101
1378
|
while (reader.nextField()) {
|
|
102
1379
|
if (reader.isEndGroup()) {
|
|
103
1380
|
break;
|
|
@@ -106,7 +1383,11 @@ proto.kycserviceapi.GetUserKycStatusRequest.deserializeBinaryFromReader = functi
|
|
|
106
1383
|
switch (field) {
|
|
107
1384
|
case 1:
|
|
108
1385
|
var value = /** @type {number} */ (reader.readInt64());
|
|
109
|
-
msg.
|
|
1386
|
+
msg.setKycpaymentmethodid(value);
|
|
1387
|
+
break;
|
|
1388
|
+
case 2:
|
|
1389
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
1390
|
+
msg.setPaymentmethodid(value);
|
|
110
1391
|
break;
|
|
111
1392
|
default:
|
|
112
1393
|
reader.skipField();
|
|
@@ -120,10 +1401,10 @@ proto.kycserviceapi.GetUserKycStatusRequest.deserializeBinaryFromReader = functi
|
|
|
120
1401
|
/**
|
|
121
1402
|
* Class method variant: serializes the given message to binary data
|
|
122
1403
|
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
123
|
-
* @param {!proto.kycserviceapi.
|
|
1404
|
+
* @param {!proto.kycserviceapi.KycPaymentMethod} message
|
|
124
1405
|
* @param {!jspb.BinaryWriter} writer
|
|
125
1406
|
*/
|
|
126
|
-
proto.kycserviceapi.
|
|
1407
|
+
proto.kycserviceapi.KycPaymentMethod.serializeBinaryToWriter = function(message, writer) {
|
|
127
1408
|
message.serializeBinaryToWriter(writer);
|
|
128
1409
|
};
|
|
129
1410
|
|
|
@@ -132,7 +1413,7 @@ proto.kycserviceapi.GetUserKycStatusRequest.serializeBinaryToWriter = function(m
|
|
|
132
1413
|
* Serializes the message to binary data (in protobuf wire format).
|
|
133
1414
|
* @return {!Uint8Array}
|
|
134
1415
|
*/
|
|
135
|
-
proto.kycserviceapi.
|
|
1416
|
+
proto.kycserviceapi.KycPaymentMethod.prototype.serializeBinary = function() {
|
|
136
1417
|
var writer = new jspb.BinaryWriter();
|
|
137
1418
|
this.serializeBinaryToWriter(writer);
|
|
138
1419
|
return writer.getResultBuffer();
|
|
@@ -144,42 +1425,277 @@ proto.kycserviceapi.GetUserKycStatusRequest.prototype.serializeBinary = function
|
|
|
144
1425
|
* writing to the given BinaryWriter.
|
|
145
1426
|
* @param {!jspb.BinaryWriter} writer
|
|
146
1427
|
*/
|
|
147
|
-
proto.kycserviceapi.
|
|
1428
|
+
proto.kycserviceapi.KycPaymentMethod.prototype.serializeBinaryToWriter = function (writer) {
|
|
148
1429
|
var f = undefined;
|
|
149
|
-
f = this.
|
|
1430
|
+
f = this.getKycpaymentmethodid();
|
|
150
1431
|
if (f !== 0) {
|
|
151
1432
|
writer.writeInt64(
|
|
152
1433
|
1,
|
|
153
1434
|
f
|
|
154
1435
|
);
|
|
155
1436
|
}
|
|
1437
|
+
f = this.getPaymentmethodid();
|
|
1438
|
+
if (f !== 0) {
|
|
1439
|
+
writer.writeInt64(
|
|
1440
|
+
2,
|
|
1441
|
+
f
|
|
1442
|
+
);
|
|
1443
|
+
}
|
|
156
1444
|
};
|
|
157
1445
|
|
|
158
1446
|
|
|
159
1447
|
/**
|
|
160
1448
|
* Creates a deep clone of this proto. No data is shared with the original.
|
|
161
|
-
* @return {!proto.kycserviceapi.
|
|
1449
|
+
* @return {!proto.kycserviceapi.KycPaymentMethod} The clone.
|
|
162
1450
|
*/
|
|
163
|
-
proto.kycserviceapi.
|
|
164
|
-
return /** @type {!proto.kycserviceapi.
|
|
1451
|
+
proto.kycserviceapi.KycPaymentMethod.prototype.cloneMessage = function() {
|
|
1452
|
+
return /** @type {!proto.kycserviceapi.KycPaymentMethod} */ (jspb.Message.cloneMessage(this));
|
|
165
1453
|
};
|
|
166
1454
|
|
|
167
1455
|
|
|
168
1456
|
/**
|
|
169
|
-
* optional int64
|
|
1457
|
+
* optional int64 kycPaymentMethodId = 1;
|
|
170
1458
|
* @return {number}
|
|
171
1459
|
*/
|
|
172
|
-
proto.kycserviceapi.
|
|
1460
|
+
proto.kycserviceapi.KycPaymentMethod.prototype.getKycpaymentmethodid = function() {
|
|
173
1461
|
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
174
1462
|
};
|
|
175
1463
|
|
|
176
1464
|
|
|
177
1465
|
/** @param {number} value */
|
|
178
|
-
proto.kycserviceapi.
|
|
1466
|
+
proto.kycserviceapi.KycPaymentMethod.prototype.setKycpaymentmethodid = function(value) {
|
|
1467
|
+
jspb.Message.setField(this, 1, value);
|
|
1468
|
+
};
|
|
1469
|
+
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* optional int64 paymentMethodId = 2;
|
|
1473
|
+
* @return {number}
|
|
1474
|
+
*/
|
|
1475
|
+
proto.kycserviceapi.KycPaymentMethod.prototype.getPaymentmethodid = function() {
|
|
1476
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
1477
|
+
};
|
|
1478
|
+
|
|
1479
|
+
|
|
1480
|
+
/** @param {number} value */
|
|
1481
|
+
proto.kycserviceapi.KycPaymentMethod.prototype.setPaymentmethodid = function(value) {
|
|
1482
|
+
jspb.Message.setField(this, 2, value);
|
|
1483
|
+
};
|
|
1484
|
+
|
|
1485
|
+
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* Generated by JsPbCodeGenerator.
|
|
1489
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1490
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1491
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1492
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1493
|
+
* valid.
|
|
1494
|
+
* @extends {jspb.Message}
|
|
1495
|
+
* @constructor
|
|
1496
|
+
*/
|
|
1497
|
+
proto.kycserviceapi.Passport = function(opt_data) {
|
|
1498
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1499
|
+
};
|
|
1500
|
+
goog.inherits(proto.kycserviceapi.Passport, jspb.Message);
|
|
1501
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1502
|
+
proto.kycserviceapi.Passport.displayName = 'proto.kycserviceapi.Passport';
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
|
|
1506
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1507
|
+
/**
|
|
1508
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1509
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1510
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1511
|
+
* For the list of reserved names please see:
|
|
1512
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1513
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1514
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1515
|
+
* @return {!Object}
|
|
1516
|
+
*/
|
|
1517
|
+
proto.kycserviceapi.Passport.prototype.toObject = function(opt_includeInstance) {
|
|
1518
|
+
return proto.kycserviceapi.Passport.toObject(opt_includeInstance, this);
|
|
1519
|
+
};
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
/**
|
|
1523
|
+
* Static version of the {@see toObject} method.
|
|
1524
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1525
|
+
* instance for transitional soy proto support:
|
|
1526
|
+
* http://goto/soy-param-migration
|
|
1527
|
+
* @param {!proto.kycserviceapi.Passport} msg The msg instance to transform.
|
|
1528
|
+
* @return {!Object}
|
|
1529
|
+
*/
|
|
1530
|
+
proto.kycserviceapi.Passport.toObject = function(includeInstance, msg) {
|
|
1531
|
+
var f, obj = {
|
|
1532
|
+
passportid: msg.getPassportid(),
|
|
1533
|
+
country: msg.getCountry(),
|
|
1534
|
+
passportnumber: msg.getPassportnumber()
|
|
1535
|
+
};
|
|
1536
|
+
|
|
1537
|
+
if (includeInstance) {
|
|
1538
|
+
obj.$jspbMessageInstance = msg;
|
|
1539
|
+
}
|
|
1540
|
+
return obj;
|
|
1541
|
+
};
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
|
|
1545
|
+
/**
|
|
1546
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1547
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1548
|
+
* @return {!proto.kycserviceapi.Passport}
|
|
1549
|
+
*/
|
|
1550
|
+
proto.kycserviceapi.Passport.deserializeBinary = function(bytes) {
|
|
1551
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1552
|
+
var msg = new proto.kycserviceapi.Passport;
|
|
1553
|
+
return proto.kycserviceapi.Passport.deserializeBinaryFromReader(msg, reader);
|
|
1554
|
+
};
|
|
1555
|
+
|
|
1556
|
+
|
|
1557
|
+
/**
|
|
1558
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1559
|
+
* given reader into the given message object.
|
|
1560
|
+
* @param {!proto.kycserviceapi.Passport} msg The message object to deserialize into.
|
|
1561
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1562
|
+
* @return {!proto.kycserviceapi.Passport}
|
|
1563
|
+
*/
|
|
1564
|
+
proto.kycserviceapi.Passport.deserializeBinaryFromReader = function(msg, reader) {
|
|
1565
|
+
while (reader.nextField()) {
|
|
1566
|
+
if (reader.isEndGroup()) {
|
|
1567
|
+
break;
|
|
1568
|
+
}
|
|
1569
|
+
var field = reader.getFieldNumber();
|
|
1570
|
+
switch (field) {
|
|
1571
|
+
case 1:
|
|
1572
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
1573
|
+
msg.setPassportid(value);
|
|
1574
|
+
break;
|
|
1575
|
+
case 2:
|
|
1576
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1577
|
+
msg.setCountry(value);
|
|
1578
|
+
break;
|
|
1579
|
+
case 3:
|
|
1580
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1581
|
+
msg.setPassportnumber(value);
|
|
1582
|
+
break;
|
|
1583
|
+
default:
|
|
1584
|
+
reader.skipField();
|
|
1585
|
+
break;
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
return msg;
|
|
1589
|
+
};
|
|
1590
|
+
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* Class method variant: serializes the given message to binary data
|
|
1594
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1595
|
+
* @param {!proto.kycserviceapi.Passport} message
|
|
1596
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1597
|
+
*/
|
|
1598
|
+
proto.kycserviceapi.Passport.serializeBinaryToWriter = function(message, writer) {
|
|
1599
|
+
message.serializeBinaryToWriter(writer);
|
|
1600
|
+
};
|
|
1601
|
+
|
|
1602
|
+
|
|
1603
|
+
/**
|
|
1604
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1605
|
+
* @return {!Uint8Array}
|
|
1606
|
+
*/
|
|
1607
|
+
proto.kycserviceapi.Passport.prototype.serializeBinary = function() {
|
|
1608
|
+
var writer = new jspb.BinaryWriter();
|
|
1609
|
+
this.serializeBinaryToWriter(writer);
|
|
1610
|
+
return writer.getResultBuffer();
|
|
1611
|
+
};
|
|
1612
|
+
|
|
1613
|
+
|
|
1614
|
+
/**
|
|
1615
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
1616
|
+
* writing to the given BinaryWriter.
|
|
1617
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1618
|
+
*/
|
|
1619
|
+
proto.kycserviceapi.Passport.prototype.serializeBinaryToWriter = function (writer) {
|
|
1620
|
+
var f = undefined;
|
|
1621
|
+
f = this.getPassportid();
|
|
1622
|
+
if (f !== 0) {
|
|
1623
|
+
writer.writeInt64(
|
|
1624
|
+
1,
|
|
1625
|
+
f
|
|
1626
|
+
);
|
|
1627
|
+
}
|
|
1628
|
+
f = this.getCountry();
|
|
1629
|
+
if (f.length > 0) {
|
|
1630
|
+
writer.writeString(
|
|
1631
|
+
2,
|
|
1632
|
+
f
|
|
1633
|
+
);
|
|
1634
|
+
}
|
|
1635
|
+
f = this.getPassportnumber();
|
|
1636
|
+
if (f.length > 0) {
|
|
1637
|
+
writer.writeString(
|
|
1638
|
+
3,
|
|
1639
|
+
f
|
|
1640
|
+
);
|
|
1641
|
+
}
|
|
1642
|
+
};
|
|
1643
|
+
|
|
1644
|
+
|
|
1645
|
+
/**
|
|
1646
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1647
|
+
* @return {!proto.kycserviceapi.Passport} The clone.
|
|
1648
|
+
*/
|
|
1649
|
+
proto.kycserviceapi.Passport.prototype.cloneMessage = function() {
|
|
1650
|
+
return /** @type {!proto.kycserviceapi.Passport} */ (jspb.Message.cloneMessage(this));
|
|
1651
|
+
};
|
|
1652
|
+
|
|
1653
|
+
|
|
1654
|
+
/**
|
|
1655
|
+
* optional int64 passportId = 1;
|
|
1656
|
+
* @return {number}
|
|
1657
|
+
*/
|
|
1658
|
+
proto.kycserviceapi.Passport.prototype.getPassportid = function() {
|
|
1659
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
1660
|
+
};
|
|
1661
|
+
|
|
1662
|
+
|
|
1663
|
+
/** @param {number} value */
|
|
1664
|
+
proto.kycserviceapi.Passport.prototype.setPassportid = function(value) {
|
|
179
1665
|
jspb.Message.setField(this, 1, value);
|
|
180
1666
|
};
|
|
181
1667
|
|
|
182
1668
|
|
|
1669
|
+
/**
|
|
1670
|
+
* optional string country = 2;
|
|
1671
|
+
* @return {string}
|
|
1672
|
+
*/
|
|
1673
|
+
proto.kycserviceapi.Passport.prototype.getCountry = function() {
|
|
1674
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
|
1675
|
+
};
|
|
1676
|
+
|
|
1677
|
+
|
|
1678
|
+
/** @param {string} value */
|
|
1679
|
+
proto.kycserviceapi.Passport.prototype.setCountry = function(value) {
|
|
1680
|
+
jspb.Message.setField(this, 2, value);
|
|
1681
|
+
};
|
|
1682
|
+
|
|
1683
|
+
|
|
1684
|
+
/**
|
|
1685
|
+
* optional string passportNumber = 3;
|
|
1686
|
+
* @return {string}
|
|
1687
|
+
*/
|
|
1688
|
+
proto.kycserviceapi.Passport.prototype.getPassportnumber = function() {
|
|
1689
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
|
|
1690
|
+
};
|
|
1691
|
+
|
|
1692
|
+
|
|
1693
|
+
/** @param {string} value */
|
|
1694
|
+
proto.kycserviceapi.Passport.prototype.setPassportnumber = function(value) {
|
|
1695
|
+
jspb.Message.setField(this, 3, value);
|
|
1696
|
+
};
|
|
1697
|
+
|
|
1698
|
+
|
|
183
1699
|
|
|
184
1700
|
/**
|
|
185
1701
|
* Generated by JsPbCodeGenerator.
|