protobuf-platform 1.0.204 → 1.0.205

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/index.js CHANGED
@@ -21,6 +21,8 @@ const LoyaltyService = require('./loyalty/loyalty_grpc_pb');
21
21
  const LoyaltyServiceMessages = require('./loyalty/loyalty_pb');
22
22
  const NotificationService = require('./notification/notification_grpc_pb');
23
23
  const NotificationServiceMessages = require('./notification/notification_pb');
24
+ const PaymentService = require('./payment/payment_grpc_pb');
25
+ const PaymentServiceMessages = require('./payment/payment_pb');
24
26
  module.exports = {
25
27
  gRPC: gRPC,
26
28
  maxSendMessageLength: 10388608,
@@ -66,4 +68,8 @@ module.exports = {
66
68
  service: NotificationService,
67
69
  messages: NotificationServiceMessages
68
70
  },
71
+ payment: {
72
+ service: PaymentService,
73
+ messages: PaymentServiceMessages
74
+ },
69
75
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.204",
3
+ "version": "1.0.205",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,21 @@
1
+ syntax = "proto3";
2
+
3
+ package payment;
4
+
5
+ service Payment {
6
+ rpc checkConnection(PingRequest) returns (PongResponse);
7
+ rpc getMediaResource(GetFileRequest) returns (stream File);
8
+ }
9
+ //Technical
10
+ message PingRequest { string ping = 1; }
11
+ message PongResponse { string pong = 1; }
12
+ //Media
13
+ message File { bytes media = 1; }
14
+ message GetFileRequest { string file_name = 1; string instance_type = 2; }
15
+
16
+ message PaginationRequest { int32 limit = 1; int32 offset = 2; optional PaymentSearchRequest payment_search_params = 3; }
17
+ message PaymentSearchRequest {
18
+ optional int32 payment_id = 1;
19
+ repeated string currency = 2;
20
+ repeated string geo = 3;
21
+ }
@@ -0,0 +1,77 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var payment_pb = require('./payment_pb.js');
6
+
7
+ function serialize_payment_File(arg) {
8
+ if (!(arg instanceof payment_pb.File)) {
9
+ throw new Error('Expected argument of type payment.File');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_payment_File(buffer_arg) {
15
+ return payment_pb.File.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_payment_GetFileRequest(arg) {
19
+ if (!(arg instanceof payment_pb.GetFileRequest)) {
20
+ throw new Error('Expected argument of type payment.GetFileRequest');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_payment_GetFileRequest(buffer_arg) {
26
+ return payment_pb.GetFileRequest.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
29
+ function serialize_payment_PingRequest(arg) {
30
+ if (!(arg instanceof payment_pb.PingRequest)) {
31
+ throw new Error('Expected argument of type payment.PingRequest');
32
+ }
33
+ return Buffer.from(arg.serializeBinary());
34
+ }
35
+
36
+ function deserialize_payment_PingRequest(buffer_arg) {
37
+ return payment_pb.PingRequest.deserializeBinary(new Uint8Array(buffer_arg));
38
+ }
39
+
40
+ function serialize_payment_PongResponse(arg) {
41
+ if (!(arg instanceof payment_pb.PongResponse)) {
42
+ throw new Error('Expected argument of type payment.PongResponse');
43
+ }
44
+ return Buffer.from(arg.serializeBinary());
45
+ }
46
+
47
+ function deserialize_payment_PongResponse(buffer_arg) {
48
+ return payment_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
+ }
50
+
51
+
52
+ var PaymentService = exports.PaymentService = {
53
+ checkConnection: {
54
+ path: '/payment.Payment/checkConnection',
55
+ requestStream: false,
56
+ responseStream: false,
57
+ requestType: payment_pb.PingRequest,
58
+ responseType: payment_pb.PongResponse,
59
+ requestSerialize: serialize_payment_PingRequest,
60
+ requestDeserialize: deserialize_payment_PingRequest,
61
+ responseSerialize: serialize_payment_PongResponse,
62
+ responseDeserialize: deserialize_payment_PongResponse,
63
+ },
64
+ getMediaResource: {
65
+ path: '/payment.Payment/getMediaResource',
66
+ requestStream: false,
67
+ responseStream: true,
68
+ requestType: payment_pb.GetFileRequest,
69
+ responseType: payment_pb.File,
70
+ requestSerialize: serialize_payment_GetFileRequest,
71
+ requestDeserialize: deserialize_payment_GetFileRequest,
72
+ responseSerialize: serialize_payment_File,
73
+ responseDeserialize: deserialize_payment_File,
74
+ },
75
+ };
76
+
77
+ exports.PaymentClient = grpc.makeGenericClientConstructor(PaymentService);
@@ -0,0 +1,1194 @@
1
+ // source: payment.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
23
+
24
+ goog.exportSymbol('proto.payment.File', null, global);
25
+ goog.exportSymbol('proto.payment.GetFileRequest', null, global);
26
+ goog.exportSymbol('proto.payment.PaginationRequest', null, global);
27
+ goog.exportSymbol('proto.payment.PaymentSearchRequest', null, global);
28
+ goog.exportSymbol('proto.payment.PingRequest', null, global);
29
+ goog.exportSymbol('proto.payment.PongResponse', null, global);
30
+ /**
31
+ * Generated by JsPbCodeGenerator.
32
+ * @param {Array=} opt_data Optional initial data array, typically from a
33
+ * server response, or constructed directly in Javascript. The array is used
34
+ * in place and becomes part of the constructed object. It is not cloned.
35
+ * If no data is provided, the constructed object will be empty, but still
36
+ * valid.
37
+ * @extends {jspb.Message}
38
+ * @constructor
39
+ */
40
+ proto.payment.PingRequest = function(opt_data) {
41
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
42
+ };
43
+ goog.inherits(proto.payment.PingRequest, jspb.Message);
44
+ if (goog.DEBUG && !COMPILED) {
45
+ /**
46
+ * @public
47
+ * @override
48
+ */
49
+ proto.payment.PingRequest.displayName = 'proto.payment.PingRequest';
50
+ }
51
+ /**
52
+ * Generated by JsPbCodeGenerator.
53
+ * @param {Array=} opt_data Optional initial data array, typically from a
54
+ * server response, or constructed directly in Javascript. The array is used
55
+ * in place and becomes part of the constructed object. It is not cloned.
56
+ * If no data is provided, the constructed object will be empty, but still
57
+ * valid.
58
+ * @extends {jspb.Message}
59
+ * @constructor
60
+ */
61
+ proto.payment.PongResponse = function(opt_data) {
62
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
63
+ };
64
+ goog.inherits(proto.payment.PongResponse, jspb.Message);
65
+ if (goog.DEBUG && !COMPILED) {
66
+ /**
67
+ * @public
68
+ * @override
69
+ */
70
+ proto.payment.PongResponse.displayName = 'proto.payment.PongResponse';
71
+ }
72
+ /**
73
+ * Generated by JsPbCodeGenerator.
74
+ * @param {Array=} opt_data Optional initial data array, typically from a
75
+ * server response, or constructed directly in Javascript. The array is used
76
+ * in place and becomes part of the constructed object. It is not cloned.
77
+ * If no data is provided, the constructed object will be empty, but still
78
+ * valid.
79
+ * @extends {jspb.Message}
80
+ * @constructor
81
+ */
82
+ proto.payment.File = function(opt_data) {
83
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
84
+ };
85
+ goog.inherits(proto.payment.File, jspb.Message);
86
+ if (goog.DEBUG && !COMPILED) {
87
+ /**
88
+ * @public
89
+ * @override
90
+ */
91
+ proto.payment.File.displayName = 'proto.payment.File';
92
+ }
93
+ /**
94
+ * Generated by JsPbCodeGenerator.
95
+ * @param {Array=} opt_data Optional initial data array, typically from a
96
+ * server response, or constructed directly in Javascript. The array is used
97
+ * in place and becomes part of the constructed object. It is not cloned.
98
+ * If no data is provided, the constructed object will be empty, but still
99
+ * valid.
100
+ * @extends {jspb.Message}
101
+ * @constructor
102
+ */
103
+ proto.payment.GetFileRequest = function(opt_data) {
104
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
105
+ };
106
+ goog.inherits(proto.payment.GetFileRequest, jspb.Message);
107
+ if (goog.DEBUG && !COMPILED) {
108
+ /**
109
+ * @public
110
+ * @override
111
+ */
112
+ proto.payment.GetFileRequest.displayName = 'proto.payment.GetFileRequest';
113
+ }
114
+ /**
115
+ * Generated by JsPbCodeGenerator.
116
+ * @param {Array=} opt_data Optional initial data array, typically from a
117
+ * server response, or constructed directly in Javascript. The array is used
118
+ * in place and becomes part of the constructed object. It is not cloned.
119
+ * If no data is provided, the constructed object will be empty, but still
120
+ * valid.
121
+ * @extends {jspb.Message}
122
+ * @constructor
123
+ */
124
+ proto.payment.PaginationRequest = function(opt_data) {
125
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
126
+ };
127
+ goog.inherits(proto.payment.PaginationRequest, jspb.Message);
128
+ if (goog.DEBUG && !COMPILED) {
129
+ /**
130
+ * @public
131
+ * @override
132
+ */
133
+ proto.payment.PaginationRequest.displayName = 'proto.payment.PaginationRequest';
134
+ }
135
+ /**
136
+ * Generated by JsPbCodeGenerator.
137
+ * @param {Array=} opt_data Optional initial data array, typically from a
138
+ * server response, or constructed directly in Javascript. The array is used
139
+ * in place and becomes part of the constructed object. It is not cloned.
140
+ * If no data is provided, the constructed object will be empty, but still
141
+ * valid.
142
+ * @extends {jspb.Message}
143
+ * @constructor
144
+ */
145
+ proto.payment.PaymentSearchRequest = function(opt_data) {
146
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.PaymentSearchRequest.repeatedFields_, null);
147
+ };
148
+ goog.inherits(proto.payment.PaymentSearchRequest, jspb.Message);
149
+ if (goog.DEBUG && !COMPILED) {
150
+ /**
151
+ * @public
152
+ * @override
153
+ */
154
+ proto.payment.PaymentSearchRequest.displayName = 'proto.payment.PaymentSearchRequest';
155
+ }
156
+
157
+
158
+
159
+ if (jspb.Message.GENERATE_TO_OBJECT) {
160
+ /**
161
+ * Creates an object representation of this proto.
162
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
163
+ * Optional fields that are not set will be set to undefined.
164
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
165
+ * For the list of reserved names please see:
166
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
167
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
168
+ * JSPB instance for transitional soy proto support:
169
+ * http://goto/soy-param-migration
170
+ * @return {!Object}
171
+ */
172
+ proto.payment.PingRequest.prototype.toObject = function(opt_includeInstance) {
173
+ return proto.payment.PingRequest.toObject(opt_includeInstance, this);
174
+ };
175
+
176
+
177
+ /**
178
+ * Static version of the {@see toObject} method.
179
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
180
+ * the JSPB instance for transitional soy proto support:
181
+ * http://goto/soy-param-migration
182
+ * @param {!proto.payment.PingRequest} msg The msg instance to transform.
183
+ * @return {!Object}
184
+ * @suppress {unusedLocalVariables} f is only used for nested messages
185
+ */
186
+ proto.payment.PingRequest.toObject = function(includeInstance, msg) {
187
+ var f, obj = {
188
+ ping: jspb.Message.getFieldWithDefault(msg, 1, "")
189
+ };
190
+
191
+ if (includeInstance) {
192
+ obj.$jspbMessageInstance = msg;
193
+ }
194
+ return obj;
195
+ };
196
+ }
197
+
198
+
199
+ /**
200
+ * Deserializes binary data (in protobuf wire format).
201
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
202
+ * @return {!proto.payment.PingRequest}
203
+ */
204
+ proto.payment.PingRequest.deserializeBinary = function(bytes) {
205
+ var reader = new jspb.BinaryReader(bytes);
206
+ var msg = new proto.payment.PingRequest;
207
+ return proto.payment.PingRequest.deserializeBinaryFromReader(msg, reader);
208
+ };
209
+
210
+
211
+ /**
212
+ * Deserializes binary data (in protobuf wire format) from the
213
+ * given reader into the given message object.
214
+ * @param {!proto.payment.PingRequest} msg The message object to deserialize into.
215
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
216
+ * @return {!proto.payment.PingRequest}
217
+ */
218
+ proto.payment.PingRequest.deserializeBinaryFromReader = function(msg, reader) {
219
+ while (reader.nextField()) {
220
+ if (reader.isEndGroup()) {
221
+ break;
222
+ }
223
+ var field = reader.getFieldNumber();
224
+ switch (field) {
225
+ case 1:
226
+ var value = /** @type {string} */ (reader.readString());
227
+ msg.setPing(value);
228
+ break;
229
+ default:
230
+ reader.skipField();
231
+ break;
232
+ }
233
+ }
234
+ return msg;
235
+ };
236
+
237
+
238
+ /**
239
+ * Serializes the message to binary data (in protobuf wire format).
240
+ * @return {!Uint8Array}
241
+ */
242
+ proto.payment.PingRequest.prototype.serializeBinary = function() {
243
+ var writer = new jspb.BinaryWriter();
244
+ proto.payment.PingRequest.serializeBinaryToWriter(this, writer);
245
+ return writer.getResultBuffer();
246
+ };
247
+
248
+
249
+ /**
250
+ * Serializes the given message to binary data (in protobuf wire
251
+ * format), writing to the given BinaryWriter.
252
+ * @param {!proto.payment.PingRequest} message
253
+ * @param {!jspb.BinaryWriter} writer
254
+ * @suppress {unusedLocalVariables} f is only used for nested messages
255
+ */
256
+ proto.payment.PingRequest.serializeBinaryToWriter = function(message, writer) {
257
+ var f = undefined;
258
+ f = message.getPing();
259
+ if (f.length > 0) {
260
+ writer.writeString(
261
+ 1,
262
+ f
263
+ );
264
+ }
265
+ };
266
+
267
+
268
+ /**
269
+ * optional string ping = 1;
270
+ * @return {string}
271
+ */
272
+ proto.payment.PingRequest.prototype.getPing = function() {
273
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
274
+ };
275
+
276
+
277
+ /**
278
+ * @param {string} value
279
+ * @return {!proto.payment.PingRequest} returns this
280
+ */
281
+ proto.payment.PingRequest.prototype.setPing = function(value) {
282
+ return jspb.Message.setProto3StringField(this, 1, value);
283
+ };
284
+
285
+
286
+
287
+
288
+
289
+ if (jspb.Message.GENERATE_TO_OBJECT) {
290
+ /**
291
+ * Creates an object representation of this proto.
292
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
293
+ * Optional fields that are not set will be set to undefined.
294
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
295
+ * For the list of reserved names please see:
296
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
297
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
298
+ * JSPB instance for transitional soy proto support:
299
+ * http://goto/soy-param-migration
300
+ * @return {!Object}
301
+ */
302
+ proto.payment.PongResponse.prototype.toObject = function(opt_includeInstance) {
303
+ return proto.payment.PongResponse.toObject(opt_includeInstance, this);
304
+ };
305
+
306
+
307
+ /**
308
+ * Static version of the {@see toObject} method.
309
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
310
+ * the JSPB instance for transitional soy proto support:
311
+ * http://goto/soy-param-migration
312
+ * @param {!proto.payment.PongResponse} msg The msg instance to transform.
313
+ * @return {!Object}
314
+ * @suppress {unusedLocalVariables} f is only used for nested messages
315
+ */
316
+ proto.payment.PongResponse.toObject = function(includeInstance, msg) {
317
+ var f, obj = {
318
+ pong: jspb.Message.getFieldWithDefault(msg, 1, "")
319
+ };
320
+
321
+ if (includeInstance) {
322
+ obj.$jspbMessageInstance = msg;
323
+ }
324
+ return obj;
325
+ };
326
+ }
327
+
328
+
329
+ /**
330
+ * Deserializes binary data (in protobuf wire format).
331
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
332
+ * @return {!proto.payment.PongResponse}
333
+ */
334
+ proto.payment.PongResponse.deserializeBinary = function(bytes) {
335
+ var reader = new jspb.BinaryReader(bytes);
336
+ var msg = new proto.payment.PongResponse;
337
+ return proto.payment.PongResponse.deserializeBinaryFromReader(msg, reader);
338
+ };
339
+
340
+
341
+ /**
342
+ * Deserializes binary data (in protobuf wire format) from the
343
+ * given reader into the given message object.
344
+ * @param {!proto.payment.PongResponse} msg The message object to deserialize into.
345
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
346
+ * @return {!proto.payment.PongResponse}
347
+ */
348
+ proto.payment.PongResponse.deserializeBinaryFromReader = function(msg, reader) {
349
+ while (reader.nextField()) {
350
+ if (reader.isEndGroup()) {
351
+ break;
352
+ }
353
+ var field = reader.getFieldNumber();
354
+ switch (field) {
355
+ case 1:
356
+ var value = /** @type {string} */ (reader.readString());
357
+ msg.setPong(value);
358
+ break;
359
+ default:
360
+ reader.skipField();
361
+ break;
362
+ }
363
+ }
364
+ return msg;
365
+ };
366
+
367
+
368
+ /**
369
+ * Serializes the message to binary data (in protobuf wire format).
370
+ * @return {!Uint8Array}
371
+ */
372
+ proto.payment.PongResponse.prototype.serializeBinary = function() {
373
+ var writer = new jspb.BinaryWriter();
374
+ proto.payment.PongResponse.serializeBinaryToWriter(this, writer);
375
+ return writer.getResultBuffer();
376
+ };
377
+
378
+
379
+ /**
380
+ * Serializes the given message to binary data (in protobuf wire
381
+ * format), writing to the given BinaryWriter.
382
+ * @param {!proto.payment.PongResponse} message
383
+ * @param {!jspb.BinaryWriter} writer
384
+ * @suppress {unusedLocalVariables} f is only used for nested messages
385
+ */
386
+ proto.payment.PongResponse.serializeBinaryToWriter = function(message, writer) {
387
+ var f = undefined;
388
+ f = message.getPong();
389
+ if (f.length > 0) {
390
+ writer.writeString(
391
+ 1,
392
+ f
393
+ );
394
+ }
395
+ };
396
+
397
+
398
+ /**
399
+ * optional string pong = 1;
400
+ * @return {string}
401
+ */
402
+ proto.payment.PongResponse.prototype.getPong = function() {
403
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
404
+ };
405
+
406
+
407
+ /**
408
+ * @param {string} value
409
+ * @return {!proto.payment.PongResponse} returns this
410
+ */
411
+ proto.payment.PongResponse.prototype.setPong = function(value) {
412
+ return jspb.Message.setProto3StringField(this, 1, value);
413
+ };
414
+
415
+
416
+
417
+
418
+
419
+ if (jspb.Message.GENERATE_TO_OBJECT) {
420
+ /**
421
+ * Creates an object representation of this proto.
422
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
423
+ * Optional fields that are not set will be set to undefined.
424
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
425
+ * For the list of reserved names please see:
426
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
427
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
428
+ * JSPB instance for transitional soy proto support:
429
+ * http://goto/soy-param-migration
430
+ * @return {!Object}
431
+ */
432
+ proto.payment.File.prototype.toObject = function(opt_includeInstance) {
433
+ return proto.payment.File.toObject(opt_includeInstance, this);
434
+ };
435
+
436
+
437
+ /**
438
+ * Static version of the {@see toObject} method.
439
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
440
+ * the JSPB instance for transitional soy proto support:
441
+ * http://goto/soy-param-migration
442
+ * @param {!proto.payment.File} msg The msg instance to transform.
443
+ * @return {!Object}
444
+ * @suppress {unusedLocalVariables} f is only used for nested messages
445
+ */
446
+ proto.payment.File.toObject = function(includeInstance, msg) {
447
+ var f, obj = {
448
+ media: msg.getMedia_asB64()
449
+ };
450
+
451
+ if (includeInstance) {
452
+ obj.$jspbMessageInstance = msg;
453
+ }
454
+ return obj;
455
+ };
456
+ }
457
+
458
+
459
+ /**
460
+ * Deserializes binary data (in protobuf wire format).
461
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
462
+ * @return {!proto.payment.File}
463
+ */
464
+ proto.payment.File.deserializeBinary = function(bytes) {
465
+ var reader = new jspb.BinaryReader(bytes);
466
+ var msg = new proto.payment.File;
467
+ return proto.payment.File.deserializeBinaryFromReader(msg, reader);
468
+ };
469
+
470
+
471
+ /**
472
+ * Deserializes binary data (in protobuf wire format) from the
473
+ * given reader into the given message object.
474
+ * @param {!proto.payment.File} msg The message object to deserialize into.
475
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
476
+ * @return {!proto.payment.File}
477
+ */
478
+ proto.payment.File.deserializeBinaryFromReader = function(msg, reader) {
479
+ while (reader.nextField()) {
480
+ if (reader.isEndGroup()) {
481
+ break;
482
+ }
483
+ var field = reader.getFieldNumber();
484
+ switch (field) {
485
+ case 1:
486
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
487
+ msg.setMedia(value);
488
+ break;
489
+ default:
490
+ reader.skipField();
491
+ break;
492
+ }
493
+ }
494
+ return msg;
495
+ };
496
+
497
+
498
+ /**
499
+ * Serializes the message to binary data (in protobuf wire format).
500
+ * @return {!Uint8Array}
501
+ */
502
+ proto.payment.File.prototype.serializeBinary = function() {
503
+ var writer = new jspb.BinaryWriter();
504
+ proto.payment.File.serializeBinaryToWriter(this, writer);
505
+ return writer.getResultBuffer();
506
+ };
507
+
508
+
509
+ /**
510
+ * Serializes the given message to binary data (in protobuf wire
511
+ * format), writing to the given BinaryWriter.
512
+ * @param {!proto.payment.File} message
513
+ * @param {!jspb.BinaryWriter} writer
514
+ * @suppress {unusedLocalVariables} f is only used for nested messages
515
+ */
516
+ proto.payment.File.serializeBinaryToWriter = function(message, writer) {
517
+ var f = undefined;
518
+ f = message.getMedia_asU8();
519
+ if (f.length > 0) {
520
+ writer.writeBytes(
521
+ 1,
522
+ f
523
+ );
524
+ }
525
+ };
526
+
527
+
528
+ /**
529
+ * optional bytes media = 1;
530
+ * @return {!(string|Uint8Array)}
531
+ */
532
+ proto.payment.File.prototype.getMedia = function() {
533
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
534
+ };
535
+
536
+
537
+ /**
538
+ * optional bytes media = 1;
539
+ * This is a type-conversion wrapper around `getMedia()`
540
+ * @return {string}
541
+ */
542
+ proto.payment.File.prototype.getMedia_asB64 = function() {
543
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
544
+ this.getMedia()));
545
+ };
546
+
547
+
548
+ /**
549
+ * optional bytes media = 1;
550
+ * Note that Uint8Array is not supported on all browsers.
551
+ * @see http://caniuse.com/Uint8Array
552
+ * This is a type-conversion wrapper around `getMedia()`
553
+ * @return {!Uint8Array}
554
+ */
555
+ proto.payment.File.prototype.getMedia_asU8 = function() {
556
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
557
+ this.getMedia()));
558
+ };
559
+
560
+
561
+ /**
562
+ * @param {!(string|Uint8Array)} value
563
+ * @return {!proto.payment.File} returns this
564
+ */
565
+ proto.payment.File.prototype.setMedia = function(value) {
566
+ return jspb.Message.setProto3BytesField(this, 1, value);
567
+ };
568
+
569
+
570
+
571
+
572
+
573
+ if (jspb.Message.GENERATE_TO_OBJECT) {
574
+ /**
575
+ * Creates an object representation of this proto.
576
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
577
+ * Optional fields that are not set will be set to undefined.
578
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
579
+ * For the list of reserved names please see:
580
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
581
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
582
+ * JSPB instance for transitional soy proto support:
583
+ * http://goto/soy-param-migration
584
+ * @return {!Object}
585
+ */
586
+ proto.payment.GetFileRequest.prototype.toObject = function(opt_includeInstance) {
587
+ return proto.payment.GetFileRequest.toObject(opt_includeInstance, this);
588
+ };
589
+
590
+
591
+ /**
592
+ * Static version of the {@see toObject} method.
593
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
594
+ * the JSPB instance for transitional soy proto support:
595
+ * http://goto/soy-param-migration
596
+ * @param {!proto.payment.GetFileRequest} msg The msg instance to transform.
597
+ * @return {!Object}
598
+ * @suppress {unusedLocalVariables} f is only used for nested messages
599
+ */
600
+ proto.payment.GetFileRequest.toObject = function(includeInstance, msg) {
601
+ var f, obj = {
602
+ fileName: jspb.Message.getFieldWithDefault(msg, 1, ""),
603
+ instanceType: jspb.Message.getFieldWithDefault(msg, 2, "")
604
+ };
605
+
606
+ if (includeInstance) {
607
+ obj.$jspbMessageInstance = msg;
608
+ }
609
+ return obj;
610
+ };
611
+ }
612
+
613
+
614
+ /**
615
+ * Deserializes binary data (in protobuf wire format).
616
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
617
+ * @return {!proto.payment.GetFileRequest}
618
+ */
619
+ proto.payment.GetFileRequest.deserializeBinary = function(bytes) {
620
+ var reader = new jspb.BinaryReader(bytes);
621
+ var msg = new proto.payment.GetFileRequest;
622
+ return proto.payment.GetFileRequest.deserializeBinaryFromReader(msg, reader);
623
+ };
624
+
625
+
626
+ /**
627
+ * Deserializes binary data (in protobuf wire format) from the
628
+ * given reader into the given message object.
629
+ * @param {!proto.payment.GetFileRequest} msg The message object to deserialize into.
630
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
631
+ * @return {!proto.payment.GetFileRequest}
632
+ */
633
+ proto.payment.GetFileRequest.deserializeBinaryFromReader = function(msg, reader) {
634
+ while (reader.nextField()) {
635
+ if (reader.isEndGroup()) {
636
+ break;
637
+ }
638
+ var field = reader.getFieldNumber();
639
+ switch (field) {
640
+ case 1:
641
+ var value = /** @type {string} */ (reader.readString());
642
+ msg.setFileName(value);
643
+ break;
644
+ case 2:
645
+ var value = /** @type {string} */ (reader.readString());
646
+ msg.setInstanceType(value);
647
+ break;
648
+ default:
649
+ reader.skipField();
650
+ break;
651
+ }
652
+ }
653
+ return msg;
654
+ };
655
+
656
+
657
+ /**
658
+ * Serializes the message to binary data (in protobuf wire format).
659
+ * @return {!Uint8Array}
660
+ */
661
+ proto.payment.GetFileRequest.prototype.serializeBinary = function() {
662
+ var writer = new jspb.BinaryWriter();
663
+ proto.payment.GetFileRequest.serializeBinaryToWriter(this, writer);
664
+ return writer.getResultBuffer();
665
+ };
666
+
667
+
668
+ /**
669
+ * Serializes the given message to binary data (in protobuf wire
670
+ * format), writing to the given BinaryWriter.
671
+ * @param {!proto.payment.GetFileRequest} message
672
+ * @param {!jspb.BinaryWriter} writer
673
+ * @suppress {unusedLocalVariables} f is only used for nested messages
674
+ */
675
+ proto.payment.GetFileRequest.serializeBinaryToWriter = function(message, writer) {
676
+ var f = undefined;
677
+ f = message.getFileName();
678
+ if (f.length > 0) {
679
+ writer.writeString(
680
+ 1,
681
+ f
682
+ );
683
+ }
684
+ f = message.getInstanceType();
685
+ if (f.length > 0) {
686
+ writer.writeString(
687
+ 2,
688
+ f
689
+ );
690
+ }
691
+ };
692
+
693
+
694
+ /**
695
+ * optional string file_name = 1;
696
+ * @return {string}
697
+ */
698
+ proto.payment.GetFileRequest.prototype.getFileName = function() {
699
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
700
+ };
701
+
702
+
703
+ /**
704
+ * @param {string} value
705
+ * @return {!proto.payment.GetFileRequest} returns this
706
+ */
707
+ proto.payment.GetFileRequest.prototype.setFileName = function(value) {
708
+ return jspb.Message.setProto3StringField(this, 1, value);
709
+ };
710
+
711
+
712
+ /**
713
+ * optional string instance_type = 2;
714
+ * @return {string}
715
+ */
716
+ proto.payment.GetFileRequest.prototype.getInstanceType = function() {
717
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
718
+ };
719
+
720
+
721
+ /**
722
+ * @param {string} value
723
+ * @return {!proto.payment.GetFileRequest} returns this
724
+ */
725
+ proto.payment.GetFileRequest.prototype.setInstanceType = function(value) {
726
+ return jspb.Message.setProto3StringField(this, 2, value);
727
+ };
728
+
729
+
730
+
731
+
732
+
733
+ if (jspb.Message.GENERATE_TO_OBJECT) {
734
+ /**
735
+ * Creates an object representation of this proto.
736
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
737
+ * Optional fields that are not set will be set to undefined.
738
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
739
+ * For the list of reserved names please see:
740
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
741
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
742
+ * JSPB instance for transitional soy proto support:
743
+ * http://goto/soy-param-migration
744
+ * @return {!Object}
745
+ */
746
+ proto.payment.PaginationRequest.prototype.toObject = function(opt_includeInstance) {
747
+ return proto.payment.PaginationRequest.toObject(opt_includeInstance, this);
748
+ };
749
+
750
+
751
+ /**
752
+ * Static version of the {@see toObject} method.
753
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
754
+ * the JSPB instance for transitional soy proto support:
755
+ * http://goto/soy-param-migration
756
+ * @param {!proto.payment.PaginationRequest} msg The msg instance to transform.
757
+ * @return {!Object}
758
+ * @suppress {unusedLocalVariables} f is only used for nested messages
759
+ */
760
+ proto.payment.PaginationRequest.toObject = function(includeInstance, msg) {
761
+ var f, obj = {
762
+ limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
763
+ offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
764
+ paymentSearchParams: (f = msg.getPaymentSearchParams()) && proto.payment.PaymentSearchRequest.toObject(includeInstance, f)
765
+ };
766
+
767
+ if (includeInstance) {
768
+ obj.$jspbMessageInstance = msg;
769
+ }
770
+ return obj;
771
+ };
772
+ }
773
+
774
+
775
+ /**
776
+ * Deserializes binary data (in protobuf wire format).
777
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
778
+ * @return {!proto.payment.PaginationRequest}
779
+ */
780
+ proto.payment.PaginationRequest.deserializeBinary = function(bytes) {
781
+ var reader = new jspb.BinaryReader(bytes);
782
+ var msg = new proto.payment.PaginationRequest;
783
+ return proto.payment.PaginationRequest.deserializeBinaryFromReader(msg, reader);
784
+ };
785
+
786
+
787
+ /**
788
+ * Deserializes binary data (in protobuf wire format) from the
789
+ * given reader into the given message object.
790
+ * @param {!proto.payment.PaginationRequest} msg The message object to deserialize into.
791
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
792
+ * @return {!proto.payment.PaginationRequest}
793
+ */
794
+ proto.payment.PaginationRequest.deserializeBinaryFromReader = function(msg, reader) {
795
+ while (reader.nextField()) {
796
+ if (reader.isEndGroup()) {
797
+ break;
798
+ }
799
+ var field = reader.getFieldNumber();
800
+ switch (field) {
801
+ case 1:
802
+ var value = /** @type {number} */ (reader.readInt32());
803
+ msg.setLimit(value);
804
+ break;
805
+ case 2:
806
+ var value = /** @type {number} */ (reader.readInt32());
807
+ msg.setOffset(value);
808
+ break;
809
+ case 3:
810
+ var value = new proto.payment.PaymentSearchRequest;
811
+ reader.readMessage(value,proto.payment.PaymentSearchRequest.deserializeBinaryFromReader);
812
+ msg.setPaymentSearchParams(value);
813
+ break;
814
+ default:
815
+ reader.skipField();
816
+ break;
817
+ }
818
+ }
819
+ return msg;
820
+ };
821
+
822
+
823
+ /**
824
+ * Serializes the message to binary data (in protobuf wire format).
825
+ * @return {!Uint8Array}
826
+ */
827
+ proto.payment.PaginationRequest.prototype.serializeBinary = function() {
828
+ var writer = new jspb.BinaryWriter();
829
+ proto.payment.PaginationRequest.serializeBinaryToWriter(this, writer);
830
+ return writer.getResultBuffer();
831
+ };
832
+
833
+
834
+ /**
835
+ * Serializes the given message to binary data (in protobuf wire
836
+ * format), writing to the given BinaryWriter.
837
+ * @param {!proto.payment.PaginationRequest} message
838
+ * @param {!jspb.BinaryWriter} writer
839
+ * @suppress {unusedLocalVariables} f is only used for nested messages
840
+ */
841
+ proto.payment.PaginationRequest.serializeBinaryToWriter = function(message, writer) {
842
+ var f = undefined;
843
+ f = message.getLimit();
844
+ if (f !== 0) {
845
+ writer.writeInt32(
846
+ 1,
847
+ f
848
+ );
849
+ }
850
+ f = message.getOffset();
851
+ if (f !== 0) {
852
+ writer.writeInt32(
853
+ 2,
854
+ f
855
+ );
856
+ }
857
+ f = message.getPaymentSearchParams();
858
+ if (f != null) {
859
+ writer.writeMessage(
860
+ 3,
861
+ f,
862
+ proto.payment.PaymentSearchRequest.serializeBinaryToWriter
863
+ );
864
+ }
865
+ };
866
+
867
+
868
+ /**
869
+ * optional int32 limit = 1;
870
+ * @return {number}
871
+ */
872
+ proto.payment.PaginationRequest.prototype.getLimit = function() {
873
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
874
+ };
875
+
876
+
877
+ /**
878
+ * @param {number} value
879
+ * @return {!proto.payment.PaginationRequest} returns this
880
+ */
881
+ proto.payment.PaginationRequest.prototype.setLimit = function(value) {
882
+ return jspb.Message.setProto3IntField(this, 1, value);
883
+ };
884
+
885
+
886
+ /**
887
+ * optional int32 offset = 2;
888
+ * @return {number}
889
+ */
890
+ proto.payment.PaginationRequest.prototype.getOffset = function() {
891
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
892
+ };
893
+
894
+
895
+ /**
896
+ * @param {number} value
897
+ * @return {!proto.payment.PaginationRequest} returns this
898
+ */
899
+ proto.payment.PaginationRequest.prototype.setOffset = function(value) {
900
+ return jspb.Message.setProto3IntField(this, 2, value);
901
+ };
902
+
903
+
904
+ /**
905
+ * optional PaymentSearchRequest payment_search_params = 3;
906
+ * @return {?proto.payment.PaymentSearchRequest}
907
+ */
908
+ proto.payment.PaginationRequest.prototype.getPaymentSearchParams = function() {
909
+ return /** @type{?proto.payment.PaymentSearchRequest} */ (
910
+ jspb.Message.getWrapperField(this, proto.payment.PaymentSearchRequest, 3));
911
+ };
912
+
913
+
914
+ /**
915
+ * @param {?proto.payment.PaymentSearchRequest|undefined} value
916
+ * @return {!proto.payment.PaginationRequest} returns this
917
+ */
918
+ proto.payment.PaginationRequest.prototype.setPaymentSearchParams = function(value) {
919
+ return jspb.Message.setWrapperField(this, 3, value);
920
+ };
921
+
922
+
923
+ /**
924
+ * Clears the message field making it undefined.
925
+ * @return {!proto.payment.PaginationRequest} returns this
926
+ */
927
+ proto.payment.PaginationRequest.prototype.clearPaymentSearchParams = function() {
928
+ return this.setPaymentSearchParams(undefined);
929
+ };
930
+
931
+
932
+ /**
933
+ * Returns whether this field is set.
934
+ * @return {boolean}
935
+ */
936
+ proto.payment.PaginationRequest.prototype.hasPaymentSearchParams = function() {
937
+ return jspb.Message.getField(this, 3) != null;
938
+ };
939
+
940
+
941
+
942
+ /**
943
+ * List of repeated fields within this message type.
944
+ * @private {!Array<number>}
945
+ * @const
946
+ */
947
+ proto.payment.PaymentSearchRequest.repeatedFields_ = [2,3];
948
+
949
+
950
+
951
+ if (jspb.Message.GENERATE_TO_OBJECT) {
952
+ /**
953
+ * Creates an object representation of this proto.
954
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
955
+ * Optional fields that are not set will be set to undefined.
956
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
957
+ * For the list of reserved names please see:
958
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
959
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
960
+ * JSPB instance for transitional soy proto support:
961
+ * http://goto/soy-param-migration
962
+ * @return {!Object}
963
+ */
964
+ proto.payment.PaymentSearchRequest.prototype.toObject = function(opt_includeInstance) {
965
+ return proto.payment.PaymentSearchRequest.toObject(opt_includeInstance, this);
966
+ };
967
+
968
+
969
+ /**
970
+ * Static version of the {@see toObject} method.
971
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
972
+ * the JSPB instance for transitional soy proto support:
973
+ * http://goto/soy-param-migration
974
+ * @param {!proto.payment.PaymentSearchRequest} msg The msg instance to transform.
975
+ * @return {!Object}
976
+ * @suppress {unusedLocalVariables} f is only used for nested messages
977
+ */
978
+ proto.payment.PaymentSearchRequest.toObject = function(includeInstance, msg) {
979
+ var f, obj = {
980
+ paymentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
981
+ currencyList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
982
+ geoList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
983
+ };
984
+
985
+ if (includeInstance) {
986
+ obj.$jspbMessageInstance = msg;
987
+ }
988
+ return obj;
989
+ };
990
+ }
991
+
992
+
993
+ /**
994
+ * Deserializes binary data (in protobuf wire format).
995
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
996
+ * @return {!proto.payment.PaymentSearchRequest}
997
+ */
998
+ proto.payment.PaymentSearchRequest.deserializeBinary = function(bytes) {
999
+ var reader = new jspb.BinaryReader(bytes);
1000
+ var msg = new proto.payment.PaymentSearchRequest;
1001
+ return proto.payment.PaymentSearchRequest.deserializeBinaryFromReader(msg, reader);
1002
+ };
1003
+
1004
+
1005
+ /**
1006
+ * Deserializes binary data (in protobuf wire format) from the
1007
+ * given reader into the given message object.
1008
+ * @param {!proto.payment.PaymentSearchRequest} msg The message object to deserialize into.
1009
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1010
+ * @return {!proto.payment.PaymentSearchRequest}
1011
+ */
1012
+ proto.payment.PaymentSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
1013
+ while (reader.nextField()) {
1014
+ if (reader.isEndGroup()) {
1015
+ break;
1016
+ }
1017
+ var field = reader.getFieldNumber();
1018
+ switch (field) {
1019
+ case 1:
1020
+ var value = /** @type {number} */ (reader.readInt32());
1021
+ msg.setPaymentId(value);
1022
+ break;
1023
+ case 2:
1024
+ var value = /** @type {string} */ (reader.readString());
1025
+ msg.addCurrency(value);
1026
+ break;
1027
+ case 3:
1028
+ var value = /** @type {string} */ (reader.readString());
1029
+ msg.addGeo(value);
1030
+ break;
1031
+ default:
1032
+ reader.skipField();
1033
+ break;
1034
+ }
1035
+ }
1036
+ return msg;
1037
+ };
1038
+
1039
+
1040
+ /**
1041
+ * Serializes the message to binary data (in protobuf wire format).
1042
+ * @return {!Uint8Array}
1043
+ */
1044
+ proto.payment.PaymentSearchRequest.prototype.serializeBinary = function() {
1045
+ var writer = new jspb.BinaryWriter();
1046
+ proto.payment.PaymentSearchRequest.serializeBinaryToWriter(this, writer);
1047
+ return writer.getResultBuffer();
1048
+ };
1049
+
1050
+
1051
+ /**
1052
+ * Serializes the given message to binary data (in protobuf wire
1053
+ * format), writing to the given BinaryWriter.
1054
+ * @param {!proto.payment.PaymentSearchRequest} message
1055
+ * @param {!jspb.BinaryWriter} writer
1056
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1057
+ */
1058
+ proto.payment.PaymentSearchRequest.serializeBinaryToWriter = function(message, writer) {
1059
+ var f = undefined;
1060
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
1061
+ if (f != null) {
1062
+ writer.writeInt32(
1063
+ 1,
1064
+ f
1065
+ );
1066
+ }
1067
+ f = message.getCurrencyList();
1068
+ if (f.length > 0) {
1069
+ writer.writeRepeatedString(
1070
+ 2,
1071
+ f
1072
+ );
1073
+ }
1074
+ f = message.getGeoList();
1075
+ if (f.length > 0) {
1076
+ writer.writeRepeatedString(
1077
+ 3,
1078
+ f
1079
+ );
1080
+ }
1081
+ };
1082
+
1083
+
1084
+ /**
1085
+ * optional int32 payment_id = 1;
1086
+ * @return {number}
1087
+ */
1088
+ proto.payment.PaymentSearchRequest.prototype.getPaymentId = function() {
1089
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1090
+ };
1091
+
1092
+
1093
+ /**
1094
+ * @param {number} value
1095
+ * @return {!proto.payment.PaymentSearchRequest} returns this
1096
+ */
1097
+ proto.payment.PaymentSearchRequest.prototype.setPaymentId = function(value) {
1098
+ return jspb.Message.setField(this, 1, value);
1099
+ };
1100
+
1101
+
1102
+ /**
1103
+ * Clears the field making it undefined.
1104
+ * @return {!proto.payment.PaymentSearchRequest} returns this
1105
+ */
1106
+ proto.payment.PaymentSearchRequest.prototype.clearPaymentId = function() {
1107
+ return jspb.Message.setField(this, 1, undefined);
1108
+ };
1109
+
1110
+
1111
+ /**
1112
+ * Returns whether this field is set.
1113
+ * @return {boolean}
1114
+ */
1115
+ proto.payment.PaymentSearchRequest.prototype.hasPaymentId = function() {
1116
+ return jspb.Message.getField(this, 1) != null;
1117
+ };
1118
+
1119
+
1120
+ /**
1121
+ * repeated string currency = 2;
1122
+ * @return {!Array<string>}
1123
+ */
1124
+ proto.payment.PaymentSearchRequest.prototype.getCurrencyList = function() {
1125
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
1126
+ };
1127
+
1128
+
1129
+ /**
1130
+ * @param {!Array<string>} value
1131
+ * @return {!proto.payment.PaymentSearchRequest} returns this
1132
+ */
1133
+ proto.payment.PaymentSearchRequest.prototype.setCurrencyList = function(value) {
1134
+ return jspb.Message.setField(this, 2, value || []);
1135
+ };
1136
+
1137
+
1138
+ /**
1139
+ * @param {string} value
1140
+ * @param {number=} opt_index
1141
+ * @return {!proto.payment.PaymentSearchRequest} returns this
1142
+ */
1143
+ proto.payment.PaymentSearchRequest.prototype.addCurrency = function(value, opt_index) {
1144
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
1145
+ };
1146
+
1147
+
1148
+ /**
1149
+ * Clears the list making it empty but non-null.
1150
+ * @return {!proto.payment.PaymentSearchRequest} returns this
1151
+ */
1152
+ proto.payment.PaymentSearchRequest.prototype.clearCurrencyList = function() {
1153
+ return this.setCurrencyList([]);
1154
+ };
1155
+
1156
+
1157
+ /**
1158
+ * repeated string geo = 3;
1159
+ * @return {!Array<string>}
1160
+ */
1161
+ proto.payment.PaymentSearchRequest.prototype.getGeoList = function() {
1162
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
1163
+ };
1164
+
1165
+
1166
+ /**
1167
+ * @param {!Array<string>} value
1168
+ * @return {!proto.payment.PaymentSearchRequest} returns this
1169
+ */
1170
+ proto.payment.PaymentSearchRequest.prototype.setGeoList = function(value) {
1171
+ return jspb.Message.setField(this, 3, value || []);
1172
+ };
1173
+
1174
+
1175
+ /**
1176
+ * @param {string} value
1177
+ * @param {number=} opt_index
1178
+ * @return {!proto.payment.PaymentSearchRequest} returns this
1179
+ */
1180
+ proto.payment.PaymentSearchRequest.prototype.addGeo = function(value, opt_index) {
1181
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1182
+ };
1183
+
1184
+
1185
+ /**
1186
+ * Clears the list making it empty but non-null.
1187
+ * @return {!proto.payment.PaymentSearchRequest} returns this
1188
+ */
1189
+ proto.payment.PaymentSearchRequest.prototype.clearGeoList = function() {
1190
+ return this.setGeoList([]);
1191
+ };
1192
+
1193
+
1194
+ goog.object.extend(exports, proto.payment);
@@ -9,4 +9,5 @@ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:bet --grpc_out=grpc
9
9
  grpc_tools_node_protoc --js_out=import_style=commonjs,binary:cms --grpc_out=grpc_js:cms --proto_path=./cms ./cms/*.proto &&
10
10
  grpc_tools_node_protoc --js_out=import_style=commonjs,binary:bonus --grpc_out=grpc_js:bonus --proto_path=./bonus ./bonus/*.proto &&
11
11
  grpc_tools_node_protoc --js_out=import_style=commonjs,binary:loyalty --grpc_out=grpc_js:loyalty --proto_path=./loyalty ./loyalty/*.proto &&
12
- grpc_tools_node_protoc --js_out=import_style=commonjs,binary:notification --grpc_out=grpc_js:notification --proto_path=./notification ./notification/*.proto
12
+ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:notification --grpc_out=grpc_js:notification --proto_path=./notification ./notification/*.proto &&
13
+ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:payment --grpc_out=grpc_js:payment --proto_path=./payment ./payment/*.proto