protobuf-platform 1.0.216 → 1.0.218
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/game/game.proto +8 -7
- package/game/game_pb.js +110 -52
- package/package.json +1 -1
- package/payment/payment.proto +87 -1
- package/payment/payment_grpc_pb.js +222 -0
- package/payment/payment_pb.js +3660 -4
package/payment/payment_pb.js
CHANGED
@@ -23,10 +23,25 @@ var global = (function() {
|
|
23
23
|
|
24
24
|
goog.exportSymbol('proto.payment.File', null, global);
|
25
25
|
goog.exportSymbol('proto.payment.GetFileRequest', null, global);
|
26
|
+
goog.exportSymbol('proto.payment.GetMethodRequest', null, global);
|
27
|
+
goog.exportSymbol('proto.payment.GetProviderRequest', null, global);
|
28
|
+
goog.exportSymbol('proto.payment.MethodItem', null, global);
|
29
|
+
goog.exportSymbol('proto.payment.MethodItemRequest', null, global);
|
30
|
+
goog.exportSymbol('proto.payment.MethodItemsResponse', null, global);
|
31
|
+
goog.exportSymbol('proto.payment.MethodRequest', null, global);
|
32
|
+
goog.exportSymbol('proto.payment.MethodRequest.RequestCase', null, global);
|
33
|
+
goog.exportSymbol('proto.payment.MethodResponse', null, global);
|
26
34
|
goog.exportSymbol('proto.payment.PaginationRequest', null, global);
|
27
35
|
goog.exportSymbol('proto.payment.PaymentSearchRequest', null, global);
|
36
|
+
goog.exportSymbol('proto.payment.PaymentStatusResponse', null, global);
|
28
37
|
goog.exportSymbol('proto.payment.PingRequest', null, global);
|
29
38
|
goog.exportSymbol('proto.payment.PongResponse', null, global);
|
39
|
+
goog.exportSymbol('proto.payment.ProviderItem', null, global);
|
40
|
+
goog.exportSymbol('proto.payment.ProviderItemRequest', null, global);
|
41
|
+
goog.exportSymbol('proto.payment.ProviderItemsResponse', null, global);
|
42
|
+
goog.exportSymbol('proto.payment.ProviderRequest', null, global);
|
43
|
+
goog.exportSymbol('proto.payment.ProviderRequest.RequestCase', null, global);
|
44
|
+
goog.exportSymbol('proto.payment.ProviderResponse', null, global);
|
30
45
|
/**
|
31
46
|
* Generated by JsPbCodeGenerator.
|
32
47
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -153,6 +168,279 @@ if (goog.DEBUG && !COMPILED) {
|
|
153
168
|
*/
|
154
169
|
proto.payment.PaymentSearchRequest.displayName = 'proto.payment.PaymentSearchRequest';
|
155
170
|
}
|
171
|
+
/**
|
172
|
+
* Generated by JsPbCodeGenerator.
|
173
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
174
|
+
* server response, or constructed directly in Javascript. The array is used
|
175
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
176
|
+
* If no data is provided, the constructed object will be empty, but still
|
177
|
+
* valid.
|
178
|
+
* @extends {jspb.Message}
|
179
|
+
* @constructor
|
180
|
+
*/
|
181
|
+
proto.payment.ProviderItem = function(opt_data) {
|
182
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.ProviderItem.repeatedFields_, null);
|
183
|
+
};
|
184
|
+
goog.inherits(proto.payment.ProviderItem, jspb.Message);
|
185
|
+
if (goog.DEBUG && !COMPILED) {
|
186
|
+
/**
|
187
|
+
* @public
|
188
|
+
* @override
|
189
|
+
*/
|
190
|
+
proto.payment.ProviderItem.displayName = 'proto.payment.ProviderItem';
|
191
|
+
}
|
192
|
+
/**
|
193
|
+
* Generated by JsPbCodeGenerator.
|
194
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
195
|
+
* server response, or constructed directly in Javascript. The array is used
|
196
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
197
|
+
* If no data is provided, the constructed object will be empty, but still
|
198
|
+
* valid.
|
199
|
+
* @extends {jspb.Message}
|
200
|
+
* @constructor
|
201
|
+
*/
|
202
|
+
proto.payment.ProviderRequest = function(opt_data) {
|
203
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.payment.ProviderRequest.oneofGroups_);
|
204
|
+
};
|
205
|
+
goog.inherits(proto.payment.ProviderRequest, jspb.Message);
|
206
|
+
if (goog.DEBUG && !COMPILED) {
|
207
|
+
/**
|
208
|
+
* @public
|
209
|
+
* @override
|
210
|
+
*/
|
211
|
+
proto.payment.ProviderRequest.displayName = 'proto.payment.ProviderRequest';
|
212
|
+
}
|
213
|
+
/**
|
214
|
+
* Generated by JsPbCodeGenerator.
|
215
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
216
|
+
* server response, or constructed directly in Javascript. The array is used
|
217
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
218
|
+
* If no data is provided, the constructed object will be empty, but still
|
219
|
+
* valid.
|
220
|
+
* @extends {jspb.Message}
|
221
|
+
* @constructor
|
222
|
+
*/
|
223
|
+
proto.payment.ProviderItemRequest = function(opt_data) {
|
224
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
225
|
+
};
|
226
|
+
goog.inherits(proto.payment.ProviderItemRequest, jspb.Message);
|
227
|
+
if (goog.DEBUG && !COMPILED) {
|
228
|
+
/**
|
229
|
+
* @public
|
230
|
+
* @override
|
231
|
+
*/
|
232
|
+
proto.payment.ProviderItemRequest.displayName = 'proto.payment.ProviderItemRequest';
|
233
|
+
}
|
234
|
+
/**
|
235
|
+
* Generated by JsPbCodeGenerator.
|
236
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
237
|
+
* server response, or constructed directly in Javascript. The array is used
|
238
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
239
|
+
* If no data is provided, the constructed object will be empty, but still
|
240
|
+
* valid.
|
241
|
+
* @extends {jspb.Message}
|
242
|
+
* @constructor
|
243
|
+
*/
|
244
|
+
proto.payment.GetProviderRequest = function(opt_data) {
|
245
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
246
|
+
};
|
247
|
+
goog.inherits(proto.payment.GetProviderRequest, jspb.Message);
|
248
|
+
if (goog.DEBUG && !COMPILED) {
|
249
|
+
/**
|
250
|
+
* @public
|
251
|
+
* @override
|
252
|
+
*/
|
253
|
+
proto.payment.GetProviderRequest.displayName = 'proto.payment.GetProviderRequest';
|
254
|
+
}
|
255
|
+
/**
|
256
|
+
* Generated by JsPbCodeGenerator.
|
257
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
258
|
+
* server response, or constructed directly in Javascript. The array is used
|
259
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
260
|
+
* If no data is provided, the constructed object will be empty, but still
|
261
|
+
* valid.
|
262
|
+
* @extends {jspb.Message}
|
263
|
+
* @constructor
|
264
|
+
*/
|
265
|
+
proto.payment.ProviderResponse = function(opt_data) {
|
266
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
267
|
+
};
|
268
|
+
goog.inherits(proto.payment.ProviderResponse, jspb.Message);
|
269
|
+
if (goog.DEBUG && !COMPILED) {
|
270
|
+
/**
|
271
|
+
* @public
|
272
|
+
* @override
|
273
|
+
*/
|
274
|
+
proto.payment.ProviderResponse.displayName = 'proto.payment.ProviderResponse';
|
275
|
+
}
|
276
|
+
/**
|
277
|
+
* Generated by JsPbCodeGenerator.
|
278
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
279
|
+
* server response, or constructed directly in Javascript. The array is used
|
280
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
281
|
+
* If no data is provided, the constructed object will be empty, but still
|
282
|
+
* valid.
|
283
|
+
* @extends {jspb.Message}
|
284
|
+
* @constructor
|
285
|
+
*/
|
286
|
+
proto.payment.ProviderItemsResponse = function(opt_data) {
|
287
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.ProviderItemsResponse.repeatedFields_, null);
|
288
|
+
};
|
289
|
+
goog.inherits(proto.payment.ProviderItemsResponse, jspb.Message);
|
290
|
+
if (goog.DEBUG && !COMPILED) {
|
291
|
+
/**
|
292
|
+
* @public
|
293
|
+
* @override
|
294
|
+
*/
|
295
|
+
proto.payment.ProviderItemsResponse.displayName = 'proto.payment.ProviderItemsResponse';
|
296
|
+
}
|
297
|
+
/**
|
298
|
+
* Generated by JsPbCodeGenerator.
|
299
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
300
|
+
* server response, or constructed directly in Javascript. The array is used
|
301
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
302
|
+
* If no data is provided, the constructed object will be empty, but still
|
303
|
+
* valid.
|
304
|
+
* @extends {jspb.Message}
|
305
|
+
* @constructor
|
306
|
+
*/
|
307
|
+
proto.payment.PaymentStatusResponse = function(opt_data) {
|
308
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
309
|
+
};
|
310
|
+
goog.inherits(proto.payment.PaymentStatusResponse, jspb.Message);
|
311
|
+
if (goog.DEBUG && !COMPILED) {
|
312
|
+
/**
|
313
|
+
* @public
|
314
|
+
* @override
|
315
|
+
*/
|
316
|
+
proto.payment.PaymentStatusResponse.displayName = 'proto.payment.PaymentStatusResponse';
|
317
|
+
}
|
318
|
+
/**
|
319
|
+
* Generated by JsPbCodeGenerator.
|
320
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
321
|
+
* server response, or constructed directly in Javascript. The array is used
|
322
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
323
|
+
* If no data is provided, the constructed object will be empty, but still
|
324
|
+
* valid.
|
325
|
+
* @extends {jspb.Message}
|
326
|
+
* @constructor
|
327
|
+
*/
|
328
|
+
proto.payment.MethodItem = function(opt_data) {
|
329
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
330
|
+
};
|
331
|
+
goog.inherits(proto.payment.MethodItem, jspb.Message);
|
332
|
+
if (goog.DEBUG && !COMPILED) {
|
333
|
+
/**
|
334
|
+
* @public
|
335
|
+
* @override
|
336
|
+
*/
|
337
|
+
proto.payment.MethodItem.displayName = 'proto.payment.MethodItem';
|
338
|
+
}
|
339
|
+
/**
|
340
|
+
* Generated by JsPbCodeGenerator.
|
341
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
342
|
+
* server response, or constructed directly in Javascript. The array is used
|
343
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
344
|
+
* If no data is provided, the constructed object will be empty, but still
|
345
|
+
* valid.
|
346
|
+
* @extends {jspb.Message}
|
347
|
+
* @constructor
|
348
|
+
*/
|
349
|
+
proto.payment.MethodRequest = function(opt_data) {
|
350
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.payment.MethodRequest.oneofGroups_);
|
351
|
+
};
|
352
|
+
goog.inherits(proto.payment.MethodRequest, jspb.Message);
|
353
|
+
if (goog.DEBUG && !COMPILED) {
|
354
|
+
/**
|
355
|
+
* @public
|
356
|
+
* @override
|
357
|
+
*/
|
358
|
+
proto.payment.MethodRequest.displayName = 'proto.payment.MethodRequest';
|
359
|
+
}
|
360
|
+
/**
|
361
|
+
* Generated by JsPbCodeGenerator.
|
362
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
363
|
+
* server response, or constructed directly in Javascript. The array is used
|
364
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
365
|
+
* If no data is provided, the constructed object will be empty, but still
|
366
|
+
* valid.
|
367
|
+
* @extends {jspb.Message}
|
368
|
+
* @constructor
|
369
|
+
*/
|
370
|
+
proto.payment.MethodItemRequest = function(opt_data) {
|
371
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
372
|
+
};
|
373
|
+
goog.inherits(proto.payment.MethodItemRequest, jspb.Message);
|
374
|
+
if (goog.DEBUG && !COMPILED) {
|
375
|
+
/**
|
376
|
+
* @public
|
377
|
+
* @override
|
378
|
+
*/
|
379
|
+
proto.payment.MethodItemRequest.displayName = 'proto.payment.MethodItemRequest';
|
380
|
+
}
|
381
|
+
/**
|
382
|
+
* Generated by JsPbCodeGenerator.
|
383
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
384
|
+
* server response, or constructed directly in Javascript. The array is used
|
385
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
386
|
+
* If no data is provided, the constructed object will be empty, but still
|
387
|
+
* valid.
|
388
|
+
* @extends {jspb.Message}
|
389
|
+
* @constructor
|
390
|
+
*/
|
391
|
+
proto.payment.GetMethodRequest = function(opt_data) {
|
392
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
393
|
+
};
|
394
|
+
goog.inherits(proto.payment.GetMethodRequest, jspb.Message);
|
395
|
+
if (goog.DEBUG && !COMPILED) {
|
396
|
+
/**
|
397
|
+
* @public
|
398
|
+
* @override
|
399
|
+
*/
|
400
|
+
proto.payment.GetMethodRequest.displayName = 'proto.payment.GetMethodRequest';
|
401
|
+
}
|
402
|
+
/**
|
403
|
+
* Generated by JsPbCodeGenerator.
|
404
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
405
|
+
* server response, or constructed directly in Javascript. The array is used
|
406
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
407
|
+
* If no data is provided, the constructed object will be empty, but still
|
408
|
+
* valid.
|
409
|
+
* @extends {jspb.Message}
|
410
|
+
* @constructor
|
411
|
+
*/
|
412
|
+
proto.payment.MethodResponse = function(opt_data) {
|
413
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
414
|
+
};
|
415
|
+
goog.inherits(proto.payment.MethodResponse, jspb.Message);
|
416
|
+
if (goog.DEBUG && !COMPILED) {
|
417
|
+
/**
|
418
|
+
* @public
|
419
|
+
* @override
|
420
|
+
*/
|
421
|
+
proto.payment.MethodResponse.displayName = 'proto.payment.MethodResponse';
|
422
|
+
}
|
423
|
+
/**
|
424
|
+
* Generated by JsPbCodeGenerator.
|
425
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
426
|
+
* server response, or constructed directly in Javascript. The array is used
|
427
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
428
|
+
* If no data is provided, the constructed object will be empty, but still
|
429
|
+
* valid.
|
430
|
+
* @extends {jspb.Message}
|
431
|
+
* @constructor
|
432
|
+
*/
|
433
|
+
proto.payment.MethodItemsResponse = function(opt_data) {
|
434
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.MethodItemsResponse.repeatedFields_, null);
|
435
|
+
};
|
436
|
+
goog.inherits(proto.payment.MethodItemsResponse, jspb.Message);
|
437
|
+
if (goog.DEBUG && !COMPILED) {
|
438
|
+
/**
|
439
|
+
* @public
|
440
|
+
* @override
|
441
|
+
*/
|
442
|
+
proto.payment.MethodItemsResponse.displayName = 'proto.payment.MethodItemsResponse';
|
443
|
+
}
|
156
444
|
|
157
445
|
|
158
446
|
|
@@ -445,7 +733,9 @@ proto.payment.File.prototype.toObject = function(opt_includeInstance) {
|
|
445
733
|
*/
|
446
734
|
proto.payment.File.toObject = function(includeInstance, msg) {
|
447
735
|
var f, obj = {
|
448
|
-
media: msg.getMedia_asB64()
|
736
|
+
media: msg.getMedia_asB64(),
|
737
|
+
fileName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
738
|
+
fileType: jspb.Message.getFieldWithDefault(msg, 3, "")
|
449
739
|
};
|
450
740
|
|
451
741
|
if (includeInstance) {
|
@@ -486,6 +776,14 @@ proto.payment.File.deserializeBinaryFromReader = function(msg, reader) {
|
|
486
776
|
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
487
777
|
msg.setMedia(value);
|
488
778
|
break;
|
779
|
+
case 2:
|
780
|
+
var value = /** @type {string} */ (reader.readString());
|
781
|
+
msg.setFileName(value);
|
782
|
+
break;
|
783
|
+
case 3:
|
784
|
+
var value = /** @type {string} */ (reader.readString());
|
785
|
+
msg.setFileType(value);
|
786
|
+
break;
|
489
787
|
default:
|
490
788
|
reader.skipField();
|
491
789
|
break;
|
@@ -522,6 +820,20 @@ proto.payment.File.serializeBinaryToWriter = function(message, writer) {
|
|
522
820
|
f
|
523
821
|
);
|
524
822
|
}
|
823
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
824
|
+
if (f != null) {
|
825
|
+
writer.writeString(
|
826
|
+
2,
|
827
|
+
f
|
828
|
+
);
|
829
|
+
}
|
830
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
831
|
+
if (f != null) {
|
832
|
+
writer.writeString(
|
833
|
+
3,
|
834
|
+
f
|
835
|
+
);
|
836
|
+
}
|
525
837
|
};
|
526
838
|
|
527
839
|
|
@@ -567,12 +879,84 @@ proto.payment.File.prototype.setMedia = function(value) {
|
|
567
879
|
};
|
568
880
|
|
569
881
|
|
882
|
+
/**
|
883
|
+
* optional string file_name = 2;
|
884
|
+
* @return {string}
|
885
|
+
*/
|
886
|
+
proto.payment.File.prototype.getFileName = function() {
|
887
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
888
|
+
};
|
570
889
|
|
571
890
|
|
572
|
-
|
573
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
574
891
|
/**
|
575
|
-
*
|
892
|
+
* @param {string} value
|
893
|
+
* @return {!proto.payment.File} returns this
|
894
|
+
*/
|
895
|
+
proto.payment.File.prototype.setFileName = function(value) {
|
896
|
+
return jspb.Message.setField(this, 2, value);
|
897
|
+
};
|
898
|
+
|
899
|
+
|
900
|
+
/**
|
901
|
+
* Clears the field making it undefined.
|
902
|
+
* @return {!proto.payment.File} returns this
|
903
|
+
*/
|
904
|
+
proto.payment.File.prototype.clearFileName = function() {
|
905
|
+
return jspb.Message.setField(this, 2, undefined);
|
906
|
+
};
|
907
|
+
|
908
|
+
|
909
|
+
/**
|
910
|
+
* Returns whether this field is set.
|
911
|
+
* @return {boolean}
|
912
|
+
*/
|
913
|
+
proto.payment.File.prototype.hasFileName = function() {
|
914
|
+
return jspb.Message.getField(this, 2) != null;
|
915
|
+
};
|
916
|
+
|
917
|
+
|
918
|
+
/**
|
919
|
+
* optional string file_type = 3;
|
920
|
+
* @return {string}
|
921
|
+
*/
|
922
|
+
proto.payment.File.prototype.getFileType = function() {
|
923
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
924
|
+
};
|
925
|
+
|
926
|
+
|
927
|
+
/**
|
928
|
+
* @param {string} value
|
929
|
+
* @return {!proto.payment.File} returns this
|
930
|
+
*/
|
931
|
+
proto.payment.File.prototype.setFileType = function(value) {
|
932
|
+
return jspb.Message.setField(this, 3, value);
|
933
|
+
};
|
934
|
+
|
935
|
+
|
936
|
+
/**
|
937
|
+
* Clears the field making it undefined.
|
938
|
+
* @return {!proto.payment.File} returns this
|
939
|
+
*/
|
940
|
+
proto.payment.File.prototype.clearFileType = function() {
|
941
|
+
return jspb.Message.setField(this, 3, undefined);
|
942
|
+
};
|
943
|
+
|
944
|
+
|
945
|
+
/**
|
946
|
+
* Returns whether this field is set.
|
947
|
+
* @return {boolean}
|
948
|
+
*/
|
949
|
+
proto.payment.File.prototype.hasFileType = function() {
|
950
|
+
return jspb.Message.getField(this, 3) != null;
|
951
|
+
};
|
952
|
+
|
953
|
+
|
954
|
+
|
955
|
+
|
956
|
+
|
957
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
958
|
+
/**
|
959
|
+
* Creates an object representation of this proto.
|
576
960
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
577
961
|
* Optional fields that are not set will be set to undefined.
|
578
962
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
@@ -1191,4 +1575,3276 @@ proto.payment.PaymentSearchRequest.prototype.clearGeoList = function() {
|
|
1191
1575
|
};
|
1192
1576
|
|
1193
1577
|
|
1578
|
+
|
1579
|
+
/**
|
1580
|
+
* List of repeated fields within this message type.
|
1581
|
+
* @private {!Array<number>}
|
1582
|
+
* @const
|
1583
|
+
*/
|
1584
|
+
proto.payment.ProviderItem.repeatedFields_ = [7];
|
1585
|
+
|
1586
|
+
|
1587
|
+
|
1588
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1589
|
+
/**
|
1590
|
+
* Creates an object representation of this proto.
|
1591
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1592
|
+
* Optional fields that are not set will be set to undefined.
|
1593
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1594
|
+
* For the list of reserved names please see:
|
1595
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1596
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1597
|
+
* JSPB instance for transitional soy proto support:
|
1598
|
+
* http://goto/soy-param-migration
|
1599
|
+
* @return {!Object}
|
1600
|
+
*/
|
1601
|
+
proto.payment.ProviderItem.prototype.toObject = function(opt_includeInstance) {
|
1602
|
+
return proto.payment.ProviderItem.toObject(opt_includeInstance, this);
|
1603
|
+
};
|
1604
|
+
|
1605
|
+
|
1606
|
+
/**
|
1607
|
+
* Static version of the {@see toObject} method.
|
1608
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1609
|
+
* the JSPB instance for transitional soy proto support:
|
1610
|
+
* http://goto/soy-param-migration
|
1611
|
+
* @param {!proto.payment.ProviderItem} msg The msg instance to transform.
|
1612
|
+
* @return {!Object}
|
1613
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1614
|
+
*/
|
1615
|
+
proto.payment.ProviderItem.toObject = function(includeInstance, msg) {
|
1616
|
+
var f, obj = {
|
1617
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1618
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1619
|
+
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
1620
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
1621
|
+
image: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
1622
|
+
methodsList: jspb.Message.toObjectList(msg.getMethodsList(),
|
1623
|
+
proto.payment.MethodItem.toObject, includeInstance)
|
1624
|
+
};
|
1625
|
+
|
1626
|
+
if (includeInstance) {
|
1627
|
+
obj.$jspbMessageInstance = msg;
|
1628
|
+
}
|
1629
|
+
return obj;
|
1630
|
+
};
|
1631
|
+
}
|
1632
|
+
|
1633
|
+
|
1634
|
+
/**
|
1635
|
+
* Deserializes binary data (in protobuf wire format).
|
1636
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1637
|
+
* @return {!proto.payment.ProviderItem}
|
1638
|
+
*/
|
1639
|
+
proto.payment.ProviderItem.deserializeBinary = function(bytes) {
|
1640
|
+
var reader = new jspb.BinaryReader(bytes);
|
1641
|
+
var msg = new proto.payment.ProviderItem;
|
1642
|
+
return proto.payment.ProviderItem.deserializeBinaryFromReader(msg, reader);
|
1643
|
+
};
|
1644
|
+
|
1645
|
+
|
1646
|
+
/**
|
1647
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1648
|
+
* given reader into the given message object.
|
1649
|
+
* @param {!proto.payment.ProviderItem} msg The message object to deserialize into.
|
1650
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1651
|
+
* @return {!proto.payment.ProviderItem}
|
1652
|
+
*/
|
1653
|
+
proto.payment.ProviderItem.deserializeBinaryFromReader = function(msg, reader) {
|
1654
|
+
while (reader.nextField()) {
|
1655
|
+
if (reader.isEndGroup()) {
|
1656
|
+
break;
|
1657
|
+
}
|
1658
|
+
var field = reader.getFieldNumber();
|
1659
|
+
switch (field) {
|
1660
|
+
case 1:
|
1661
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1662
|
+
msg.setId(value);
|
1663
|
+
break;
|
1664
|
+
case 2:
|
1665
|
+
var value = /** @type {string} */ (reader.readString());
|
1666
|
+
msg.setTitle(value);
|
1667
|
+
break;
|
1668
|
+
case 4:
|
1669
|
+
var value = /** @type {string} */ (reader.readString());
|
1670
|
+
msg.setDescription(value);
|
1671
|
+
break;
|
1672
|
+
case 5:
|
1673
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1674
|
+
msg.setIsActive(value);
|
1675
|
+
break;
|
1676
|
+
case 6:
|
1677
|
+
var value = /** @type {string} */ (reader.readString());
|
1678
|
+
msg.setImage(value);
|
1679
|
+
break;
|
1680
|
+
case 7:
|
1681
|
+
var value = new proto.payment.MethodItem;
|
1682
|
+
reader.readMessage(value,proto.payment.MethodItem.deserializeBinaryFromReader);
|
1683
|
+
msg.addMethods(value);
|
1684
|
+
break;
|
1685
|
+
default:
|
1686
|
+
reader.skipField();
|
1687
|
+
break;
|
1688
|
+
}
|
1689
|
+
}
|
1690
|
+
return msg;
|
1691
|
+
};
|
1692
|
+
|
1693
|
+
|
1694
|
+
/**
|
1695
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1696
|
+
* @return {!Uint8Array}
|
1697
|
+
*/
|
1698
|
+
proto.payment.ProviderItem.prototype.serializeBinary = function() {
|
1699
|
+
var writer = new jspb.BinaryWriter();
|
1700
|
+
proto.payment.ProviderItem.serializeBinaryToWriter(this, writer);
|
1701
|
+
return writer.getResultBuffer();
|
1702
|
+
};
|
1703
|
+
|
1704
|
+
|
1705
|
+
/**
|
1706
|
+
* Serializes the given message to binary data (in protobuf wire
|
1707
|
+
* format), writing to the given BinaryWriter.
|
1708
|
+
* @param {!proto.payment.ProviderItem} message
|
1709
|
+
* @param {!jspb.BinaryWriter} writer
|
1710
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1711
|
+
*/
|
1712
|
+
proto.payment.ProviderItem.serializeBinaryToWriter = function(message, writer) {
|
1713
|
+
var f = undefined;
|
1714
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
1715
|
+
if (f != null) {
|
1716
|
+
writer.writeInt32(
|
1717
|
+
1,
|
1718
|
+
f
|
1719
|
+
);
|
1720
|
+
}
|
1721
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
1722
|
+
if (f != null) {
|
1723
|
+
writer.writeString(
|
1724
|
+
2,
|
1725
|
+
f
|
1726
|
+
);
|
1727
|
+
}
|
1728
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
1729
|
+
if (f != null) {
|
1730
|
+
writer.writeString(
|
1731
|
+
4,
|
1732
|
+
f
|
1733
|
+
);
|
1734
|
+
}
|
1735
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
1736
|
+
if (f != null) {
|
1737
|
+
writer.writeInt32(
|
1738
|
+
5,
|
1739
|
+
f
|
1740
|
+
);
|
1741
|
+
}
|
1742
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
1743
|
+
if (f != null) {
|
1744
|
+
writer.writeString(
|
1745
|
+
6,
|
1746
|
+
f
|
1747
|
+
);
|
1748
|
+
}
|
1749
|
+
f = message.getMethodsList();
|
1750
|
+
if (f.length > 0) {
|
1751
|
+
writer.writeRepeatedMessage(
|
1752
|
+
7,
|
1753
|
+
f,
|
1754
|
+
proto.payment.MethodItem.serializeBinaryToWriter
|
1755
|
+
);
|
1756
|
+
}
|
1757
|
+
};
|
1758
|
+
|
1759
|
+
|
1760
|
+
/**
|
1761
|
+
* optional int32 id = 1;
|
1762
|
+
* @return {number}
|
1763
|
+
*/
|
1764
|
+
proto.payment.ProviderItem.prototype.getId = function() {
|
1765
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1766
|
+
};
|
1767
|
+
|
1768
|
+
|
1769
|
+
/**
|
1770
|
+
* @param {number} value
|
1771
|
+
* @return {!proto.payment.ProviderItem} returns this
|
1772
|
+
*/
|
1773
|
+
proto.payment.ProviderItem.prototype.setId = function(value) {
|
1774
|
+
return jspb.Message.setField(this, 1, value);
|
1775
|
+
};
|
1776
|
+
|
1777
|
+
|
1778
|
+
/**
|
1779
|
+
* Clears the field making it undefined.
|
1780
|
+
* @return {!proto.payment.ProviderItem} returns this
|
1781
|
+
*/
|
1782
|
+
proto.payment.ProviderItem.prototype.clearId = function() {
|
1783
|
+
return jspb.Message.setField(this, 1, undefined);
|
1784
|
+
};
|
1785
|
+
|
1786
|
+
|
1787
|
+
/**
|
1788
|
+
* Returns whether this field is set.
|
1789
|
+
* @return {boolean}
|
1790
|
+
*/
|
1791
|
+
proto.payment.ProviderItem.prototype.hasId = function() {
|
1792
|
+
return jspb.Message.getField(this, 1) != null;
|
1793
|
+
};
|
1794
|
+
|
1795
|
+
|
1796
|
+
/**
|
1797
|
+
* optional string title = 2;
|
1798
|
+
* @return {string}
|
1799
|
+
*/
|
1800
|
+
proto.payment.ProviderItem.prototype.getTitle = function() {
|
1801
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
1802
|
+
};
|
1803
|
+
|
1804
|
+
|
1805
|
+
/**
|
1806
|
+
* @param {string} value
|
1807
|
+
* @return {!proto.payment.ProviderItem} returns this
|
1808
|
+
*/
|
1809
|
+
proto.payment.ProviderItem.prototype.setTitle = function(value) {
|
1810
|
+
return jspb.Message.setField(this, 2, value);
|
1811
|
+
};
|
1812
|
+
|
1813
|
+
|
1814
|
+
/**
|
1815
|
+
* Clears the field making it undefined.
|
1816
|
+
* @return {!proto.payment.ProviderItem} returns this
|
1817
|
+
*/
|
1818
|
+
proto.payment.ProviderItem.prototype.clearTitle = function() {
|
1819
|
+
return jspb.Message.setField(this, 2, undefined);
|
1820
|
+
};
|
1821
|
+
|
1822
|
+
|
1823
|
+
/**
|
1824
|
+
* Returns whether this field is set.
|
1825
|
+
* @return {boolean}
|
1826
|
+
*/
|
1827
|
+
proto.payment.ProviderItem.prototype.hasTitle = function() {
|
1828
|
+
return jspb.Message.getField(this, 2) != null;
|
1829
|
+
};
|
1830
|
+
|
1831
|
+
|
1832
|
+
/**
|
1833
|
+
* optional string description = 4;
|
1834
|
+
* @return {string}
|
1835
|
+
*/
|
1836
|
+
proto.payment.ProviderItem.prototype.getDescription = function() {
|
1837
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
1838
|
+
};
|
1839
|
+
|
1840
|
+
|
1841
|
+
/**
|
1842
|
+
* @param {string} value
|
1843
|
+
* @return {!proto.payment.ProviderItem} returns this
|
1844
|
+
*/
|
1845
|
+
proto.payment.ProviderItem.prototype.setDescription = function(value) {
|
1846
|
+
return jspb.Message.setField(this, 4, value);
|
1847
|
+
};
|
1848
|
+
|
1849
|
+
|
1850
|
+
/**
|
1851
|
+
* Clears the field making it undefined.
|
1852
|
+
* @return {!proto.payment.ProviderItem} returns this
|
1853
|
+
*/
|
1854
|
+
proto.payment.ProviderItem.prototype.clearDescription = function() {
|
1855
|
+
return jspb.Message.setField(this, 4, undefined);
|
1856
|
+
};
|
1857
|
+
|
1858
|
+
|
1859
|
+
/**
|
1860
|
+
* Returns whether this field is set.
|
1861
|
+
* @return {boolean}
|
1862
|
+
*/
|
1863
|
+
proto.payment.ProviderItem.prototype.hasDescription = function() {
|
1864
|
+
return jspb.Message.getField(this, 4) != null;
|
1865
|
+
};
|
1866
|
+
|
1867
|
+
|
1868
|
+
/**
|
1869
|
+
* optional int32 is_active = 5;
|
1870
|
+
* @return {number}
|
1871
|
+
*/
|
1872
|
+
proto.payment.ProviderItem.prototype.getIsActive = function() {
|
1873
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
1874
|
+
};
|
1875
|
+
|
1876
|
+
|
1877
|
+
/**
|
1878
|
+
* @param {number} value
|
1879
|
+
* @return {!proto.payment.ProviderItem} returns this
|
1880
|
+
*/
|
1881
|
+
proto.payment.ProviderItem.prototype.setIsActive = function(value) {
|
1882
|
+
return jspb.Message.setField(this, 5, value);
|
1883
|
+
};
|
1884
|
+
|
1885
|
+
|
1886
|
+
/**
|
1887
|
+
* Clears the field making it undefined.
|
1888
|
+
* @return {!proto.payment.ProviderItem} returns this
|
1889
|
+
*/
|
1890
|
+
proto.payment.ProviderItem.prototype.clearIsActive = function() {
|
1891
|
+
return jspb.Message.setField(this, 5, undefined);
|
1892
|
+
};
|
1893
|
+
|
1894
|
+
|
1895
|
+
/**
|
1896
|
+
* Returns whether this field is set.
|
1897
|
+
* @return {boolean}
|
1898
|
+
*/
|
1899
|
+
proto.payment.ProviderItem.prototype.hasIsActive = function() {
|
1900
|
+
return jspb.Message.getField(this, 5) != null;
|
1901
|
+
};
|
1902
|
+
|
1903
|
+
|
1904
|
+
/**
|
1905
|
+
* optional string image = 6;
|
1906
|
+
* @return {string}
|
1907
|
+
*/
|
1908
|
+
proto.payment.ProviderItem.prototype.getImage = function() {
|
1909
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
1910
|
+
};
|
1911
|
+
|
1912
|
+
|
1913
|
+
/**
|
1914
|
+
* @param {string} value
|
1915
|
+
* @return {!proto.payment.ProviderItem} returns this
|
1916
|
+
*/
|
1917
|
+
proto.payment.ProviderItem.prototype.setImage = function(value) {
|
1918
|
+
return jspb.Message.setField(this, 6, value);
|
1919
|
+
};
|
1920
|
+
|
1921
|
+
|
1922
|
+
/**
|
1923
|
+
* Clears the field making it undefined.
|
1924
|
+
* @return {!proto.payment.ProviderItem} returns this
|
1925
|
+
*/
|
1926
|
+
proto.payment.ProviderItem.prototype.clearImage = function() {
|
1927
|
+
return jspb.Message.setField(this, 6, undefined);
|
1928
|
+
};
|
1929
|
+
|
1930
|
+
|
1931
|
+
/**
|
1932
|
+
* Returns whether this field is set.
|
1933
|
+
* @return {boolean}
|
1934
|
+
*/
|
1935
|
+
proto.payment.ProviderItem.prototype.hasImage = function() {
|
1936
|
+
return jspb.Message.getField(this, 6) != null;
|
1937
|
+
};
|
1938
|
+
|
1939
|
+
|
1940
|
+
/**
|
1941
|
+
* repeated MethodItem methods = 7;
|
1942
|
+
* @return {!Array<!proto.payment.MethodItem>}
|
1943
|
+
*/
|
1944
|
+
proto.payment.ProviderItem.prototype.getMethodsList = function() {
|
1945
|
+
return /** @type{!Array<!proto.payment.MethodItem>} */ (
|
1946
|
+
jspb.Message.getRepeatedWrapperField(this, proto.payment.MethodItem, 7));
|
1947
|
+
};
|
1948
|
+
|
1949
|
+
|
1950
|
+
/**
|
1951
|
+
* @param {!Array<!proto.payment.MethodItem>} value
|
1952
|
+
* @return {!proto.payment.ProviderItem} returns this
|
1953
|
+
*/
|
1954
|
+
proto.payment.ProviderItem.prototype.setMethodsList = function(value) {
|
1955
|
+
return jspb.Message.setRepeatedWrapperField(this, 7, value);
|
1956
|
+
};
|
1957
|
+
|
1958
|
+
|
1959
|
+
/**
|
1960
|
+
* @param {!proto.payment.MethodItem=} opt_value
|
1961
|
+
* @param {number=} opt_index
|
1962
|
+
* @return {!proto.payment.MethodItem}
|
1963
|
+
*/
|
1964
|
+
proto.payment.ProviderItem.prototype.addMethods = function(opt_value, opt_index) {
|
1965
|
+
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.payment.MethodItem, opt_index);
|
1966
|
+
};
|
1967
|
+
|
1968
|
+
|
1969
|
+
/**
|
1970
|
+
* Clears the list making it empty but non-null.
|
1971
|
+
* @return {!proto.payment.ProviderItem} returns this
|
1972
|
+
*/
|
1973
|
+
proto.payment.ProviderItem.prototype.clearMethodsList = function() {
|
1974
|
+
return this.setMethodsList([]);
|
1975
|
+
};
|
1976
|
+
|
1977
|
+
|
1978
|
+
|
1979
|
+
/**
|
1980
|
+
* Oneof group definitions for this message. Each group defines the field
|
1981
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
1982
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
1983
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
1984
|
+
* @private {!Array<!Array<number>>}
|
1985
|
+
* @const
|
1986
|
+
*/
|
1987
|
+
proto.payment.ProviderRequest.oneofGroups_ = [[1,2]];
|
1988
|
+
|
1989
|
+
/**
|
1990
|
+
* @enum {number}
|
1991
|
+
*/
|
1992
|
+
proto.payment.ProviderRequest.RequestCase = {
|
1993
|
+
REQUEST_NOT_SET: 0,
|
1994
|
+
PROVIDER_DATA: 1,
|
1995
|
+
FILE: 2
|
1996
|
+
};
|
1997
|
+
|
1998
|
+
/**
|
1999
|
+
* @return {proto.payment.ProviderRequest.RequestCase}
|
2000
|
+
*/
|
2001
|
+
proto.payment.ProviderRequest.prototype.getRequestCase = function() {
|
2002
|
+
return /** @type {proto.payment.ProviderRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.payment.ProviderRequest.oneofGroups_[0]));
|
2003
|
+
};
|
2004
|
+
|
2005
|
+
|
2006
|
+
|
2007
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2008
|
+
/**
|
2009
|
+
* Creates an object representation of this proto.
|
2010
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2011
|
+
* Optional fields that are not set will be set to undefined.
|
2012
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2013
|
+
* For the list of reserved names please see:
|
2014
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2015
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2016
|
+
* JSPB instance for transitional soy proto support:
|
2017
|
+
* http://goto/soy-param-migration
|
2018
|
+
* @return {!Object}
|
2019
|
+
*/
|
2020
|
+
proto.payment.ProviderRequest.prototype.toObject = function(opt_includeInstance) {
|
2021
|
+
return proto.payment.ProviderRequest.toObject(opt_includeInstance, this);
|
2022
|
+
};
|
2023
|
+
|
2024
|
+
|
2025
|
+
/**
|
2026
|
+
* Static version of the {@see toObject} method.
|
2027
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2028
|
+
* the JSPB instance for transitional soy proto support:
|
2029
|
+
* http://goto/soy-param-migration
|
2030
|
+
* @param {!proto.payment.ProviderRequest} msg The msg instance to transform.
|
2031
|
+
* @return {!Object}
|
2032
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2033
|
+
*/
|
2034
|
+
proto.payment.ProviderRequest.toObject = function(includeInstance, msg) {
|
2035
|
+
var f, obj = {
|
2036
|
+
providerData: (f = msg.getProviderData()) && proto.payment.ProviderItemRequest.toObject(includeInstance, f),
|
2037
|
+
file: (f = msg.getFile()) && proto.payment.File.toObject(includeInstance, f)
|
2038
|
+
};
|
2039
|
+
|
2040
|
+
if (includeInstance) {
|
2041
|
+
obj.$jspbMessageInstance = msg;
|
2042
|
+
}
|
2043
|
+
return obj;
|
2044
|
+
};
|
2045
|
+
}
|
2046
|
+
|
2047
|
+
|
2048
|
+
/**
|
2049
|
+
* Deserializes binary data (in protobuf wire format).
|
2050
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2051
|
+
* @return {!proto.payment.ProviderRequest}
|
2052
|
+
*/
|
2053
|
+
proto.payment.ProviderRequest.deserializeBinary = function(bytes) {
|
2054
|
+
var reader = new jspb.BinaryReader(bytes);
|
2055
|
+
var msg = new proto.payment.ProviderRequest;
|
2056
|
+
return proto.payment.ProviderRequest.deserializeBinaryFromReader(msg, reader);
|
2057
|
+
};
|
2058
|
+
|
2059
|
+
|
2060
|
+
/**
|
2061
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2062
|
+
* given reader into the given message object.
|
2063
|
+
* @param {!proto.payment.ProviderRequest} msg The message object to deserialize into.
|
2064
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2065
|
+
* @return {!proto.payment.ProviderRequest}
|
2066
|
+
*/
|
2067
|
+
proto.payment.ProviderRequest.deserializeBinaryFromReader = function(msg, reader) {
|
2068
|
+
while (reader.nextField()) {
|
2069
|
+
if (reader.isEndGroup()) {
|
2070
|
+
break;
|
2071
|
+
}
|
2072
|
+
var field = reader.getFieldNumber();
|
2073
|
+
switch (field) {
|
2074
|
+
case 1:
|
2075
|
+
var value = new proto.payment.ProviderItemRequest;
|
2076
|
+
reader.readMessage(value,proto.payment.ProviderItemRequest.deserializeBinaryFromReader);
|
2077
|
+
msg.setProviderData(value);
|
2078
|
+
break;
|
2079
|
+
case 2:
|
2080
|
+
var value = new proto.payment.File;
|
2081
|
+
reader.readMessage(value,proto.payment.File.deserializeBinaryFromReader);
|
2082
|
+
msg.setFile(value);
|
2083
|
+
break;
|
2084
|
+
default:
|
2085
|
+
reader.skipField();
|
2086
|
+
break;
|
2087
|
+
}
|
2088
|
+
}
|
2089
|
+
return msg;
|
2090
|
+
};
|
2091
|
+
|
2092
|
+
|
2093
|
+
/**
|
2094
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2095
|
+
* @return {!Uint8Array}
|
2096
|
+
*/
|
2097
|
+
proto.payment.ProviderRequest.prototype.serializeBinary = function() {
|
2098
|
+
var writer = new jspb.BinaryWriter();
|
2099
|
+
proto.payment.ProviderRequest.serializeBinaryToWriter(this, writer);
|
2100
|
+
return writer.getResultBuffer();
|
2101
|
+
};
|
2102
|
+
|
2103
|
+
|
2104
|
+
/**
|
2105
|
+
* Serializes the given message to binary data (in protobuf wire
|
2106
|
+
* format), writing to the given BinaryWriter.
|
2107
|
+
* @param {!proto.payment.ProviderRequest} message
|
2108
|
+
* @param {!jspb.BinaryWriter} writer
|
2109
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2110
|
+
*/
|
2111
|
+
proto.payment.ProviderRequest.serializeBinaryToWriter = function(message, writer) {
|
2112
|
+
var f = undefined;
|
2113
|
+
f = message.getProviderData();
|
2114
|
+
if (f != null) {
|
2115
|
+
writer.writeMessage(
|
2116
|
+
1,
|
2117
|
+
f,
|
2118
|
+
proto.payment.ProviderItemRequest.serializeBinaryToWriter
|
2119
|
+
);
|
2120
|
+
}
|
2121
|
+
f = message.getFile();
|
2122
|
+
if (f != null) {
|
2123
|
+
writer.writeMessage(
|
2124
|
+
2,
|
2125
|
+
f,
|
2126
|
+
proto.payment.File.serializeBinaryToWriter
|
2127
|
+
);
|
2128
|
+
}
|
2129
|
+
};
|
2130
|
+
|
2131
|
+
|
2132
|
+
/**
|
2133
|
+
* optional ProviderItemRequest provider_data = 1;
|
2134
|
+
* @return {?proto.payment.ProviderItemRequest}
|
2135
|
+
*/
|
2136
|
+
proto.payment.ProviderRequest.prototype.getProviderData = function() {
|
2137
|
+
return /** @type{?proto.payment.ProviderItemRequest} */ (
|
2138
|
+
jspb.Message.getWrapperField(this, proto.payment.ProviderItemRequest, 1));
|
2139
|
+
};
|
2140
|
+
|
2141
|
+
|
2142
|
+
/**
|
2143
|
+
* @param {?proto.payment.ProviderItemRequest|undefined} value
|
2144
|
+
* @return {!proto.payment.ProviderRequest} returns this
|
2145
|
+
*/
|
2146
|
+
proto.payment.ProviderRequest.prototype.setProviderData = function(value) {
|
2147
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.payment.ProviderRequest.oneofGroups_[0], value);
|
2148
|
+
};
|
2149
|
+
|
2150
|
+
|
2151
|
+
/**
|
2152
|
+
* Clears the message field making it undefined.
|
2153
|
+
* @return {!proto.payment.ProviderRequest} returns this
|
2154
|
+
*/
|
2155
|
+
proto.payment.ProviderRequest.prototype.clearProviderData = function() {
|
2156
|
+
return this.setProviderData(undefined);
|
2157
|
+
};
|
2158
|
+
|
2159
|
+
|
2160
|
+
/**
|
2161
|
+
* Returns whether this field is set.
|
2162
|
+
* @return {boolean}
|
2163
|
+
*/
|
2164
|
+
proto.payment.ProviderRequest.prototype.hasProviderData = function() {
|
2165
|
+
return jspb.Message.getField(this, 1) != null;
|
2166
|
+
};
|
2167
|
+
|
2168
|
+
|
2169
|
+
/**
|
2170
|
+
* optional File file = 2;
|
2171
|
+
* @return {?proto.payment.File}
|
2172
|
+
*/
|
2173
|
+
proto.payment.ProviderRequest.prototype.getFile = function() {
|
2174
|
+
return /** @type{?proto.payment.File} */ (
|
2175
|
+
jspb.Message.getWrapperField(this, proto.payment.File, 2));
|
2176
|
+
};
|
2177
|
+
|
2178
|
+
|
2179
|
+
/**
|
2180
|
+
* @param {?proto.payment.File|undefined} value
|
2181
|
+
* @return {!proto.payment.ProviderRequest} returns this
|
2182
|
+
*/
|
2183
|
+
proto.payment.ProviderRequest.prototype.setFile = function(value) {
|
2184
|
+
return jspb.Message.setOneofWrapperField(this, 2, proto.payment.ProviderRequest.oneofGroups_[0], value);
|
2185
|
+
};
|
2186
|
+
|
2187
|
+
|
2188
|
+
/**
|
2189
|
+
* Clears the message field making it undefined.
|
2190
|
+
* @return {!proto.payment.ProviderRequest} returns this
|
2191
|
+
*/
|
2192
|
+
proto.payment.ProviderRequest.prototype.clearFile = function() {
|
2193
|
+
return this.setFile(undefined);
|
2194
|
+
};
|
2195
|
+
|
2196
|
+
|
2197
|
+
/**
|
2198
|
+
* Returns whether this field is set.
|
2199
|
+
* @return {boolean}
|
2200
|
+
*/
|
2201
|
+
proto.payment.ProviderRequest.prototype.hasFile = function() {
|
2202
|
+
return jspb.Message.getField(this, 2) != null;
|
2203
|
+
};
|
2204
|
+
|
2205
|
+
|
2206
|
+
|
2207
|
+
|
2208
|
+
|
2209
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2210
|
+
/**
|
2211
|
+
* Creates an object representation of this proto.
|
2212
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2213
|
+
* Optional fields that are not set will be set to undefined.
|
2214
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2215
|
+
* For the list of reserved names please see:
|
2216
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2217
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2218
|
+
* JSPB instance for transitional soy proto support:
|
2219
|
+
* http://goto/soy-param-migration
|
2220
|
+
* @return {!Object}
|
2221
|
+
*/
|
2222
|
+
proto.payment.ProviderItemRequest.prototype.toObject = function(opt_includeInstance) {
|
2223
|
+
return proto.payment.ProviderItemRequest.toObject(opt_includeInstance, this);
|
2224
|
+
};
|
2225
|
+
|
2226
|
+
|
2227
|
+
/**
|
2228
|
+
* Static version of the {@see toObject} method.
|
2229
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2230
|
+
* the JSPB instance for transitional soy proto support:
|
2231
|
+
* http://goto/soy-param-migration
|
2232
|
+
* @param {!proto.payment.ProviderItemRequest} msg The msg instance to transform.
|
2233
|
+
* @return {!Object}
|
2234
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2235
|
+
*/
|
2236
|
+
proto.payment.ProviderItemRequest.toObject = function(includeInstance, msg) {
|
2237
|
+
var f, obj = {
|
2238
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
2239
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
2240
|
+
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
2241
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
2242
|
+
};
|
2243
|
+
|
2244
|
+
if (includeInstance) {
|
2245
|
+
obj.$jspbMessageInstance = msg;
|
2246
|
+
}
|
2247
|
+
return obj;
|
2248
|
+
};
|
2249
|
+
}
|
2250
|
+
|
2251
|
+
|
2252
|
+
/**
|
2253
|
+
* Deserializes binary data (in protobuf wire format).
|
2254
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2255
|
+
* @return {!proto.payment.ProviderItemRequest}
|
2256
|
+
*/
|
2257
|
+
proto.payment.ProviderItemRequest.deserializeBinary = function(bytes) {
|
2258
|
+
var reader = new jspb.BinaryReader(bytes);
|
2259
|
+
var msg = new proto.payment.ProviderItemRequest;
|
2260
|
+
return proto.payment.ProviderItemRequest.deserializeBinaryFromReader(msg, reader);
|
2261
|
+
};
|
2262
|
+
|
2263
|
+
|
2264
|
+
/**
|
2265
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2266
|
+
* given reader into the given message object.
|
2267
|
+
* @param {!proto.payment.ProviderItemRequest} msg The message object to deserialize into.
|
2268
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2269
|
+
* @return {!proto.payment.ProviderItemRequest}
|
2270
|
+
*/
|
2271
|
+
proto.payment.ProviderItemRequest.deserializeBinaryFromReader = function(msg, reader) {
|
2272
|
+
while (reader.nextField()) {
|
2273
|
+
if (reader.isEndGroup()) {
|
2274
|
+
break;
|
2275
|
+
}
|
2276
|
+
var field = reader.getFieldNumber();
|
2277
|
+
switch (field) {
|
2278
|
+
case 1:
|
2279
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2280
|
+
msg.setId(value);
|
2281
|
+
break;
|
2282
|
+
case 2:
|
2283
|
+
var value = /** @type {string} */ (reader.readString());
|
2284
|
+
msg.setTitle(value);
|
2285
|
+
break;
|
2286
|
+
case 4:
|
2287
|
+
var value = /** @type {string} */ (reader.readString());
|
2288
|
+
msg.setDescription(value);
|
2289
|
+
break;
|
2290
|
+
case 5:
|
2291
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2292
|
+
msg.setIsActive(value);
|
2293
|
+
break;
|
2294
|
+
default:
|
2295
|
+
reader.skipField();
|
2296
|
+
break;
|
2297
|
+
}
|
2298
|
+
}
|
2299
|
+
return msg;
|
2300
|
+
};
|
2301
|
+
|
2302
|
+
|
2303
|
+
/**
|
2304
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2305
|
+
* @return {!Uint8Array}
|
2306
|
+
*/
|
2307
|
+
proto.payment.ProviderItemRequest.prototype.serializeBinary = function() {
|
2308
|
+
var writer = new jspb.BinaryWriter();
|
2309
|
+
proto.payment.ProviderItemRequest.serializeBinaryToWriter(this, writer);
|
2310
|
+
return writer.getResultBuffer();
|
2311
|
+
};
|
2312
|
+
|
2313
|
+
|
2314
|
+
/**
|
2315
|
+
* Serializes the given message to binary data (in protobuf wire
|
2316
|
+
* format), writing to the given BinaryWriter.
|
2317
|
+
* @param {!proto.payment.ProviderItemRequest} message
|
2318
|
+
* @param {!jspb.BinaryWriter} writer
|
2319
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2320
|
+
*/
|
2321
|
+
proto.payment.ProviderItemRequest.serializeBinaryToWriter = function(message, writer) {
|
2322
|
+
var f = undefined;
|
2323
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
2324
|
+
if (f != null) {
|
2325
|
+
writer.writeInt32(
|
2326
|
+
1,
|
2327
|
+
f
|
2328
|
+
);
|
2329
|
+
}
|
2330
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
2331
|
+
if (f != null) {
|
2332
|
+
writer.writeString(
|
2333
|
+
2,
|
2334
|
+
f
|
2335
|
+
);
|
2336
|
+
}
|
2337
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
2338
|
+
if (f != null) {
|
2339
|
+
writer.writeString(
|
2340
|
+
4,
|
2341
|
+
f
|
2342
|
+
);
|
2343
|
+
}
|
2344
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
2345
|
+
if (f != null) {
|
2346
|
+
writer.writeInt32(
|
2347
|
+
5,
|
2348
|
+
f
|
2349
|
+
);
|
2350
|
+
}
|
2351
|
+
};
|
2352
|
+
|
2353
|
+
|
2354
|
+
/**
|
2355
|
+
* optional int32 id = 1;
|
2356
|
+
* @return {number}
|
2357
|
+
*/
|
2358
|
+
proto.payment.ProviderItemRequest.prototype.getId = function() {
|
2359
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
2360
|
+
};
|
2361
|
+
|
2362
|
+
|
2363
|
+
/**
|
2364
|
+
* @param {number} value
|
2365
|
+
* @return {!proto.payment.ProviderItemRequest} returns this
|
2366
|
+
*/
|
2367
|
+
proto.payment.ProviderItemRequest.prototype.setId = function(value) {
|
2368
|
+
return jspb.Message.setField(this, 1, value);
|
2369
|
+
};
|
2370
|
+
|
2371
|
+
|
2372
|
+
/**
|
2373
|
+
* Clears the field making it undefined.
|
2374
|
+
* @return {!proto.payment.ProviderItemRequest} returns this
|
2375
|
+
*/
|
2376
|
+
proto.payment.ProviderItemRequest.prototype.clearId = function() {
|
2377
|
+
return jspb.Message.setField(this, 1, undefined);
|
2378
|
+
};
|
2379
|
+
|
2380
|
+
|
2381
|
+
/**
|
2382
|
+
* Returns whether this field is set.
|
2383
|
+
* @return {boolean}
|
2384
|
+
*/
|
2385
|
+
proto.payment.ProviderItemRequest.prototype.hasId = function() {
|
2386
|
+
return jspb.Message.getField(this, 1) != null;
|
2387
|
+
};
|
2388
|
+
|
2389
|
+
|
2390
|
+
/**
|
2391
|
+
* optional string title = 2;
|
2392
|
+
* @return {string}
|
2393
|
+
*/
|
2394
|
+
proto.payment.ProviderItemRequest.prototype.getTitle = function() {
|
2395
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2396
|
+
};
|
2397
|
+
|
2398
|
+
|
2399
|
+
/**
|
2400
|
+
* @param {string} value
|
2401
|
+
* @return {!proto.payment.ProviderItemRequest} returns this
|
2402
|
+
*/
|
2403
|
+
proto.payment.ProviderItemRequest.prototype.setTitle = function(value) {
|
2404
|
+
return jspb.Message.setField(this, 2, value);
|
2405
|
+
};
|
2406
|
+
|
2407
|
+
|
2408
|
+
/**
|
2409
|
+
* Clears the field making it undefined.
|
2410
|
+
* @return {!proto.payment.ProviderItemRequest} returns this
|
2411
|
+
*/
|
2412
|
+
proto.payment.ProviderItemRequest.prototype.clearTitle = function() {
|
2413
|
+
return jspb.Message.setField(this, 2, undefined);
|
2414
|
+
};
|
2415
|
+
|
2416
|
+
|
2417
|
+
/**
|
2418
|
+
* Returns whether this field is set.
|
2419
|
+
* @return {boolean}
|
2420
|
+
*/
|
2421
|
+
proto.payment.ProviderItemRequest.prototype.hasTitle = function() {
|
2422
|
+
return jspb.Message.getField(this, 2) != null;
|
2423
|
+
};
|
2424
|
+
|
2425
|
+
|
2426
|
+
/**
|
2427
|
+
* optional string description = 4;
|
2428
|
+
* @return {string}
|
2429
|
+
*/
|
2430
|
+
proto.payment.ProviderItemRequest.prototype.getDescription = function() {
|
2431
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
2432
|
+
};
|
2433
|
+
|
2434
|
+
|
2435
|
+
/**
|
2436
|
+
* @param {string} value
|
2437
|
+
* @return {!proto.payment.ProviderItemRequest} returns this
|
2438
|
+
*/
|
2439
|
+
proto.payment.ProviderItemRequest.prototype.setDescription = function(value) {
|
2440
|
+
return jspb.Message.setField(this, 4, value);
|
2441
|
+
};
|
2442
|
+
|
2443
|
+
|
2444
|
+
/**
|
2445
|
+
* Clears the field making it undefined.
|
2446
|
+
* @return {!proto.payment.ProviderItemRequest} returns this
|
2447
|
+
*/
|
2448
|
+
proto.payment.ProviderItemRequest.prototype.clearDescription = function() {
|
2449
|
+
return jspb.Message.setField(this, 4, undefined);
|
2450
|
+
};
|
2451
|
+
|
2452
|
+
|
2453
|
+
/**
|
2454
|
+
* Returns whether this field is set.
|
2455
|
+
* @return {boolean}
|
2456
|
+
*/
|
2457
|
+
proto.payment.ProviderItemRequest.prototype.hasDescription = function() {
|
2458
|
+
return jspb.Message.getField(this, 4) != null;
|
2459
|
+
};
|
2460
|
+
|
2461
|
+
|
2462
|
+
/**
|
2463
|
+
* optional int32 is_active = 5;
|
2464
|
+
* @return {number}
|
2465
|
+
*/
|
2466
|
+
proto.payment.ProviderItemRequest.prototype.getIsActive = function() {
|
2467
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
2468
|
+
};
|
2469
|
+
|
2470
|
+
|
2471
|
+
/**
|
2472
|
+
* @param {number} value
|
2473
|
+
* @return {!proto.payment.ProviderItemRequest} returns this
|
2474
|
+
*/
|
2475
|
+
proto.payment.ProviderItemRequest.prototype.setIsActive = function(value) {
|
2476
|
+
return jspb.Message.setField(this, 5, value);
|
2477
|
+
};
|
2478
|
+
|
2479
|
+
|
2480
|
+
/**
|
2481
|
+
* Clears the field making it undefined.
|
2482
|
+
* @return {!proto.payment.ProviderItemRequest} returns this
|
2483
|
+
*/
|
2484
|
+
proto.payment.ProviderItemRequest.prototype.clearIsActive = function() {
|
2485
|
+
return jspb.Message.setField(this, 5, undefined);
|
2486
|
+
};
|
2487
|
+
|
2488
|
+
|
2489
|
+
/**
|
2490
|
+
* Returns whether this field is set.
|
2491
|
+
* @return {boolean}
|
2492
|
+
*/
|
2493
|
+
proto.payment.ProviderItemRequest.prototype.hasIsActive = function() {
|
2494
|
+
return jspb.Message.getField(this, 5) != null;
|
2495
|
+
};
|
2496
|
+
|
2497
|
+
|
2498
|
+
|
2499
|
+
|
2500
|
+
|
2501
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2502
|
+
/**
|
2503
|
+
* Creates an object representation of this proto.
|
2504
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2505
|
+
* Optional fields that are not set will be set to undefined.
|
2506
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2507
|
+
* For the list of reserved names please see:
|
2508
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2509
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2510
|
+
* JSPB instance for transitional soy proto support:
|
2511
|
+
* http://goto/soy-param-migration
|
2512
|
+
* @return {!Object}
|
2513
|
+
*/
|
2514
|
+
proto.payment.GetProviderRequest.prototype.toObject = function(opt_includeInstance) {
|
2515
|
+
return proto.payment.GetProviderRequest.toObject(opt_includeInstance, this);
|
2516
|
+
};
|
2517
|
+
|
2518
|
+
|
2519
|
+
/**
|
2520
|
+
* Static version of the {@see toObject} method.
|
2521
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2522
|
+
* the JSPB instance for transitional soy proto support:
|
2523
|
+
* http://goto/soy-param-migration
|
2524
|
+
* @param {!proto.payment.GetProviderRequest} msg The msg instance to transform.
|
2525
|
+
* @return {!Object}
|
2526
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2527
|
+
*/
|
2528
|
+
proto.payment.GetProviderRequest.toObject = function(includeInstance, msg) {
|
2529
|
+
var f, obj = {
|
2530
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
2531
|
+
};
|
2532
|
+
|
2533
|
+
if (includeInstance) {
|
2534
|
+
obj.$jspbMessageInstance = msg;
|
2535
|
+
}
|
2536
|
+
return obj;
|
2537
|
+
};
|
2538
|
+
}
|
2539
|
+
|
2540
|
+
|
2541
|
+
/**
|
2542
|
+
* Deserializes binary data (in protobuf wire format).
|
2543
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2544
|
+
* @return {!proto.payment.GetProviderRequest}
|
2545
|
+
*/
|
2546
|
+
proto.payment.GetProviderRequest.deserializeBinary = function(bytes) {
|
2547
|
+
var reader = new jspb.BinaryReader(bytes);
|
2548
|
+
var msg = new proto.payment.GetProviderRequest;
|
2549
|
+
return proto.payment.GetProviderRequest.deserializeBinaryFromReader(msg, reader);
|
2550
|
+
};
|
2551
|
+
|
2552
|
+
|
2553
|
+
/**
|
2554
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2555
|
+
* given reader into the given message object.
|
2556
|
+
* @param {!proto.payment.GetProviderRequest} msg The message object to deserialize into.
|
2557
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2558
|
+
* @return {!proto.payment.GetProviderRequest}
|
2559
|
+
*/
|
2560
|
+
proto.payment.GetProviderRequest.deserializeBinaryFromReader = function(msg, reader) {
|
2561
|
+
while (reader.nextField()) {
|
2562
|
+
if (reader.isEndGroup()) {
|
2563
|
+
break;
|
2564
|
+
}
|
2565
|
+
var field = reader.getFieldNumber();
|
2566
|
+
switch (field) {
|
2567
|
+
case 1:
|
2568
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2569
|
+
msg.setId(value);
|
2570
|
+
break;
|
2571
|
+
default:
|
2572
|
+
reader.skipField();
|
2573
|
+
break;
|
2574
|
+
}
|
2575
|
+
}
|
2576
|
+
return msg;
|
2577
|
+
};
|
2578
|
+
|
2579
|
+
|
2580
|
+
/**
|
2581
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2582
|
+
* @return {!Uint8Array}
|
2583
|
+
*/
|
2584
|
+
proto.payment.GetProviderRequest.prototype.serializeBinary = function() {
|
2585
|
+
var writer = new jspb.BinaryWriter();
|
2586
|
+
proto.payment.GetProviderRequest.serializeBinaryToWriter(this, writer);
|
2587
|
+
return writer.getResultBuffer();
|
2588
|
+
};
|
2589
|
+
|
2590
|
+
|
2591
|
+
/**
|
2592
|
+
* Serializes the given message to binary data (in protobuf wire
|
2593
|
+
* format), writing to the given BinaryWriter.
|
2594
|
+
* @param {!proto.payment.GetProviderRequest} message
|
2595
|
+
* @param {!jspb.BinaryWriter} writer
|
2596
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2597
|
+
*/
|
2598
|
+
proto.payment.GetProviderRequest.serializeBinaryToWriter = function(message, writer) {
|
2599
|
+
var f = undefined;
|
2600
|
+
f = message.getId();
|
2601
|
+
if (f !== 0) {
|
2602
|
+
writer.writeInt32(
|
2603
|
+
1,
|
2604
|
+
f
|
2605
|
+
);
|
2606
|
+
}
|
2607
|
+
};
|
2608
|
+
|
2609
|
+
|
2610
|
+
/**
|
2611
|
+
* optional int32 id = 1;
|
2612
|
+
* @return {number}
|
2613
|
+
*/
|
2614
|
+
proto.payment.GetProviderRequest.prototype.getId = function() {
|
2615
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
2616
|
+
};
|
2617
|
+
|
2618
|
+
|
2619
|
+
/**
|
2620
|
+
* @param {number} value
|
2621
|
+
* @return {!proto.payment.GetProviderRequest} returns this
|
2622
|
+
*/
|
2623
|
+
proto.payment.GetProviderRequest.prototype.setId = function(value) {
|
2624
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
2625
|
+
};
|
2626
|
+
|
2627
|
+
|
2628
|
+
|
2629
|
+
|
2630
|
+
|
2631
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2632
|
+
/**
|
2633
|
+
* Creates an object representation of this proto.
|
2634
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2635
|
+
* Optional fields that are not set will be set to undefined.
|
2636
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2637
|
+
* For the list of reserved names please see:
|
2638
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2639
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2640
|
+
* JSPB instance for transitional soy proto support:
|
2641
|
+
* http://goto/soy-param-migration
|
2642
|
+
* @return {!Object}
|
2643
|
+
*/
|
2644
|
+
proto.payment.ProviderResponse.prototype.toObject = function(opt_includeInstance) {
|
2645
|
+
return proto.payment.ProviderResponse.toObject(opt_includeInstance, this);
|
2646
|
+
};
|
2647
|
+
|
2648
|
+
|
2649
|
+
/**
|
2650
|
+
* Static version of the {@see toObject} method.
|
2651
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2652
|
+
* the JSPB instance for transitional soy proto support:
|
2653
|
+
* http://goto/soy-param-migration
|
2654
|
+
* @param {!proto.payment.ProviderResponse} msg The msg instance to transform.
|
2655
|
+
* @return {!Object}
|
2656
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2657
|
+
*/
|
2658
|
+
proto.payment.ProviderResponse.toObject = function(includeInstance, msg) {
|
2659
|
+
var f, obj = {
|
2660
|
+
data: (f = msg.getData()) && proto.payment.ProviderItem.toObject(includeInstance, f)
|
2661
|
+
};
|
2662
|
+
|
2663
|
+
if (includeInstance) {
|
2664
|
+
obj.$jspbMessageInstance = msg;
|
2665
|
+
}
|
2666
|
+
return obj;
|
2667
|
+
};
|
2668
|
+
}
|
2669
|
+
|
2670
|
+
|
2671
|
+
/**
|
2672
|
+
* Deserializes binary data (in protobuf wire format).
|
2673
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2674
|
+
* @return {!proto.payment.ProviderResponse}
|
2675
|
+
*/
|
2676
|
+
proto.payment.ProviderResponse.deserializeBinary = function(bytes) {
|
2677
|
+
var reader = new jspb.BinaryReader(bytes);
|
2678
|
+
var msg = new proto.payment.ProviderResponse;
|
2679
|
+
return proto.payment.ProviderResponse.deserializeBinaryFromReader(msg, reader);
|
2680
|
+
};
|
2681
|
+
|
2682
|
+
|
2683
|
+
/**
|
2684
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2685
|
+
* given reader into the given message object.
|
2686
|
+
* @param {!proto.payment.ProviderResponse} msg The message object to deserialize into.
|
2687
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2688
|
+
* @return {!proto.payment.ProviderResponse}
|
2689
|
+
*/
|
2690
|
+
proto.payment.ProviderResponse.deserializeBinaryFromReader = function(msg, reader) {
|
2691
|
+
while (reader.nextField()) {
|
2692
|
+
if (reader.isEndGroup()) {
|
2693
|
+
break;
|
2694
|
+
}
|
2695
|
+
var field = reader.getFieldNumber();
|
2696
|
+
switch (field) {
|
2697
|
+
case 1:
|
2698
|
+
var value = new proto.payment.ProviderItem;
|
2699
|
+
reader.readMessage(value,proto.payment.ProviderItem.deserializeBinaryFromReader);
|
2700
|
+
msg.setData(value);
|
2701
|
+
break;
|
2702
|
+
default:
|
2703
|
+
reader.skipField();
|
2704
|
+
break;
|
2705
|
+
}
|
2706
|
+
}
|
2707
|
+
return msg;
|
2708
|
+
};
|
2709
|
+
|
2710
|
+
|
2711
|
+
/**
|
2712
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2713
|
+
* @return {!Uint8Array}
|
2714
|
+
*/
|
2715
|
+
proto.payment.ProviderResponse.prototype.serializeBinary = function() {
|
2716
|
+
var writer = new jspb.BinaryWriter();
|
2717
|
+
proto.payment.ProviderResponse.serializeBinaryToWriter(this, writer);
|
2718
|
+
return writer.getResultBuffer();
|
2719
|
+
};
|
2720
|
+
|
2721
|
+
|
2722
|
+
/**
|
2723
|
+
* Serializes the given message to binary data (in protobuf wire
|
2724
|
+
* format), writing to the given BinaryWriter.
|
2725
|
+
* @param {!proto.payment.ProviderResponse} message
|
2726
|
+
* @param {!jspb.BinaryWriter} writer
|
2727
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2728
|
+
*/
|
2729
|
+
proto.payment.ProviderResponse.serializeBinaryToWriter = function(message, writer) {
|
2730
|
+
var f = undefined;
|
2731
|
+
f = message.getData();
|
2732
|
+
if (f != null) {
|
2733
|
+
writer.writeMessage(
|
2734
|
+
1,
|
2735
|
+
f,
|
2736
|
+
proto.payment.ProviderItem.serializeBinaryToWriter
|
2737
|
+
);
|
2738
|
+
}
|
2739
|
+
};
|
2740
|
+
|
2741
|
+
|
2742
|
+
/**
|
2743
|
+
* optional ProviderItem data = 1;
|
2744
|
+
* @return {?proto.payment.ProviderItem}
|
2745
|
+
*/
|
2746
|
+
proto.payment.ProviderResponse.prototype.getData = function() {
|
2747
|
+
return /** @type{?proto.payment.ProviderItem} */ (
|
2748
|
+
jspb.Message.getWrapperField(this, proto.payment.ProviderItem, 1));
|
2749
|
+
};
|
2750
|
+
|
2751
|
+
|
2752
|
+
/**
|
2753
|
+
* @param {?proto.payment.ProviderItem|undefined} value
|
2754
|
+
* @return {!proto.payment.ProviderResponse} returns this
|
2755
|
+
*/
|
2756
|
+
proto.payment.ProviderResponse.prototype.setData = function(value) {
|
2757
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
2758
|
+
};
|
2759
|
+
|
2760
|
+
|
2761
|
+
/**
|
2762
|
+
* Clears the message field making it undefined.
|
2763
|
+
* @return {!proto.payment.ProviderResponse} returns this
|
2764
|
+
*/
|
2765
|
+
proto.payment.ProviderResponse.prototype.clearData = function() {
|
2766
|
+
return this.setData(undefined);
|
2767
|
+
};
|
2768
|
+
|
2769
|
+
|
2770
|
+
/**
|
2771
|
+
* Returns whether this field is set.
|
2772
|
+
* @return {boolean}
|
2773
|
+
*/
|
2774
|
+
proto.payment.ProviderResponse.prototype.hasData = function() {
|
2775
|
+
return jspb.Message.getField(this, 1) != null;
|
2776
|
+
};
|
2777
|
+
|
2778
|
+
|
2779
|
+
|
2780
|
+
/**
|
2781
|
+
* List of repeated fields within this message type.
|
2782
|
+
* @private {!Array<number>}
|
2783
|
+
* @const
|
2784
|
+
*/
|
2785
|
+
proto.payment.ProviderItemsResponse.repeatedFields_ = [1];
|
2786
|
+
|
2787
|
+
|
2788
|
+
|
2789
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2790
|
+
/**
|
2791
|
+
* Creates an object representation of this proto.
|
2792
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2793
|
+
* Optional fields that are not set will be set to undefined.
|
2794
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2795
|
+
* For the list of reserved names please see:
|
2796
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2797
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2798
|
+
* JSPB instance for transitional soy proto support:
|
2799
|
+
* http://goto/soy-param-migration
|
2800
|
+
* @return {!Object}
|
2801
|
+
*/
|
2802
|
+
proto.payment.ProviderItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
2803
|
+
return proto.payment.ProviderItemsResponse.toObject(opt_includeInstance, this);
|
2804
|
+
};
|
2805
|
+
|
2806
|
+
|
2807
|
+
/**
|
2808
|
+
* Static version of the {@see toObject} method.
|
2809
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2810
|
+
* the JSPB instance for transitional soy proto support:
|
2811
|
+
* http://goto/soy-param-migration
|
2812
|
+
* @param {!proto.payment.ProviderItemsResponse} msg The msg instance to transform.
|
2813
|
+
* @return {!Object}
|
2814
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2815
|
+
*/
|
2816
|
+
proto.payment.ProviderItemsResponse.toObject = function(includeInstance, msg) {
|
2817
|
+
var f, obj = {
|
2818
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
2819
|
+
proto.payment.ProviderItem.toObject, includeInstance),
|
2820
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
2821
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
2822
|
+
};
|
2823
|
+
|
2824
|
+
if (includeInstance) {
|
2825
|
+
obj.$jspbMessageInstance = msg;
|
2826
|
+
}
|
2827
|
+
return obj;
|
2828
|
+
};
|
2829
|
+
}
|
2830
|
+
|
2831
|
+
|
2832
|
+
/**
|
2833
|
+
* Deserializes binary data (in protobuf wire format).
|
2834
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2835
|
+
* @return {!proto.payment.ProviderItemsResponse}
|
2836
|
+
*/
|
2837
|
+
proto.payment.ProviderItemsResponse.deserializeBinary = function(bytes) {
|
2838
|
+
var reader = new jspb.BinaryReader(bytes);
|
2839
|
+
var msg = new proto.payment.ProviderItemsResponse;
|
2840
|
+
return proto.payment.ProviderItemsResponse.deserializeBinaryFromReader(msg, reader);
|
2841
|
+
};
|
2842
|
+
|
2843
|
+
|
2844
|
+
/**
|
2845
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2846
|
+
* given reader into the given message object.
|
2847
|
+
* @param {!proto.payment.ProviderItemsResponse} msg The message object to deserialize into.
|
2848
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2849
|
+
* @return {!proto.payment.ProviderItemsResponse}
|
2850
|
+
*/
|
2851
|
+
proto.payment.ProviderItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
2852
|
+
while (reader.nextField()) {
|
2853
|
+
if (reader.isEndGroup()) {
|
2854
|
+
break;
|
2855
|
+
}
|
2856
|
+
var field = reader.getFieldNumber();
|
2857
|
+
switch (field) {
|
2858
|
+
case 1:
|
2859
|
+
var value = new proto.payment.ProviderItem;
|
2860
|
+
reader.readMessage(value,proto.payment.ProviderItem.deserializeBinaryFromReader);
|
2861
|
+
msg.addItems(value);
|
2862
|
+
break;
|
2863
|
+
case 2:
|
2864
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2865
|
+
msg.setTotalPages(value);
|
2866
|
+
break;
|
2867
|
+
case 3:
|
2868
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2869
|
+
msg.setTotalItems(value);
|
2870
|
+
break;
|
2871
|
+
default:
|
2872
|
+
reader.skipField();
|
2873
|
+
break;
|
2874
|
+
}
|
2875
|
+
}
|
2876
|
+
return msg;
|
2877
|
+
};
|
2878
|
+
|
2879
|
+
|
2880
|
+
/**
|
2881
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2882
|
+
* @return {!Uint8Array}
|
2883
|
+
*/
|
2884
|
+
proto.payment.ProviderItemsResponse.prototype.serializeBinary = function() {
|
2885
|
+
var writer = new jspb.BinaryWriter();
|
2886
|
+
proto.payment.ProviderItemsResponse.serializeBinaryToWriter(this, writer);
|
2887
|
+
return writer.getResultBuffer();
|
2888
|
+
};
|
2889
|
+
|
2890
|
+
|
2891
|
+
/**
|
2892
|
+
* Serializes the given message to binary data (in protobuf wire
|
2893
|
+
* format), writing to the given BinaryWriter.
|
2894
|
+
* @param {!proto.payment.ProviderItemsResponse} message
|
2895
|
+
* @param {!jspb.BinaryWriter} writer
|
2896
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2897
|
+
*/
|
2898
|
+
proto.payment.ProviderItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
2899
|
+
var f = undefined;
|
2900
|
+
f = message.getItemsList();
|
2901
|
+
if (f.length > 0) {
|
2902
|
+
writer.writeRepeatedMessage(
|
2903
|
+
1,
|
2904
|
+
f,
|
2905
|
+
proto.payment.ProviderItem.serializeBinaryToWriter
|
2906
|
+
);
|
2907
|
+
}
|
2908
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
2909
|
+
if (f != null) {
|
2910
|
+
writer.writeInt32(
|
2911
|
+
2,
|
2912
|
+
f
|
2913
|
+
);
|
2914
|
+
}
|
2915
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
2916
|
+
if (f != null) {
|
2917
|
+
writer.writeInt32(
|
2918
|
+
3,
|
2919
|
+
f
|
2920
|
+
);
|
2921
|
+
}
|
2922
|
+
};
|
2923
|
+
|
2924
|
+
|
2925
|
+
/**
|
2926
|
+
* repeated ProviderItem items = 1;
|
2927
|
+
* @return {!Array<!proto.payment.ProviderItem>}
|
2928
|
+
*/
|
2929
|
+
proto.payment.ProviderItemsResponse.prototype.getItemsList = function() {
|
2930
|
+
return /** @type{!Array<!proto.payment.ProviderItem>} */ (
|
2931
|
+
jspb.Message.getRepeatedWrapperField(this, proto.payment.ProviderItem, 1));
|
2932
|
+
};
|
2933
|
+
|
2934
|
+
|
2935
|
+
/**
|
2936
|
+
* @param {!Array<!proto.payment.ProviderItem>} value
|
2937
|
+
* @return {!proto.payment.ProviderItemsResponse} returns this
|
2938
|
+
*/
|
2939
|
+
proto.payment.ProviderItemsResponse.prototype.setItemsList = function(value) {
|
2940
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
2941
|
+
};
|
2942
|
+
|
2943
|
+
|
2944
|
+
/**
|
2945
|
+
* @param {!proto.payment.ProviderItem=} opt_value
|
2946
|
+
* @param {number=} opt_index
|
2947
|
+
* @return {!proto.payment.ProviderItem}
|
2948
|
+
*/
|
2949
|
+
proto.payment.ProviderItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
2950
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.payment.ProviderItem, opt_index);
|
2951
|
+
};
|
2952
|
+
|
2953
|
+
|
2954
|
+
/**
|
2955
|
+
* Clears the list making it empty but non-null.
|
2956
|
+
* @return {!proto.payment.ProviderItemsResponse} returns this
|
2957
|
+
*/
|
2958
|
+
proto.payment.ProviderItemsResponse.prototype.clearItemsList = function() {
|
2959
|
+
return this.setItemsList([]);
|
2960
|
+
};
|
2961
|
+
|
2962
|
+
|
2963
|
+
/**
|
2964
|
+
* optional int32 total_pages = 2;
|
2965
|
+
* @return {number}
|
2966
|
+
*/
|
2967
|
+
proto.payment.ProviderItemsResponse.prototype.getTotalPages = function() {
|
2968
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
2969
|
+
};
|
2970
|
+
|
2971
|
+
|
2972
|
+
/**
|
2973
|
+
* @param {number} value
|
2974
|
+
* @return {!proto.payment.ProviderItemsResponse} returns this
|
2975
|
+
*/
|
2976
|
+
proto.payment.ProviderItemsResponse.prototype.setTotalPages = function(value) {
|
2977
|
+
return jspb.Message.setField(this, 2, value);
|
2978
|
+
};
|
2979
|
+
|
2980
|
+
|
2981
|
+
/**
|
2982
|
+
* Clears the field making it undefined.
|
2983
|
+
* @return {!proto.payment.ProviderItemsResponse} returns this
|
2984
|
+
*/
|
2985
|
+
proto.payment.ProviderItemsResponse.prototype.clearTotalPages = function() {
|
2986
|
+
return jspb.Message.setField(this, 2, undefined);
|
2987
|
+
};
|
2988
|
+
|
2989
|
+
|
2990
|
+
/**
|
2991
|
+
* Returns whether this field is set.
|
2992
|
+
* @return {boolean}
|
2993
|
+
*/
|
2994
|
+
proto.payment.ProviderItemsResponse.prototype.hasTotalPages = function() {
|
2995
|
+
return jspb.Message.getField(this, 2) != null;
|
2996
|
+
};
|
2997
|
+
|
2998
|
+
|
2999
|
+
/**
|
3000
|
+
* optional int32 total_items = 3;
|
3001
|
+
* @return {number}
|
3002
|
+
*/
|
3003
|
+
proto.payment.ProviderItemsResponse.prototype.getTotalItems = function() {
|
3004
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
3005
|
+
};
|
3006
|
+
|
3007
|
+
|
3008
|
+
/**
|
3009
|
+
* @param {number} value
|
3010
|
+
* @return {!proto.payment.ProviderItemsResponse} returns this
|
3011
|
+
*/
|
3012
|
+
proto.payment.ProviderItemsResponse.prototype.setTotalItems = function(value) {
|
3013
|
+
return jspb.Message.setField(this, 3, value);
|
3014
|
+
};
|
3015
|
+
|
3016
|
+
|
3017
|
+
/**
|
3018
|
+
* Clears the field making it undefined.
|
3019
|
+
* @return {!proto.payment.ProviderItemsResponse} returns this
|
3020
|
+
*/
|
3021
|
+
proto.payment.ProviderItemsResponse.prototype.clearTotalItems = function() {
|
3022
|
+
return jspb.Message.setField(this, 3, undefined);
|
3023
|
+
};
|
3024
|
+
|
3025
|
+
|
3026
|
+
/**
|
3027
|
+
* Returns whether this field is set.
|
3028
|
+
* @return {boolean}
|
3029
|
+
*/
|
3030
|
+
proto.payment.ProviderItemsResponse.prototype.hasTotalItems = function() {
|
3031
|
+
return jspb.Message.getField(this, 3) != null;
|
3032
|
+
};
|
3033
|
+
|
3034
|
+
|
3035
|
+
|
3036
|
+
|
3037
|
+
|
3038
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3039
|
+
/**
|
3040
|
+
* Creates an object representation of this proto.
|
3041
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3042
|
+
* Optional fields that are not set will be set to undefined.
|
3043
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3044
|
+
* For the list of reserved names please see:
|
3045
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3046
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3047
|
+
* JSPB instance for transitional soy proto support:
|
3048
|
+
* http://goto/soy-param-migration
|
3049
|
+
* @return {!Object}
|
3050
|
+
*/
|
3051
|
+
proto.payment.PaymentStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
3052
|
+
return proto.payment.PaymentStatusResponse.toObject(opt_includeInstance, this);
|
3053
|
+
};
|
3054
|
+
|
3055
|
+
|
3056
|
+
/**
|
3057
|
+
* Static version of the {@see toObject} method.
|
3058
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3059
|
+
* the JSPB instance for transitional soy proto support:
|
3060
|
+
* http://goto/soy-param-migration
|
3061
|
+
* @param {!proto.payment.PaymentStatusResponse} msg The msg instance to transform.
|
3062
|
+
* @return {!Object}
|
3063
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3064
|
+
*/
|
3065
|
+
proto.payment.PaymentStatusResponse.toObject = function(includeInstance, msg) {
|
3066
|
+
var f, obj = {
|
3067
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
3068
|
+
};
|
3069
|
+
|
3070
|
+
if (includeInstance) {
|
3071
|
+
obj.$jspbMessageInstance = msg;
|
3072
|
+
}
|
3073
|
+
return obj;
|
3074
|
+
};
|
3075
|
+
}
|
3076
|
+
|
3077
|
+
|
3078
|
+
/**
|
3079
|
+
* Deserializes binary data (in protobuf wire format).
|
3080
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3081
|
+
* @return {!proto.payment.PaymentStatusResponse}
|
3082
|
+
*/
|
3083
|
+
proto.payment.PaymentStatusResponse.deserializeBinary = function(bytes) {
|
3084
|
+
var reader = new jspb.BinaryReader(bytes);
|
3085
|
+
var msg = new proto.payment.PaymentStatusResponse;
|
3086
|
+
return proto.payment.PaymentStatusResponse.deserializeBinaryFromReader(msg, reader);
|
3087
|
+
};
|
3088
|
+
|
3089
|
+
|
3090
|
+
/**
|
3091
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3092
|
+
* given reader into the given message object.
|
3093
|
+
* @param {!proto.payment.PaymentStatusResponse} msg The message object to deserialize into.
|
3094
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3095
|
+
* @return {!proto.payment.PaymentStatusResponse}
|
3096
|
+
*/
|
3097
|
+
proto.payment.PaymentStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
3098
|
+
while (reader.nextField()) {
|
3099
|
+
if (reader.isEndGroup()) {
|
3100
|
+
break;
|
3101
|
+
}
|
3102
|
+
var field = reader.getFieldNumber();
|
3103
|
+
switch (field) {
|
3104
|
+
case 1:
|
3105
|
+
var value = /** @type {string} */ (reader.readString());
|
3106
|
+
msg.setStatus(value);
|
3107
|
+
break;
|
3108
|
+
default:
|
3109
|
+
reader.skipField();
|
3110
|
+
break;
|
3111
|
+
}
|
3112
|
+
}
|
3113
|
+
return msg;
|
3114
|
+
};
|
3115
|
+
|
3116
|
+
|
3117
|
+
/**
|
3118
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3119
|
+
* @return {!Uint8Array}
|
3120
|
+
*/
|
3121
|
+
proto.payment.PaymentStatusResponse.prototype.serializeBinary = function() {
|
3122
|
+
var writer = new jspb.BinaryWriter();
|
3123
|
+
proto.payment.PaymentStatusResponse.serializeBinaryToWriter(this, writer);
|
3124
|
+
return writer.getResultBuffer();
|
3125
|
+
};
|
3126
|
+
|
3127
|
+
|
3128
|
+
/**
|
3129
|
+
* Serializes the given message to binary data (in protobuf wire
|
3130
|
+
* format), writing to the given BinaryWriter.
|
3131
|
+
* @param {!proto.payment.PaymentStatusResponse} message
|
3132
|
+
* @param {!jspb.BinaryWriter} writer
|
3133
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3134
|
+
*/
|
3135
|
+
proto.payment.PaymentStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
3136
|
+
var f = undefined;
|
3137
|
+
f = message.getStatus();
|
3138
|
+
if (f.length > 0) {
|
3139
|
+
writer.writeString(
|
3140
|
+
1,
|
3141
|
+
f
|
3142
|
+
);
|
3143
|
+
}
|
3144
|
+
};
|
3145
|
+
|
3146
|
+
|
3147
|
+
/**
|
3148
|
+
* optional string status = 1;
|
3149
|
+
* @return {string}
|
3150
|
+
*/
|
3151
|
+
proto.payment.PaymentStatusResponse.prototype.getStatus = function() {
|
3152
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
3153
|
+
};
|
3154
|
+
|
3155
|
+
|
3156
|
+
/**
|
3157
|
+
* @param {string} value
|
3158
|
+
* @return {!proto.payment.PaymentStatusResponse} returns this
|
3159
|
+
*/
|
3160
|
+
proto.payment.PaymentStatusResponse.prototype.setStatus = function(value) {
|
3161
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
3162
|
+
};
|
3163
|
+
|
3164
|
+
|
3165
|
+
|
3166
|
+
|
3167
|
+
|
3168
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3169
|
+
/**
|
3170
|
+
* Creates an object representation of this proto.
|
3171
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3172
|
+
* Optional fields that are not set will be set to undefined.
|
3173
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3174
|
+
* For the list of reserved names please see:
|
3175
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3176
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3177
|
+
* JSPB instance for transitional soy proto support:
|
3178
|
+
* http://goto/soy-param-migration
|
3179
|
+
* @return {!Object}
|
3180
|
+
*/
|
3181
|
+
proto.payment.MethodItem.prototype.toObject = function(opt_includeInstance) {
|
3182
|
+
return proto.payment.MethodItem.toObject(opt_includeInstance, this);
|
3183
|
+
};
|
3184
|
+
|
3185
|
+
|
3186
|
+
/**
|
3187
|
+
* Static version of the {@see toObject} method.
|
3188
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3189
|
+
* the JSPB instance for transitional soy proto support:
|
3190
|
+
* http://goto/soy-param-migration
|
3191
|
+
* @param {!proto.payment.MethodItem} msg The msg instance to transform.
|
3192
|
+
* @return {!Object}
|
3193
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3194
|
+
*/
|
3195
|
+
proto.payment.MethodItem.toObject = function(includeInstance, msg) {
|
3196
|
+
var f, obj = {
|
3197
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
3198
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
3199
|
+
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
3200
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
3201
|
+
image: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
3202
|
+
transactionType: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
3203
|
+
providerId: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
3204
|
+
providerTitle: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
3205
|
+
providerImage: jspb.Message.getFieldWithDefault(msg, 10, "")
|
3206
|
+
};
|
3207
|
+
|
3208
|
+
if (includeInstance) {
|
3209
|
+
obj.$jspbMessageInstance = msg;
|
3210
|
+
}
|
3211
|
+
return obj;
|
3212
|
+
};
|
3213
|
+
}
|
3214
|
+
|
3215
|
+
|
3216
|
+
/**
|
3217
|
+
* Deserializes binary data (in protobuf wire format).
|
3218
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3219
|
+
* @return {!proto.payment.MethodItem}
|
3220
|
+
*/
|
3221
|
+
proto.payment.MethodItem.deserializeBinary = function(bytes) {
|
3222
|
+
var reader = new jspb.BinaryReader(bytes);
|
3223
|
+
var msg = new proto.payment.MethodItem;
|
3224
|
+
return proto.payment.MethodItem.deserializeBinaryFromReader(msg, reader);
|
3225
|
+
};
|
3226
|
+
|
3227
|
+
|
3228
|
+
/**
|
3229
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3230
|
+
* given reader into the given message object.
|
3231
|
+
* @param {!proto.payment.MethodItem} msg The message object to deserialize into.
|
3232
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3233
|
+
* @return {!proto.payment.MethodItem}
|
3234
|
+
*/
|
3235
|
+
proto.payment.MethodItem.deserializeBinaryFromReader = function(msg, reader) {
|
3236
|
+
while (reader.nextField()) {
|
3237
|
+
if (reader.isEndGroup()) {
|
3238
|
+
break;
|
3239
|
+
}
|
3240
|
+
var field = reader.getFieldNumber();
|
3241
|
+
switch (field) {
|
3242
|
+
case 1:
|
3243
|
+
var value = /** @type {number} */ (reader.readInt32());
|
3244
|
+
msg.setId(value);
|
3245
|
+
break;
|
3246
|
+
case 2:
|
3247
|
+
var value = /** @type {string} */ (reader.readString());
|
3248
|
+
msg.setTitle(value);
|
3249
|
+
break;
|
3250
|
+
case 4:
|
3251
|
+
var value = /** @type {string} */ (reader.readString());
|
3252
|
+
msg.setDescription(value);
|
3253
|
+
break;
|
3254
|
+
case 5:
|
3255
|
+
var value = /** @type {number} */ (reader.readInt32());
|
3256
|
+
msg.setIsActive(value);
|
3257
|
+
break;
|
3258
|
+
case 6:
|
3259
|
+
var value = /** @type {string} */ (reader.readString());
|
3260
|
+
msg.setImage(value);
|
3261
|
+
break;
|
3262
|
+
case 7:
|
3263
|
+
var value = /** @type {string} */ (reader.readString());
|
3264
|
+
msg.setTransactionType(value);
|
3265
|
+
break;
|
3266
|
+
case 8:
|
3267
|
+
var value = /** @type {number} */ (reader.readInt32());
|
3268
|
+
msg.setProviderId(value);
|
3269
|
+
break;
|
3270
|
+
case 9:
|
3271
|
+
var value = /** @type {string} */ (reader.readString());
|
3272
|
+
msg.setProviderTitle(value);
|
3273
|
+
break;
|
3274
|
+
case 10:
|
3275
|
+
var value = /** @type {string} */ (reader.readString());
|
3276
|
+
msg.setProviderImage(value);
|
3277
|
+
break;
|
3278
|
+
default:
|
3279
|
+
reader.skipField();
|
3280
|
+
break;
|
3281
|
+
}
|
3282
|
+
}
|
3283
|
+
return msg;
|
3284
|
+
};
|
3285
|
+
|
3286
|
+
|
3287
|
+
/**
|
3288
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3289
|
+
* @return {!Uint8Array}
|
3290
|
+
*/
|
3291
|
+
proto.payment.MethodItem.prototype.serializeBinary = function() {
|
3292
|
+
var writer = new jspb.BinaryWriter();
|
3293
|
+
proto.payment.MethodItem.serializeBinaryToWriter(this, writer);
|
3294
|
+
return writer.getResultBuffer();
|
3295
|
+
};
|
3296
|
+
|
3297
|
+
|
3298
|
+
/**
|
3299
|
+
* Serializes the given message to binary data (in protobuf wire
|
3300
|
+
* format), writing to the given BinaryWriter.
|
3301
|
+
* @param {!proto.payment.MethodItem} message
|
3302
|
+
* @param {!jspb.BinaryWriter} writer
|
3303
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3304
|
+
*/
|
3305
|
+
proto.payment.MethodItem.serializeBinaryToWriter = function(message, writer) {
|
3306
|
+
var f = undefined;
|
3307
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
3308
|
+
if (f != null) {
|
3309
|
+
writer.writeInt32(
|
3310
|
+
1,
|
3311
|
+
f
|
3312
|
+
);
|
3313
|
+
}
|
3314
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
3315
|
+
if (f != null) {
|
3316
|
+
writer.writeString(
|
3317
|
+
2,
|
3318
|
+
f
|
3319
|
+
);
|
3320
|
+
}
|
3321
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
3322
|
+
if (f != null) {
|
3323
|
+
writer.writeString(
|
3324
|
+
4,
|
3325
|
+
f
|
3326
|
+
);
|
3327
|
+
}
|
3328
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
3329
|
+
if (f != null) {
|
3330
|
+
writer.writeInt32(
|
3331
|
+
5,
|
3332
|
+
f
|
3333
|
+
);
|
3334
|
+
}
|
3335
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
3336
|
+
if (f != null) {
|
3337
|
+
writer.writeString(
|
3338
|
+
6,
|
3339
|
+
f
|
3340
|
+
);
|
3341
|
+
}
|
3342
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
3343
|
+
if (f != null) {
|
3344
|
+
writer.writeString(
|
3345
|
+
7,
|
3346
|
+
f
|
3347
|
+
);
|
3348
|
+
}
|
3349
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 8));
|
3350
|
+
if (f != null) {
|
3351
|
+
writer.writeInt32(
|
3352
|
+
8,
|
3353
|
+
f
|
3354
|
+
);
|
3355
|
+
}
|
3356
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
3357
|
+
if (f != null) {
|
3358
|
+
writer.writeString(
|
3359
|
+
9,
|
3360
|
+
f
|
3361
|
+
);
|
3362
|
+
}
|
3363
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 10));
|
3364
|
+
if (f != null) {
|
3365
|
+
writer.writeString(
|
3366
|
+
10,
|
3367
|
+
f
|
3368
|
+
);
|
3369
|
+
}
|
3370
|
+
};
|
3371
|
+
|
3372
|
+
|
3373
|
+
/**
|
3374
|
+
* optional int32 id = 1;
|
3375
|
+
* @return {number}
|
3376
|
+
*/
|
3377
|
+
proto.payment.MethodItem.prototype.getId = function() {
|
3378
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
3379
|
+
};
|
3380
|
+
|
3381
|
+
|
3382
|
+
/**
|
3383
|
+
* @param {number} value
|
3384
|
+
* @return {!proto.payment.MethodItem} returns this
|
3385
|
+
*/
|
3386
|
+
proto.payment.MethodItem.prototype.setId = function(value) {
|
3387
|
+
return jspb.Message.setField(this, 1, value);
|
3388
|
+
};
|
3389
|
+
|
3390
|
+
|
3391
|
+
/**
|
3392
|
+
* Clears the field making it undefined.
|
3393
|
+
* @return {!proto.payment.MethodItem} returns this
|
3394
|
+
*/
|
3395
|
+
proto.payment.MethodItem.prototype.clearId = function() {
|
3396
|
+
return jspb.Message.setField(this, 1, undefined);
|
3397
|
+
};
|
3398
|
+
|
3399
|
+
|
3400
|
+
/**
|
3401
|
+
* Returns whether this field is set.
|
3402
|
+
* @return {boolean}
|
3403
|
+
*/
|
3404
|
+
proto.payment.MethodItem.prototype.hasId = function() {
|
3405
|
+
return jspb.Message.getField(this, 1) != null;
|
3406
|
+
};
|
3407
|
+
|
3408
|
+
|
3409
|
+
/**
|
3410
|
+
* optional string title = 2;
|
3411
|
+
* @return {string}
|
3412
|
+
*/
|
3413
|
+
proto.payment.MethodItem.prototype.getTitle = function() {
|
3414
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
3415
|
+
};
|
3416
|
+
|
3417
|
+
|
3418
|
+
/**
|
3419
|
+
* @param {string} value
|
3420
|
+
* @return {!proto.payment.MethodItem} returns this
|
3421
|
+
*/
|
3422
|
+
proto.payment.MethodItem.prototype.setTitle = function(value) {
|
3423
|
+
return jspb.Message.setField(this, 2, value);
|
3424
|
+
};
|
3425
|
+
|
3426
|
+
|
3427
|
+
/**
|
3428
|
+
* Clears the field making it undefined.
|
3429
|
+
* @return {!proto.payment.MethodItem} returns this
|
3430
|
+
*/
|
3431
|
+
proto.payment.MethodItem.prototype.clearTitle = function() {
|
3432
|
+
return jspb.Message.setField(this, 2, undefined);
|
3433
|
+
};
|
3434
|
+
|
3435
|
+
|
3436
|
+
/**
|
3437
|
+
* Returns whether this field is set.
|
3438
|
+
* @return {boolean}
|
3439
|
+
*/
|
3440
|
+
proto.payment.MethodItem.prototype.hasTitle = function() {
|
3441
|
+
return jspb.Message.getField(this, 2) != null;
|
3442
|
+
};
|
3443
|
+
|
3444
|
+
|
3445
|
+
/**
|
3446
|
+
* optional string description = 4;
|
3447
|
+
* @return {string}
|
3448
|
+
*/
|
3449
|
+
proto.payment.MethodItem.prototype.getDescription = function() {
|
3450
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
3451
|
+
};
|
3452
|
+
|
3453
|
+
|
3454
|
+
/**
|
3455
|
+
* @param {string} value
|
3456
|
+
* @return {!proto.payment.MethodItem} returns this
|
3457
|
+
*/
|
3458
|
+
proto.payment.MethodItem.prototype.setDescription = function(value) {
|
3459
|
+
return jspb.Message.setField(this, 4, value);
|
3460
|
+
};
|
3461
|
+
|
3462
|
+
|
3463
|
+
/**
|
3464
|
+
* Clears the field making it undefined.
|
3465
|
+
* @return {!proto.payment.MethodItem} returns this
|
3466
|
+
*/
|
3467
|
+
proto.payment.MethodItem.prototype.clearDescription = function() {
|
3468
|
+
return jspb.Message.setField(this, 4, undefined);
|
3469
|
+
};
|
3470
|
+
|
3471
|
+
|
3472
|
+
/**
|
3473
|
+
* Returns whether this field is set.
|
3474
|
+
* @return {boolean}
|
3475
|
+
*/
|
3476
|
+
proto.payment.MethodItem.prototype.hasDescription = function() {
|
3477
|
+
return jspb.Message.getField(this, 4) != null;
|
3478
|
+
};
|
3479
|
+
|
3480
|
+
|
3481
|
+
/**
|
3482
|
+
* optional int32 is_active = 5;
|
3483
|
+
* @return {number}
|
3484
|
+
*/
|
3485
|
+
proto.payment.MethodItem.prototype.getIsActive = function() {
|
3486
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
3487
|
+
};
|
3488
|
+
|
3489
|
+
|
3490
|
+
/**
|
3491
|
+
* @param {number} value
|
3492
|
+
* @return {!proto.payment.MethodItem} returns this
|
3493
|
+
*/
|
3494
|
+
proto.payment.MethodItem.prototype.setIsActive = function(value) {
|
3495
|
+
return jspb.Message.setField(this, 5, value);
|
3496
|
+
};
|
3497
|
+
|
3498
|
+
|
3499
|
+
/**
|
3500
|
+
* Clears the field making it undefined.
|
3501
|
+
* @return {!proto.payment.MethodItem} returns this
|
3502
|
+
*/
|
3503
|
+
proto.payment.MethodItem.prototype.clearIsActive = function() {
|
3504
|
+
return jspb.Message.setField(this, 5, undefined);
|
3505
|
+
};
|
3506
|
+
|
3507
|
+
|
3508
|
+
/**
|
3509
|
+
* Returns whether this field is set.
|
3510
|
+
* @return {boolean}
|
3511
|
+
*/
|
3512
|
+
proto.payment.MethodItem.prototype.hasIsActive = function() {
|
3513
|
+
return jspb.Message.getField(this, 5) != null;
|
3514
|
+
};
|
3515
|
+
|
3516
|
+
|
3517
|
+
/**
|
3518
|
+
* optional string image = 6;
|
3519
|
+
* @return {string}
|
3520
|
+
*/
|
3521
|
+
proto.payment.MethodItem.prototype.getImage = function() {
|
3522
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
3523
|
+
};
|
3524
|
+
|
3525
|
+
|
3526
|
+
/**
|
3527
|
+
* @param {string} value
|
3528
|
+
* @return {!proto.payment.MethodItem} returns this
|
3529
|
+
*/
|
3530
|
+
proto.payment.MethodItem.prototype.setImage = function(value) {
|
3531
|
+
return jspb.Message.setField(this, 6, value);
|
3532
|
+
};
|
3533
|
+
|
3534
|
+
|
3535
|
+
/**
|
3536
|
+
* Clears the field making it undefined.
|
3537
|
+
* @return {!proto.payment.MethodItem} returns this
|
3538
|
+
*/
|
3539
|
+
proto.payment.MethodItem.prototype.clearImage = function() {
|
3540
|
+
return jspb.Message.setField(this, 6, undefined);
|
3541
|
+
};
|
3542
|
+
|
3543
|
+
|
3544
|
+
/**
|
3545
|
+
* Returns whether this field is set.
|
3546
|
+
* @return {boolean}
|
3547
|
+
*/
|
3548
|
+
proto.payment.MethodItem.prototype.hasImage = function() {
|
3549
|
+
return jspb.Message.getField(this, 6) != null;
|
3550
|
+
};
|
3551
|
+
|
3552
|
+
|
3553
|
+
/**
|
3554
|
+
* optional string transaction_type = 7;
|
3555
|
+
* @return {string}
|
3556
|
+
*/
|
3557
|
+
proto.payment.MethodItem.prototype.getTransactionType = function() {
|
3558
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
3559
|
+
};
|
3560
|
+
|
3561
|
+
|
3562
|
+
/**
|
3563
|
+
* @param {string} value
|
3564
|
+
* @return {!proto.payment.MethodItem} returns this
|
3565
|
+
*/
|
3566
|
+
proto.payment.MethodItem.prototype.setTransactionType = function(value) {
|
3567
|
+
return jspb.Message.setField(this, 7, value);
|
3568
|
+
};
|
3569
|
+
|
3570
|
+
|
3571
|
+
/**
|
3572
|
+
* Clears the field making it undefined.
|
3573
|
+
* @return {!proto.payment.MethodItem} returns this
|
3574
|
+
*/
|
3575
|
+
proto.payment.MethodItem.prototype.clearTransactionType = function() {
|
3576
|
+
return jspb.Message.setField(this, 7, undefined);
|
3577
|
+
};
|
3578
|
+
|
3579
|
+
|
3580
|
+
/**
|
3581
|
+
* Returns whether this field is set.
|
3582
|
+
* @return {boolean}
|
3583
|
+
*/
|
3584
|
+
proto.payment.MethodItem.prototype.hasTransactionType = function() {
|
3585
|
+
return jspb.Message.getField(this, 7) != null;
|
3586
|
+
};
|
3587
|
+
|
3588
|
+
|
3589
|
+
/**
|
3590
|
+
* optional int32 provider_id = 8;
|
3591
|
+
* @return {number}
|
3592
|
+
*/
|
3593
|
+
proto.payment.MethodItem.prototype.getProviderId = function() {
|
3594
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
3595
|
+
};
|
3596
|
+
|
3597
|
+
|
3598
|
+
/**
|
3599
|
+
* @param {number} value
|
3600
|
+
* @return {!proto.payment.MethodItem} returns this
|
3601
|
+
*/
|
3602
|
+
proto.payment.MethodItem.prototype.setProviderId = function(value) {
|
3603
|
+
return jspb.Message.setField(this, 8, value);
|
3604
|
+
};
|
3605
|
+
|
3606
|
+
|
3607
|
+
/**
|
3608
|
+
* Clears the field making it undefined.
|
3609
|
+
* @return {!proto.payment.MethodItem} returns this
|
3610
|
+
*/
|
3611
|
+
proto.payment.MethodItem.prototype.clearProviderId = function() {
|
3612
|
+
return jspb.Message.setField(this, 8, undefined);
|
3613
|
+
};
|
3614
|
+
|
3615
|
+
|
3616
|
+
/**
|
3617
|
+
* Returns whether this field is set.
|
3618
|
+
* @return {boolean}
|
3619
|
+
*/
|
3620
|
+
proto.payment.MethodItem.prototype.hasProviderId = function() {
|
3621
|
+
return jspb.Message.getField(this, 8) != null;
|
3622
|
+
};
|
3623
|
+
|
3624
|
+
|
3625
|
+
/**
|
3626
|
+
* optional string provider_title = 9;
|
3627
|
+
* @return {string}
|
3628
|
+
*/
|
3629
|
+
proto.payment.MethodItem.prototype.getProviderTitle = function() {
|
3630
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
3631
|
+
};
|
3632
|
+
|
3633
|
+
|
3634
|
+
/**
|
3635
|
+
* @param {string} value
|
3636
|
+
* @return {!proto.payment.MethodItem} returns this
|
3637
|
+
*/
|
3638
|
+
proto.payment.MethodItem.prototype.setProviderTitle = function(value) {
|
3639
|
+
return jspb.Message.setField(this, 9, value);
|
3640
|
+
};
|
3641
|
+
|
3642
|
+
|
3643
|
+
/**
|
3644
|
+
* Clears the field making it undefined.
|
3645
|
+
* @return {!proto.payment.MethodItem} returns this
|
3646
|
+
*/
|
3647
|
+
proto.payment.MethodItem.prototype.clearProviderTitle = function() {
|
3648
|
+
return jspb.Message.setField(this, 9, undefined);
|
3649
|
+
};
|
3650
|
+
|
3651
|
+
|
3652
|
+
/**
|
3653
|
+
* Returns whether this field is set.
|
3654
|
+
* @return {boolean}
|
3655
|
+
*/
|
3656
|
+
proto.payment.MethodItem.prototype.hasProviderTitle = function() {
|
3657
|
+
return jspb.Message.getField(this, 9) != null;
|
3658
|
+
};
|
3659
|
+
|
3660
|
+
|
3661
|
+
/**
|
3662
|
+
* optional string provider_image = 10;
|
3663
|
+
* @return {string}
|
3664
|
+
*/
|
3665
|
+
proto.payment.MethodItem.prototype.getProviderImage = function() {
|
3666
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
3667
|
+
};
|
3668
|
+
|
3669
|
+
|
3670
|
+
/**
|
3671
|
+
* @param {string} value
|
3672
|
+
* @return {!proto.payment.MethodItem} returns this
|
3673
|
+
*/
|
3674
|
+
proto.payment.MethodItem.prototype.setProviderImage = function(value) {
|
3675
|
+
return jspb.Message.setField(this, 10, value);
|
3676
|
+
};
|
3677
|
+
|
3678
|
+
|
3679
|
+
/**
|
3680
|
+
* Clears the field making it undefined.
|
3681
|
+
* @return {!proto.payment.MethodItem} returns this
|
3682
|
+
*/
|
3683
|
+
proto.payment.MethodItem.prototype.clearProviderImage = function() {
|
3684
|
+
return jspb.Message.setField(this, 10, undefined);
|
3685
|
+
};
|
3686
|
+
|
3687
|
+
|
3688
|
+
/**
|
3689
|
+
* Returns whether this field is set.
|
3690
|
+
* @return {boolean}
|
3691
|
+
*/
|
3692
|
+
proto.payment.MethodItem.prototype.hasProviderImage = function() {
|
3693
|
+
return jspb.Message.getField(this, 10) != null;
|
3694
|
+
};
|
3695
|
+
|
3696
|
+
|
3697
|
+
|
3698
|
+
/**
|
3699
|
+
* Oneof group definitions for this message. Each group defines the field
|
3700
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
3701
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
3702
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
3703
|
+
* @private {!Array<!Array<number>>}
|
3704
|
+
* @const
|
3705
|
+
*/
|
3706
|
+
proto.payment.MethodRequest.oneofGroups_ = [[1,2]];
|
3707
|
+
|
3708
|
+
/**
|
3709
|
+
* @enum {number}
|
3710
|
+
*/
|
3711
|
+
proto.payment.MethodRequest.RequestCase = {
|
3712
|
+
REQUEST_NOT_SET: 0,
|
3713
|
+
METHOD_DATA: 1,
|
3714
|
+
FILE: 2
|
3715
|
+
};
|
3716
|
+
|
3717
|
+
/**
|
3718
|
+
* @return {proto.payment.MethodRequest.RequestCase}
|
3719
|
+
*/
|
3720
|
+
proto.payment.MethodRequest.prototype.getRequestCase = function() {
|
3721
|
+
return /** @type {proto.payment.MethodRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.payment.MethodRequest.oneofGroups_[0]));
|
3722
|
+
};
|
3723
|
+
|
3724
|
+
|
3725
|
+
|
3726
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3727
|
+
/**
|
3728
|
+
* Creates an object representation of this proto.
|
3729
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3730
|
+
* Optional fields that are not set will be set to undefined.
|
3731
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3732
|
+
* For the list of reserved names please see:
|
3733
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3734
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3735
|
+
* JSPB instance for transitional soy proto support:
|
3736
|
+
* http://goto/soy-param-migration
|
3737
|
+
* @return {!Object}
|
3738
|
+
*/
|
3739
|
+
proto.payment.MethodRequest.prototype.toObject = function(opt_includeInstance) {
|
3740
|
+
return proto.payment.MethodRequest.toObject(opt_includeInstance, this);
|
3741
|
+
};
|
3742
|
+
|
3743
|
+
|
3744
|
+
/**
|
3745
|
+
* Static version of the {@see toObject} method.
|
3746
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3747
|
+
* the JSPB instance for transitional soy proto support:
|
3748
|
+
* http://goto/soy-param-migration
|
3749
|
+
* @param {!proto.payment.MethodRequest} msg The msg instance to transform.
|
3750
|
+
* @return {!Object}
|
3751
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3752
|
+
*/
|
3753
|
+
proto.payment.MethodRequest.toObject = function(includeInstance, msg) {
|
3754
|
+
var f, obj = {
|
3755
|
+
methodData: (f = msg.getMethodData()) && proto.payment.MethodItemRequest.toObject(includeInstance, f),
|
3756
|
+
file: (f = msg.getFile()) && proto.payment.File.toObject(includeInstance, f)
|
3757
|
+
};
|
3758
|
+
|
3759
|
+
if (includeInstance) {
|
3760
|
+
obj.$jspbMessageInstance = msg;
|
3761
|
+
}
|
3762
|
+
return obj;
|
3763
|
+
};
|
3764
|
+
}
|
3765
|
+
|
3766
|
+
|
3767
|
+
/**
|
3768
|
+
* Deserializes binary data (in protobuf wire format).
|
3769
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3770
|
+
* @return {!proto.payment.MethodRequest}
|
3771
|
+
*/
|
3772
|
+
proto.payment.MethodRequest.deserializeBinary = function(bytes) {
|
3773
|
+
var reader = new jspb.BinaryReader(bytes);
|
3774
|
+
var msg = new proto.payment.MethodRequest;
|
3775
|
+
return proto.payment.MethodRequest.deserializeBinaryFromReader(msg, reader);
|
3776
|
+
};
|
3777
|
+
|
3778
|
+
|
3779
|
+
/**
|
3780
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3781
|
+
* given reader into the given message object.
|
3782
|
+
* @param {!proto.payment.MethodRequest} msg The message object to deserialize into.
|
3783
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3784
|
+
* @return {!proto.payment.MethodRequest}
|
3785
|
+
*/
|
3786
|
+
proto.payment.MethodRequest.deserializeBinaryFromReader = function(msg, reader) {
|
3787
|
+
while (reader.nextField()) {
|
3788
|
+
if (reader.isEndGroup()) {
|
3789
|
+
break;
|
3790
|
+
}
|
3791
|
+
var field = reader.getFieldNumber();
|
3792
|
+
switch (field) {
|
3793
|
+
case 1:
|
3794
|
+
var value = new proto.payment.MethodItemRequest;
|
3795
|
+
reader.readMessage(value,proto.payment.MethodItemRequest.deserializeBinaryFromReader);
|
3796
|
+
msg.setMethodData(value);
|
3797
|
+
break;
|
3798
|
+
case 2:
|
3799
|
+
var value = new proto.payment.File;
|
3800
|
+
reader.readMessage(value,proto.payment.File.deserializeBinaryFromReader);
|
3801
|
+
msg.setFile(value);
|
3802
|
+
break;
|
3803
|
+
default:
|
3804
|
+
reader.skipField();
|
3805
|
+
break;
|
3806
|
+
}
|
3807
|
+
}
|
3808
|
+
return msg;
|
3809
|
+
};
|
3810
|
+
|
3811
|
+
|
3812
|
+
/**
|
3813
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3814
|
+
* @return {!Uint8Array}
|
3815
|
+
*/
|
3816
|
+
proto.payment.MethodRequest.prototype.serializeBinary = function() {
|
3817
|
+
var writer = new jspb.BinaryWriter();
|
3818
|
+
proto.payment.MethodRequest.serializeBinaryToWriter(this, writer);
|
3819
|
+
return writer.getResultBuffer();
|
3820
|
+
};
|
3821
|
+
|
3822
|
+
|
3823
|
+
/**
|
3824
|
+
* Serializes the given message to binary data (in protobuf wire
|
3825
|
+
* format), writing to the given BinaryWriter.
|
3826
|
+
* @param {!proto.payment.MethodRequest} message
|
3827
|
+
* @param {!jspb.BinaryWriter} writer
|
3828
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3829
|
+
*/
|
3830
|
+
proto.payment.MethodRequest.serializeBinaryToWriter = function(message, writer) {
|
3831
|
+
var f = undefined;
|
3832
|
+
f = message.getMethodData();
|
3833
|
+
if (f != null) {
|
3834
|
+
writer.writeMessage(
|
3835
|
+
1,
|
3836
|
+
f,
|
3837
|
+
proto.payment.MethodItemRequest.serializeBinaryToWriter
|
3838
|
+
);
|
3839
|
+
}
|
3840
|
+
f = message.getFile();
|
3841
|
+
if (f != null) {
|
3842
|
+
writer.writeMessage(
|
3843
|
+
2,
|
3844
|
+
f,
|
3845
|
+
proto.payment.File.serializeBinaryToWriter
|
3846
|
+
);
|
3847
|
+
}
|
3848
|
+
};
|
3849
|
+
|
3850
|
+
|
3851
|
+
/**
|
3852
|
+
* optional MethodItemRequest method_data = 1;
|
3853
|
+
* @return {?proto.payment.MethodItemRequest}
|
3854
|
+
*/
|
3855
|
+
proto.payment.MethodRequest.prototype.getMethodData = function() {
|
3856
|
+
return /** @type{?proto.payment.MethodItemRequest} */ (
|
3857
|
+
jspb.Message.getWrapperField(this, proto.payment.MethodItemRequest, 1));
|
3858
|
+
};
|
3859
|
+
|
3860
|
+
|
3861
|
+
/**
|
3862
|
+
* @param {?proto.payment.MethodItemRequest|undefined} value
|
3863
|
+
* @return {!proto.payment.MethodRequest} returns this
|
3864
|
+
*/
|
3865
|
+
proto.payment.MethodRequest.prototype.setMethodData = function(value) {
|
3866
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.payment.MethodRequest.oneofGroups_[0], value);
|
3867
|
+
};
|
3868
|
+
|
3869
|
+
|
3870
|
+
/**
|
3871
|
+
* Clears the message field making it undefined.
|
3872
|
+
* @return {!proto.payment.MethodRequest} returns this
|
3873
|
+
*/
|
3874
|
+
proto.payment.MethodRequest.prototype.clearMethodData = function() {
|
3875
|
+
return this.setMethodData(undefined);
|
3876
|
+
};
|
3877
|
+
|
3878
|
+
|
3879
|
+
/**
|
3880
|
+
* Returns whether this field is set.
|
3881
|
+
* @return {boolean}
|
3882
|
+
*/
|
3883
|
+
proto.payment.MethodRequest.prototype.hasMethodData = function() {
|
3884
|
+
return jspb.Message.getField(this, 1) != null;
|
3885
|
+
};
|
3886
|
+
|
3887
|
+
|
3888
|
+
/**
|
3889
|
+
* optional File file = 2;
|
3890
|
+
* @return {?proto.payment.File}
|
3891
|
+
*/
|
3892
|
+
proto.payment.MethodRequest.prototype.getFile = function() {
|
3893
|
+
return /** @type{?proto.payment.File} */ (
|
3894
|
+
jspb.Message.getWrapperField(this, proto.payment.File, 2));
|
3895
|
+
};
|
3896
|
+
|
3897
|
+
|
3898
|
+
/**
|
3899
|
+
* @param {?proto.payment.File|undefined} value
|
3900
|
+
* @return {!proto.payment.MethodRequest} returns this
|
3901
|
+
*/
|
3902
|
+
proto.payment.MethodRequest.prototype.setFile = function(value) {
|
3903
|
+
return jspb.Message.setOneofWrapperField(this, 2, proto.payment.MethodRequest.oneofGroups_[0], value);
|
3904
|
+
};
|
3905
|
+
|
3906
|
+
|
3907
|
+
/**
|
3908
|
+
* Clears the message field making it undefined.
|
3909
|
+
* @return {!proto.payment.MethodRequest} returns this
|
3910
|
+
*/
|
3911
|
+
proto.payment.MethodRequest.prototype.clearFile = function() {
|
3912
|
+
return this.setFile(undefined);
|
3913
|
+
};
|
3914
|
+
|
3915
|
+
|
3916
|
+
/**
|
3917
|
+
* Returns whether this field is set.
|
3918
|
+
* @return {boolean}
|
3919
|
+
*/
|
3920
|
+
proto.payment.MethodRequest.prototype.hasFile = function() {
|
3921
|
+
return jspb.Message.getField(this, 2) != null;
|
3922
|
+
};
|
3923
|
+
|
3924
|
+
|
3925
|
+
|
3926
|
+
|
3927
|
+
|
3928
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3929
|
+
/**
|
3930
|
+
* Creates an object representation of this proto.
|
3931
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3932
|
+
* Optional fields that are not set will be set to undefined.
|
3933
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3934
|
+
* For the list of reserved names please see:
|
3935
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3936
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3937
|
+
* JSPB instance for transitional soy proto support:
|
3938
|
+
* http://goto/soy-param-migration
|
3939
|
+
* @return {!Object}
|
3940
|
+
*/
|
3941
|
+
proto.payment.MethodItemRequest.prototype.toObject = function(opt_includeInstance) {
|
3942
|
+
return proto.payment.MethodItemRequest.toObject(opt_includeInstance, this);
|
3943
|
+
};
|
3944
|
+
|
3945
|
+
|
3946
|
+
/**
|
3947
|
+
* Static version of the {@see toObject} method.
|
3948
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3949
|
+
* the JSPB instance for transitional soy proto support:
|
3950
|
+
* http://goto/soy-param-migration
|
3951
|
+
* @param {!proto.payment.MethodItemRequest} msg The msg instance to transform.
|
3952
|
+
* @return {!Object}
|
3953
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3954
|
+
*/
|
3955
|
+
proto.payment.MethodItemRequest.toObject = function(includeInstance, msg) {
|
3956
|
+
var f, obj = {
|
3957
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
3958
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
3959
|
+
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
3960
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
3961
|
+
providerId: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
3962
|
+
transactionType: jspb.Message.getFieldWithDefault(msg, 7, "")
|
3963
|
+
};
|
3964
|
+
|
3965
|
+
if (includeInstance) {
|
3966
|
+
obj.$jspbMessageInstance = msg;
|
3967
|
+
}
|
3968
|
+
return obj;
|
3969
|
+
};
|
3970
|
+
}
|
3971
|
+
|
3972
|
+
|
3973
|
+
/**
|
3974
|
+
* Deserializes binary data (in protobuf wire format).
|
3975
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3976
|
+
* @return {!proto.payment.MethodItemRequest}
|
3977
|
+
*/
|
3978
|
+
proto.payment.MethodItemRequest.deserializeBinary = function(bytes) {
|
3979
|
+
var reader = new jspb.BinaryReader(bytes);
|
3980
|
+
var msg = new proto.payment.MethodItemRequest;
|
3981
|
+
return proto.payment.MethodItemRequest.deserializeBinaryFromReader(msg, reader);
|
3982
|
+
};
|
3983
|
+
|
3984
|
+
|
3985
|
+
/**
|
3986
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3987
|
+
* given reader into the given message object.
|
3988
|
+
* @param {!proto.payment.MethodItemRequest} msg The message object to deserialize into.
|
3989
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3990
|
+
* @return {!proto.payment.MethodItemRequest}
|
3991
|
+
*/
|
3992
|
+
proto.payment.MethodItemRequest.deserializeBinaryFromReader = function(msg, reader) {
|
3993
|
+
while (reader.nextField()) {
|
3994
|
+
if (reader.isEndGroup()) {
|
3995
|
+
break;
|
3996
|
+
}
|
3997
|
+
var field = reader.getFieldNumber();
|
3998
|
+
switch (field) {
|
3999
|
+
case 1:
|
4000
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4001
|
+
msg.setId(value);
|
4002
|
+
break;
|
4003
|
+
case 2:
|
4004
|
+
var value = /** @type {string} */ (reader.readString());
|
4005
|
+
msg.setTitle(value);
|
4006
|
+
break;
|
4007
|
+
case 4:
|
4008
|
+
var value = /** @type {string} */ (reader.readString());
|
4009
|
+
msg.setDescription(value);
|
4010
|
+
break;
|
4011
|
+
case 5:
|
4012
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4013
|
+
msg.setIsActive(value);
|
4014
|
+
break;
|
4015
|
+
case 6:
|
4016
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4017
|
+
msg.setProviderId(value);
|
4018
|
+
break;
|
4019
|
+
case 7:
|
4020
|
+
var value = /** @type {string} */ (reader.readString());
|
4021
|
+
msg.setTransactionType(value);
|
4022
|
+
break;
|
4023
|
+
default:
|
4024
|
+
reader.skipField();
|
4025
|
+
break;
|
4026
|
+
}
|
4027
|
+
}
|
4028
|
+
return msg;
|
4029
|
+
};
|
4030
|
+
|
4031
|
+
|
4032
|
+
/**
|
4033
|
+
* Serializes the message to binary data (in protobuf wire format).
|
4034
|
+
* @return {!Uint8Array}
|
4035
|
+
*/
|
4036
|
+
proto.payment.MethodItemRequest.prototype.serializeBinary = function() {
|
4037
|
+
var writer = new jspb.BinaryWriter();
|
4038
|
+
proto.payment.MethodItemRequest.serializeBinaryToWriter(this, writer);
|
4039
|
+
return writer.getResultBuffer();
|
4040
|
+
};
|
4041
|
+
|
4042
|
+
|
4043
|
+
/**
|
4044
|
+
* Serializes the given message to binary data (in protobuf wire
|
4045
|
+
* format), writing to the given BinaryWriter.
|
4046
|
+
* @param {!proto.payment.MethodItemRequest} message
|
4047
|
+
* @param {!jspb.BinaryWriter} writer
|
4048
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4049
|
+
*/
|
4050
|
+
proto.payment.MethodItemRequest.serializeBinaryToWriter = function(message, writer) {
|
4051
|
+
var f = undefined;
|
4052
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
4053
|
+
if (f != null) {
|
4054
|
+
writer.writeInt32(
|
4055
|
+
1,
|
4056
|
+
f
|
4057
|
+
);
|
4058
|
+
}
|
4059
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
4060
|
+
if (f != null) {
|
4061
|
+
writer.writeString(
|
4062
|
+
2,
|
4063
|
+
f
|
4064
|
+
);
|
4065
|
+
}
|
4066
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
4067
|
+
if (f != null) {
|
4068
|
+
writer.writeString(
|
4069
|
+
4,
|
4070
|
+
f
|
4071
|
+
);
|
4072
|
+
}
|
4073
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
4074
|
+
if (f != null) {
|
4075
|
+
writer.writeInt32(
|
4076
|
+
5,
|
4077
|
+
f
|
4078
|
+
);
|
4079
|
+
}
|
4080
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
4081
|
+
if (f != null) {
|
4082
|
+
writer.writeInt32(
|
4083
|
+
6,
|
4084
|
+
f
|
4085
|
+
);
|
4086
|
+
}
|
4087
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
4088
|
+
if (f != null) {
|
4089
|
+
writer.writeString(
|
4090
|
+
7,
|
4091
|
+
f
|
4092
|
+
);
|
4093
|
+
}
|
4094
|
+
};
|
4095
|
+
|
4096
|
+
|
4097
|
+
/**
|
4098
|
+
* optional int32 id = 1;
|
4099
|
+
* @return {number}
|
4100
|
+
*/
|
4101
|
+
proto.payment.MethodItemRequest.prototype.getId = function() {
|
4102
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
4103
|
+
};
|
4104
|
+
|
4105
|
+
|
4106
|
+
/**
|
4107
|
+
* @param {number} value
|
4108
|
+
* @return {!proto.payment.MethodItemRequest} returns this
|
4109
|
+
*/
|
4110
|
+
proto.payment.MethodItemRequest.prototype.setId = function(value) {
|
4111
|
+
return jspb.Message.setField(this, 1, value);
|
4112
|
+
};
|
4113
|
+
|
4114
|
+
|
4115
|
+
/**
|
4116
|
+
* Clears the field making it undefined.
|
4117
|
+
* @return {!proto.payment.MethodItemRequest} returns this
|
4118
|
+
*/
|
4119
|
+
proto.payment.MethodItemRequest.prototype.clearId = function() {
|
4120
|
+
return jspb.Message.setField(this, 1, undefined);
|
4121
|
+
};
|
4122
|
+
|
4123
|
+
|
4124
|
+
/**
|
4125
|
+
* Returns whether this field is set.
|
4126
|
+
* @return {boolean}
|
4127
|
+
*/
|
4128
|
+
proto.payment.MethodItemRequest.prototype.hasId = function() {
|
4129
|
+
return jspb.Message.getField(this, 1) != null;
|
4130
|
+
};
|
4131
|
+
|
4132
|
+
|
4133
|
+
/**
|
4134
|
+
* optional string title = 2;
|
4135
|
+
* @return {string}
|
4136
|
+
*/
|
4137
|
+
proto.payment.MethodItemRequest.prototype.getTitle = function() {
|
4138
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
4139
|
+
};
|
4140
|
+
|
4141
|
+
|
4142
|
+
/**
|
4143
|
+
* @param {string} value
|
4144
|
+
* @return {!proto.payment.MethodItemRequest} returns this
|
4145
|
+
*/
|
4146
|
+
proto.payment.MethodItemRequest.prototype.setTitle = function(value) {
|
4147
|
+
return jspb.Message.setField(this, 2, value);
|
4148
|
+
};
|
4149
|
+
|
4150
|
+
|
4151
|
+
/**
|
4152
|
+
* Clears the field making it undefined.
|
4153
|
+
* @return {!proto.payment.MethodItemRequest} returns this
|
4154
|
+
*/
|
4155
|
+
proto.payment.MethodItemRequest.prototype.clearTitle = function() {
|
4156
|
+
return jspb.Message.setField(this, 2, undefined);
|
4157
|
+
};
|
4158
|
+
|
4159
|
+
|
4160
|
+
/**
|
4161
|
+
* Returns whether this field is set.
|
4162
|
+
* @return {boolean}
|
4163
|
+
*/
|
4164
|
+
proto.payment.MethodItemRequest.prototype.hasTitle = function() {
|
4165
|
+
return jspb.Message.getField(this, 2) != null;
|
4166
|
+
};
|
4167
|
+
|
4168
|
+
|
4169
|
+
/**
|
4170
|
+
* optional string description = 4;
|
4171
|
+
* @return {string}
|
4172
|
+
*/
|
4173
|
+
proto.payment.MethodItemRequest.prototype.getDescription = function() {
|
4174
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
4175
|
+
};
|
4176
|
+
|
4177
|
+
|
4178
|
+
/**
|
4179
|
+
* @param {string} value
|
4180
|
+
* @return {!proto.payment.MethodItemRequest} returns this
|
4181
|
+
*/
|
4182
|
+
proto.payment.MethodItemRequest.prototype.setDescription = function(value) {
|
4183
|
+
return jspb.Message.setField(this, 4, value);
|
4184
|
+
};
|
4185
|
+
|
4186
|
+
|
4187
|
+
/**
|
4188
|
+
* Clears the field making it undefined.
|
4189
|
+
* @return {!proto.payment.MethodItemRequest} returns this
|
4190
|
+
*/
|
4191
|
+
proto.payment.MethodItemRequest.prototype.clearDescription = function() {
|
4192
|
+
return jspb.Message.setField(this, 4, undefined);
|
4193
|
+
};
|
4194
|
+
|
4195
|
+
|
4196
|
+
/**
|
4197
|
+
* Returns whether this field is set.
|
4198
|
+
* @return {boolean}
|
4199
|
+
*/
|
4200
|
+
proto.payment.MethodItemRequest.prototype.hasDescription = function() {
|
4201
|
+
return jspb.Message.getField(this, 4) != null;
|
4202
|
+
};
|
4203
|
+
|
4204
|
+
|
4205
|
+
/**
|
4206
|
+
* optional int32 is_active = 5;
|
4207
|
+
* @return {number}
|
4208
|
+
*/
|
4209
|
+
proto.payment.MethodItemRequest.prototype.getIsActive = function() {
|
4210
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
4211
|
+
};
|
4212
|
+
|
4213
|
+
|
4214
|
+
/**
|
4215
|
+
* @param {number} value
|
4216
|
+
* @return {!proto.payment.MethodItemRequest} returns this
|
4217
|
+
*/
|
4218
|
+
proto.payment.MethodItemRequest.prototype.setIsActive = function(value) {
|
4219
|
+
return jspb.Message.setField(this, 5, value);
|
4220
|
+
};
|
4221
|
+
|
4222
|
+
|
4223
|
+
/**
|
4224
|
+
* Clears the field making it undefined.
|
4225
|
+
* @return {!proto.payment.MethodItemRequest} returns this
|
4226
|
+
*/
|
4227
|
+
proto.payment.MethodItemRequest.prototype.clearIsActive = function() {
|
4228
|
+
return jspb.Message.setField(this, 5, undefined);
|
4229
|
+
};
|
4230
|
+
|
4231
|
+
|
4232
|
+
/**
|
4233
|
+
* Returns whether this field is set.
|
4234
|
+
* @return {boolean}
|
4235
|
+
*/
|
4236
|
+
proto.payment.MethodItemRequest.prototype.hasIsActive = function() {
|
4237
|
+
return jspb.Message.getField(this, 5) != null;
|
4238
|
+
};
|
4239
|
+
|
4240
|
+
|
4241
|
+
/**
|
4242
|
+
* optional int32 provider_id = 6;
|
4243
|
+
* @return {number}
|
4244
|
+
*/
|
4245
|
+
proto.payment.MethodItemRequest.prototype.getProviderId = function() {
|
4246
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
4247
|
+
};
|
4248
|
+
|
4249
|
+
|
4250
|
+
/**
|
4251
|
+
* @param {number} value
|
4252
|
+
* @return {!proto.payment.MethodItemRequest} returns this
|
4253
|
+
*/
|
4254
|
+
proto.payment.MethodItemRequest.prototype.setProviderId = function(value) {
|
4255
|
+
return jspb.Message.setField(this, 6, value);
|
4256
|
+
};
|
4257
|
+
|
4258
|
+
|
4259
|
+
/**
|
4260
|
+
* Clears the field making it undefined.
|
4261
|
+
* @return {!proto.payment.MethodItemRequest} returns this
|
4262
|
+
*/
|
4263
|
+
proto.payment.MethodItemRequest.prototype.clearProviderId = function() {
|
4264
|
+
return jspb.Message.setField(this, 6, undefined);
|
4265
|
+
};
|
4266
|
+
|
4267
|
+
|
4268
|
+
/**
|
4269
|
+
* Returns whether this field is set.
|
4270
|
+
* @return {boolean}
|
4271
|
+
*/
|
4272
|
+
proto.payment.MethodItemRequest.prototype.hasProviderId = function() {
|
4273
|
+
return jspb.Message.getField(this, 6) != null;
|
4274
|
+
};
|
4275
|
+
|
4276
|
+
|
4277
|
+
/**
|
4278
|
+
* optional string transaction_type = 7;
|
4279
|
+
* @return {string}
|
4280
|
+
*/
|
4281
|
+
proto.payment.MethodItemRequest.prototype.getTransactionType = function() {
|
4282
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
4283
|
+
};
|
4284
|
+
|
4285
|
+
|
4286
|
+
/**
|
4287
|
+
* @param {string} value
|
4288
|
+
* @return {!proto.payment.MethodItemRequest} returns this
|
4289
|
+
*/
|
4290
|
+
proto.payment.MethodItemRequest.prototype.setTransactionType = function(value) {
|
4291
|
+
return jspb.Message.setField(this, 7, value);
|
4292
|
+
};
|
4293
|
+
|
4294
|
+
|
4295
|
+
/**
|
4296
|
+
* Clears the field making it undefined.
|
4297
|
+
* @return {!proto.payment.MethodItemRequest} returns this
|
4298
|
+
*/
|
4299
|
+
proto.payment.MethodItemRequest.prototype.clearTransactionType = function() {
|
4300
|
+
return jspb.Message.setField(this, 7, undefined);
|
4301
|
+
};
|
4302
|
+
|
4303
|
+
|
4304
|
+
/**
|
4305
|
+
* Returns whether this field is set.
|
4306
|
+
* @return {boolean}
|
4307
|
+
*/
|
4308
|
+
proto.payment.MethodItemRequest.prototype.hasTransactionType = function() {
|
4309
|
+
return jspb.Message.getField(this, 7) != null;
|
4310
|
+
};
|
4311
|
+
|
4312
|
+
|
4313
|
+
|
4314
|
+
|
4315
|
+
|
4316
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
4317
|
+
/**
|
4318
|
+
* Creates an object representation of this proto.
|
4319
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
4320
|
+
* Optional fields that are not set will be set to undefined.
|
4321
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
4322
|
+
* For the list of reserved names please see:
|
4323
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
4324
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
4325
|
+
* JSPB instance for transitional soy proto support:
|
4326
|
+
* http://goto/soy-param-migration
|
4327
|
+
* @return {!Object}
|
4328
|
+
*/
|
4329
|
+
proto.payment.GetMethodRequest.prototype.toObject = function(opt_includeInstance) {
|
4330
|
+
return proto.payment.GetMethodRequest.toObject(opt_includeInstance, this);
|
4331
|
+
};
|
4332
|
+
|
4333
|
+
|
4334
|
+
/**
|
4335
|
+
* Static version of the {@see toObject} method.
|
4336
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
4337
|
+
* the JSPB instance for transitional soy proto support:
|
4338
|
+
* http://goto/soy-param-migration
|
4339
|
+
* @param {!proto.payment.GetMethodRequest} msg The msg instance to transform.
|
4340
|
+
* @return {!Object}
|
4341
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4342
|
+
*/
|
4343
|
+
proto.payment.GetMethodRequest.toObject = function(includeInstance, msg) {
|
4344
|
+
var f, obj = {
|
4345
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
4346
|
+
};
|
4347
|
+
|
4348
|
+
if (includeInstance) {
|
4349
|
+
obj.$jspbMessageInstance = msg;
|
4350
|
+
}
|
4351
|
+
return obj;
|
4352
|
+
};
|
4353
|
+
}
|
4354
|
+
|
4355
|
+
|
4356
|
+
/**
|
4357
|
+
* Deserializes binary data (in protobuf wire format).
|
4358
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
4359
|
+
* @return {!proto.payment.GetMethodRequest}
|
4360
|
+
*/
|
4361
|
+
proto.payment.GetMethodRequest.deserializeBinary = function(bytes) {
|
4362
|
+
var reader = new jspb.BinaryReader(bytes);
|
4363
|
+
var msg = new proto.payment.GetMethodRequest;
|
4364
|
+
return proto.payment.GetMethodRequest.deserializeBinaryFromReader(msg, reader);
|
4365
|
+
};
|
4366
|
+
|
4367
|
+
|
4368
|
+
/**
|
4369
|
+
* Deserializes binary data (in protobuf wire format) from the
|
4370
|
+
* given reader into the given message object.
|
4371
|
+
* @param {!proto.payment.GetMethodRequest} msg The message object to deserialize into.
|
4372
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
4373
|
+
* @return {!proto.payment.GetMethodRequest}
|
4374
|
+
*/
|
4375
|
+
proto.payment.GetMethodRequest.deserializeBinaryFromReader = function(msg, reader) {
|
4376
|
+
while (reader.nextField()) {
|
4377
|
+
if (reader.isEndGroup()) {
|
4378
|
+
break;
|
4379
|
+
}
|
4380
|
+
var field = reader.getFieldNumber();
|
4381
|
+
switch (field) {
|
4382
|
+
case 1:
|
4383
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4384
|
+
msg.setId(value);
|
4385
|
+
break;
|
4386
|
+
default:
|
4387
|
+
reader.skipField();
|
4388
|
+
break;
|
4389
|
+
}
|
4390
|
+
}
|
4391
|
+
return msg;
|
4392
|
+
};
|
4393
|
+
|
4394
|
+
|
4395
|
+
/**
|
4396
|
+
* Serializes the message to binary data (in protobuf wire format).
|
4397
|
+
* @return {!Uint8Array}
|
4398
|
+
*/
|
4399
|
+
proto.payment.GetMethodRequest.prototype.serializeBinary = function() {
|
4400
|
+
var writer = new jspb.BinaryWriter();
|
4401
|
+
proto.payment.GetMethodRequest.serializeBinaryToWriter(this, writer);
|
4402
|
+
return writer.getResultBuffer();
|
4403
|
+
};
|
4404
|
+
|
4405
|
+
|
4406
|
+
/**
|
4407
|
+
* Serializes the given message to binary data (in protobuf wire
|
4408
|
+
* format), writing to the given BinaryWriter.
|
4409
|
+
* @param {!proto.payment.GetMethodRequest} message
|
4410
|
+
* @param {!jspb.BinaryWriter} writer
|
4411
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4412
|
+
*/
|
4413
|
+
proto.payment.GetMethodRequest.serializeBinaryToWriter = function(message, writer) {
|
4414
|
+
var f = undefined;
|
4415
|
+
f = message.getId();
|
4416
|
+
if (f !== 0) {
|
4417
|
+
writer.writeInt32(
|
4418
|
+
1,
|
4419
|
+
f
|
4420
|
+
);
|
4421
|
+
}
|
4422
|
+
};
|
4423
|
+
|
4424
|
+
|
4425
|
+
/**
|
4426
|
+
* optional int32 id = 1;
|
4427
|
+
* @return {number}
|
4428
|
+
*/
|
4429
|
+
proto.payment.GetMethodRequest.prototype.getId = function() {
|
4430
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
4431
|
+
};
|
4432
|
+
|
4433
|
+
|
4434
|
+
/**
|
4435
|
+
* @param {number} value
|
4436
|
+
* @return {!proto.payment.GetMethodRequest} returns this
|
4437
|
+
*/
|
4438
|
+
proto.payment.GetMethodRequest.prototype.setId = function(value) {
|
4439
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
4440
|
+
};
|
4441
|
+
|
4442
|
+
|
4443
|
+
|
4444
|
+
|
4445
|
+
|
4446
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
4447
|
+
/**
|
4448
|
+
* Creates an object representation of this proto.
|
4449
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
4450
|
+
* Optional fields that are not set will be set to undefined.
|
4451
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
4452
|
+
* For the list of reserved names please see:
|
4453
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
4454
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
4455
|
+
* JSPB instance for transitional soy proto support:
|
4456
|
+
* http://goto/soy-param-migration
|
4457
|
+
* @return {!Object}
|
4458
|
+
*/
|
4459
|
+
proto.payment.MethodResponse.prototype.toObject = function(opt_includeInstance) {
|
4460
|
+
return proto.payment.MethodResponse.toObject(opt_includeInstance, this);
|
4461
|
+
};
|
4462
|
+
|
4463
|
+
|
4464
|
+
/**
|
4465
|
+
* Static version of the {@see toObject} method.
|
4466
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
4467
|
+
* the JSPB instance for transitional soy proto support:
|
4468
|
+
* http://goto/soy-param-migration
|
4469
|
+
* @param {!proto.payment.MethodResponse} msg The msg instance to transform.
|
4470
|
+
* @return {!Object}
|
4471
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4472
|
+
*/
|
4473
|
+
proto.payment.MethodResponse.toObject = function(includeInstance, msg) {
|
4474
|
+
var f, obj = {
|
4475
|
+
data: (f = msg.getData()) && proto.payment.MethodItem.toObject(includeInstance, f)
|
4476
|
+
};
|
4477
|
+
|
4478
|
+
if (includeInstance) {
|
4479
|
+
obj.$jspbMessageInstance = msg;
|
4480
|
+
}
|
4481
|
+
return obj;
|
4482
|
+
};
|
4483
|
+
}
|
4484
|
+
|
4485
|
+
|
4486
|
+
/**
|
4487
|
+
* Deserializes binary data (in protobuf wire format).
|
4488
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
4489
|
+
* @return {!proto.payment.MethodResponse}
|
4490
|
+
*/
|
4491
|
+
proto.payment.MethodResponse.deserializeBinary = function(bytes) {
|
4492
|
+
var reader = new jspb.BinaryReader(bytes);
|
4493
|
+
var msg = new proto.payment.MethodResponse;
|
4494
|
+
return proto.payment.MethodResponse.deserializeBinaryFromReader(msg, reader);
|
4495
|
+
};
|
4496
|
+
|
4497
|
+
|
4498
|
+
/**
|
4499
|
+
* Deserializes binary data (in protobuf wire format) from the
|
4500
|
+
* given reader into the given message object.
|
4501
|
+
* @param {!proto.payment.MethodResponse} msg The message object to deserialize into.
|
4502
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
4503
|
+
* @return {!proto.payment.MethodResponse}
|
4504
|
+
*/
|
4505
|
+
proto.payment.MethodResponse.deserializeBinaryFromReader = function(msg, reader) {
|
4506
|
+
while (reader.nextField()) {
|
4507
|
+
if (reader.isEndGroup()) {
|
4508
|
+
break;
|
4509
|
+
}
|
4510
|
+
var field = reader.getFieldNumber();
|
4511
|
+
switch (field) {
|
4512
|
+
case 1:
|
4513
|
+
var value = new proto.payment.MethodItem;
|
4514
|
+
reader.readMessage(value,proto.payment.MethodItem.deserializeBinaryFromReader);
|
4515
|
+
msg.setData(value);
|
4516
|
+
break;
|
4517
|
+
default:
|
4518
|
+
reader.skipField();
|
4519
|
+
break;
|
4520
|
+
}
|
4521
|
+
}
|
4522
|
+
return msg;
|
4523
|
+
};
|
4524
|
+
|
4525
|
+
|
4526
|
+
/**
|
4527
|
+
* Serializes the message to binary data (in protobuf wire format).
|
4528
|
+
* @return {!Uint8Array}
|
4529
|
+
*/
|
4530
|
+
proto.payment.MethodResponse.prototype.serializeBinary = function() {
|
4531
|
+
var writer = new jspb.BinaryWriter();
|
4532
|
+
proto.payment.MethodResponse.serializeBinaryToWriter(this, writer);
|
4533
|
+
return writer.getResultBuffer();
|
4534
|
+
};
|
4535
|
+
|
4536
|
+
|
4537
|
+
/**
|
4538
|
+
* Serializes the given message to binary data (in protobuf wire
|
4539
|
+
* format), writing to the given BinaryWriter.
|
4540
|
+
* @param {!proto.payment.MethodResponse} message
|
4541
|
+
* @param {!jspb.BinaryWriter} writer
|
4542
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4543
|
+
*/
|
4544
|
+
proto.payment.MethodResponse.serializeBinaryToWriter = function(message, writer) {
|
4545
|
+
var f = undefined;
|
4546
|
+
f = message.getData();
|
4547
|
+
if (f != null) {
|
4548
|
+
writer.writeMessage(
|
4549
|
+
1,
|
4550
|
+
f,
|
4551
|
+
proto.payment.MethodItem.serializeBinaryToWriter
|
4552
|
+
);
|
4553
|
+
}
|
4554
|
+
};
|
4555
|
+
|
4556
|
+
|
4557
|
+
/**
|
4558
|
+
* optional MethodItem data = 1;
|
4559
|
+
* @return {?proto.payment.MethodItem}
|
4560
|
+
*/
|
4561
|
+
proto.payment.MethodResponse.prototype.getData = function() {
|
4562
|
+
return /** @type{?proto.payment.MethodItem} */ (
|
4563
|
+
jspb.Message.getWrapperField(this, proto.payment.MethodItem, 1));
|
4564
|
+
};
|
4565
|
+
|
4566
|
+
|
4567
|
+
/**
|
4568
|
+
* @param {?proto.payment.MethodItem|undefined} value
|
4569
|
+
* @return {!proto.payment.MethodResponse} returns this
|
4570
|
+
*/
|
4571
|
+
proto.payment.MethodResponse.prototype.setData = function(value) {
|
4572
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
4573
|
+
};
|
4574
|
+
|
4575
|
+
|
4576
|
+
/**
|
4577
|
+
* Clears the message field making it undefined.
|
4578
|
+
* @return {!proto.payment.MethodResponse} returns this
|
4579
|
+
*/
|
4580
|
+
proto.payment.MethodResponse.prototype.clearData = function() {
|
4581
|
+
return this.setData(undefined);
|
4582
|
+
};
|
4583
|
+
|
4584
|
+
|
4585
|
+
/**
|
4586
|
+
* Returns whether this field is set.
|
4587
|
+
* @return {boolean}
|
4588
|
+
*/
|
4589
|
+
proto.payment.MethodResponse.prototype.hasData = function() {
|
4590
|
+
return jspb.Message.getField(this, 1) != null;
|
4591
|
+
};
|
4592
|
+
|
4593
|
+
|
4594
|
+
|
4595
|
+
/**
|
4596
|
+
* List of repeated fields within this message type.
|
4597
|
+
* @private {!Array<number>}
|
4598
|
+
* @const
|
4599
|
+
*/
|
4600
|
+
proto.payment.MethodItemsResponse.repeatedFields_ = [1];
|
4601
|
+
|
4602
|
+
|
4603
|
+
|
4604
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
4605
|
+
/**
|
4606
|
+
* Creates an object representation of this proto.
|
4607
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
4608
|
+
* Optional fields that are not set will be set to undefined.
|
4609
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
4610
|
+
* For the list of reserved names please see:
|
4611
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
4612
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
4613
|
+
* JSPB instance for transitional soy proto support:
|
4614
|
+
* http://goto/soy-param-migration
|
4615
|
+
* @return {!Object}
|
4616
|
+
*/
|
4617
|
+
proto.payment.MethodItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
4618
|
+
return proto.payment.MethodItemsResponse.toObject(opt_includeInstance, this);
|
4619
|
+
};
|
4620
|
+
|
4621
|
+
|
4622
|
+
/**
|
4623
|
+
* Static version of the {@see toObject} method.
|
4624
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
4625
|
+
* the JSPB instance for transitional soy proto support:
|
4626
|
+
* http://goto/soy-param-migration
|
4627
|
+
* @param {!proto.payment.MethodItemsResponse} msg The msg instance to transform.
|
4628
|
+
* @return {!Object}
|
4629
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4630
|
+
*/
|
4631
|
+
proto.payment.MethodItemsResponse.toObject = function(includeInstance, msg) {
|
4632
|
+
var f, obj = {
|
4633
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
4634
|
+
proto.payment.MethodItem.toObject, includeInstance),
|
4635
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
4636
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
4637
|
+
};
|
4638
|
+
|
4639
|
+
if (includeInstance) {
|
4640
|
+
obj.$jspbMessageInstance = msg;
|
4641
|
+
}
|
4642
|
+
return obj;
|
4643
|
+
};
|
4644
|
+
}
|
4645
|
+
|
4646
|
+
|
4647
|
+
/**
|
4648
|
+
* Deserializes binary data (in protobuf wire format).
|
4649
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
4650
|
+
* @return {!proto.payment.MethodItemsResponse}
|
4651
|
+
*/
|
4652
|
+
proto.payment.MethodItemsResponse.deserializeBinary = function(bytes) {
|
4653
|
+
var reader = new jspb.BinaryReader(bytes);
|
4654
|
+
var msg = new proto.payment.MethodItemsResponse;
|
4655
|
+
return proto.payment.MethodItemsResponse.deserializeBinaryFromReader(msg, reader);
|
4656
|
+
};
|
4657
|
+
|
4658
|
+
|
4659
|
+
/**
|
4660
|
+
* Deserializes binary data (in protobuf wire format) from the
|
4661
|
+
* given reader into the given message object.
|
4662
|
+
* @param {!proto.payment.MethodItemsResponse} msg The message object to deserialize into.
|
4663
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
4664
|
+
* @return {!proto.payment.MethodItemsResponse}
|
4665
|
+
*/
|
4666
|
+
proto.payment.MethodItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
4667
|
+
while (reader.nextField()) {
|
4668
|
+
if (reader.isEndGroup()) {
|
4669
|
+
break;
|
4670
|
+
}
|
4671
|
+
var field = reader.getFieldNumber();
|
4672
|
+
switch (field) {
|
4673
|
+
case 1:
|
4674
|
+
var value = new proto.payment.MethodItem;
|
4675
|
+
reader.readMessage(value,proto.payment.MethodItem.deserializeBinaryFromReader);
|
4676
|
+
msg.addItems(value);
|
4677
|
+
break;
|
4678
|
+
case 2:
|
4679
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4680
|
+
msg.setTotalPages(value);
|
4681
|
+
break;
|
4682
|
+
case 3:
|
4683
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4684
|
+
msg.setTotalItems(value);
|
4685
|
+
break;
|
4686
|
+
default:
|
4687
|
+
reader.skipField();
|
4688
|
+
break;
|
4689
|
+
}
|
4690
|
+
}
|
4691
|
+
return msg;
|
4692
|
+
};
|
4693
|
+
|
4694
|
+
|
4695
|
+
/**
|
4696
|
+
* Serializes the message to binary data (in protobuf wire format).
|
4697
|
+
* @return {!Uint8Array}
|
4698
|
+
*/
|
4699
|
+
proto.payment.MethodItemsResponse.prototype.serializeBinary = function() {
|
4700
|
+
var writer = new jspb.BinaryWriter();
|
4701
|
+
proto.payment.MethodItemsResponse.serializeBinaryToWriter(this, writer);
|
4702
|
+
return writer.getResultBuffer();
|
4703
|
+
};
|
4704
|
+
|
4705
|
+
|
4706
|
+
/**
|
4707
|
+
* Serializes the given message to binary data (in protobuf wire
|
4708
|
+
* format), writing to the given BinaryWriter.
|
4709
|
+
* @param {!proto.payment.MethodItemsResponse} message
|
4710
|
+
* @param {!jspb.BinaryWriter} writer
|
4711
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4712
|
+
*/
|
4713
|
+
proto.payment.MethodItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
4714
|
+
var f = undefined;
|
4715
|
+
f = message.getItemsList();
|
4716
|
+
if (f.length > 0) {
|
4717
|
+
writer.writeRepeatedMessage(
|
4718
|
+
1,
|
4719
|
+
f,
|
4720
|
+
proto.payment.MethodItem.serializeBinaryToWriter
|
4721
|
+
);
|
4722
|
+
}
|
4723
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
4724
|
+
if (f != null) {
|
4725
|
+
writer.writeInt32(
|
4726
|
+
2,
|
4727
|
+
f
|
4728
|
+
);
|
4729
|
+
}
|
4730
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
4731
|
+
if (f != null) {
|
4732
|
+
writer.writeInt32(
|
4733
|
+
3,
|
4734
|
+
f
|
4735
|
+
);
|
4736
|
+
}
|
4737
|
+
};
|
4738
|
+
|
4739
|
+
|
4740
|
+
/**
|
4741
|
+
* repeated MethodItem items = 1;
|
4742
|
+
* @return {!Array<!proto.payment.MethodItem>}
|
4743
|
+
*/
|
4744
|
+
proto.payment.MethodItemsResponse.prototype.getItemsList = function() {
|
4745
|
+
return /** @type{!Array<!proto.payment.MethodItem>} */ (
|
4746
|
+
jspb.Message.getRepeatedWrapperField(this, proto.payment.MethodItem, 1));
|
4747
|
+
};
|
4748
|
+
|
4749
|
+
|
4750
|
+
/**
|
4751
|
+
* @param {!Array<!proto.payment.MethodItem>} value
|
4752
|
+
* @return {!proto.payment.MethodItemsResponse} returns this
|
4753
|
+
*/
|
4754
|
+
proto.payment.MethodItemsResponse.prototype.setItemsList = function(value) {
|
4755
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
4756
|
+
};
|
4757
|
+
|
4758
|
+
|
4759
|
+
/**
|
4760
|
+
* @param {!proto.payment.MethodItem=} opt_value
|
4761
|
+
* @param {number=} opt_index
|
4762
|
+
* @return {!proto.payment.MethodItem}
|
4763
|
+
*/
|
4764
|
+
proto.payment.MethodItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
4765
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.payment.MethodItem, opt_index);
|
4766
|
+
};
|
4767
|
+
|
4768
|
+
|
4769
|
+
/**
|
4770
|
+
* Clears the list making it empty but non-null.
|
4771
|
+
* @return {!proto.payment.MethodItemsResponse} returns this
|
4772
|
+
*/
|
4773
|
+
proto.payment.MethodItemsResponse.prototype.clearItemsList = function() {
|
4774
|
+
return this.setItemsList([]);
|
4775
|
+
};
|
4776
|
+
|
4777
|
+
|
4778
|
+
/**
|
4779
|
+
* optional int32 total_pages = 2;
|
4780
|
+
* @return {number}
|
4781
|
+
*/
|
4782
|
+
proto.payment.MethodItemsResponse.prototype.getTotalPages = function() {
|
4783
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
4784
|
+
};
|
4785
|
+
|
4786
|
+
|
4787
|
+
/**
|
4788
|
+
* @param {number} value
|
4789
|
+
* @return {!proto.payment.MethodItemsResponse} returns this
|
4790
|
+
*/
|
4791
|
+
proto.payment.MethodItemsResponse.prototype.setTotalPages = function(value) {
|
4792
|
+
return jspb.Message.setField(this, 2, value);
|
4793
|
+
};
|
4794
|
+
|
4795
|
+
|
4796
|
+
/**
|
4797
|
+
* Clears the field making it undefined.
|
4798
|
+
* @return {!proto.payment.MethodItemsResponse} returns this
|
4799
|
+
*/
|
4800
|
+
proto.payment.MethodItemsResponse.prototype.clearTotalPages = function() {
|
4801
|
+
return jspb.Message.setField(this, 2, undefined);
|
4802
|
+
};
|
4803
|
+
|
4804
|
+
|
4805
|
+
/**
|
4806
|
+
* Returns whether this field is set.
|
4807
|
+
* @return {boolean}
|
4808
|
+
*/
|
4809
|
+
proto.payment.MethodItemsResponse.prototype.hasTotalPages = function() {
|
4810
|
+
return jspb.Message.getField(this, 2) != null;
|
4811
|
+
};
|
4812
|
+
|
4813
|
+
|
4814
|
+
/**
|
4815
|
+
* optional int32 total_items = 3;
|
4816
|
+
* @return {number}
|
4817
|
+
*/
|
4818
|
+
proto.payment.MethodItemsResponse.prototype.getTotalItems = function() {
|
4819
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
4820
|
+
};
|
4821
|
+
|
4822
|
+
|
4823
|
+
/**
|
4824
|
+
* @param {number} value
|
4825
|
+
* @return {!proto.payment.MethodItemsResponse} returns this
|
4826
|
+
*/
|
4827
|
+
proto.payment.MethodItemsResponse.prototype.setTotalItems = function(value) {
|
4828
|
+
return jspb.Message.setField(this, 3, value);
|
4829
|
+
};
|
4830
|
+
|
4831
|
+
|
4832
|
+
/**
|
4833
|
+
* Clears the field making it undefined.
|
4834
|
+
* @return {!proto.payment.MethodItemsResponse} returns this
|
4835
|
+
*/
|
4836
|
+
proto.payment.MethodItemsResponse.prototype.clearTotalItems = function() {
|
4837
|
+
return jspb.Message.setField(this, 3, undefined);
|
4838
|
+
};
|
4839
|
+
|
4840
|
+
|
4841
|
+
/**
|
4842
|
+
* Returns whether this field is set.
|
4843
|
+
* @return {boolean}
|
4844
|
+
*/
|
4845
|
+
proto.payment.MethodItemsResponse.prototype.hasTotalItems = function() {
|
4846
|
+
return jspb.Message.getField(this, 3) != null;
|
4847
|
+
};
|
4848
|
+
|
4849
|
+
|
1194
4850
|
goog.object.extend(exports, proto.payment);
|