@aldiokta/protocgen 1.1.65 → 1.1.67

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.
@@ -0,0 +1,2696 @@
1
+ // source: prisca/v1/core/currency_exchange_rate/currency_exchange_rate.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 = globalThis;
17
+
18
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
19
+ goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
20
+ goog.exportSymbol('proto.BaseCurrencyExchangeRateRequest', null, global);
21
+ goog.exportSymbol('proto.CreateCurrencyExchangeRateRequest', null, global);
22
+ goog.exportSymbol('proto.CreateCurrencyExchangeRateResponse', null, global);
23
+ goog.exportSymbol('proto.CurrencyExchangeRate', null, global);
24
+ goog.exportSymbol('proto.DeleteCurrencyExchangeRateRequest', null, global);
25
+ goog.exportSymbol('proto.DeleteCurrencyExchangeRateResponse', null, global);
26
+ goog.exportSymbol('proto.GetCurrencyExchangeRateByIdRequest', null, global);
27
+ goog.exportSymbol('proto.GetCurrencyExchangeRateByIdResponse', null, global);
28
+ goog.exportSymbol('proto.GetListCurrencyExchangeRateRequest', null, global);
29
+ goog.exportSymbol('proto.GetListCurrencyExchangeRateResponse', null, global);
30
+ goog.exportSymbol('proto.UpdateCurrencyExchangeRateRequest', null, global);
31
+ goog.exportSymbol('proto.UpdateCurrencyExchangeRateResponse', null, global);
32
+ /**
33
+ * Generated by JsPbCodeGenerator.
34
+ * @param {Array=} opt_data Optional initial data array, typically from a
35
+ * server response, or constructed directly in Javascript. The array is used
36
+ * in place and becomes part of the constructed object. It is not cloned.
37
+ * If no data is provided, the constructed object will be empty, but still
38
+ * valid.
39
+ * @extends {jspb.Message}
40
+ * @constructor
41
+ */
42
+ proto.CurrencyExchangeRate = function(opt_data) {
43
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
44
+ };
45
+ goog.inherits(proto.CurrencyExchangeRate, jspb.Message);
46
+ if (goog.DEBUG && !COMPILED) {
47
+ /**
48
+ * @public
49
+ * @override
50
+ */
51
+ proto.CurrencyExchangeRate.displayName = 'proto.CurrencyExchangeRate';
52
+ }
53
+ /**
54
+ * Generated by JsPbCodeGenerator.
55
+ * @param {Array=} opt_data Optional initial data array, typically from a
56
+ * server response, or constructed directly in Javascript. The array is used
57
+ * in place and becomes part of the constructed object. It is not cloned.
58
+ * If no data is provided, the constructed object will be empty, but still
59
+ * valid.
60
+ * @extends {jspb.Message}
61
+ * @constructor
62
+ */
63
+ proto.BaseCurrencyExchangeRateRequest = function(opt_data) {
64
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
65
+ };
66
+ goog.inherits(proto.BaseCurrencyExchangeRateRequest, jspb.Message);
67
+ if (goog.DEBUG && !COMPILED) {
68
+ /**
69
+ * @public
70
+ * @override
71
+ */
72
+ proto.BaseCurrencyExchangeRateRequest.displayName = 'proto.BaseCurrencyExchangeRateRequest';
73
+ }
74
+ /**
75
+ * Generated by JsPbCodeGenerator.
76
+ * @param {Array=} opt_data Optional initial data array, typically from a
77
+ * server response, or constructed directly in Javascript. The array is used
78
+ * in place and becomes part of the constructed object. It is not cloned.
79
+ * If no data is provided, the constructed object will be empty, but still
80
+ * valid.
81
+ * @extends {jspb.Message}
82
+ * @constructor
83
+ */
84
+ proto.GetCurrencyExchangeRateByIdRequest = function(opt_data) {
85
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
86
+ };
87
+ goog.inherits(proto.GetCurrencyExchangeRateByIdRequest, jspb.Message);
88
+ if (goog.DEBUG && !COMPILED) {
89
+ /**
90
+ * @public
91
+ * @override
92
+ */
93
+ proto.GetCurrencyExchangeRateByIdRequest.displayName = 'proto.GetCurrencyExchangeRateByIdRequest';
94
+ }
95
+ /**
96
+ * Generated by JsPbCodeGenerator.
97
+ * @param {Array=} opt_data Optional initial data array, typically from a
98
+ * server response, or constructed directly in Javascript. The array is used
99
+ * in place and becomes part of the constructed object. It is not cloned.
100
+ * If no data is provided, the constructed object will be empty, but still
101
+ * valid.
102
+ * @extends {jspb.Message}
103
+ * @constructor
104
+ */
105
+ proto.CreateCurrencyExchangeRateRequest = function(opt_data) {
106
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
107
+ };
108
+ goog.inherits(proto.CreateCurrencyExchangeRateRequest, jspb.Message);
109
+ if (goog.DEBUG && !COMPILED) {
110
+ /**
111
+ * @public
112
+ * @override
113
+ */
114
+ proto.CreateCurrencyExchangeRateRequest.displayName = 'proto.CreateCurrencyExchangeRateRequest';
115
+ }
116
+ /**
117
+ * Generated by JsPbCodeGenerator.
118
+ * @param {Array=} opt_data Optional initial data array, typically from a
119
+ * server response, or constructed directly in Javascript. The array is used
120
+ * in place and becomes part of the constructed object. It is not cloned.
121
+ * If no data is provided, the constructed object will be empty, but still
122
+ * valid.
123
+ * @extends {jspb.Message}
124
+ * @constructor
125
+ */
126
+ proto.UpdateCurrencyExchangeRateRequest = function(opt_data) {
127
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
128
+ };
129
+ goog.inherits(proto.UpdateCurrencyExchangeRateRequest, jspb.Message);
130
+ if (goog.DEBUG && !COMPILED) {
131
+ /**
132
+ * @public
133
+ * @override
134
+ */
135
+ proto.UpdateCurrencyExchangeRateRequest.displayName = 'proto.UpdateCurrencyExchangeRateRequest';
136
+ }
137
+ /**
138
+ * Generated by JsPbCodeGenerator.
139
+ * @param {Array=} opt_data Optional initial data array, typically from a
140
+ * server response, or constructed directly in Javascript. The array is used
141
+ * in place and becomes part of the constructed object. It is not cloned.
142
+ * If no data is provided, the constructed object will be empty, but still
143
+ * valid.
144
+ * @extends {jspb.Message}
145
+ * @constructor
146
+ */
147
+ proto.DeleteCurrencyExchangeRateRequest = function(opt_data) {
148
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
149
+ };
150
+ goog.inherits(proto.DeleteCurrencyExchangeRateRequest, jspb.Message);
151
+ if (goog.DEBUG && !COMPILED) {
152
+ /**
153
+ * @public
154
+ * @override
155
+ */
156
+ proto.DeleteCurrencyExchangeRateRequest.displayName = 'proto.DeleteCurrencyExchangeRateRequest';
157
+ }
158
+ /**
159
+ * Generated by JsPbCodeGenerator.
160
+ * @param {Array=} opt_data Optional initial data array, typically from a
161
+ * server response, or constructed directly in Javascript. The array is used
162
+ * in place and becomes part of the constructed object. It is not cloned.
163
+ * If no data is provided, the constructed object will be empty, but still
164
+ * valid.
165
+ * @extends {jspb.Message}
166
+ * @constructor
167
+ */
168
+ proto.DeleteCurrencyExchangeRateResponse = function(opt_data) {
169
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
170
+ };
171
+ goog.inherits(proto.DeleteCurrencyExchangeRateResponse, jspb.Message);
172
+ if (goog.DEBUG && !COMPILED) {
173
+ /**
174
+ * @public
175
+ * @override
176
+ */
177
+ proto.DeleteCurrencyExchangeRateResponse.displayName = 'proto.DeleteCurrencyExchangeRateResponse';
178
+ }
179
+ /**
180
+ * Generated by JsPbCodeGenerator.
181
+ * @param {Array=} opt_data Optional initial data array, typically from a
182
+ * server response, or constructed directly in Javascript. The array is used
183
+ * in place and becomes part of the constructed object. It is not cloned.
184
+ * If no data is provided, the constructed object will be empty, but still
185
+ * valid.
186
+ * @extends {jspb.Message}
187
+ * @constructor
188
+ */
189
+ proto.GetListCurrencyExchangeRateRequest = function(opt_data) {
190
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
191
+ };
192
+ goog.inherits(proto.GetListCurrencyExchangeRateRequest, jspb.Message);
193
+ if (goog.DEBUG && !COMPILED) {
194
+ /**
195
+ * @public
196
+ * @override
197
+ */
198
+ proto.GetListCurrencyExchangeRateRequest.displayName = 'proto.GetListCurrencyExchangeRateRequest';
199
+ }
200
+ /**
201
+ * Generated by JsPbCodeGenerator.
202
+ * @param {Array=} opt_data Optional initial data array, typically from a
203
+ * server response, or constructed directly in Javascript. The array is used
204
+ * in place and becomes part of the constructed object. It is not cloned.
205
+ * If no data is provided, the constructed object will be empty, but still
206
+ * valid.
207
+ * @extends {jspb.Message}
208
+ * @constructor
209
+ */
210
+ proto.CreateCurrencyExchangeRateResponse = function(opt_data) {
211
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
212
+ };
213
+ goog.inherits(proto.CreateCurrencyExchangeRateResponse, jspb.Message);
214
+ if (goog.DEBUG && !COMPILED) {
215
+ /**
216
+ * @public
217
+ * @override
218
+ */
219
+ proto.CreateCurrencyExchangeRateResponse.displayName = 'proto.CreateCurrencyExchangeRateResponse';
220
+ }
221
+ /**
222
+ * Generated by JsPbCodeGenerator.
223
+ * @param {Array=} opt_data Optional initial data array, typically from a
224
+ * server response, or constructed directly in Javascript. The array is used
225
+ * in place and becomes part of the constructed object. It is not cloned.
226
+ * If no data is provided, the constructed object will be empty, but still
227
+ * valid.
228
+ * @extends {jspb.Message}
229
+ * @constructor
230
+ */
231
+ proto.GetListCurrencyExchangeRateResponse = function(opt_data) {
232
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListCurrencyExchangeRateResponse.repeatedFields_, null);
233
+ };
234
+ goog.inherits(proto.GetListCurrencyExchangeRateResponse, jspb.Message);
235
+ if (goog.DEBUG && !COMPILED) {
236
+ /**
237
+ * @public
238
+ * @override
239
+ */
240
+ proto.GetListCurrencyExchangeRateResponse.displayName = 'proto.GetListCurrencyExchangeRateResponse';
241
+ }
242
+ /**
243
+ * Generated by JsPbCodeGenerator.
244
+ * @param {Array=} opt_data Optional initial data array, typically from a
245
+ * server response, or constructed directly in Javascript. The array is used
246
+ * in place and becomes part of the constructed object. It is not cloned.
247
+ * If no data is provided, the constructed object will be empty, but still
248
+ * valid.
249
+ * @extends {jspb.Message}
250
+ * @constructor
251
+ */
252
+ proto.UpdateCurrencyExchangeRateResponse = function(opt_data) {
253
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
254
+ };
255
+ goog.inherits(proto.UpdateCurrencyExchangeRateResponse, jspb.Message);
256
+ if (goog.DEBUG && !COMPILED) {
257
+ /**
258
+ * @public
259
+ * @override
260
+ */
261
+ proto.UpdateCurrencyExchangeRateResponse.displayName = 'proto.UpdateCurrencyExchangeRateResponse';
262
+ }
263
+ /**
264
+ * Generated by JsPbCodeGenerator.
265
+ * @param {Array=} opt_data Optional initial data array, typically from a
266
+ * server response, or constructed directly in Javascript. The array is used
267
+ * in place and becomes part of the constructed object. It is not cloned.
268
+ * If no data is provided, the constructed object will be empty, but still
269
+ * valid.
270
+ * @extends {jspb.Message}
271
+ * @constructor
272
+ */
273
+ proto.GetCurrencyExchangeRateByIdResponse = function(opt_data) {
274
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
275
+ };
276
+ goog.inherits(proto.GetCurrencyExchangeRateByIdResponse, jspb.Message);
277
+ if (goog.DEBUG && !COMPILED) {
278
+ /**
279
+ * @public
280
+ * @override
281
+ */
282
+ proto.GetCurrencyExchangeRateByIdResponse.displayName = 'proto.GetCurrencyExchangeRateByIdResponse';
283
+ }
284
+
285
+
286
+
287
+ if (jspb.Message.GENERATE_TO_OBJECT) {
288
+ /**
289
+ * Creates an object representation of this proto.
290
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
291
+ * Optional fields that are not set will be set to undefined.
292
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
293
+ * For the list of reserved names please see:
294
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
295
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
296
+ * JSPB instance for transitional soy proto support:
297
+ * http://goto/soy-param-migration
298
+ * @return {!Object}
299
+ */
300
+ proto.CurrencyExchangeRate.prototype.toObject = function(opt_includeInstance) {
301
+ return proto.CurrencyExchangeRate.toObject(opt_includeInstance, this);
302
+ };
303
+
304
+
305
+ /**
306
+ * Static version of the {@see toObject} method.
307
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
308
+ * the JSPB instance for transitional soy proto support:
309
+ * http://goto/soy-param-migration
310
+ * @param {!proto.CurrencyExchangeRate} msg The msg instance to transform.
311
+ * @return {!Object}
312
+ * @suppress {unusedLocalVariables} f is only used for nested messages
313
+ */
314
+ proto.CurrencyExchangeRate.toObject = function(includeInstance, msg) {
315
+ var f, obj = {
316
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
317
+ referencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
318
+ currencyCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
319
+ currencyName: jspb.Message.getFieldWithDefault(msg, 4, ""),
320
+ rate: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
321
+ validFrom: jspb.Message.getFieldWithDefault(msg, 6, ""),
322
+ createdBy: jspb.Message.getFieldWithDefault(msg, 7, ""),
323
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 8, ""),
324
+ createdAt: jspb.Message.getFieldWithDefault(msg, 9, ""),
325
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 10, "")
326
+ };
327
+
328
+ if (includeInstance) {
329
+ obj.$jspbMessageInstance = msg;
330
+ }
331
+ return obj;
332
+ };
333
+ }
334
+
335
+
336
+ /**
337
+ * Deserializes binary data (in protobuf wire format).
338
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
339
+ * @return {!proto.CurrencyExchangeRate}
340
+ */
341
+ proto.CurrencyExchangeRate.deserializeBinary = function(bytes) {
342
+ var reader = new jspb.BinaryReader(bytes);
343
+ var msg = new proto.CurrencyExchangeRate;
344
+ return proto.CurrencyExchangeRate.deserializeBinaryFromReader(msg, reader);
345
+ };
346
+
347
+
348
+ /**
349
+ * Deserializes binary data (in protobuf wire format) from the
350
+ * given reader into the given message object.
351
+ * @param {!proto.CurrencyExchangeRate} msg The message object to deserialize into.
352
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
353
+ * @return {!proto.CurrencyExchangeRate}
354
+ */
355
+ proto.CurrencyExchangeRate.deserializeBinaryFromReader = function(msg, reader) {
356
+ while (reader.nextField()) {
357
+ if (reader.isEndGroup()) {
358
+ break;
359
+ }
360
+ var field = reader.getFieldNumber();
361
+ switch (field) {
362
+ case 1:
363
+ var value = /** @type {number} */ (reader.readInt64());
364
+ msg.setId(value);
365
+ break;
366
+ case 2:
367
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
368
+ msg.setReferencesId(value);
369
+ break;
370
+ case 3:
371
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
372
+ msg.setCurrencyCode(value);
373
+ break;
374
+ case 4:
375
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
376
+ msg.setCurrencyName(value);
377
+ break;
378
+ case 5:
379
+ var value = /** @type {number} */ (reader.readDouble());
380
+ msg.setRate(value);
381
+ break;
382
+ case 6:
383
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
384
+ msg.setValidFrom(value);
385
+ break;
386
+ case 7:
387
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
388
+ msg.setCreatedBy(value);
389
+ break;
390
+ case 8:
391
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
392
+ msg.setCompaniesReferencesId(value);
393
+ break;
394
+ case 9:
395
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
396
+ msg.setCreatedAt(value);
397
+ break;
398
+ case 10:
399
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
400
+ msg.setUpdatedAt(value);
401
+ break;
402
+ default:
403
+ reader.skipField();
404
+ break;
405
+ }
406
+ }
407
+ return msg;
408
+ };
409
+
410
+
411
+ /**
412
+ * Serializes the message to binary data (in protobuf wire format).
413
+ * @return {!Uint8Array}
414
+ */
415
+ proto.CurrencyExchangeRate.prototype.serializeBinary = function() {
416
+ var writer = new jspb.BinaryWriter();
417
+ proto.CurrencyExchangeRate.serializeBinaryToWriter(this, writer);
418
+ return writer.getResultBuffer();
419
+ };
420
+
421
+
422
+ /**
423
+ * Serializes the given message to binary data (in protobuf wire
424
+ * format), writing to the given BinaryWriter.
425
+ * @param {!proto.CurrencyExchangeRate} message
426
+ * @param {!jspb.BinaryWriter} writer
427
+ * @suppress {unusedLocalVariables} f is only used for nested messages
428
+ */
429
+ proto.CurrencyExchangeRate.serializeBinaryToWriter = function(message, writer) {
430
+ var f = undefined;
431
+ f = message.getId();
432
+ if (f !== 0) {
433
+ writer.writeInt64(
434
+ 1,
435
+ f
436
+ );
437
+ }
438
+ f = message.getReferencesId();
439
+ if (f.length > 0) {
440
+ writer.writeString(
441
+ 2,
442
+ f
443
+ );
444
+ }
445
+ f = message.getCurrencyCode();
446
+ if (f.length > 0) {
447
+ writer.writeString(
448
+ 3,
449
+ f
450
+ );
451
+ }
452
+ f = message.getCurrencyName();
453
+ if (f.length > 0) {
454
+ writer.writeString(
455
+ 4,
456
+ f
457
+ );
458
+ }
459
+ f = message.getRate();
460
+ if (f !== 0.0) {
461
+ writer.writeDouble(
462
+ 5,
463
+ f
464
+ );
465
+ }
466
+ f = message.getValidFrom();
467
+ if (f.length > 0) {
468
+ writer.writeString(
469
+ 6,
470
+ f
471
+ );
472
+ }
473
+ f = message.getCreatedBy();
474
+ if (f.length > 0) {
475
+ writer.writeString(
476
+ 7,
477
+ f
478
+ );
479
+ }
480
+ f = message.getCompaniesReferencesId();
481
+ if (f.length > 0) {
482
+ writer.writeString(
483
+ 8,
484
+ f
485
+ );
486
+ }
487
+ f = message.getCreatedAt();
488
+ if (f.length > 0) {
489
+ writer.writeString(
490
+ 9,
491
+ f
492
+ );
493
+ }
494
+ f = message.getUpdatedAt();
495
+ if (f.length > 0) {
496
+ writer.writeString(
497
+ 10,
498
+ f
499
+ );
500
+ }
501
+ };
502
+
503
+
504
+ /**
505
+ * optional int64 id = 1;
506
+ * @return {number}
507
+ */
508
+ proto.CurrencyExchangeRate.prototype.getId = function() {
509
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
510
+ };
511
+
512
+
513
+ /**
514
+ * @param {number} value
515
+ * @return {!proto.CurrencyExchangeRate} returns this
516
+ */
517
+ proto.CurrencyExchangeRate.prototype.setId = function(value) {
518
+ return jspb.Message.setProto3IntField(this, 1, value);
519
+ };
520
+
521
+
522
+ /**
523
+ * optional string references_id = 2;
524
+ * @return {string}
525
+ */
526
+ proto.CurrencyExchangeRate.prototype.getReferencesId = function() {
527
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
528
+ };
529
+
530
+
531
+ /**
532
+ * @param {string} value
533
+ * @return {!proto.CurrencyExchangeRate} returns this
534
+ */
535
+ proto.CurrencyExchangeRate.prototype.setReferencesId = function(value) {
536
+ return jspb.Message.setProto3StringField(this, 2, value);
537
+ };
538
+
539
+
540
+ /**
541
+ * optional string currency_code = 3;
542
+ * @return {string}
543
+ */
544
+ proto.CurrencyExchangeRate.prototype.getCurrencyCode = function() {
545
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
546
+ };
547
+
548
+
549
+ /**
550
+ * @param {string} value
551
+ * @return {!proto.CurrencyExchangeRate} returns this
552
+ */
553
+ proto.CurrencyExchangeRate.prototype.setCurrencyCode = function(value) {
554
+ return jspb.Message.setProto3StringField(this, 3, value);
555
+ };
556
+
557
+
558
+ /**
559
+ * optional string currency_name = 4;
560
+ * @return {string}
561
+ */
562
+ proto.CurrencyExchangeRate.prototype.getCurrencyName = function() {
563
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
564
+ };
565
+
566
+
567
+ /**
568
+ * @param {string} value
569
+ * @return {!proto.CurrencyExchangeRate} returns this
570
+ */
571
+ proto.CurrencyExchangeRate.prototype.setCurrencyName = function(value) {
572
+ return jspb.Message.setProto3StringField(this, 4, value);
573
+ };
574
+
575
+
576
+ /**
577
+ * optional double rate = 5;
578
+ * @return {number}
579
+ */
580
+ proto.CurrencyExchangeRate.prototype.getRate = function() {
581
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
582
+ };
583
+
584
+
585
+ /**
586
+ * @param {number} value
587
+ * @return {!proto.CurrencyExchangeRate} returns this
588
+ */
589
+ proto.CurrencyExchangeRate.prototype.setRate = function(value) {
590
+ return jspb.Message.setProto3FloatField(this, 5, value);
591
+ };
592
+
593
+
594
+ /**
595
+ * optional string valid_from = 6;
596
+ * @return {string}
597
+ */
598
+ proto.CurrencyExchangeRate.prototype.getValidFrom = function() {
599
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
600
+ };
601
+
602
+
603
+ /**
604
+ * @param {string} value
605
+ * @return {!proto.CurrencyExchangeRate} returns this
606
+ */
607
+ proto.CurrencyExchangeRate.prototype.setValidFrom = function(value) {
608
+ return jspb.Message.setProto3StringField(this, 6, value);
609
+ };
610
+
611
+
612
+ /**
613
+ * optional string created_by = 7;
614
+ * @return {string}
615
+ */
616
+ proto.CurrencyExchangeRate.prototype.getCreatedBy = function() {
617
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
618
+ };
619
+
620
+
621
+ /**
622
+ * @param {string} value
623
+ * @return {!proto.CurrencyExchangeRate} returns this
624
+ */
625
+ proto.CurrencyExchangeRate.prototype.setCreatedBy = function(value) {
626
+ return jspb.Message.setProto3StringField(this, 7, value);
627
+ };
628
+
629
+
630
+ /**
631
+ * optional string companies_references_id = 8;
632
+ * @return {string}
633
+ */
634
+ proto.CurrencyExchangeRate.prototype.getCompaniesReferencesId = function() {
635
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
636
+ };
637
+
638
+
639
+ /**
640
+ * @param {string} value
641
+ * @return {!proto.CurrencyExchangeRate} returns this
642
+ */
643
+ proto.CurrencyExchangeRate.prototype.setCompaniesReferencesId = function(value) {
644
+ return jspb.Message.setProto3StringField(this, 8, value);
645
+ };
646
+
647
+
648
+ /**
649
+ * optional string created_at = 9;
650
+ * @return {string}
651
+ */
652
+ proto.CurrencyExchangeRate.prototype.getCreatedAt = function() {
653
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
654
+ };
655
+
656
+
657
+ /**
658
+ * @param {string} value
659
+ * @return {!proto.CurrencyExchangeRate} returns this
660
+ */
661
+ proto.CurrencyExchangeRate.prototype.setCreatedAt = function(value) {
662
+ return jspb.Message.setProto3StringField(this, 9, value);
663
+ };
664
+
665
+
666
+ /**
667
+ * optional string updated_at = 10;
668
+ * @return {string}
669
+ */
670
+ proto.CurrencyExchangeRate.prototype.getUpdatedAt = function() {
671
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
672
+ };
673
+
674
+
675
+ /**
676
+ * @param {string} value
677
+ * @return {!proto.CurrencyExchangeRate} returns this
678
+ */
679
+ proto.CurrencyExchangeRate.prototype.setUpdatedAt = function(value) {
680
+ return jspb.Message.setProto3StringField(this, 10, value);
681
+ };
682
+
683
+
684
+
685
+
686
+
687
+ if (jspb.Message.GENERATE_TO_OBJECT) {
688
+ /**
689
+ * Creates an object representation of this proto.
690
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
691
+ * Optional fields that are not set will be set to undefined.
692
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
693
+ * For the list of reserved names please see:
694
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
695
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
696
+ * JSPB instance for transitional soy proto support:
697
+ * http://goto/soy-param-migration
698
+ * @return {!Object}
699
+ */
700
+ proto.BaseCurrencyExchangeRateRequest.prototype.toObject = function(opt_includeInstance) {
701
+ return proto.BaseCurrencyExchangeRateRequest.toObject(opt_includeInstance, this);
702
+ };
703
+
704
+
705
+ /**
706
+ * Static version of the {@see toObject} method.
707
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
708
+ * the JSPB instance for transitional soy proto support:
709
+ * http://goto/soy-param-migration
710
+ * @param {!proto.BaseCurrencyExchangeRateRequest} msg The msg instance to transform.
711
+ * @return {!Object}
712
+ * @suppress {unusedLocalVariables} f is only used for nested messages
713
+ */
714
+ proto.BaseCurrencyExchangeRateRequest.toObject = function(includeInstance, msg) {
715
+ var f, obj = {
716
+ currencyCode: jspb.Message.getFieldWithDefault(msg, 1, ""),
717
+ currencyName: jspb.Message.getFieldWithDefault(msg, 2, ""),
718
+ rate: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
719
+ validFrom: jspb.Message.getFieldWithDefault(msg, 4, "")
720
+ };
721
+
722
+ if (includeInstance) {
723
+ obj.$jspbMessageInstance = msg;
724
+ }
725
+ return obj;
726
+ };
727
+ }
728
+
729
+
730
+ /**
731
+ * Deserializes binary data (in protobuf wire format).
732
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
733
+ * @return {!proto.BaseCurrencyExchangeRateRequest}
734
+ */
735
+ proto.BaseCurrencyExchangeRateRequest.deserializeBinary = function(bytes) {
736
+ var reader = new jspb.BinaryReader(bytes);
737
+ var msg = new proto.BaseCurrencyExchangeRateRequest;
738
+ return proto.BaseCurrencyExchangeRateRequest.deserializeBinaryFromReader(msg, reader);
739
+ };
740
+
741
+
742
+ /**
743
+ * Deserializes binary data (in protobuf wire format) from the
744
+ * given reader into the given message object.
745
+ * @param {!proto.BaseCurrencyExchangeRateRequest} msg The message object to deserialize into.
746
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
747
+ * @return {!proto.BaseCurrencyExchangeRateRequest}
748
+ */
749
+ proto.BaseCurrencyExchangeRateRequest.deserializeBinaryFromReader = function(msg, reader) {
750
+ while (reader.nextField()) {
751
+ if (reader.isEndGroup()) {
752
+ break;
753
+ }
754
+ var field = reader.getFieldNumber();
755
+ switch (field) {
756
+ case 1:
757
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
758
+ msg.setCurrencyCode(value);
759
+ break;
760
+ case 2:
761
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
762
+ msg.setCurrencyName(value);
763
+ break;
764
+ case 3:
765
+ var value = /** @type {number} */ (reader.readDouble());
766
+ msg.setRate(value);
767
+ break;
768
+ case 4:
769
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
770
+ msg.setValidFrom(value);
771
+ break;
772
+ default:
773
+ reader.skipField();
774
+ break;
775
+ }
776
+ }
777
+ return msg;
778
+ };
779
+
780
+
781
+ /**
782
+ * Serializes the message to binary data (in protobuf wire format).
783
+ * @return {!Uint8Array}
784
+ */
785
+ proto.BaseCurrencyExchangeRateRequest.prototype.serializeBinary = function() {
786
+ var writer = new jspb.BinaryWriter();
787
+ proto.BaseCurrencyExchangeRateRequest.serializeBinaryToWriter(this, writer);
788
+ return writer.getResultBuffer();
789
+ };
790
+
791
+
792
+ /**
793
+ * Serializes the given message to binary data (in protobuf wire
794
+ * format), writing to the given BinaryWriter.
795
+ * @param {!proto.BaseCurrencyExchangeRateRequest} message
796
+ * @param {!jspb.BinaryWriter} writer
797
+ * @suppress {unusedLocalVariables} f is only used for nested messages
798
+ */
799
+ proto.BaseCurrencyExchangeRateRequest.serializeBinaryToWriter = function(message, writer) {
800
+ var f = undefined;
801
+ f = message.getCurrencyCode();
802
+ if (f.length > 0) {
803
+ writer.writeString(
804
+ 1,
805
+ f
806
+ );
807
+ }
808
+ f = message.getCurrencyName();
809
+ if (f.length > 0) {
810
+ writer.writeString(
811
+ 2,
812
+ f
813
+ );
814
+ }
815
+ f = message.getRate();
816
+ if (f !== 0.0) {
817
+ writer.writeDouble(
818
+ 3,
819
+ f
820
+ );
821
+ }
822
+ f = message.getValidFrom();
823
+ if (f.length > 0) {
824
+ writer.writeString(
825
+ 4,
826
+ f
827
+ );
828
+ }
829
+ };
830
+
831
+
832
+ /**
833
+ * optional string currency_code = 1;
834
+ * @return {string}
835
+ */
836
+ proto.BaseCurrencyExchangeRateRequest.prototype.getCurrencyCode = function() {
837
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
838
+ };
839
+
840
+
841
+ /**
842
+ * @param {string} value
843
+ * @return {!proto.BaseCurrencyExchangeRateRequest} returns this
844
+ */
845
+ proto.BaseCurrencyExchangeRateRequest.prototype.setCurrencyCode = function(value) {
846
+ return jspb.Message.setProto3StringField(this, 1, value);
847
+ };
848
+
849
+
850
+ /**
851
+ * optional string currency_name = 2;
852
+ * @return {string}
853
+ */
854
+ proto.BaseCurrencyExchangeRateRequest.prototype.getCurrencyName = function() {
855
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
856
+ };
857
+
858
+
859
+ /**
860
+ * @param {string} value
861
+ * @return {!proto.BaseCurrencyExchangeRateRequest} returns this
862
+ */
863
+ proto.BaseCurrencyExchangeRateRequest.prototype.setCurrencyName = function(value) {
864
+ return jspb.Message.setProto3StringField(this, 2, value);
865
+ };
866
+
867
+
868
+ /**
869
+ * optional double rate = 3;
870
+ * @return {number}
871
+ */
872
+ proto.BaseCurrencyExchangeRateRequest.prototype.getRate = function() {
873
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
874
+ };
875
+
876
+
877
+ /**
878
+ * @param {number} value
879
+ * @return {!proto.BaseCurrencyExchangeRateRequest} returns this
880
+ */
881
+ proto.BaseCurrencyExchangeRateRequest.prototype.setRate = function(value) {
882
+ return jspb.Message.setProto3FloatField(this, 3, value);
883
+ };
884
+
885
+
886
+ /**
887
+ * optional string valid_from = 4;
888
+ * @return {string}
889
+ */
890
+ proto.BaseCurrencyExchangeRateRequest.prototype.getValidFrom = function() {
891
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
892
+ };
893
+
894
+
895
+ /**
896
+ * @param {string} value
897
+ * @return {!proto.BaseCurrencyExchangeRateRequest} returns this
898
+ */
899
+ proto.BaseCurrencyExchangeRateRequest.prototype.setValidFrom = function(value) {
900
+ return jspb.Message.setProto3StringField(this, 4, value);
901
+ };
902
+
903
+
904
+
905
+
906
+
907
+ if (jspb.Message.GENERATE_TO_OBJECT) {
908
+ /**
909
+ * Creates an object representation of this proto.
910
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
911
+ * Optional fields that are not set will be set to undefined.
912
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
913
+ * For the list of reserved names please see:
914
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
915
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
916
+ * JSPB instance for transitional soy proto support:
917
+ * http://goto/soy-param-migration
918
+ * @return {!Object}
919
+ */
920
+ proto.GetCurrencyExchangeRateByIdRequest.prototype.toObject = function(opt_includeInstance) {
921
+ return proto.GetCurrencyExchangeRateByIdRequest.toObject(opt_includeInstance, this);
922
+ };
923
+
924
+
925
+ /**
926
+ * Static version of the {@see toObject} method.
927
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
928
+ * the JSPB instance for transitional soy proto support:
929
+ * http://goto/soy-param-migration
930
+ * @param {!proto.GetCurrencyExchangeRateByIdRequest} msg The msg instance to transform.
931
+ * @return {!Object}
932
+ * @suppress {unusedLocalVariables} f is only used for nested messages
933
+ */
934
+ proto.GetCurrencyExchangeRateByIdRequest.toObject = function(includeInstance, msg) {
935
+ var f, obj = {
936
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
937
+ };
938
+
939
+ if (includeInstance) {
940
+ obj.$jspbMessageInstance = msg;
941
+ }
942
+ return obj;
943
+ };
944
+ }
945
+
946
+
947
+ /**
948
+ * Deserializes binary data (in protobuf wire format).
949
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
950
+ * @return {!proto.GetCurrencyExchangeRateByIdRequest}
951
+ */
952
+ proto.GetCurrencyExchangeRateByIdRequest.deserializeBinary = function(bytes) {
953
+ var reader = new jspb.BinaryReader(bytes);
954
+ var msg = new proto.GetCurrencyExchangeRateByIdRequest;
955
+ return proto.GetCurrencyExchangeRateByIdRequest.deserializeBinaryFromReader(msg, reader);
956
+ };
957
+
958
+
959
+ /**
960
+ * Deserializes binary data (in protobuf wire format) from the
961
+ * given reader into the given message object.
962
+ * @param {!proto.GetCurrencyExchangeRateByIdRequest} msg The message object to deserialize into.
963
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
964
+ * @return {!proto.GetCurrencyExchangeRateByIdRequest}
965
+ */
966
+ proto.GetCurrencyExchangeRateByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
967
+ while (reader.nextField()) {
968
+ if (reader.isEndGroup()) {
969
+ break;
970
+ }
971
+ var field = reader.getFieldNumber();
972
+ switch (field) {
973
+ case 1:
974
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
975
+ msg.setReferencesId(value);
976
+ break;
977
+ default:
978
+ reader.skipField();
979
+ break;
980
+ }
981
+ }
982
+ return msg;
983
+ };
984
+
985
+
986
+ /**
987
+ * Serializes the message to binary data (in protobuf wire format).
988
+ * @return {!Uint8Array}
989
+ */
990
+ proto.GetCurrencyExchangeRateByIdRequest.prototype.serializeBinary = function() {
991
+ var writer = new jspb.BinaryWriter();
992
+ proto.GetCurrencyExchangeRateByIdRequest.serializeBinaryToWriter(this, writer);
993
+ return writer.getResultBuffer();
994
+ };
995
+
996
+
997
+ /**
998
+ * Serializes the given message to binary data (in protobuf wire
999
+ * format), writing to the given BinaryWriter.
1000
+ * @param {!proto.GetCurrencyExchangeRateByIdRequest} message
1001
+ * @param {!jspb.BinaryWriter} writer
1002
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1003
+ */
1004
+ proto.GetCurrencyExchangeRateByIdRequest.serializeBinaryToWriter = function(message, writer) {
1005
+ var f = undefined;
1006
+ f = message.getReferencesId();
1007
+ if (f.length > 0) {
1008
+ writer.writeString(
1009
+ 1,
1010
+ f
1011
+ );
1012
+ }
1013
+ };
1014
+
1015
+
1016
+ /**
1017
+ * optional string references_id = 1;
1018
+ * @return {string}
1019
+ */
1020
+ proto.GetCurrencyExchangeRateByIdRequest.prototype.getReferencesId = function() {
1021
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1022
+ };
1023
+
1024
+
1025
+ /**
1026
+ * @param {string} value
1027
+ * @return {!proto.GetCurrencyExchangeRateByIdRequest} returns this
1028
+ */
1029
+ proto.GetCurrencyExchangeRateByIdRequest.prototype.setReferencesId = function(value) {
1030
+ return jspb.Message.setProto3StringField(this, 1, value);
1031
+ };
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1038
+ /**
1039
+ * Creates an object representation of this proto.
1040
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1041
+ * Optional fields that are not set will be set to undefined.
1042
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1043
+ * For the list of reserved names please see:
1044
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1045
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1046
+ * JSPB instance for transitional soy proto support:
1047
+ * http://goto/soy-param-migration
1048
+ * @return {!Object}
1049
+ */
1050
+ proto.CreateCurrencyExchangeRateRequest.prototype.toObject = function(opt_includeInstance) {
1051
+ return proto.CreateCurrencyExchangeRateRequest.toObject(opt_includeInstance, this);
1052
+ };
1053
+
1054
+
1055
+ /**
1056
+ * Static version of the {@see toObject} method.
1057
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1058
+ * the JSPB instance for transitional soy proto support:
1059
+ * http://goto/soy-param-migration
1060
+ * @param {!proto.CreateCurrencyExchangeRateRequest} msg The msg instance to transform.
1061
+ * @return {!Object}
1062
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1063
+ */
1064
+ proto.CreateCurrencyExchangeRateRequest.toObject = function(includeInstance, msg) {
1065
+ var f, obj = {
1066
+ baseCurrencyExchangeRateRequest: (f = msg.getBaseCurrencyExchangeRateRequest()) && proto.BaseCurrencyExchangeRateRequest.toObject(includeInstance, f)
1067
+ };
1068
+
1069
+ if (includeInstance) {
1070
+ obj.$jspbMessageInstance = msg;
1071
+ }
1072
+ return obj;
1073
+ };
1074
+ }
1075
+
1076
+
1077
+ /**
1078
+ * Deserializes binary data (in protobuf wire format).
1079
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1080
+ * @return {!proto.CreateCurrencyExchangeRateRequest}
1081
+ */
1082
+ proto.CreateCurrencyExchangeRateRequest.deserializeBinary = function(bytes) {
1083
+ var reader = new jspb.BinaryReader(bytes);
1084
+ var msg = new proto.CreateCurrencyExchangeRateRequest;
1085
+ return proto.CreateCurrencyExchangeRateRequest.deserializeBinaryFromReader(msg, reader);
1086
+ };
1087
+
1088
+
1089
+ /**
1090
+ * Deserializes binary data (in protobuf wire format) from the
1091
+ * given reader into the given message object.
1092
+ * @param {!proto.CreateCurrencyExchangeRateRequest} msg The message object to deserialize into.
1093
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1094
+ * @return {!proto.CreateCurrencyExchangeRateRequest}
1095
+ */
1096
+ proto.CreateCurrencyExchangeRateRequest.deserializeBinaryFromReader = function(msg, reader) {
1097
+ while (reader.nextField()) {
1098
+ if (reader.isEndGroup()) {
1099
+ break;
1100
+ }
1101
+ var field = reader.getFieldNumber();
1102
+ switch (field) {
1103
+ case 1:
1104
+ var value = new proto.BaseCurrencyExchangeRateRequest;
1105
+ reader.readMessage(value,proto.BaseCurrencyExchangeRateRequest.deserializeBinaryFromReader);
1106
+ msg.setBaseCurrencyExchangeRateRequest(value);
1107
+ break;
1108
+ default:
1109
+ reader.skipField();
1110
+ break;
1111
+ }
1112
+ }
1113
+ return msg;
1114
+ };
1115
+
1116
+
1117
+ /**
1118
+ * Serializes the message to binary data (in protobuf wire format).
1119
+ * @return {!Uint8Array}
1120
+ */
1121
+ proto.CreateCurrencyExchangeRateRequest.prototype.serializeBinary = function() {
1122
+ var writer = new jspb.BinaryWriter();
1123
+ proto.CreateCurrencyExchangeRateRequest.serializeBinaryToWriter(this, writer);
1124
+ return writer.getResultBuffer();
1125
+ };
1126
+
1127
+
1128
+ /**
1129
+ * Serializes the given message to binary data (in protobuf wire
1130
+ * format), writing to the given BinaryWriter.
1131
+ * @param {!proto.CreateCurrencyExchangeRateRequest} message
1132
+ * @param {!jspb.BinaryWriter} writer
1133
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1134
+ */
1135
+ proto.CreateCurrencyExchangeRateRequest.serializeBinaryToWriter = function(message, writer) {
1136
+ var f = undefined;
1137
+ f = message.getBaseCurrencyExchangeRateRequest();
1138
+ if (f != null) {
1139
+ writer.writeMessage(
1140
+ 1,
1141
+ f,
1142
+ proto.BaseCurrencyExchangeRateRequest.serializeBinaryToWriter
1143
+ );
1144
+ }
1145
+ };
1146
+
1147
+
1148
+ /**
1149
+ * optional BaseCurrencyExchangeRateRequest base_currency_exchange_rate_request = 1;
1150
+ * @return {?proto.BaseCurrencyExchangeRateRequest}
1151
+ */
1152
+ proto.CreateCurrencyExchangeRateRequest.prototype.getBaseCurrencyExchangeRateRequest = function() {
1153
+ return /** @type{?proto.BaseCurrencyExchangeRateRequest} */ (
1154
+ jspb.Message.getWrapperField(this, proto.BaseCurrencyExchangeRateRequest, 1));
1155
+ };
1156
+
1157
+
1158
+ /**
1159
+ * @param {?proto.BaseCurrencyExchangeRateRequest|undefined} value
1160
+ * @return {!proto.CreateCurrencyExchangeRateRequest} returns this
1161
+ */
1162
+ proto.CreateCurrencyExchangeRateRequest.prototype.setBaseCurrencyExchangeRateRequest = function(value) {
1163
+ return jspb.Message.setWrapperField(this, 1, value);
1164
+ };
1165
+
1166
+
1167
+ /**
1168
+ * Clears the message field making it undefined.
1169
+ * @return {!proto.CreateCurrencyExchangeRateRequest} returns this
1170
+ */
1171
+ proto.CreateCurrencyExchangeRateRequest.prototype.clearBaseCurrencyExchangeRateRequest = function() {
1172
+ return this.setBaseCurrencyExchangeRateRequest(undefined);
1173
+ };
1174
+
1175
+
1176
+ /**
1177
+ * Returns whether this field is set.
1178
+ * @return {boolean}
1179
+ */
1180
+ proto.CreateCurrencyExchangeRateRequest.prototype.hasBaseCurrencyExchangeRateRequest = function() {
1181
+ return jspb.Message.getField(this, 1) != null;
1182
+ };
1183
+
1184
+
1185
+
1186
+
1187
+
1188
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1189
+ /**
1190
+ * Creates an object representation of this proto.
1191
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1192
+ * Optional fields that are not set will be set to undefined.
1193
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1194
+ * For the list of reserved names please see:
1195
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1196
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1197
+ * JSPB instance for transitional soy proto support:
1198
+ * http://goto/soy-param-migration
1199
+ * @return {!Object}
1200
+ */
1201
+ proto.UpdateCurrencyExchangeRateRequest.prototype.toObject = function(opt_includeInstance) {
1202
+ return proto.UpdateCurrencyExchangeRateRequest.toObject(opt_includeInstance, this);
1203
+ };
1204
+
1205
+
1206
+ /**
1207
+ * Static version of the {@see toObject} method.
1208
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1209
+ * the JSPB instance for transitional soy proto support:
1210
+ * http://goto/soy-param-migration
1211
+ * @param {!proto.UpdateCurrencyExchangeRateRequest} msg The msg instance to transform.
1212
+ * @return {!Object}
1213
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1214
+ */
1215
+ proto.UpdateCurrencyExchangeRateRequest.toObject = function(includeInstance, msg) {
1216
+ var f, obj = {
1217
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1218
+ baseCurrencyExchangeRateRequest: (f = msg.getBaseCurrencyExchangeRateRequest()) && proto.BaseCurrencyExchangeRateRequest.toObject(includeInstance, f)
1219
+ };
1220
+
1221
+ if (includeInstance) {
1222
+ obj.$jspbMessageInstance = msg;
1223
+ }
1224
+ return obj;
1225
+ };
1226
+ }
1227
+
1228
+
1229
+ /**
1230
+ * Deserializes binary data (in protobuf wire format).
1231
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1232
+ * @return {!proto.UpdateCurrencyExchangeRateRequest}
1233
+ */
1234
+ proto.UpdateCurrencyExchangeRateRequest.deserializeBinary = function(bytes) {
1235
+ var reader = new jspb.BinaryReader(bytes);
1236
+ var msg = new proto.UpdateCurrencyExchangeRateRequest;
1237
+ return proto.UpdateCurrencyExchangeRateRequest.deserializeBinaryFromReader(msg, reader);
1238
+ };
1239
+
1240
+
1241
+ /**
1242
+ * Deserializes binary data (in protobuf wire format) from the
1243
+ * given reader into the given message object.
1244
+ * @param {!proto.UpdateCurrencyExchangeRateRequest} msg The message object to deserialize into.
1245
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1246
+ * @return {!proto.UpdateCurrencyExchangeRateRequest}
1247
+ */
1248
+ proto.UpdateCurrencyExchangeRateRequest.deserializeBinaryFromReader = function(msg, reader) {
1249
+ while (reader.nextField()) {
1250
+ if (reader.isEndGroup()) {
1251
+ break;
1252
+ }
1253
+ var field = reader.getFieldNumber();
1254
+ switch (field) {
1255
+ case 1:
1256
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1257
+ msg.setReferencesId(value);
1258
+ break;
1259
+ case 2:
1260
+ var value = new proto.BaseCurrencyExchangeRateRequest;
1261
+ reader.readMessage(value,proto.BaseCurrencyExchangeRateRequest.deserializeBinaryFromReader);
1262
+ msg.setBaseCurrencyExchangeRateRequest(value);
1263
+ break;
1264
+ default:
1265
+ reader.skipField();
1266
+ break;
1267
+ }
1268
+ }
1269
+ return msg;
1270
+ };
1271
+
1272
+
1273
+ /**
1274
+ * Serializes the message to binary data (in protobuf wire format).
1275
+ * @return {!Uint8Array}
1276
+ */
1277
+ proto.UpdateCurrencyExchangeRateRequest.prototype.serializeBinary = function() {
1278
+ var writer = new jspb.BinaryWriter();
1279
+ proto.UpdateCurrencyExchangeRateRequest.serializeBinaryToWriter(this, writer);
1280
+ return writer.getResultBuffer();
1281
+ };
1282
+
1283
+
1284
+ /**
1285
+ * Serializes the given message to binary data (in protobuf wire
1286
+ * format), writing to the given BinaryWriter.
1287
+ * @param {!proto.UpdateCurrencyExchangeRateRequest} message
1288
+ * @param {!jspb.BinaryWriter} writer
1289
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1290
+ */
1291
+ proto.UpdateCurrencyExchangeRateRequest.serializeBinaryToWriter = function(message, writer) {
1292
+ var f = undefined;
1293
+ f = message.getReferencesId();
1294
+ if (f.length > 0) {
1295
+ writer.writeString(
1296
+ 1,
1297
+ f
1298
+ );
1299
+ }
1300
+ f = message.getBaseCurrencyExchangeRateRequest();
1301
+ if (f != null) {
1302
+ writer.writeMessage(
1303
+ 2,
1304
+ f,
1305
+ proto.BaseCurrencyExchangeRateRequest.serializeBinaryToWriter
1306
+ );
1307
+ }
1308
+ };
1309
+
1310
+
1311
+ /**
1312
+ * optional string references_id = 1;
1313
+ * @return {string}
1314
+ */
1315
+ proto.UpdateCurrencyExchangeRateRequest.prototype.getReferencesId = function() {
1316
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1317
+ };
1318
+
1319
+
1320
+ /**
1321
+ * @param {string} value
1322
+ * @return {!proto.UpdateCurrencyExchangeRateRequest} returns this
1323
+ */
1324
+ proto.UpdateCurrencyExchangeRateRequest.prototype.setReferencesId = function(value) {
1325
+ return jspb.Message.setProto3StringField(this, 1, value);
1326
+ };
1327
+
1328
+
1329
+ /**
1330
+ * optional BaseCurrencyExchangeRateRequest base_currency_exchange_rate_request = 2;
1331
+ * @return {?proto.BaseCurrencyExchangeRateRequest}
1332
+ */
1333
+ proto.UpdateCurrencyExchangeRateRequest.prototype.getBaseCurrencyExchangeRateRequest = function() {
1334
+ return /** @type{?proto.BaseCurrencyExchangeRateRequest} */ (
1335
+ jspb.Message.getWrapperField(this, proto.BaseCurrencyExchangeRateRequest, 2));
1336
+ };
1337
+
1338
+
1339
+ /**
1340
+ * @param {?proto.BaseCurrencyExchangeRateRequest|undefined} value
1341
+ * @return {!proto.UpdateCurrencyExchangeRateRequest} returns this
1342
+ */
1343
+ proto.UpdateCurrencyExchangeRateRequest.prototype.setBaseCurrencyExchangeRateRequest = function(value) {
1344
+ return jspb.Message.setWrapperField(this, 2, value);
1345
+ };
1346
+
1347
+
1348
+ /**
1349
+ * Clears the message field making it undefined.
1350
+ * @return {!proto.UpdateCurrencyExchangeRateRequest} returns this
1351
+ */
1352
+ proto.UpdateCurrencyExchangeRateRequest.prototype.clearBaseCurrencyExchangeRateRequest = function() {
1353
+ return this.setBaseCurrencyExchangeRateRequest(undefined);
1354
+ };
1355
+
1356
+
1357
+ /**
1358
+ * Returns whether this field is set.
1359
+ * @return {boolean}
1360
+ */
1361
+ proto.UpdateCurrencyExchangeRateRequest.prototype.hasBaseCurrencyExchangeRateRequest = function() {
1362
+ return jspb.Message.getField(this, 2) != null;
1363
+ };
1364
+
1365
+
1366
+
1367
+
1368
+
1369
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1370
+ /**
1371
+ * Creates an object representation of this proto.
1372
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1373
+ * Optional fields that are not set will be set to undefined.
1374
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1375
+ * For the list of reserved names please see:
1376
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1377
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1378
+ * JSPB instance for transitional soy proto support:
1379
+ * http://goto/soy-param-migration
1380
+ * @return {!Object}
1381
+ */
1382
+ proto.DeleteCurrencyExchangeRateRequest.prototype.toObject = function(opt_includeInstance) {
1383
+ return proto.DeleteCurrencyExchangeRateRequest.toObject(opt_includeInstance, this);
1384
+ };
1385
+
1386
+
1387
+ /**
1388
+ * Static version of the {@see toObject} method.
1389
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1390
+ * the JSPB instance for transitional soy proto support:
1391
+ * http://goto/soy-param-migration
1392
+ * @param {!proto.DeleteCurrencyExchangeRateRequest} msg The msg instance to transform.
1393
+ * @return {!Object}
1394
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1395
+ */
1396
+ proto.DeleteCurrencyExchangeRateRequest.toObject = function(includeInstance, msg) {
1397
+ var f, obj = {
1398
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1399
+ };
1400
+
1401
+ if (includeInstance) {
1402
+ obj.$jspbMessageInstance = msg;
1403
+ }
1404
+ return obj;
1405
+ };
1406
+ }
1407
+
1408
+
1409
+ /**
1410
+ * Deserializes binary data (in protobuf wire format).
1411
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1412
+ * @return {!proto.DeleteCurrencyExchangeRateRequest}
1413
+ */
1414
+ proto.DeleteCurrencyExchangeRateRequest.deserializeBinary = function(bytes) {
1415
+ var reader = new jspb.BinaryReader(bytes);
1416
+ var msg = new proto.DeleteCurrencyExchangeRateRequest;
1417
+ return proto.DeleteCurrencyExchangeRateRequest.deserializeBinaryFromReader(msg, reader);
1418
+ };
1419
+
1420
+
1421
+ /**
1422
+ * Deserializes binary data (in protobuf wire format) from the
1423
+ * given reader into the given message object.
1424
+ * @param {!proto.DeleteCurrencyExchangeRateRequest} msg The message object to deserialize into.
1425
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1426
+ * @return {!proto.DeleteCurrencyExchangeRateRequest}
1427
+ */
1428
+ proto.DeleteCurrencyExchangeRateRequest.deserializeBinaryFromReader = function(msg, reader) {
1429
+ while (reader.nextField()) {
1430
+ if (reader.isEndGroup()) {
1431
+ break;
1432
+ }
1433
+ var field = reader.getFieldNumber();
1434
+ switch (field) {
1435
+ case 1:
1436
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1437
+ msg.setReferencesId(value);
1438
+ break;
1439
+ default:
1440
+ reader.skipField();
1441
+ break;
1442
+ }
1443
+ }
1444
+ return msg;
1445
+ };
1446
+
1447
+
1448
+ /**
1449
+ * Serializes the message to binary data (in protobuf wire format).
1450
+ * @return {!Uint8Array}
1451
+ */
1452
+ proto.DeleteCurrencyExchangeRateRequest.prototype.serializeBinary = function() {
1453
+ var writer = new jspb.BinaryWriter();
1454
+ proto.DeleteCurrencyExchangeRateRequest.serializeBinaryToWriter(this, writer);
1455
+ return writer.getResultBuffer();
1456
+ };
1457
+
1458
+
1459
+ /**
1460
+ * Serializes the given message to binary data (in protobuf wire
1461
+ * format), writing to the given BinaryWriter.
1462
+ * @param {!proto.DeleteCurrencyExchangeRateRequest} message
1463
+ * @param {!jspb.BinaryWriter} writer
1464
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1465
+ */
1466
+ proto.DeleteCurrencyExchangeRateRequest.serializeBinaryToWriter = function(message, writer) {
1467
+ var f = undefined;
1468
+ f = message.getReferencesId();
1469
+ if (f.length > 0) {
1470
+ writer.writeString(
1471
+ 1,
1472
+ f
1473
+ );
1474
+ }
1475
+ };
1476
+
1477
+
1478
+ /**
1479
+ * optional string references_id = 1;
1480
+ * @return {string}
1481
+ */
1482
+ proto.DeleteCurrencyExchangeRateRequest.prototype.getReferencesId = function() {
1483
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1484
+ };
1485
+
1486
+
1487
+ /**
1488
+ * @param {string} value
1489
+ * @return {!proto.DeleteCurrencyExchangeRateRequest} returns this
1490
+ */
1491
+ proto.DeleteCurrencyExchangeRateRequest.prototype.setReferencesId = function(value) {
1492
+ return jspb.Message.setProto3StringField(this, 1, value);
1493
+ };
1494
+
1495
+
1496
+
1497
+
1498
+
1499
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1500
+ /**
1501
+ * Creates an object representation of this proto.
1502
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1503
+ * Optional fields that are not set will be set to undefined.
1504
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1505
+ * For the list of reserved names please see:
1506
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1507
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1508
+ * JSPB instance for transitional soy proto support:
1509
+ * http://goto/soy-param-migration
1510
+ * @return {!Object}
1511
+ */
1512
+ proto.DeleteCurrencyExchangeRateResponse.prototype.toObject = function(opt_includeInstance) {
1513
+ return proto.DeleteCurrencyExchangeRateResponse.toObject(opt_includeInstance, this);
1514
+ };
1515
+
1516
+
1517
+ /**
1518
+ * Static version of the {@see toObject} method.
1519
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1520
+ * the JSPB instance for transitional soy proto support:
1521
+ * http://goto/soy-param-migration
1522
+ * @param {!proto.DeleteCurrencyExchangeRateResponse} msg The msg instance to transform.
1523
+ * @return {!Object}
1524
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1525
+ */
1526
+ proto.DeleteCurrencyExchangeRateResponse.toObject = function(includeInstance, msg) {
1527
+ var f, obj = {
1528
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1529
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1530
+ };
1531
+
1532
+ if (includeInstance) {
1533
+ obj.$jspbMessageInstance = msg;
1534
+ }
1535
+ return obj;
1536
+ };
1537
+ }
1538
+
1539
+
1540
+ /**
1541
+ * Deserializes binary data (in protobuf wire format).
1542
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1543
+ * @return {!proto.DeleteCurrencyExchangeRateResponse}
1544
+ */
1545
+ proto.DeleteCurrencyExchangeRateResponse.deserializeBinary = function(bytes) {
1546
+ var reader = new jspb.BinaryReader(bytes);
1547
+ var msg = new proto.DeleteCurrencyExchangeRateResponse;
1548
+ return proto.DeleteCurrencyExchangeRateResponse.deserializeBinaryFromReader(msg, reader);
1549
+ };
1550
+
1551
+
1552
+ /**
1553
+ * Deserializes binary data (in protobuf wire format) from the
1554
+ * given reader into the given message object.
1555
+ * @param {!proto.DeleteCurrencyExchangeRateResponse} msg The message object to deserialize into.
1556
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1557
+ * @return {!proto.DeleteCurrencyExchangeRateResponse}
1558
+ */
1559
+ proto.DeleteCurrencyExchangeRateResponse.deserializeBinaryFromReader = function(msg, reader) {
1560
+ while (reader.nextField()) {
1561
+ if (reader.isEndGroup()) {
1562
+ break;
1563
+ }
1564
+ var field = reader.getFieldNumber();
1565
+ switch (field) {
1566
+ case 1:
1567
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1568
+ msg.setReferencesId(value);
1569
+ break;
1570
+ case 2:
1571
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1572
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1573
+ msg.setMeta(value);
1574
+ break;
1575
+ default:
1576
+ reader.skipField();
1577
+ break;
1578
+ }
1579
+ }
1580
+ return msg;
1581
+ };
1582
+
1583
+
1584
+ /**
1585
+ * Serializes the message to binary data (in protobuf wire format).
1586
+ * @return {!Uint8Array}
1587
+ */
1588
+ proto.DeleteCurrencyExchangeRateResponse.prototype.serializeBinary = function() {
1589
+ var writer = new jspb.BinaryWriter();
1590
+ proto.DeleteCurrencyExchangeRateResponse.serializeBinaryToWriter(this, writer);
1591
+ return writer.getResultBuffer();
1592
+ };
1593
+
1594
+
1595
+ /**
1596
+ * Serializes the given message to binary data (in protobuf wire
1597
+ * format), writing to the given BinaryWriter.
1598
+ * @param {!proto.DeleteCurrencyExchangeRateResponse} message
1599
+ * @param {!jspb.BinaryWriter} writer
1600
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1601
+ */
1602
+ proto.DeleteCurrencyExchangeRateResponse.serializeBinaryToWriter = function(message, writer) {
1603
+ var f = undefined;
1604
+ f = message.getReferencesId();
1605
+ if (f.length > 0) {
1606
+ writer.writeString(
1607
+ 1,
1608
+ f
1609
+ );
1610
+ }
1611
+ f = message.getMeta();
1612
+ if (f != null) {
1613
+ writer.writeMessage(
1614
+ 2,
1615
+ f,
1616
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1617
+ );
1618
+ }
1619
+ };
1620
+
1621
+
1622
+ /**
1623
+ * optional string references_id = 1;
1624
+ * @return {string}
1625
+ */
1626
+ proto.DeleteCurrencyExchangeRateResponse.prototype.getReferencesId = function() {
1627
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1628
+ };
1629
+
1630
+
1631
+ /**
1632
+ * @param {string} value
1633
+ * @return {!proto.DeleteCurrencyExchangeRateResponse} returns this
1634
+ */
1635
+ proto.DeleteCurrencyExchangeRateResponse.prototype.setReferencesId = function(value) {
1636
+ return jspb.Message.setProto3StringField(this, 1, value);
1637
+ };
1638
+
1639
+
1640
+ /**
1641
+ * optional prisca.v1.global.meta.Meta meta = 2;
1642
+ * @return {?proto.prisca.v1.global.meta.Meta}
1643
+ */
1644
+ proto.DeleteCurrencyExchangeRateResponse.prototype.getMeta = function() {
1645
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1646
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1647
+ };
1648
+
1649
+
1650
+ /**
1651
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1652
+ * @return {!proto.DeleteCurrencyExchangeRateResponse} returns this
1653
+ */
1654
+ proto.DeleteCurrencyExchangeRateResponse.prototype.setMeta = function(value) {
1655
+ return jspb.Message.setWrapperField(this, 2, value);
1656
+ };
1657
+
1658
+
1659
+ /**
1660
+ * Clears the message field making it undefined.
1661
+ * @return {!proto.DeleteCurrencyExchangeRateResponse} returns this
1662
+ */
1663
+ proto.DeleteCurrencyExchangeRateResponse.prototype.clearMeta = function() {
1664
+ return this.setMeta(undefined);
1665
+ };
1666
+
1667
+
1668
+ /**
1669
+ * Returns whether this field is set.
1670
+ * @return {boolean}
1671
+ */
1672
+ proto.DeleteCurrencyExchangeRateResponse.prototype.hasMeta = function() {
1673
+ return jspb.Message.getField(this, 2) != null;
1674
+ };
1675
+
1676
+
1677
+
1678
+
1679
+
1680
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1681
+ /**
1682
+ * Creates an object representation of this proto.
1683
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1684
+ * Optional fields that are not set will be set to undefined.
1685
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1686
+ * For the list of reserved names please see:
1687
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1688
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1689
+ * JSPB instance for transitional soy proto support:
1690
+ * http://goto/soy-param-migration
1691
+ * @return {!Object}
1692
+ */
1693
+ proto.GetListCurrencyExchangeRateRequest.prototype.toObject = function(opt_includeInstance) {
1694
+ return proto.GetListCurrencyExchangeRateRequest.toObject(opt_includeInstance, this);
1695
+ };
1696
+
1697
+
1698
+ /**
1699
+ * Static version of the {@see toObject} method.
1700
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1701
+ * the JSPB instance for transitional soy proto support:
1702
+ * http://goto/soy-param-migration
1703
+ * @param {!proto.GetListCurrencyExchangeRateRequest} msg The msg instance to transform.
1704
+ * @return {!Object}
1705
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1706
+ */
1707
+ proto.GetListCurrencyExchangeRateRequest.toObject = function(includeInstance, msg) {
1708
+ var f, obj = {
1709
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1710
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
1711
+ };
1712
+
1713
+ if (includeInstance) {
1714
+ obj.$jspbMessageInstance = msg;
1715
+ }
1716
+ return obj;
1717
+ };
1718
+ }
1719
+
1720
+
1721
+ /**
1722
+ * Deserializes binary data (in protobuf wire format).
1723
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1724
+ * @return {!proto.GetListCurrencyExchangeRateRequest}
1725
+ */
1726
+ proto.GetListCurrencyExchangeRateRequest.deserializeBinary = function(bytes) {
1727
+ var reader = new jspb.BinaryReader(bytes);
1728
+ var msg = new proto.GetListCurrencyExchangeRateRequest;
1729
+ return proto.GetListCurrencyExchangeRateRequest.deserializeBinaryFromReader(msg, reader);
1730
+ };
1731
+
1732
+
1733
+ /**
1734
+ * Deserializes binary data (in protobuf wire format) from the
1735
+ * given reader into the given message object.
1736
+ * @param {!proto.GetListCurrencyExchangeRateRequest} msg The message object to deserialize into.
1737
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1738
+ * @return {!proto.GetListCurrencyExchangeRateRequest}
1739
+ */
1740
+ proto.GetListCurrencyExchangeRateRequest.deserializeBinaryFromReader = function(msg, reader) {
1741
+ while (reader.nextField()) {
1742
+ if (reader.isEndGroup()) {
1743
+ break;
1744
+ }
1745
+ var field = reader.getFieldNumber();
1746
+ switch (field) {
1747
+ case 1:
1748
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1749
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1750
+ msg.setPagination(value);
1751
+ break;
1752
+ case 2:
1753
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1754
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1755
+ msg.setQuery(value);
1756
+ break;
1757
+ default:
1758
+ reader.skipField();
1759
+ break;
1760
+ }
1761
+ }
1762
+ return msg;
1763
+ };
1764
+
1765
+
1766
+ /**
1767
+ * Serializes the message to binary data (in protobuf wire format).
1768
+ * @return {!Uint8Array}
1769
+ */
1770
+ proto.GetListCurrencyExchangeRateRequest.prototype.serializeBinary = function() {
1771
+ var writer = new jspb.BinaryWriter();
1772
+ proto.GetListCurrencyExchangeRateRequest.serializeBinaryToWriter(this, writer);
1773
+ return writer.getResultBuffer();
1774
+ };
1775
+
1776
+
1777
+ /**
1778
+ * Serializes the given message to binary data (in protobuf wire
1779
+ * format), writing to the given BinaryWriter.
1780
+ * @param {!proto.GetListCurrencyExchangeRateRequest} message
1781
+ * @param {!jspb.BinaryWriter} writer
1782
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1783
+ */
1784
+ proto.GetListCurrencyExchangeRateRequest.serializeBinaryToWriter = function(message, writer) {
1785
+ var f = undefined;
1786
+ f = message.getPagination();
1787
+ if (f != null) {
1788
+ writer.writeMessage(
1789
+ 1,
1790
+ f,
1791
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1792
+ );
1793
+ }
1794
+ f = message.getQuery();
1795
+ if (f != null) {
1796
+ writer.writeMessage(
1797
+ 2,
1798
+ f,
1799
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1800
+ );
1801
+ }
1802
+ };
1803
+
1804
+
1805
+ /**
1806
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1807
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1808
+ */
1809
+ proto.GetListCurrencyExchangeRateRequest.prototype.getPagination = function() {
1810
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1811
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1812
+ };
1813
+
1814
+
1815
+ /**
1816
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1817
+ * @return {!proto.GetListCurrencyExchangeRateRequest} returns this
1818
+ */
1819
+ proto.GetListCurrencyExchangeRateRequest.prototype.setPagination = function(value) {
1820
+ return jspb.Message.setWrapperField(this, 1, value);
1821
+ };
1822
+
1823
+
1824
+ /**
1825
+ * Clears the message field making it undefined.
1826
+ * @return {!proto.GetListCurrencyExchangeRateRequest} returns this
1827
+ */
1828
+ proto.GetListCurrencyExchangeRateRequest.prototype.clearPagination = function() {
1829
+ return this.setPagination(undefined);
1830
+ };
1831
+
1832
+
1833
+ /**
1834
+ * Returns whether this field is set.
1835
+ * @return {boolean}
1836
+ */
1837
+ proto.GetListCurrencyExchangeRateRequest.prototype.hasPagination = function() {
1838
+ return jspb.Message.getField(this, 1) != null;
1839
+ };
1840
+
1841
+
1842
+ /**
1843
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
1844
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
1845
+ */
1846
+ proto.GetListCurrencyExchangeRateRequest.prototype.getQuery = function() {
1847
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1848
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1849
+ };
1850
+
1851
+
1852
+ /**
1853
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1854
+ * @return {!proto.GetListCurrencyExchangeRateRequest} returns this
1855
+ */
1856
+ proto.GetListCurrencyExchangeRateRequest.prototype.setQuery = function(value) {
1857
+ return jspb.Message.setWrapperField(this, 2, value);
1858
+ };
1859
+
1860
+
1861
+ /**
1862
+ * Clears the message field making it undefined.
1863
+ * @return {!proto.GetListCurrencyExchangeRateRequest} returns this
1864
+ */
1865
+ proto.GetListCurrencyExchangeRateRequest.prototype.clearQuery = function() {
1866
+ return this.setQuery(undefined);
1867
+ };
1868
+
1869
+
1870
+ /**
1871
+ * Returns whether this field is set.
1872
+ * @return {boolean}
1873
+ */
1874
+ proto.GetListCurrencyExchangeRateRequest.prototype.hasQuery = function() {
1875
+ return jspb.Message.getField(this, 2) != null;
1876
+ };
1877
+
1878
+
1879
+
1880
+
1881
+
1882
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1883
+ /**
1884
+ * Creates an object representation of this proto.
1885
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1886
+ * Optional fields that are not set will be set to undefined.
1887
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1888
+ * For the list of reserved names please see:
1889
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1890
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1891
+ * JSPB instance for transitional soy proto support:
1892
+ * http://goto/soy-param-migration
1893
+ * @return {!Object}
1894
+ */
1895
+ proto.CreateCurrencyExchangeRateResponse.prototype.toObject = function(opt_includeInstance) {
1896
+ return proto.CreateCurrencyExchangeRateResponse.toObject(opt_includeInstance, this);
1897
+ };
1898
+
1899
+
1900
+ /**
1901
+ * Static version of the {@see toObject} method.
1902
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1903
+ * the JSPB instance for transitional soy proto support:
1904
+ * http://goto/soy-param-migration
1905
+ * @param {!proto.CreateCurrencyExchangeRateResponse} msg The msg instance to transform.
1906
+ * @return {!Object}
1907
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1908
+ */
1909
+ proto.CreateCurrencyExchangeRateResponse.toObject = function(includeInstance, msg) {
1910
+ var f, obj = {
1911
+ currencyExchangeRate: (f = msg.getCurrencyExchangeRate()) && proto.CurrencyExchangeRate.toObject(includeInstance, f),
1912
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1913
+ };
1914
+
1915
+ if (includeInstance) {
1916
+ obj.$jspbMessageInstance = msg;
1917
+ }
1918
+ return obj;
1919
+ };
1920
+ }
1921
+
1922
+
1923
+ /**
1924
+ * Deserializes binary data (in protobuf wire format).
1925
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1926
+ * @return {!proto.CreateCurrencyExchangeRateResponse}
1927
+ */
1928
+ proto.CreateCurrencyExchangeRateResponse.deserializeBinary = function(bytes) {
1929
+ var reader = new jspb.BinaryReader(bytes);
1930
+ var msg = new proto.CreateCurrencyExchangeRateResponse;
1931
+ return proto.CreateCurrencyExchangeRateResponse.deserializeBinaryFromReader(msg, reader);
1932
+ };
1933
+
1934
+
1935
+ /**
1936
+ * Deserializes binary data (in protobuf wire format) from the
1937
+ * given reader into the given message object.
1938
+ * @param {!proto.CreateCurrencyExchangeRateResponse} msg The message object to deserialize into.
1939
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1940
+ * @return {!proto.CreateCurrencyExchangeRateResponse}
1941
+ */
1942
+ proto.CreateCurrencyExchangeRateResponse.deserializeBinaryFromReader = function(msg, reader) {
1943
+ while (reader.nextField()) {
1944
+ if (reader.isEndGroup()) {
1945
+ break;
1946
+ }
1947
+ var field = reader.getFieldNumber();
1948
+ switch (field) {
1949
+ case 1:
1950
+ var value = new proto.CurrencyExchangeRate;
1951
+ reader.readMessage(value,proto.CurrencyExchangeRate.deserializeBinaryFromReader);
1952
+ msg.setCurrencyExchangeRate(value);
1953
+ break;
1954
+ case 2:
1955
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1956
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1957
+ msg.setMeta(value);
1958
+ break;
1959
+ default:
1960
+ reader.skipField();
1961
+ break;
1962
+ }
1963
+ }
1964
+ return msg;
1965
+ };
1966
+
1967
+
1968
+ /**
1969
+ * Serializes the message to binary data (in protobuf wire format).
1970
+ * @return {!Uint8Array}
1971
+ */
1972
+ proto.CreateCurrencyExchangeRateResponse.prototype.serializeBinary = function() {
1973
+ var writer = new jspb.BinaryWriter();
1974
+ proto.CreateCurrencyExchangeRateResponse.serializeBinaryToWriter(this, writer);
1975
+ return writer.getResultBuffer();
1976
+ };
1977
+
1978
+
1979
+ /**
1980
+ * Serializes the given message to binary data (in protobuf wire
1981
+ * format), writing to the given BinaryWriter.
1982
+ * @param {!proto.CreateCurrencyExchangeRateResponse} message
1983
+ * @param {!jspb.BinaryWriter} writer
1984
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1985
+ */
1986
+ proto.CreateCurrencyExchangeRateResponse.serializeBinaryToWriter = function(message, writer) {
1987
+ var f = undefined;
1988
+ f = message.getCurrencyExchangeRate();
1989
+ if (f != null) {
1990
+ writer.writeMessage(
1991
+ 1,
1992
+ f,
1993
+ proto.CurrencyExchangeRate.serializeBinaryToWriter
1994
+ );
1995
+ }
1996
+ f = message.getMeta();
1997
+ if (f != null) {
1998
+ writer.writeMessage(
1999
+ 2,
2000
+ f,
2001
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2002
+ );
2003
+ }
2004
+ };
2005
+
2006
+
2007
+ /**
2008
+ * optional CurrencyExchangeRate currency_exchange_rate = 1;
2009
+ * @return {?proto.CurrencyExchangeRate}
2010
+ */
2011
+ proto.CreateCurrencyExchangeRateResponse.prototype.getCurrencyExchangeRate = function() {
2012
+ return /** @type{?proto.CurrencyExchangeRate} */ (
2013
+ jspb.Message.getWrapperField(this, proto.CurrencyExchangeRate, 1));
2014
+ };
2015
+
2016
+
2017
+ /**
2018
+ * @param {?proto.CurrencyExchangeRate|undefined} value
2019
+ * @return {!proto.CreateCurrencyExchangeRateResponse} returns this
2020
+ */
2021
+ proto.CreateCurrencyExchangeRateResponse.prototype.setCurrencyExchangeRate = function(value) {
2022
+ return jspb.Message.setWrapperField(this, 1, value);
2023
+ };
2024
+
2025
+
2026
+ /**
2027
+ * Clears the message field making it undefined.
2028
+ * @return {!proto.CreateCurrencyExchangeRateResponse} returns this
2029
+ */
2030
+ proto.CreateCurrencyExchangeRateResponse.prototype.clearCurrencyExchangeRate = function() {
2031
+ return this.setCurrencyExchangeRate(undefined);
2032
+ };
2033
+
2034
+
2035
+ /**
2036
+ * Returns whether this field is set.
2037
+ * @return {boolean}
2038
+ */
2039
+ proto.CreateCurrencyExchangeRateResponse.prototype.hasCurrencyExchangeRate = function() {
2040
+ return jspb.Message.getField(this, 1) != null;
2041
+ };
2042
+
2043
+
2044
+ /**
2045
+ * optional prisca.v1.global.meta.Meta meta = 2;
2046
+ * @return {?proto.prisca.v1.global.meta.Meta}
2047
+ */
2048
+ proto.CreateCurrencyExchangeRateResponse.prototype.getMeta = function() {
2049
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2050
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2051
+ };
2052
+
2053
+
2054
+ /**
2055
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2056
+ * @return {!proto.CreateCurrencyExchangeRateResponse} returns this
2057
+ */
2058
+ proto.CreateCurrencyExchangeRateResponse.prototype.setMeta = function(value) {
2059
+ return jspb.Message.setWrapperField(this, 2, value);
2060
+ };
2061
+
2062
+
2063
+ /**
2064
+ * Clears the message field making it undefined.
2065
+ * @return {!proto.CreateCurrencyExchangeRateResponse} returns this
2066
+ */
2067
+ proto.CreateCurrencyExchangeRateResponse.prototype.clearMeta = function() {
2068
+ return this.setMeta(undefined);
2069
+ };
2070
+
2071
+
2072
+ /**
2073
+ * Returns whether this field is set.
2074
+ * @return {boolean}
2075
+ */
2076
+ proto.CreateCurrencyExchangeRateResponse.prototype.hasMeta = function() {
2077
+ return jspb.Message.getField(this, 2) != null;
2078
+ };
2079
+
2080
+
2081
+
2082
+ /**
2083
+ * List of repeated fields within this message type.
2084
+ * @private {!Array<number>}
2085
+ * @const
2086
+ */
2087
+ proto.GetListCurrencyExchangeRateResponse.repeatedFields_ = [1];
2088
+
2089
+
2090
+
2091
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2092
+ /**
2093
+ * Creates an object representation of this proto.
2094
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2095
+ * Optional fields that are not set will be set to undefined.
2096
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2097
+ * For the list of reserved names please see:
2098
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2099
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2100
+ * JSPB instance for transitional soy proto support:
2101
+ * http://goto/soy-param-migration
2102
+ * @return {!Object}
2103
+ */
2104
+ proto.GetListCurrencyExchangeRateResponse.prototype.toObject = function(opt_includeInstance) {
2105
+ return proto.GetListCurrencyExchangeRateResponse.toObject(opt_includeInstance, this);
2106
+ };
2107
+
2108
+
2109
+ /**
2110
+ * Static version of the {@see toObject} method.
2111
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2112
+ * the JSPB instance for transitional soy proto support:
2113
+ * http://goto/soy-param-migration
2114
+ * @param {!proto.GetListCurrencyExchangeRateResponse} msg The msg instance to transform.
2115
+ * @return {!Object}
2116
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2117
+ */
2118
+ proto.GetListCurrencyExchangeRateResponse.toObject = function(includeInstance, msg) {
2119
+ var f, obj = {
2120
+ currencyExchangeRatesList: jspb.Message.toObjectList(msg.getCurrencyExchangeRatesList(),
2121
+ proto.CurrencyExchangeRate.toObject, includeInstance),
2122
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2123
+ };
2124
+
2125
+ if (includeInstance) {
2126
+ obj.$jspbMessageInstance = msg;
2127
+ }
2128
+ return obj;
2129
+ };
2130
+ }
2131
+
2132
+
2133
+ /**
2134
+ * Deserializes binary data (in protobuf wire format).
2135
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2136
+ * @return {!proto.GetListCurrencyExchangeRateResponse}
2137
+ */
2138
+ proto.GetListCurrencyExchangeRateResponse.deserializeBinary = function(bytes) {
2139
+ var reader = new jspb.BinaryReader(bytes);
2140
+ var msg = new proto.GetListCurrencyExchangeRateResponse;
2141
+ return proto.GetListCurrencyExchangeRateResponse.deserializeBinaryFromReader(msg, reader);
2142
+ };
2143
+
2144
+
2145
+ /**
2146
+ * Deserializes binary data (in protobuf wire format) from the
2147
+ * given reader into the given message object.
2148
+ * @param {!proto.GetListCurrencyExchangeRateResponse} msg The message object to deserialize into.
2149
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2150
+ * @return {!proto.GetListCurrencyExchangeRateResponse}
2151
+ */
2152
+ proto.GetListCurrencyExchangeRateResponse.deserializeBinaryFromReader = function(msg, reader) {
2153
+ while (reader.nextField()) {
2154
+ if (reader.isEndGroup()) {
2155
+ break;
2156
+ }
2157
+ var field = reader.getFieldNumber();
2158
+ switch (field) {
2159
+ case 1:
2160
+ var value = new proto.CurrencyExchangeRate;
2161
+ reader.readMessage(value,proto.CurrencyExchangeRate.deserializeBinaryFromReader);
2162
+ msg.addCurrencyExchangeRates(value);
2163
+ break;
2164
+ case 2:
2165
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2166
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2167
+ msg.setMeta(value);
2168
+ break;
2169
+ default:
2170
+ reader.skipField();
2171
+ break;
2172
+ }
2173
+ }
2174
+ return msg;
2175
+ };
2176
+
2177
+
2178
+ /**
2179
+ * Serializes the message to binary data (in protobuf wire format).
2180
+ * @return {!Uint8Array}
2181
+ */
2182
+ proto.GetListCurrencyExchangeRateResponse.prototype.serializeBinary = function() {
2183
+ var writer = new jspb.BinaryWriter();
2184
+ proto.GetListCurrencyExchangeRateResponse.serializeBinaryToWriter(this, writer);
2185
+ return writer.getResultBuffer();
2186
+ };
2187
+
2188
+
2189
+ /**
2190
+ * Serializes the given message to binary data (in protobuf wire
2191
+ * format), writing to the given BinaryWriter.
2192
+ * @param {!proto.GetListCurrencyExchangeRateResponse} message
2193
+ * @param {!jspb.BinaryWriter} writer
2194
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2195
+ */
2196
+ proto.GetListCurrencyExchangeRateResponse.serializeBinaryToWriter = function(message, writer) {
2197
+ var f = undefined;
2198
+ f = message.getCurrencyExchangeRatesList();
2199
+ if (f.length > 0) {
2200
+ writer.writeRepeatedMessage(
2201
+ 1,
2202
+ f,
2203
+ proto.CurrencyExchangeRate.serializeBinaryToWriter
2204
+ );
2205
+ }
2206
+ f = message.getMeta();
2207
+ if (f != null) {
2208
+ writer.writeMessage(
2209
+ 2,
2210
+ f,
2211
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2212
+ );
2213
+ }
2214
+ };
2215
+
2216
+
2217
+ /**
2218
+ * repeated CurrencyExchangeRate currency_exchange_rates = 1;
2219
+ * @return {!Array<!proto.CurrencyExchangeRate>}
2220
+ */
2221
+ proto.GetListCurrencyExchangeRateResponse.prototype.getCurrencyExchangeRatesList = function() {
2222
+ return /** @type{!Array<!proto.CurrencyExchangeRate>} */ (
2223
+ jspb.Message.getRepeatedWrapperField(this, proto.CurrencyExchangeRate, 1));
2224
+ };
2225
+
2226
+
2227
+ /**
2228
+ * @param {!Array<!proto.CurrencyExchangeRate>} value
2229
+ * @return {!proto.GetListCurrencyExchangeRateResponse} returns this
2230
+ */
2231
+ proto.GetListCurrencyExchangeRateResponse.prototype.setCurrencyExchangeRatesList = function(value) {
2232
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2233
+ };
2234
+
2235
+
2236
+ /**
2237
+ * @param {!proto.CurrencyExchangeRate=} opt_value
2238
+ * @param {number=} opt_index
2239
+ * @return {!proto.CurrencyExchangeRate}
2240
+ */
2241
+ proto.GetListCurrencyExchangeRateResponse.prototype.addCurrencyExchangeRates = function(opt_value, opt_index) {
2242
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.CurrencyExchangeRate, opt_index);
2243
+ };
2244
+
2245
+
2246
+ /**
2247
+ * Clears the list making it empty but non-null.
2248
+ * @return {!proto.GetListCurrencyExchangeRateResponse} returns this
2249
+ */
2250
+ proto.GetListCurrencyExchangeRateResponse.prototype.clearCurrencyExchangeRatesList = function() {
2251
+ return this.setCurrencyExchangeRatesList([]);
2252
+ };
2253
+
2254
+
2255
+ /**
2256
+ * optional prisca.v1.global.meta.Meta meta = 2;
2257
+ * @return {?proto.prisca.v1.global.meta.Meta}
2258
+ */
2259
+ proto.GetListCurrencyExchangeRateResponse.prototype.getMeta = function() {
2260
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2261
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2262
+ };
2263
+
2264
+
2265
+ /**
2266
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2267
+ * @return {!proto.GetListCurrencyExchangeRateResponse} returns this
2268
+ */
2269
+ proto.GetListCurrencyExchangeRateResponse.prototype.setMeta = function(value) {
2270
+ return jspb.Message.setWrapperField(this, 2, value);
2271
+ };
2272
+
2273
+
2274
+ /**
2275
+ * Clears the message field making it undefined.
2276
+ * @return {!proto.GetListCurrencyExchangeRateResponse} returns this
2277
+ */
2278
+ proto.GetListCurrencyExchangeRateResponse.prototype.clearMeta = function() {
2279
+ return this.setMeta(undefined);
2280
+ };
2281
+
2282
+
2283
+ /**
2284
+ * Returns whether this field is set.
2285
+ * @return {boolean}
2286
+ */
2287
+ proto.GetListCurrencyExchangeRateResponse.prototype.hasMeta = function() {
2288
+ return jspb.Message.getField(this, 2) != null;
2289
+ };
2290
+
2291
+
2292
+
2293
+
2294
+
2295
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2296
+ /**
2297
+ * Creates an object representation of this proto.
2298
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2299
+ * Optional fields that are not set will be set to undefined.
2300
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2301
+ * For the list of reserved names please see:
2302
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2303
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2304
+ * JSPB instance for transitional soy proto support:
2305
+ * http://goto/soy-param-migration
2306
+ * @return {!Object}
2307
+ */
2308
+ proto.UpdateCurrencyExchangeRateResponse.prototype.toObject = function(opt_includeInstance) {
2309
+ return proto.UpdateCurrencyExchangeRateResponse.toObject(opt_includeInstance, this);
2310
+ };
2311
+
2312
+
2313
+ /**
2314
+ * Static version of the {@see toObject} method.
2315
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2316
+ * the JSPB instance for transitional soy proto support:
2317
+ * http://goto/soy-param-migration
2318
+ * @param {!proto.UpdateCurrencyExchangeRateResponse} msg The msg instance to transform.
2319
+ * @return {!Object}
2320
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2321
+ */
2322
+ proto.UpdateCurrencyExchangeRateResponse.toObject = function(includeInstance, msg) {
2323
+ var f, obj = {
2324
+ currencyExchangeRate: (f = msg.getCurrencyExchangeRate()) && proto.CurrencyExchangeRate.toObject(includeInstance, f),
2325
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2326
+ };
2327
+
2328
+ if (includeInstance) {
2329
+ obj.$jspbMessageInstance = msg;
2330
+ }
2331
+ return obj;
2332
+ };
2333
+ }
2334
+
2335
+
2336
+ /**
2337
+ * Deserializes binary data (in protobuf wire format).
2338
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2339
+ * @return {!proto.UpdateCurrencyExchangeRateResponse}
2340
+ */
2341
+ proto.UpdateCurrencyExchangeRateResponse.deserializeBinary = function(bytes) {
2342
+ var reader = new jspb.BinaryReader(bytes);
2343
+ var msg = new proto.UpdateCurrencyExchangeRateResponse;
2344
+ return proto.UpdateCurrencyExchangeRateResponse.deserializeBinaryFromReader(msg, reader);
2345
+ };
2346
+
2347
+
2348
+ /**
2349
+ * Deserializes binary data (in protobuf wire format) from the
2350
+ * given reader into the given message object.
2351
+ * @param {!proto.UpdateCurrencyExchangeRateResponse} msg The message object to deserialize into.
2352
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2353
+ * @return {!proto.UpdateCurrencyExchangeRateResponse}
2354
+ */
2355
+ proto.UpdateCurrencyExchangeRateResponse.deserializeBinaryFromReader = function(msg, reader) {
2356
+ while (reader.nextField()) {
2357
+ if (reader.isEndGroup()) {
2358
+ break;
2359
+ }
2360
+ var field = reader.getFieldNumber();
2361
+ switch (field) {
2362
+ case 1:
2363
+ var value = new proto.CurrencyExchangeRate;
2364
+ reader.readMessage(value,proto.CurrencyExchangeRate.deserializeBinaryFromReader);
2365
+ msg.setCurrencyExchangeRate(value);
2366
+ break;
2367
+ case 2:
2368
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2369
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2370
+ msg.setMeta(value);
2371
+ break;
2372
+ default:
2373
+ reader.skipField();
2374
+ break;
2375
+ }
2376
+ }
2377
+ return msg;
2378
+ };
2379
+
2380
+
2381
+ /**
2382
+ * Serializes the message to binary data (in protobuf wire format).
2383
+ * @return {!Uint8Array}
2384
+ */
2385
+ proto.UpdateCurrencyExchangeRateResponse.prototype.serializeBinary = function() {
2386
+ var writer = new jspb.BinaryWriter();
2387
+ proto.UpdateCurrencyExchangeRateResponse.serializeBinaryToWriter(this, writer);
2388
+ return writer.getResultBuffer();
2389
+ };
2390
+
2391
+
2392
+ /**
2393
+ * Serializes the given message to binary data (in protobuf wire
2394
+ * format), writing to the given BinaryWriter.
2395
+ * @param {!proto.UpdateCurrencyExchangeRateResponse} message
2396
+ * @param {!jspb.BinaryWriter} writer
2397
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2398
+ */
2399
+ proto.UpdateCurrencyExchangeRateResponse.serializeBinaryToWriter = function(message, writer) {
2400
+ var f = undefined;
2401
+ f = message.getCurrencyExchangeRate();
2402
+ if (f != null) {
2403
+ writer.writeMessage(
2404
+ 1,
2405
+ f,
2406
+ proto.CurrencyExchangeRate.serializeBinaryToWriter
2407
+ );
2408
+ }
2409
+ f = message.getMeta();
2410
+ if (f != null) {
2411
+ writer.writeMessage(
2412
+ 2,
2413
+ f,
2414
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2415
+ );
2416
+ }
2417
+ };
2418
+
2419
+
2420
+ /**
2421
+ * optional CurrencyExchangeRate currency_exchange_rate = 1;
2422
+ * @return {?proto.CurrencyExchangeRate}
2423
+ */
2424
+ proto.UpdateCurrencyExchangeRateResponse.prototype.getCurrencyExchangeRate = function() {
2425
+ return /** @type{?proto.CurrencyExchangeRate} */ (
2426
+ jspb.Message.getWrapperField(this, proto.CurrencyExchangeRate, 1));
2427
+ };
2428
+
2429
+
2430
+ /**
2431
+ * @param {?proto.CurrencyExchangeRate|undefined} value
2432
+ * @return {!proto.UpdateCurrencyExchangeRateResponse} returns this
2433
+ */
2434
+ proto.UpdateCurrencyExchangeRateResponse.prototype.setCurrencyExchangeRate = function(value) {
2435
+ return jspb.Message.setWrapperField(this, 1, value);
2436
+ };
2437
+
2438
+
2439
+ /**
2440
+ * Clears the message field making it undefined.
2441
+ * @return {!proto.UpdateCurrencyExchangeRateResponse} returns this
2442
+ */
2443
+ proto.UpdateCurrencyExchangeRateResponse.prototype.clearCurrencyExchangeRate = function() {
2444
+ return this.setCurrencyExchangeRate(undefined);
2445
+ };
2446
+
2447
+
2448
+ /**
2449
+ * Returns whether this field is set.
2450
+ * @return {boolean}
2451
+ */
2452
+ proto.UpdateCurrencyExchangeRateResponse.prototype.hasCurrencyExchangeRate = function() {
2453
+ return jspb.Message.getField(this, 1) != null;
2454
+ };
2455
+
2456
+
2457
+ /**
2458
+ * optional prisca.v1.global.meta.Meta meta = 2;
2459
+ * @return {?proto.prisca.v1.global.meta.Meta}
2460
+ */
2461
+ proto.UpdateCurrencyExchangeRateResponse.prototype.getMeta = function() {
2462
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2463
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2464
+ };
2465
+
2466
+
2467
+ /**
2468
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2469
+ * @return {!proto.UpdateCurrencyExchangeRateResponse} returns this
2470
+ */
2471
+ proto.UpdateCurrencyExchangeRateResponse.prototype.setMeta = function(value) {
2472
+ return jspb.Message.setWrapperField(this, 2, value);
2473
+ };
2474
+
2475
+
2476
+ /**
2477
+ * Clears the message field making it undefined.
2478
+ * @return {!proto.UpdateCurrencyExchangeRateResponse} returns this
2479
+ */
2480
+ proto.UpdateCurrencyExchangeRateResponse.prototype.clearMeta = function() {
2481
+ return this.setMeta(undefined);
2482
+ };
2483
+
2484
+
2485
+ /**
2486
+ * Returns whether this field is set.
2487
+ * @return {boolean}
2488
+ */
2489
+ proto.UpdateCurrencyExchangeRateResponse.prototype.hasMeta = function() {
2490
+ return jspb.Message.getField(this, 2) != null;
2491
+ };
2492
+
2493
+
2494
+
2495
+
2496
+
2497
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2498
+ /**
2499
+ * Creates an object representation of this proto.
2500
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2501
+ * Optional fields that are not set will be set to undefined.
2502
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2503
+ * For the list of reserved names please see:
2504
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2505
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2506
+ * JSPB instance for transitional soy proto support:
2507
+ * http://goto/soy-param-migration
2508
+ * @return {!Object}
2509
+ */
2510
+ proto.GetCurrencyExchangeRateByIdResponse.prototype.toObject = function(opt_includeInstance) {
2511
+ return proto.GetCurrencyExchangeRateByIdResponse.toObject(opt_includeInstance, this);
2512
+ };
2513
+
2514
+
2515
+ /**
2516
+ * Static version of the {@see toObject} method.
2517
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2518
+ * the JSPB instance for transitional soy proto support:
2519
+ * http://goto/soy-param-migration
2520
+ * @param {!proto.GetCurrencyExchangeRateByIdResponse} msg The msg instance to transform.
2521
+ * @return {!Object}
2522
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2523
+ */
2524
+ proto.GetCurrencyExchangeRateByIdResponse.toObject = function(includeInstance, msg) {
2525
+ var f, obj = {
2526
+ currencyExchangeRate: (f = msg.getCurrencyExchangeRate()) && proto.CurrencyExchangeRate.toObject(includeInstance, f),
2527
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2528
+ };
2529
+
2530
+ if (includeInstance) {
2531
+ obj.$jspbMessageInstance = msg;
2532
+ }
2533
+ return obj;
2534
+ };
2535
+ }
2536
+
2537
+
2538
+ /**
2539
+ * Deserializes binary data (in protobuf wire format).
2540
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2541
+ * @return {!proto.GetCurrencyExchangeRateByIdResponse}
2542
+ */
2543
+ proto.GetCurrencyExchangeRateByIdResponse.deserializeBinary = function(bytes) {
2544
+ var reader = new jspb.BinaryReader(bytes);
2545
+ var msg = new proto.GetCurrencyExchangeRateByIdResponse;
2546
+ return proto.GetCurrencyExchangeRateByIdResponse.deserializeBinaryFromReader(msg, reader);
2547
+ };
2548
+
2549
+
2550
+ /**
2551
+ * Deserializes binary data (in protobuf wire format) from the
2552
+ * given reader into the given message object.
2553
+ * @param {!proto.GetCurrencyExchangeRateByIdResponse} msg The message object to deserialize into.
2554
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2555
+ * @return {!proto.GetCurrencyExchangeRateByIdResponse}
2556
+ */
2557
+ proto.GetCurrencyExchangeRateByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2558
+ while (reader.nextField()) {
2559
+ if (reader.isEndGroup()) {
2560
+ break;
2561
+ }
2562
+ var field = reader.getFieldNumber();
2563
+ switch (field) {
2564
+ case 1:
2565
+ var value = new proto.CurrencyExchangeRate;
2566
+ reader.readMessage(value,proto.CurrencyExchangeRate.deserializeBinaryFromReader);
2567
+ msg.setCurrencyExchangeRate(value);
2568
+ break;
2569
+ case 2:
2570
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2571
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2572
+ msg.setMeta(value);
2573
+ break;
2574
+ default:
2575
+ reader.skipField();
2576
+ break;
2577
+ }
2578
+ }
2579
+ return msg;
2580
+ };
2581
+
2582
+
2583
+ /**
2584
+ * Serializes the message to binary data (in protobuf wire format).
2585
+ * @return {!Uint8Array}
2586
+ */
2587
+ proto.GetCurrencyExchangeRateByIdResponse.prototype.serializeBinary = function() {
2588
+ var writer = new jspb.BinaryWriter();
2589
+ proto.GetCurrencyExchangeRateByIdResponse.serializeBinaryToWriter(this, writer);
2590
+ return writer.getResultBuffer();
2591
+ };
2592
+
2593
+
2594
+ /**
2595
+ * Serializes the given message to binary data (in protobuf wire
2596
+ * format), writing to the given BinaryWriter.
2597
+ * @param {!proto.GetCurrencyExchangeRateByIdResponse} message
2598
+ * @param {!jspb.BinaryWriter} writer
2599
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2600
+ */
2601
+ proto.GetCurrencyExchangeRateByIdResponse.serializeBinaryToWriter = function(message, writer) {
2602
+ var f = undefined;
2603
+ f = message.getCurrencyExchangeRate();
2604
+ if (f != null) {
2605
+ writer.writeMessage(
2606
+ 1,
2607
+ f,
2608
+ proto.CurrencyExchangeRate.serializeBinaryToWriter
2609
+ );
2610
+ }
2611
+ f = message.getMeta();
2612
+ if (f != null) {
2613
+ writer.writeMessage(
2614
+ 2,
2615
+ f,
2616
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2617
+ );
2618
+ }
2619
+ };
2620
+
2621
+
2622
+ /**
2623
+ * optional CurrencyExchangeRate currency_exchange_rate = 1;
2624
+ * @return {?proto.CurrencyExchangeRate}
2625
+ */
2626
+ proto.GetCurrencyExchangeRateByIdResponse.prototype.getCurrencyExchangeRate = function() {
2627
+ return /** @type{?proto.CurrencyExchangeRate} */ (
2628
+ jspb.Message.getWrapperField(this, proto.CurrencyExchangeRate, 1));
2629
+ };
2630
+
2631
+
2632
+ /**
2633
+ * @param {?proto.CurrencyExchangeRate|undefined} value
2634
+ * @return {!proto.GetCurrencyExchangeRateByIdResponse} returns this
2635
+ */
2636
+ proto.GetCurrencyExchangeRateByIdResponse.prototype.setCurrencyExchangeRate = function(value) {
2637
+ return jspb.Message.setWrapperField(this, 1, value);
2638
+ };
2639
+
2640
+
2641
+ /**
2642
+ * Clears the message field making it undefined.
2643
+ * @return {!proto.GetCurrencyExchangeRateByIdResponse} returns this
2644
+ */
2645
+ proto.GetCurrencyExchangeRateByIdResponse.prototype.clearCurrencyExchangeRate = function() {
2646
+ return this.setCurrencyExchangeRate(undefined);
2647
+ };
2648
+
2649
+
2650
+ /**
2651
+ * Returns whether this field is set.
2652
+ * @return {boolean}
2653
+ */
2654
+ proto.GetCurrencyExchangeRateByIdResponse.prototype.hasCurrencyExchangeRate = function() {
2655
+ return jspb.Message.getField(this, 1) != null;
2656
+ };
2657
+
2658
+
2659
+ /**
2660
+ * optional prisca.v1.global.meta.Meta meta = 2;
2661
+ * @return {?proto.prisca.v1.global.meta.Meta}
2662
+ */
2663
+ proto.GetCurrencyExchangeRateByIdResponse.prototype.getMeta = function() {
2664
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2665
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2666
+ };
2667
+
2668
+
2669
+ /**
2670
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2671
+ * @return {!proto.GetCurrencyExchangeRateByIdResponse} returns this
2672
+ */
2673
+ proto.GetCurrencyExchangeRateByIdResponse.prototype.setMeta = function(value) {
2674
+ return jspb.Message.setWrapperField(this, 2, value);
2675
+ };
2676
+
2677
+
2678
+ /**
2679
+ * Clears the message field making it undefined.
2680
+ * @return {!proto.GetCurrencyExchangeRateByIdResponse} returns this
2681
+ */
2682
+ proto.GetCurrencyExchangeRateByIdResponse.prototype.clearMeta = function() {
2683
+ return this.setMeta(undefined);
2684
+ };
2685
+
2686
+
2687
+ /**
2688
+ * Returns whether this field is set.
2689
+ * @return {boolean}
2690
+ */
2691
+ proto.GetCurrencyExchangeRateByIdResponse.prototype.hasMeta = function() {
2692
+ return jspb.Message.getField(this, 2) != null;
2693
+ };
2694
+
2695
+
2696
+ goog.object.extend(exports, proto);