@aldiokta/protocgen 1.1.61 → 1.1.62

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.
Files changed (30) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/budget/budget_pb.js +211 -1
  3. package/prisca/v1/budget_planning/budget_planning_grpc_pb.js +33 -0
  4. package/prisca/v1/budget_planning/budget_planning_pb.js +1199 -152
  5. package/prisca/v1/core/auth/auth_grpc_pb.js +1 -0
  6. package/prisca/v1/core/auth/auth_pb.js +115 -2
  7. package/prisca/v1/core/employee/employee_grpc_pb.js +22 -0
  8. package/prisca/v1/core/employee/employee_pb.js +214 -2
  9. package/prisca/v1/core/item_transaction/item_transaction_pb.js +519 -10
  10. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +22 -0
  11. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +303 -1
  12. package/prisca/v1/core/report/report_pb.js +31 -1
  13. package/prisca/v1/core/users/users_pb.js +31 -1
  14. package/prisca/v1/down_payment/down_payment_grpc_pb.js +201 -0
  15. package/prisca/v1/down_payment/down_payment_pb.js +3357 -0
  16. package/prisca/v1/general_configuration/general_configuration_grpc_pb.js +212 -0
  17. package/prisca/v1/general_configuration/general_configuration_pb.js +2886 -0
  18. package/prisca/v1/invoice/invoice_grpc_pb.js +77 -0
  19. package/prisca/v1/invoice/invoice_pb.js +2657 -434
  20. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +34 -0
  21. package/prisca/v1/purchase_order/purchase_order_pb.js +2542 -57
  22. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +22 -0
  23. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +743 -53
  24. package/prisca/v1/vendor_domain/vendor_domain_pb.js +72 -12
  25. package/prisca/v1/webhook_builder/webhook_builder_grpc_pb.js +245 -0
  26. package/prisca/v1/webhook_builder/webhook_builder_pb.js +5084 -0
  27. package/prisca/v1/webhook_incoming_integration/webhook_incoming_integration_grpc_pb.js +245 -0
  28. package/prisca/v1/webhook_incoming_integration/webhook_incoming_integration_pb.js +3499 -0
  29. package/prisca/v1/webhook_integration/webhook_integration_grpc_pb.js +212 -0
  30. package/prisca/v1/webhook_integration/webhook_integration_pb.js +2976 -0
@@ -0,0 +1,3357 @@
1
+ // source: prisca/v1/down_payment/down_payment.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = 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
+ var prisca_v1_core_employee_employee_pb = require('../../../prisca/v1/core/employee/employee_pb.js');
21
+ goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
22
+ var prisca_v1_purchase_order_purchase_order_pb = require('../../../prisca/v1/purchase_order/purchase_order_pb.js');
23
+ goog.object.extend(proto, prisca_v1_purchase_order_purchase_order_pb);
24
+ goog.exportSymbol('proto.prisca.v1.down_payment.BaseDownPayment', null, global);
25
+ goog.exportSymbol('proto.prisca.v1.down_payment.CreateDownPaymentReq', null, global);
26
+ goog.exportSymbol('proto.prisca.v1.down_payment.CreateDownPaymentRes', null, global);
27
+ goog.exportSymbol('proto.prisca.v1.down_payment.DeleteDownPaymentReq', null, global);
28
+ goog.exportSymbol('proto.prisca.v1.down_payment.DeleteDownPaymentRes', null, global);
29
+ goog.exportSymbol('proto.prisca.v1.down_payment.DownPayment', null, global);
30
+ goog.exportSymbol('proto.prisca.v1.down_payment.GetDownPaymentByIdReq', null, global);
31
+ goog.exportSymbol('proto.prisca.v1.down_payment.GetDownPaymentByIdRes', null, global);
32
+ goog.exportSymbol('proto.prisca.v1.down_payment.GetListDownPaymentReq', null, global);
33
+ goog.exportSymbol('proto.prisca.v1.down_payment.GetListDownPaymentRes', null, global);
34
+ goog.exportSymbol('proto.prisca.v1.down_payment.UpdateDownPaymentReq', null, global);
35
+ goog.exportSymbol('proto.prisca.v1.down_payment.UpdateDownPaymentRes', null, global);
36
+ goog.exportSymbol('proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq', null, global);
37
+ /**
38
+ * Generated by JsPbCodeGenerator.
39
+ * @param {Array=} opt_data Optional initial data array, typically from a
40
+ * server response, or constructed directly in Javascript. The array is used
41
+ * in place and becomes part of the constructed object. It is not cloned.
42
+ * If no data is provided, the constructed object will be empty, but still
43
+ * valid.
44
+ * @extends {jspb.Message}
45
+ * @constructor
46
+ */
47
+ proto.prisca.v1.down_payment.BaseDownPayment = function(opt_data) {
48
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
49
+ };
50
+ goog.inherits(proto.prisca.v1.down_payment.BaseDownPayment, jspb.Message);
51
+ if (goog.DEBUG && !COMPILED) {
52
+ /**
53
+ * @public
54
+ * @override
55
+ */
56
+ proto.prisca.v1.down_payment.BaseDownPayment.displayName = 'proto.prisca.v1.down_payment.BaseDownPayment';
57
+ }
58
+ /**
59
+ * Generated by JsPbCodeGenerator.
60
+ * @param {Array=} opt_data Optional initial data array, typically from a
61
+ * server response, or constructed directly in Javascript. The array is used
62
+ * in place and becomes part of the constructed object. It is not cloned.
63
+ * If no data is provided, the constructed object will be empty, but still
64
+ * valid.
65
+ * @extends {jspb.Message}
66
+ * @constructor
67
+ */
68
+ proto.prisca.v1.down_payment.DownPayment = function(opt_data) {
69
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
70
+ };
71
+ goog.inherits(proto.prisca.v1.down_payment.DownPayment, jspb.Message);
72
+ if (goog.DEBUG && !COMPILED) {
73
+ /**
74
+ * @public
75
+ * @override
76
+ */
77
+ proto.prisca.v1.down_payment.DownPayment.displayName = 'proto.prisca.v1.down_payment.DownPayment';
78
+ }
79
+ /**
80
+ * Generated by JsPbCodeGenerator.
81
+ * @param {Array=} opt_data Optional initial data array, typically from a
82
+ * server response, or constructed directly in Javascript. The array is used
83
+ * in place and becomes part of the constructed object. It is not cloned.
84
+ * If no data is provided, the constructed object will be empty, but still
85
+ * valid.
86
+ * @extends {jspb.Message}
87
+ * @constructor
88
+ */
89
+ proto.prisca.v1.down_payment.CreateDownPaymentReq = function(opt_data) {
90
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
91
+ };
92
+ goog.inherits(proto.prisca.v1.down_payment.CreateDownPaymentReq, jspb.Message);
93
+ if (goog.DEBUG && !COMPILED) {
94
+ /**
95
+ * @public
96
+ * @override
97
+ */
98
+ proto.prisca.v1.down_payment.CreateDownPaymentReq.displayName = 'proto.prisca.v1.down_payment.CreateDownPaymentReq';
99
+ }
100
+ /**
101
+ * Generated by JsPbCodeGenerator.
102
+ * @param {Array=} opt_data Optional initial data array, typically from a
103
+ * server response, or constructed directly in Javascript. The array is used
104
+ * in place and becomes part of the constructed object. It is not cloned.
105
+ * If no data is provided, the constructed object will be empty, but still
106
+ * valid.
107
+ * @extends {jspb.Message}
108
+ * @constructor
109
+ */
110
+ proto.prisca.v1.down_payment.CreateDownPaymentRes = function(opt_data) {
111
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
112
+ };
113
+ goog.inherits(proto.prisca.v1.down_payment.CreateDownPaymentRes, jspb.Message);
114
+ if (goog.DEBUG && !COMPILED) {
115
+ /**
116
+ * @public
117
+ * @override
118
+ */
119
+ proto.prisca.v1.down_payment.CreateDownPaymentRes.displayName = 'proto.prisca.v1.down_payment.CreateDownPaymentRes';
120
+ }
121
+ /**
122
+ * Generated by JsPbCodeGenerator.
123
+ * @param {Array=} opt_data Optional initial data array, typically from a
124
+ * server response, or constructed directly in Javascript. The array is used
125
+ * in place and becomes part of the constructed object. It is not cloned.
126
+ * If no data is provided, the constructed object will be empty, but still
127
+ * valid.
128
+ * @extends {jspb.Message}
129
+ * @constructor
130
+ */
131
+ proto.prisca.v1.down_payment.UpdateDownPaymentReq = function(opt_data) {
132
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
133
+ };
134
+ goog.inherits(proto.prisca.v1.down_payment.UpdateDownPaymentReq, jspb.Message);
135
+ if (goog.DEBUG && !COMPILED) {
136
+ /**
137
+ * @public
138
+ * @override
139
+ */
140
+ proto.prisca.v1.down_payment.UpdateDownPaymentReq.displayName = 'proto.prisca.v1.down_payment.UpdateDownPaymentReq';
141
+ }
142
+ /**
143
+ * Generated by JsPbCodeGenerator.
144
+ * @param {Array=} opt_data Optional initial data array, typically from a
145
+ * server response, or constructed directly in Javascript. The array is used
146
+ * in place and becomes part of the constructed object. It is not cloned.
147
+ * If no data is provided, the constructed object will be empty, but still
148
+ * valid.
149
+ * @extends {jspb.Message}
150
+ * @constructor
151
+ */
152
+ proto.prisca.v1.down_payment.UpdateDownPaymentRes = function(opt_data) {
153
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
154
+ };
155
+ goog.inherits(proto.prisca.v1.down_payment.UpdateDownPaymentRes, jspb.Message);
156
+ if (goog.DEBUG && !COMPILED) {
157
+ /**
158
+ * @public
159
+ * @override
160
+ */
161
+ proto.prisca.v1.down_payment.UpdateDownPaymentRes.displayName = 'proto.prisca.v1.down_payment.UpdateDownPaymentRes';
162
+ }
163
+ /**
164
+ * Generated by JsPbCodeGenerator.
165
+ * @param {Array=} opt_data Optional initial data array, typically from a
166
+ * server response, or constructed directly in Javascript. The array is used
167
+ * in place and becomes part of the constructed object. It is not cloned.
168
+ * If no data is provided, the constructed object will be empty, but still
169
+ * valid.
170
+ * @extends {jspb.Message}
171
+ * @constructor
172
+ */
173
+ proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq = function(opt_data) {
174
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
175
+ };
176
+ goog.inherits(proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq, jspb.Message);
177
+ if (goog.DEBUG && !COMPILED) {
178
+ /**
179
+ * @public
180
+ * @override
181
+ */
182
+ proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq.displayName = 'proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq';
183
+ }
184
+ /**
185
+ * Generated by JsPbCodeGenerator.
186
+ * @param {Array=} opt_data Optional initial data array, typically from a
187
+ * server response, or constructed directly in Javascript. The array is used
188
+ * in place and becomes part of the constructed object. It is not cloned.
189
+ * If no data is provided, the constructed object will be empty, but still
190
+ * valid.
191
+ * @extends {jspb.Message}
192
+ * @constructor
193
+ */
194
+ proto.prisca.v1.down_payment.GetDownPaymentByIdReq = function(opt_data) {
195
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
196
+ };
197
+ goog.inherits(proto.prisca.v1.down_payment.GetDownPaymentByIdReq, jspb.Message);
198
+ if (goog.DEBUG && !COMPILED) {
199
+ /**
200
+ * @public
201
+ * @override
202
+ */
203
+ proto.prisca.v1.down_payment.GetDownPaymentByIdReq.displayName = 'proto.prisca.v1.down_payment.GetDownPaymentByIdReq';
204
+ }
205
+ /**
206
+ * Generated by JsPbCodeGenerator.
207
+ * @param {Array=} opt_data Optional initial data array, typically from a
208
+ * server response, or constructed directly in Javascript. The array is used
209
+ * in place and becomes part of the constructed object. It is not cloned.
210
+ * If no data is provided, the constructed object will be empty, but still
211
+ * valid.
212
+ * @extends {jspb.Message}
213
+ * @constructor
214
+ */
215
+ proto.prisca.v1.down_payment.GetDownPaymentByIdRes = function(opt_data) {
216
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
217
+ };
218
+ goog.inherits(proto.prisca.v1.down_payment.GetDownPaymentByIdRes, jspb.Message);
219
+ if (goog.DEBUG && !COMPILED) {
220
+ /**
221
+ * @public
222
+ * @override
223
+ */
224
+ proto.prisca.v1.down_payment.GetDownPaymentByIdRes.displayName = 'proto.prisca.v1.down_payment.GetDownPaymentByIdRes';
225
+ }
226
+ /**
227
+ * Generated by JsPbCodeGenerator.
228
+ * @param {Array=} opt_data Optional initial data array, typically from a
229
+ * server response, or constructed directly in Javascript. The array is used
230
+ * in place and becomes part of the constructed object. It is not cloned.
231
+ * If no data is provided, the constructed object will be empty, but still
232
+ * valid.
233
+ * @extends {jspb.Message}
234
+ * @constructor
235
+ */
236
+ proto.prisca.v1.down_payment.GetListDownPaymentReq = function(opt_data) {
237
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
238
+ };
239
+ goog.inherits(proto.prisca.v1.down_payment.GetListDownPaymentReq, jspb.Message);
240
+ if (goog.DEBUG && !COMPILED) {
241
+ /**
242
+ * @public
243
+ * @override
244
+ */
245
+ proto.prisca.v1.down_payment.GetListDownPaymentReq.displayName = 'proto.prisca.v1.down_payment.GetListDownPaymentReq';
246
+ }
247
+ /**
248
+ * Generated by JsPbCodeGenerator.
249
+ * @param {Array=} opt_data Optional initial data array, typically from a
250
+ * server response, or constructed directly in Javascript. The array is used
251
+ * in place and becomes part of the constructed object. It is not cloned.
252
+ * If no data is provided, the constructed object will be empty, but still
253
+ * valid.
254
+ * @extends {jspb.Message}
255
+ * @constructor
256
+ */
257
+ proto.prisca.v1.down_payment.GetListDownPaymentRes = function(opt_data) {
258
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.prisca.v1.down_payment.GetListDownPaymentRes.repeatedFields_, null);
259
+ };
260
+ goog.inherits(proto.prisca.v1.down_payment.GetListDownPaymentRes, jspb.Message);
261
+ if (goog.DEBUG && !COMPILED) {
262
+ /**
263
+ * @public
264
+ * @override
265
+ */
266
+ proto.prisca.v1.down_payment.GetListDownPaymentRes.displayName = 'proto.prisca.v1.down_payment.GetListDownPaymentRes';
267
+ }
268
+ /**
269
+ * Generated by JsPbCodeGenerator.
270
+ * @param {Array=} opt_data Optional initial data array, typically from a
271
+ * server response, or constructed directly in Javascript. The array is used
272
+ * in place and becomes part of the constructed object. It is not cloned.
273
+ * If no data is provided, the constructed object will be empty, but still
274
+ * valid.
275
+ * @extends {jspb.Message}
276
+ * @constructor
277
+ */
278
+ proto.prisca.v1.down_payment.DeleteDownPaymentReq = function(opt_data) {
279
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.prisca.v1.down_payment.DeleteDownPaymentReq.repeatedFields_, null);
280
+ };
281
+ goog.inherits(proto.prisca.v1.down_payment.DeleteDownPaymentReq, jspb.Message);
282
+ if (goog.DEBUG && !COMPILED) {
283
+ /**
284
+ * @public
285
+ * @override
286
+ */
287
+ proto.prisca.v1.down_payment.DeleteDownPaymentReq.displayName = 'proto.prisca.v1.down_payment.DeleteDownPaymentReq';
288
+ }
289
+ /**
290
+ * Generated by JsPbCodeGenerator.
291
+ * @param {Array=} opt_data Optional initial data array, typically from a
292
+ * server response, or constructed directly in Javascript. The array is used
293
+ * in place and becomes part of the constructed object. It is not cloned.
294
+ * If no data is provided, the constructed object will be empty, but still
295
+ * valid.
296
+ * @extends {jspb.Message}
297
+ * @constructor
298
+ */
299
+ proto.prisca.v1.down_payment.DeleteDownPaymentRes = function(opt_data) {
300
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.prisca.v1.down_payment.DeleteDownPaymentRes.repeatedFields_, null);
301
+ };
302
+ goog.inherits(proto.prisca.v1.down_payment.DeleteDownPaymentRes, jspb.Message);
303
+ if (goog.DEBUG && !COMPILED) {
304
+ /**
305
+ * @public
306
+ * @override
307
+ */
308
+ proto.prisca.v1.down_payment.DeleteDownPaymentRes.displayName = 'proto.prisca.v1.down_payment.DeleteDownPaymentRes';
309
+ }
310
+
311
+
312
+
313
+ if (jspb.Message.GENERATE_TO_OBJECT) {
314
+ /**
315
+ * Creates an object representation of this proto.
316
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
317
+ * Optional fields that are not set will be set to undefined.
318
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
319
+ * For the list of reserved names please see:
320
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
321
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
322
+ * JSPB instance for transitional soy proto support:
323
+ * http://goto/soy-param-migration
324
+ * @return {!Object}
325
+ */
326
+ proto.prisca.v1.down_payment.BaseDownPayment.prototype.toObject = function(opt_includeInstance) {
327
+ return proto.prisca.v1.down_payment.BaseDownPayment.toObject(opt_includeInstance, this);
328
+ };
329
+
330
+
331
+ /**
332
+ * Static version of the {@see toObject} method.
333
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
334
+ * the JSPB instance for transitional soy proto support:
335
+ * http://goto/soy-param-migration
336
+ * @param {!proto.prisca.v1.down_payment.BaseDownPayment} msg The msg instance to transform.
337
+ * @return {!Object}
338
+ * @suppress {unusedLocalVariables} f is only used for nested messages
339
+ */
340
+ proto.prisca.v1.down_payment.BaseDownPayment.toObject = function(includeInstance, msg) {
341
+ var f, obj = {
342
+ purchaseOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
343
+ vendorReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
344
+ amount: jspb.Message.getFieldWithDefault(msg, 3, ""),
345
+ paymentDate: jspb.Message.getFieldWithDefault(msg, 4, ""),
346
+ expiredDate: jspb.Message.getFieldWithDefault(msg, 5, ""),
347
+ status: jspb.Message.getFieldWithDefault(msg, 6, ""),
348
+ currency: jspb.Message.getFieldWithDefault(msg, 7, ""),
349
+ paymentReferencesId: jspb.Message.getFieldWithDefault(msg, 8, "")
350
+ };
351
+
352
+ if (includeInstance) {
353
+ obj.$jspbMessageInstance = msg;
354
+ }
355
+ return obj;
356
+ };
357
+ }
358
+
359
+
360
+ /**
361
+ * Deserializes binary data (in protobuf wire format).
362
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
363
+ * @return {!proto.prisca.v1.down_payment.BaseDownPayment}
364
+ */
365
+ proto.prisca.v1.down_payment.BaseDownPayment.deserializeBinary = function(bytes) {
366
+ var reader = new jspb.BinaryReader(bytes);
367
+ var msg = new proto.prisca.v1.down_payment.BaseDownPayment;
368
+ return proto.prisca.v1.down_payment.BaseDownPayment.deserializeBinaryFromReader(msg, reader);
369
+ };
370
+
371
+
372
+ /**
373
+ * Deserializes binary data (in protobuf wire format) from the
374
+ * given reader into the given message object.
375
+ * @param {!proto.prisca.v1.down_payment.BaseDownPayment} msg The message object to deserialize into.
376
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
377
+ * @return {!proto.prisca.v1.down_payment.BaseDownPayment}
378
+ */
379
+ proto.prisca.v1.down_payment.BaseDownPayment.deserializeBinaryFromReader = function(msg, reader) {
380
+ while (reader.nextField()) {
381
+ if (reader.isEndGroup()) {
382
+ break;
383
+ }
384
+ var field = reader.getFieldNumber();
385
+ switch (field) {
386
+ case 1:
387
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
388
+ msg.setPurchaseOrderReferencesId(value);
389
+ break;
390
+ case 2:
391
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
392
+ msg.setVendorReferencesId(value);
393
+ break;
394
+ case 3:
395
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
396
+ msg.setAmount(value);
397
+ break;
398
+ case 4:
399
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
400
+ msg.setPaymentDate(value);
401
+ break;
402
+ case 5:
403
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
404
+ msg.setExpiredDate(value);
405
+ break;
406
+ case 6:
407
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
408
+ msg.setStatus(value);
409
+ break;
410
+ case 7:
411
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
412
+ msg.setCurrency(value);
413
+ break;
414
+ case 8:
415
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
416
+ msg.setPaymentReferencesId(value);
417
+ break;
418
+ default:
419
+ reader.skipField();
420
+ break;
421
+ }
422
+ }
423
+ return msg;
424
+ };
425
+
426
+
427
+ /**
428
+ * Serializes the message to binary data (in protobuf wire format).
429
+ * @return {!Uint8Array}
430
+ */
431
+ proto.prisca.v1.down_payment.BaseDownPayment.prototype.serializeBinary = function() {
432
+ var writer = new jspb.BinaryWriter();
433
+ proto.prisca.v1.down_payment.BaseDownPayment.serializeBinaryToWriter(this, writer);
434
+ return writer.getResultBuffer();
435
+ };
436
+
437
+
438
+ /**
439
+ * Serializes the given message to binary data (in protobuf wire
440
+ * format), writing to the given BinaryWriter.
441
+ * @param {!proto.prisca.v1.down_payment.BaseDownPayment} message
442
+ * @param {!jspb.BinaryWriter} writer
443
+ * @suppress {unusedLocalVariables} f is only used for nested messages
444
+ */
445
+ proto.prisca.v1.down_payment.BaseDownPayment.serializeBinaryToWriter = function(message, writer) {
446
+ var f = undefined;
447
+ f = message.getPurchaseOrderReferencesId();
448
+ if (f.length > 0) {
449
+ writer.writeString(
450
+ 1,
451
+ f
452
+ );
453
+ }
454
+ f = message.getVendorReferencesId();
455
+ if (f.length > 0) {
456
+ writer.writeString(
457
+ 2,
458
+ f
459
+ );
460
+ }
461
+ f = message.getAmount();
462
+ if (f.length > 0) {
463
+ writer.writeString(
464
+ 3,
465
+ f
466
+ );
467
+ }
468
+ f = message.getPaymentDate();
469
+ if (f.length > 0) {
470
+ writer.writeString(
471
+ 4,
472
+ f
473
+ );
474
+ }
475
+ f = message.getExpiredDate();
476
+ if (f.length > 0) {
477
+ writer.writeString(
478
+ 5,
479
+ f
480
+ );
481
+ }
482
+ f = message.getStatus();
483
+ if (f.length > 0) {
484
+ writer.writeString(
485
+ 6,
486
+ f
487
+ );
488
+ }
489
+ f = message.getCurrency();
490
+ if (f.length > 0) {
491
+ writer.writeString(
492
+ 7,
493
+ f
494
+ );
495
+ }
496
+ f = message.getPaymentReferencesId();
497
+ if (f.length > 0) {
498
+ writer.writeString(
499
+ 8,
500
+ f
501
+ );
502
+ }
503
+ };
504
+
505
+
506
+ /**
507
+ * optional string purchase_order_references_id = 1;
508
+ * @return {string}
509
+ */
510
+ proto.prisca.v1.down_payment.BaseDownPayment.prototype.getPurchaseOrderReferencesId = function() {
511
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
512
+ };
513
+
514
+
515
+ /**
516
+ * @param {string} value
517
+ * @return {!proto.prisca.v1.down_payment.BaseDownPayment} returns this
518
+ */
519
+ proto.prisca.v1.down_payment.BaseDownPayment.prototype.setPurchaseOrderReferencesId = function(value) {
520
+ return jspb.Message.setProto3StringField(this, 1, value);
521
+ };
522
+
523
+
524
+ /**
525
+ * optional string vendor_references_id = 2;
526
+ * @return {string}
527
+ */
528
+ proto.prisca.v1.down_payment.BaseDownPayment.prototype.getVendorReferencesId = function() {
529
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
530
+ };
531
+
532
+
533
+ /**
534
+ * @param {string} value
535
+ * @return {!proto.prisca.v1.down_payment.BaseDownPayment} returns this
536
+ */
537
+ proto.prisca.v1.down_payment.BaseDownPayment.prototype.setVendorReferencesId = function(value) {
538
+ return jspb.Message.setProto3StringField(this, 2, value);
539
+ };
540
+
541
+
542
+ /**
543
+ * optional string amount = 3;
544
+ * @return {string}
545
+ */
546
+ proto.prisca.v1.down_payment.BaseDownPayment.prototype.getAmount = function() {
547
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
548
+ };
549
+
550
+
551
+ /**
552
+ * @param {string} value
553
+ * @return {!proto.prisca.v1.down_payment.BaseDownPayment} returns this
554
+ */
555
+ proto.prisca.v1.down_payment.BaseDownPayment.prototype.setAmount = function(value) {
556
+ return jspb.Message.setProto3StringField(this, 3, value);
557
+ };
558
+
559
+
560
+ /**
561
+ * optional string payment_date = 4;
562
+ * @return {string}
563
+ */
564
+ proto.prisca.v1.down_payment.BaseDownPayment.prototype.getPaymentDate = function() {
565
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
566
+ };
567
+
568
+
569
+ /**
570
+ * @param {string} value
571
+ * @return {!proto.prisca.v1.down_payment.BaseDownPayment} returns this
572
+ */
573
+ proto.prisca.v1.down_payment.BaseDownPayment.prototype.setPaymentDate = function(value) {
574
+ return jspb.Message.setProto3StringField(this, 4, value);
575
+ };
576
+
577
+
578
+ /**
579
+ * optional string expired_date = 5;
580
+ * @return {string}
581
+ */
582
+ proto.prisca.v1.down_payment.BaseDownPayment.prototype.getExpiredDate = function() {
583
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
584
+ };
585
+
586
+
587
+ /**
588
+ * @param {string} value
589
+ * @return {!proto.prisca.v1.down_payment.BaseDownPayment} returns this
590
+ */
591
+ proto.prisca.v1.down_payment.BaseDownPayment.prototype.setExpiredDate = function(value) {
592
+ return jspb.Message.setProto3StringField(this, 5, value);
593
+ };
594
+
595
+
596
+ /**
597
+ * optional string status = 6;
598
+ * @return {string}
599
+ */
600
+ proto.prisca.v1.down_payment.BaseDownPayment.prototype.getStatus = function() {
601
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
602
+ };
603
+
604
+
605
+ /**
606
+ * @param {string} value
607
+ * @return {!proto.prisca.v1.down_payment.BaseDownPayment} returns this
608
+ */
609
+ proto.prisca.v1.down_payment.BaseDownPayment.prototype.setStatus = function(value) {
610
+ return jspb.Message.setProto3StringField(this, 6, value);
611
+ };
612
+
613
+
614
+ /**
615
+ * optional string currency = 7;
616
+ * @return {string}
617
+ */
618
+ proto.prisca.v1.down_payment.BaseDownPayment.prototype.getCurrency = function() {
619
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
620
+ };
621
+
622
+
623
+ /**
624
+ * @param {string} value
625
+ * @return {!proto.prisca.v1.down_payment.BaseDownPayment} returns this
626
+ */
627
+ proto.prisca.v1.down_payment.BaseDownPayment.prototype.setCurrency = function(value) {
628
+ return jspb.Message.setProto3StringField(this, 7, value);
629
+ };
630
+
631
+
632
+ /**
633
+ * optional string payment_references_id = 8;
634
+ * @return {string}
635
+ */
636
+ proto.prisca.v1.down_payment.BaseDownPayment.prototype.getPaymentReferencesId = function() {
637
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
638
+ };
639
+
640
+
641
+ /**
642
+ * @param {string} value
643
+ * @return {!proto.prisca.v1.down_payment.BaseDownPayment} returns this
644
+ */
645
+ proto.prisca.v1.down_payment.BaseDownPayment.prototype.setPaymentReferencesId = function(value) {
646
+ return jspb.Message.setProto3StringField(this, 8, value);
647
+ };
648
+
649
+
650
+
651
+
652
+
653
+ if (jspb.Message.GENERATE_TO_OBJECT) {
654
+ /**
655
+ * Creates an object representation of this proto.
656
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
657
+ * Optional fields that are not set will be set to undefined.
658
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
659
+ * For the list of reserved names please see:
660
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
661
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
662
+ * JSPB instance for transitional soy proto support:
663
+ * http://goto/soy-param-migration
664
+ * @return {!Object}
665
+ */
666
+ proto.prisca.v1.down_payment.DownPayment.prototype.toObject = function(opt_includeInstance) {
667
+ return proto.prisca.v1.down_payment.DownPayment.toObject(opt_includeInstance, this);
668
+ };
669
+
670
+
671
+ /**
672
+ * Static version of the {@see toObject} method.
673
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
674
+ * the JSPB instance for transitional soy proto support:
675
+ * http://goto/soy-param-migration
676
+ * @param {!proto.prisca.v1.down_payment.DownPayment} msg The msg instance to transform.
677
+ * @return {!Object}
678
+ * @suppress {unusedLocalVariables} f is only used for nested messages
679
+ */
680
+ proto.prisca.v1.down_payment.DownPayment.toObject = function(includeInstance, msg) {
681
+ var f, obj = {
682
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
683
+ purchaseOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
684
+ vendorReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
685
+ paymentReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
686
+ downPaymentNumber: jspb.Message.getFieldWithDefault(msg, 5, ""),
687
+ referencesId: jspb.Message.getFieldWithDefault(msg, 6, ""),
688
+ status: jspb.Message.getFieldWithDefault(msg, 7, ""),
689
+ amount: jspb.Message.getFieldWithDefault(msg, 8, ""),
690
+ paymentDate: jspb.Message.getFieldWithDefault(msg, 9, ""),
691
+ expiredDate: jspb.Message.getFieldWithDefault(msg, 10, ""),
692
+ currency: jspb.Message.getFieldWithDefault(msg, 11, ""),
693
+ createdAt: jspb.Message.getFieldWithDefault(msg, 12, ""),
694
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 13, ""),
695
+ createdBy: jspb.Message.getFieldWithDefault(msg, 14, ""),
696
+ updatedBy: jspb.Message.getFieldWithDefault(msg, 15, ""),
697
+ createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
698
+ updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
699
+ purchaseOrder: (f = msg.getPurchaseOrder()) && prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder.toObject(includeInstance, f)
700
+ };
701
+
702
+ if (includeInstance) {
703
+ obj.$jspbMessageInstance = msg;
704
+ }
705
+ return obj;
706
+ };
707
+ }
708
+
709
+
710
+ /**
711
+ * Deserializes binary data (in protobuf wire format).
712
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
713
+ * @return {!proto.prisca.v1.down_payment.DownPayment}
714
+ */
715
+ proto.prisca.v1.down_payment.DownPayment.deserializeBinary = function(bytes) {
716
+ var reader = new jspb.BinaryReader(bytes);
717
+ var msg = new proto.prisca.v1.down_payment.DownPayment;
718
+ return proto.prisca.v1.down_payment.DownPayment.deserializeBinaryFromReader(msg, reader);
719
+ };
720
+
721
+
722
+ /**
723
+ * Deserializes binary data (in protobuf wire format) from the
724
+ * given reader into the given message object.
725
+ * @param {!proto.prisca.v1.down_payment.DownPayment} msg The message object to deserialize into.
726
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
727
+ * @return {!proto.prisca.v1.down_payment.DownPayment}
728
+ */
729
+ proto.prisca.v1.down_payment.DownPayment.deserializeBinaryFromReader = function(msg, reader) {
730
+ while (reader.nextField()) {
731
+ if (reader.isEndGroup()) {
732
+ break;
733
+ }
734
+ var field = reader.getFieldNumber();
735
+ switch (field) {
736
+ case 1:
737
+ var value = /** @type {number} */ (reader.readInt64());
738
+ msg.setId(value);
739
+ break;
740
+ case 2:
741
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
742
+ msg.setPurchaseOrderReferencesId(value);
743
+ break;
744
+ case 3:
745
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
746
+ msg.setVendorReferencesId(value);
747
+ break;
748
+ case 4:
749
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
750
+ msg.setPaymentReferencesId(value);
751
+ break;
752
+ case 5:
753
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
754
+ msg.setDownPaymentNumber(value);
755
+ break;
756
+ case 6:
757
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
758
+ msg.setReferencesId(value);
759
+ break;
760
+ case 7:
761
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
762
+ msg.setStatus(value);
763
+ break;
764
+ case 8:
765
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
766
+ msg.setAmount(value);
767
+ break;
768
+ case 9:
769
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
770
+ msg.setPaymentDate(value);
771
+ break;
772
+ case 10:
773
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
774
+ msg.setExpiredDate(value);
775
+ break;
776
+ case 11:
777
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
778
+ msg.setCurrency(value);
779
+ break;
780
+ case 12:
781
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
782
+ msg.setCreatedAt(value);
783
+ break;
784
+ case 13:
785
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
786
+ msg.setUpdatedAt(value);
787
+ break;
788
+ case 14:
789
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
790
+ msg.setCreatedBy(value);
791
+ break;
792
+ case 15:
793
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
794
+ msg.setUpdatedBy(value);
795
+ break;
796
+ case 16:
797
+ var value = new prisca_v1_core_employee_employee_pb.Employee;
798
+ reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
799
+ msg.setCreatedByEmployee(value);
800
+ break;
801
+ case 17:
802
+ var value = new prisca_v1_core_employee_employee_pb.Employee;
803
+ reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
804
+ msg.setUpdatedByEmployee(value);
805
+ break;
806
+ case 18:
807
+ var value = new prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder;
808
+ reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder.deserializeBinaryFromReader);
809
+ msg.setPurchaseOrder(value);
810
+ break;
811
+ default:
812
+ reader.skipField();
813
+ break;
814
+ }
815
+ }
816
+ return msg;
817
+ };
818
+
819
+
820
+ /**
821
+ * Serializes the message to binary data (in protobuf wire format).
822
+ * @return {!Uint8Array}
823
+ */
824
+ proto.prisca.v1.down_payment.DownPayment.prototype.serializeBinary = function() {
825
+ var writer = new jspb.BinaryWriter();
826
+ proto.prisca.v1.down_payment.DownPayment.serializeBinaryToWriter(this, writer);
827
+ return writer.getResultBuffer();
828
+ };
829
+
830
+
831
+ /**
832
+ * Serializes the given message to binary data (in protobuf wire
833
+ * format), writing to the given BinaryWriter.
834
+ * @param {!proto.prisca.v1.down_payment.DownPayment} message
835
+ * @param {!jspb.BinaryWriter} writer
836
+ * @suppress {unusedLocalVariables} f is only used for nested messages
837
+ */
838
+ proto.prisca.v1.down_payment.DownPayment.serializeBinaryToWriter = function(message, writer) {
839
+ var f = undefined;
840
+ f = message.getId();
841
+ if (f !== 0) {
842
+ writer.writeInt64(
843
+ 1,
844
+ f
845
+ );
846
+ }
847
+ f = message.getPurchaseOrderReferencesId();
848
+ if (f.length > 0) {
849
+ writer.writeString(
850
+ 2,
851
+ f
852
+ );
853
+ }
854
+ f = message.getVendorReferencesId();
855
+ if (f.length > 0) {
856
+ writer.writeString(
857
+ 3,
858
+ f
859
+ );
860
+ }
861
+ f = message.getPaymentReferencesId();
862
+ if (f.length > 0) {
863
+ writer.writeString(
864
+ 4,
865
+ f
866
+ );
867
+ }
868
+ f = message.getDownPaymentNumber();
869
+ if (f.length > 0) {
870
+ writer.writeString(
871
+ 5,
872
+ f
873
+ );
874
+ }
875
+ f = message.getReferencesId();
876
+ if (f.length > 0) {
877
+ writer.writeString(
878
+ 6,
879
+ f
880
+ );
881
+ }
882
+ f = message.getStatus();
883
+ if (f.length > 0) {
884
+ writer.writeString(
885
+ 7,
886
+ f
887
+ );
888
+ }
889
+ f = message.getAmount();
890
+ if (f.length > 0) {
891
+ writer.writeString(
892
+ 8,
893
+ f
894
+ );
895
+ }
896
+ f = message.getPaymentDate();
897
+ if (f.length > 0) {
898
+ writer.writeString(
899
+ 9,
900
+ f
901
+ );
902
+ }
903
+ f = message.getExpiredDate();
904
+ if (f.length > 0) {
905
+ writer.writeString(
906
+ 10,
907
+ f
908
+ );
909
+ }
910
+ f = message.getCurrency();
911
+ if (f.length > 0) {
912
+ writer.writeString(
913
+ 11,
914
+ f
915
+ );
916
+ }
917
+ f = message.getCreatedAt();
918
+ if (f.length > 0) {
919
+ writer.writeString(
920
+ 12,
921
+ f
922
+ );
923
+ }
924
+ f = message.getUpdatedAt();
925
+ if (f.length > 0) {
926
+ writer.writeString(
927
+ 13,
928
+ f
929
+ );
930
+ }
931
+ f = message.getCreatedBy();
932
+ if (f.length > 0) {
933
+ writer.writeString(
934
+ 14,
935
+ f
936
+ );
937
+ }
938
+ f = message.getUpdatedBy();
939
+ if (f.length > 0) {
940
+ writer.writeString(
941
+ 15,
942
+ f
943
+ );
944
+ }
945
+ f = message.getCreatedByEmployee();
946
+ if (f != null) {
947
+ writer.writeMessage(
948
+ 16,
949
+ f,
950
+ prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
951
+ );
952
+ }
953
+ f = message.getUpdatedByEmployee();
954
+ if (f != null) {
955
+ writer.writeMessage(
956
+ 17,
957
+ f,
958
+ prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
959
+ );
960
+ }
961
+ f = message.getPurchaseOrder();
962
+ if (f != null) {
963
+ writer.writeMessage(
964
+ 18,
965
+ f,
966
+ prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder.serializeBinaryToWriter
967
+ );
968
+ }
969
+ };
970
+
971
+
972
+ /**
973
+ * optional int64 id = 1;
974
+ * @return {number}
975
+ */
976
+ proto.prisca.v1.down_payment.DownPayment.prototype.getId = function() {
977
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
978
+ };
979
+
980
+
981
+ /**
982
+ * @param {number} value
983
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
984
+ */
985
+ proto.prisca.v1.down_payment.DownPayment.prototype.setId = function(value) {
986
+ return jspb.Message.setProto3IntField(this, 1, value);
987
+ };
988
+
989
+
990
+ /**
991
+ * optional string purchase_order_references_id = 2;
992
+ * @return {string}
993
+ */
994
+ proto.prisca.v1.down_payment.DownPayment.prototype.getPurchaseOrderReferencesId = function() {
995
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
996
+ };
997
+
998
+
999
+ /**
1000
+ * @param {string} value
1001
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1002
+ */
1003
+ proto.prisca.v1.down_payment.DownPayment.prototype.setPurchaseOrderReferencesId = function(value) {
1004
+ return jspb.Message.setProto3StringField(this, 2, value);
1005
+ };
1006
+
1007
+
1008
+ /**
1009
+ * optional string vendor_references_id = 3;
1010
+ * @return {string}
1011
+ */
1012
+ proto.prisca.v1.down_payment.DownPayment.prototype.getVendorReferencesId = function() {
1013
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1014
+ };
1015
+
1016
+
1017
+ /**
1018
+ * @param {string} value
1019
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1020
+ */
1021
+ proto.prisca.v1.down_payment.DownPayment.prototype.setVendorReferencesId = function(value) {
1022
+ return jspb.Message.setProto3StringField(this, 3, value);
1023
+ };
1024
+
1025
+
1026
+ /**
1027
+ * optional string payment_references_id = 4;
1028
+ * @return {string}
1029
+ */
1030
+ proto.prisca.v1.down_payment.DownPayment.prototype.getPaymentReferencesId = function() {
1031
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1032
+ };
1033
+
1034
+
1035
+ /**
1036
+ * @param {string} value
1037
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1038
+ */
1039
+ proto.prisca.v1.down_payment.DownPayment.prototype.setPaymentReferencesId = function(value) {
1040
+ return jspb.Message.setProto3StringField(this, 4, value);
1041
+ };
1042
+
1043
+
1044
+ /**
1045
+ * optional string down_payment_number = 5;
1046
+ * @return {string}
1047
+ */
1048
+ proto.prisca.v1.down_payment.DownPayment.prototype.getDownPaymentNumber = function() {
1049
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1050
+ };
1051
+
1052
+
1053
+ /**
1054
+ * @param {string} value
1055
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1056
+ */
1057
+ proto.prisca.v1.down_payment.DownPayment.prototype.setDownPaymentNumber = function(value) {
1058
+ return jspb.Message.setProto3StringField(this, 5, value);
1059
+ };
1060
+
1061
+
1062
+ /**
1063
+ * optional string references_id = 6;
1064
+ * @return {string}
1065
+ */
1066
+ proto.prisca.v1.down_payment.DownPayment.prototype.getReferencesId = function() {
1067
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1068
+ };
1069
+
1070
+
1071
+ /**
1072
+ * @param {string} value
1073
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1074
+ */
1075
+ proto.prisca.v1.down_payment.DownPayment.prototype.setReferencesId = function(value) {
1076
+ return jspb.Message.setProto3StringField(this, 6, value);
1077
+ };
1078
+
1079
+
1080
+ /**
1081
+ * optional string status = 7;
1082
+ * @return {string}
1083
+ */
1084
+ proto.prisca.v1.down_payment.DownPayment.prototype.getStatus = function() {
1085
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1086
+ };
1087
+
1088
+
1089
+ /**
1090
+ * @param {string} value
1091
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1092
+ */
1093
+ proto.prisca.v1.down_payment.DownPayment.prototype.setStatus = function(value) {
1094
+ return jspb.Message.setProto3StringField(this, 7, value);
1095
+ };
1096
+
1097
+
1098
+ /**
1099
+ * optional string amount = 8;
1100
+ * @return {string}
1101
+ */
1102
+ proto.prisca.v1.down_payment.DownPayment.prototype.getAmount = function() {
1103
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1104
+ };
1105
+
1106
+
1107
+ /**
1108
+ * @param {string} value
1109
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1110
+ */
1111
+ proto.prisca.v1.down_payment.DownPayment.prototype.setAmount = function(value) {
1112
+ return jspb.Message.setProto3StringField(this, 8, value);
1113
+ };
1114
+
1115
+
1116
+ /**
1117
+ * optional string payment_date = 9;
1118
+ * @return {string}
1119
+ */
1120
+ proto.prisca.v1.down_payment.DownPayment.prototype.getPaymentDate = function() {
1121
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1122
+ };
1123
+
1124
+
1125
+ /**
1126
+ * @param {string} value
1127
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1128
+ */
1129
+ proto.prisca.v1.down_payment.DownPayment.prototype.setPaymentDate = function(value) {
1130
+ return jspb.Message.setProto3StringField(this, 9, value);
1131
+ };
1132
+
1133
+
1134
+ /**
1135
+ * optional string expired_date = 10;
1136
+ * @return {string}
1137
+ */
1138
+ proto.prisca.v1.down_payment.DownPayment.prototype.getExpiredDate = function() {
1139
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1140
+ };
1141
+
1142
+
1143
+ /**
1144
+ * @param {string} value
1145
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1146
+ */
1147
+ proto.prisca.v1.down_payment.DownPayment.prototype.setExpiredDate = function(value) {
1148
+ return jspb.Message.setProto3StringField(this, 10, value);
1149
+ };
1150
+
1151
+
1152
+ /**
1153
+ * optional string currency = 11;
1154
+ * @return {string}
1155
+ */
1156
+ proto.prisca.v1.down_payment.DownPayment.prototype.getCurrency = function() {
1157
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1158
+ };
1159
+
1160
+
1161
+ /**
1162
+ * @param {string} value
1163
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1164
+ */
1165
+ proto.prisca.v1.down_payment.DownPayment.prototype.setCurrency = function(value) {
1166
+ return jspb.Message.setProto3StringField(this, 11, value);
1167
+ };
1168
+
1169
+
1170
+ /**
1171
+ * optional string created_at = 12;
1172
+ * @return {string}
1173
+ */
1174
+ proto.prisca.v1.down_payment.DownPayment.prototype.getCreatedAt = function() {
1175
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
1176
+ };
1177
+
1178
+
1179
+ /**
1180
+ * @param {string} value
1181
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1182
+ */
1183
+ proto.prisca.v1.down_payment.DownPayment.prototype.setCreatedAt = function(value) {
1184
+ return jspb.Message.setProto3StringField(this, 12, value);
1185
+ };
1186
+
1187
+
1188
+ /**
1189
+ * optional string updated_at = 13;
1190
+ * @return {string}
1191
+ */
1192
+ proto.prisca.v1.down_payment.DownPayment.prototype.getUpdatedAt = function() {
1193
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
1194
+ };
1195
+
1196
+
1197
+ /**
1198
+ * @param {string} value
1199
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1200
+ */
1201
+ proto.prisca.v1.down_payment.DownPayment.prototype.setUpdatedAt = function(value) {
1202
+ return jspb.Message.setProto3StringField(this, 13, value);
1203
+ };
1204
+
1205
+
1206
+ /**
1207
+ * optional string created_by = 14;
1208
+ * @return {string}
1209
+ */
1210
+ proto.prisca.v1.down_payment.DownPayment.prototype.getCreatedBy = function() {
1211
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
1212
+ };
1213
+
1214
+
1215
+ /**
1216
+ * @param {string} value
1217
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1218
+ */
1219
+ proto.prisca.v1.down_payment.DownPayment.prototype.setCreatedBy = function(value) {
1220
+ return jspb.Message.setProto3StringField(this, 14, value);
1221
+ };
1222
+
1223
+
1224
+ /**
1225
+ * optional string updated_by = 15;
1226
+ * @return {string}
1227
+ */
1228
+ proto.prisca.v1.down_payment.DownPayment.prototype.getUpdatedBy = function() {
1229
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
1230
+ };
1231
+
1232
+
1233
+ /**
1234
+ * @param {string} value
1235
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1236
+ */
1237
+ proto.prisca.v1.down_payment.DownPayment.prototype.setUpdatedBy = function(value) {
1238
+ return jspb.Message.setProto3StringField(this, 15, value);
1239
+ };
1240
+
1241
+
1242
+ /**
1243
+ * optional Employee created_by_employee = 16;
1244
+ * @return {?proto.Employee}
1245
+ */
1246
+ proto.prisca.v1.down_payment.DownPayment.prototype.getCreatedByEmployee = function() {
1247
+ return /** @type{?proto.Employee} */ (
1248
+ jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 16));
1249
+ };
1250
+
1251
+
1252
+ /**
1253
+ * @param {?proto.Employee|undefined} value
1254
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1255
+ */
1256
+ proto.prisca.v1.down_payment.DownPayment.prototype.setCreatedByEmployee = function(value) {
1257
+ return jspb.Message.setWrapperField(this, 16, value);
1258
+ };
1259
+
1260
+
1261
+ /**
1262
+ * Clears the message field making it undefined.
1263
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1264
+ */
1265
+ proto.prisca.v1.down_payment.DownPayment.prototype.clearCreatedByEmployee = function() {
1266
+ return this.setCreatedByEmployee(undefined);
1267
+ };
1268
+
1269
+
1270
+ /**
1271
+ * Returns whether this field is set.
1272
+ * @return {boolean}
1273
+ */
1274
+ proto.prisca.v1.down_payment.DownPayment.prototype.hasCreatedByEmployee = function() {
1275
+ return jspb.Message.getField(this, 16) != null;
1276
+ };
1277
+
1278
+
1279
+ /**
1280
+ * optional Employee updated_by_employee = 17;
1281
+ * @return {?proto.Employee}
1282
+ */
1283
+ proto.prisca.v1.down_payment.DownPayment.prototype.getUpdatedByEmployee = function() {
1284
+ return /** @type{?proto.Employee} */ (
1285
+ jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 17));
1286
+ };
1287
+
1288
+
1289
+ /**
1290
+ * @param {?proto.Employee|undefined} value
1291
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1292
+ */
1293
+ proto.prisca.v1.down_payment.DownPayment.prototype.setUpdatedByEmployee = function(value) {
1294
+ return jspb.Message.setWrapperField(this, 17, value);
1295
+ };
1296
+
1297
+
1298
+ /**
1299
+ * Clears the message field making it undefined.
1300
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1301
+ */
1302
+ proto.prisca.v1.down_payment.DownPayment.prototype.clearUpdatedByEmployee = function() {
1303
+ return this.setUpdatedByEmployee(undefined);
1304
+ };
1305
+
1306
+
1307
+ /**
1308
+ * Returns whether this field is set.
1309
+ * @return {boolean}
1310
+ */
1311
+ proto.prisca.v1.down_payment.DownPayment.prototype.hasUpdatedByEmployee = function() {
1312
+ return jspb.Message.getField(this, 17) != null;
1313
+ };
1314
+
1315
+
1316
+ /**
1317
+ * optional PurchaseOrder purchase_order = 18;
1318
+ * @return {?proto.PurchaseOrder}
1319
+ */
1320
+ proto.prisca.v1.down_payment.DownPayment.prototype.getPurchaseOrder = function() {
1321
+ return /** @type{?proto.PurchaseOrder} */ (
1322
+ jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder, 18));
1323
+ };
1324
+
1325
+
1326
+ /**
1327
+ * @param {?proto.PurchaseOrder|undefined} value
1328
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1329
+ */
1330
+ proto.prisca.v1.down_payment.DownPayment.prototype.setPurchaseOrder = function(value) {
1331
+ return jspb.Message.setWrapperField(this, 18, value);
1332
+ };
1333
+
1334
+
1335
+ /**
1336
+ * Clears the message field making it undefined.
1337
+ * @return {!proto.prisca.v1.down_payment.DownPayment} returns this
1338
+ */
1339
+ proto.prisca.v1.down_payment.DownPayment.prototype.clearPurchaseOrder = function() {
1340
+ return this.setPurchaseOrder(undefined);
1341
+ };
1342
+
1343
+
1344
+ /**
1345
+ * Returns whether this field is set.
1346
+ * @return {boolean}
1347
+ */
1348
+ proto.prisca.v1.down_payment.DownPayment.prototype.hasPurchaseOrder = function() {
1349
+ return jspb.Message.getField(this, 18) != null;
1350
+ };
1351
+
1352
+
1353
+
1354
+
1355
+
1356
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1357
+ /**
1358
+ * Creates an object representation of this proto.
1359
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1360
+ * Optional fields that are not set will be set to undefined.
1361
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1362
+ * For the list of reserved names please see:
1363
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1364
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1365
+ * JSPB instance for transitional soy proto support:
1366
+ * http://goto/soy-param-migration
1367
+ * @return {!Object}
1368
+ */
1369
+ proto.prisca.v1.down_payment.CreateDownPaymentReq.prototype.toObject = function(opt_includeInstance) {
1370
+ return proto.prisca.v1.down_payment.CreateDownPaymentReq.toObject(opt_includeInstance, this);
1371
+ };
1372
+
1373
+
1374
+ /**
1375
+ * Static version of the {@see toObject} method.
1376
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1377
+ * the JSPB instance for transitional soy proto support:
1378
+ * http://goto/soy-param-migration
1379
+ * @param {!proto.prisca.v1.down_payment.CreateDownPaymentReq} msg The msg instance to transform.
1380
+ * @return {!Object}
1381
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1382
+ */
1383
+ proto.prisca.v1.down_payment.CreateDownPaymentReq.toObject = function(includeInstance, msg) {
1384
+ var f, obj = {
1385
+ baseDownPayment: (f = msg.getBaseDownPayment()) && proto.prisca.v1.down_payment.BaseDownPayment.toObject(includeInstance, f)
1386
+ };
1387
+
1388
+ if (includeInstance) {
1389
+ obj.$jspbMessageInstance = msg;
1390
+ }
1391
+ return obj;
1392
+ };
1393
+ }
1394
+
1395
+
1396
+ /**
1397
+ * Deserializes binary data (in protobuf wire format).
1398
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1399
+ * @return {!proto.prisca.v1.down_payment.CreateDownPaymentReq}
1400
+ */
1401
+ proto.prisca.v1.down_payment.CreateDownPaymentReq.deserializeBinary = function(bytes) {
1402
+ var reader = new jspb.BinaryReader(bytes);
1403
+ var msg = new proto.prisca.v1.down_payment.CreateDownPaymentReq;
1404
+ return proto.prisca.v1.down_payment.CreateDownPaymentReq.deserializeBinaryFromReader(msg, reader);
1405
+ };
1406
+
1407
+
1408
+ /**
1409
+ * Deserializes binary data (in protobuf wire format) from the
1410
+ * given reader into the given message object.
1411
+ * @param {!proto.prisca.v1.down_payment.CreateDownPaymentReq} msg The message object to deserialize into.
1412
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1413
+ * @return {!proto.prisca.v1.down_payment.CreateDownPaymentReq}
1414
+ */
1415
+ proto.prisca.v1.down_payment.CreateDownPaymentReq.deserializeBinaryFromReader = function(msg, reader) {
1416
+ while (reader.nextField()) {
1417
+ if (reader.isEndGroup()) {
1418
+ break;
1419
+ }
1420
+ var field = reader.getFieldNumber();
1421
+ switch (field) {
1422
+ case 1:
1423
+ var value = new proto.prisca.v1.down_payment.BaseDownPayment;
1424
+ reader.readMessage(value,proto.prisca.v1.down_payment.BaseDownPayment.deserializeBinaryFromReader);
1425
+ msg.setBaseDownPayment(value);
1426
+ break;
1427
+ default:
1428
+ reader.skipField();
1429
+ break;
1430
+ }
1431
+ }
1432
+ return msg;
1433
+ };
1434
+
1435
+
1436
+ /**
1437
+ * Serializes the message to binary data (in protobuf wire format).
1438
+ * @return {!Uint8Array}
1439
+ */
1440
+ proto.prisca.v1.down_payment.CreateDownPaymentReq.prototype.serializeBinary = function() {
1441
+ var writer = new jspb.BinaryWriter();
1442
+ proto.prisca.v1.down_payment.CreateDownPaymentReq.serializeBinaryToWriter(this, writer);
1443
+ return writer.getResultBuffer();
1444
+ };
1445
+
1446
+
1447
+ /**
1448
+ * Serializes the given message to binary data (in protobuf wire
1449
+ * format), writing to the given BinaryWriter.
1450
+ * @param {!proto.prisca.v1.down_payment.CreateDownPaymentReq} message
1451
+ * @param {!jspb.BinaryWriter} writer
1452
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1453
+ */
1454
+ proto.prisca.v1.down_payment.CreateDownPaymentReq.serializeBinaryToWriter = function(message, writer) {
1455
+ var f = undefined;
1456
+ f = message.getBaseDownPayment();
1457
+ if (f != null) {
1458
+ writer.writeMessage(
1459
+ 1,
1460
+ f,
1461
+ proto.prisca.v1.down_payment.BaseDownPayment.serializeBinaryToWriter
1462
+ );
1463
+ }
1464
+ };
1465
+
1466
+
1467
+ /**
1468
+ * optional BaseDownPayment base_down_payment = 1;
1469
+ * @return {?proto.prisca.v1.down_payment.BaseDownPayment}
1470
+ */
1471
+ proto.prisca.v1.down_payment.CreateDownPaymentReq.prototype.getBaseDownPayment = function() {
1472
+ return /** @type{?proto.prisca.v1.down_payment.BaseDownPayment} */ (
1473
+ jspb.Message.getWrapperField(this, proto.prisca.v1.down_payment.BaseDownPayment, 1));
1474
+ };
1475
+
1476
+
1477
+ /**
1478
+ * @param {?proto.prisca.v1.down_payment.BaseDownPayment|undefined} value
1479
+ * @return {!proto.prisca.v1.down_payment.CreateDownPaymentReq} returns this
1480
+ */
1481
+ proto.prisca.v1.down_payment.CreateDownPaymentReq.prototype.setBaseDownPayment = function(value) {
1482
+ return jspb.Message.setWrapperField(this, 1, value);
1483
+ };
1484
+
1485
+
1486
+ /**
1487
+ * Clears the message field making it undefined.
1488
+ * @return {!proto.prisca.v1.down_payment.CreateDownPaymentReq} returns this
1489
+ */
1490
+ proto.prisca.v1.down_payment.CreateDownPaymentReq.prototype.clearBaseDownPayment = function() {
1491
+ return this.setBaseDownPayment(undefined);
1492
+ };
1493
+
1494
+
1495
+ /**
1496
+ * Returns whether this field is set.
1497
+ * @return {boolean}
1498
+ */
1499
+ proto.prisca.v1.down_payment.CreateDownPaymentReq.prototype.hasBaseDownPayment = function() {
1500
+ return jspb.Message.getField(this, 1) != null;
1501
+ };
1502
+
1503
+
1504
+
1505
+
1506
+
1507
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1508
+ /**
1509
+ * Creates an object representation of this proto.
1510
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1511
+ * Optional fields that are not set will be set to undefined.
1512
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1513
+ * For the list of reserved names please see:
1514
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1515
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1516
+ * JSPB instance for transitional soy proto support:
1517
+ * http://goto/soy-param-migration
1518
+ * @return {!Object}
1519
+ */
1520
+ proto.prisca.v1.down_payment.CreateDownPaymentRes.prototype.toObject = function(opt_includeInstance) {
1521
+ return proto.prisca.v1.down_payment.CreateDownPaymentRes.toObject(opt_includeInstance, this);
1522
+ };
1523
+
1524
+
1525
+ /**
1526
+ * Static version of the {@see toObject} method.
1527
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1528
+ * the JSPB instance for transitional soy proto support:
1529
+ * http://goto/soy-param-migration
1530
+ * @param {!proto.prisca.v1.down_payment.CreateDownPaymentRes} msg The msg instance to transform.
1531
+ * @return {!Object}
1532
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1533
+ */
1534
+ proto.prisca.v1.down_payment.CreateDownPaymentRes.toObject = function(includeInstance, msg) {
1535
+ var f, obj = {
1536
+ downPayment: (f = msg.getDownPayment()) && proto.prisca.v1.down_payment.DownPayment.toObject(includeInstance, f),
1537
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1538
+ };
1539
+
1540
+ if (includeInstance) {
1541
+ obj.$jspbMessageInstance = msg;
1542
+ }
1543
+ return obj;
1544
+ };
1545
+ }
1546
+
1547
+
1548
+ /**
1549
+ * Deserializes binary data (in protobuf wire format).
1550
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1551
+ * @return {!proto.prisca.v1.down_payment.CreateDownPaymentRes}
1552
+ */
1553
+ proto.prisca.v1.down_payment.CreateDownPaymentRes.deserializeBinary = function(bytes) {
1554
+ var reader = new jspb.BinaryReader(bytes);
1555
+ var msg = new proto.prisca.v1.down_payment.CreateDownPaymentRes;
1556
+ return proto.prisca.v1.down_payment.CreateDownPaymentRes.deserializeBinaryFromReader(msg, reader);
1557
+ };
1558
+
1559
+
1560
+ /**
1561
+ * Deserializes binary data (in protobuf wire format) from the
1562
+ * given reader into the given message object.
1563
+ * @param {!proto.prisca.v1.down_payment.CreateDownPaymentRes} msg The message object to deserialize into.
1564
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1565
+ * @return {!proto.prisca.v1.down_payment.CreateDownPaymentRes}
1566
+ */
1567
+ proto.prisca.v1.down_payment.CreateDownPaymentRes.deserializeBinaryFromReader = function(msg, reader) {
1568
+ while (reader.nextField()) {
1569
+ if (reader.isEndGroup()) {
1570
+ break;
1571
+ }
1572
+ var field = reader.getFieldNumber();
1573
+ switch (field) {
1574
+ case 1:
1575
+ var value = new proto.prisca.v1.down_payment.DownPayment;
1576
+ reader.readMessage(value,proto.prisca.v1.down_payment.DownPayment.deserializeBinaryFromReader);
1577
+ msg.setDownPayment(value);
1578
+ break;
1579
+ case 2:
1580
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1581
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1582
+ msg.setMeta(value);
1583
+ break;
1584
+ default:
1585
+ reader.skipField();
1586
+ break;
1587
+ }
1588
+ }
1589
+ return msg;
1590
+ };
1591
+
1592
+
1593
+ /**
1594
+ * Serializes the message to binary data (in protobuf wire format).
1595
+ * @return {!Uint8Array}
1596
+ */
1597
+ proto.prisca.v1.down_payment.CreateDownPaymentRes.prototype.serializeBinary = function() {
1598
+ var writer = new jspb.BinaryWriter();
1599
+ proto.prisca.v1.down_payment.CreateDownPaymentRes.serializeBinaryToWriter(this, writer);
1600
+ return writer.getResultBuffer();
1601
+ };
1602
+
1603
+
1604
+ /**
1605
+ * Serializes the given message to binary data (in protobuf wire
1606
+ * format), writing to the given BinaryWriter.
1607
+ * @param {!proto.prisca.v1.down_payment.CreateDownPaymentRes} message
1608
+ * @param {!jspb.BinaryWriter} writer
1609
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1610
+ */
1611
+ proto.prisca.v1.down_payment.CreateDownPaymentRes.serializeBinaryToWriter = function(message, writer) {
1612
+ var f = undefined;
1613
+ f = message.getDownPayment();
1614
+ if (f != null) {
1615
+ writer.writeMessage(
1616
+ 1,
1617
+ f,
1618
+ proto.prisca.v1.down_payment.DownPayment.serializeBinaryToWriter
1619
+ );
1620
+ }
1621
+ f = message.getMeta();
1622
+ if (f != null) {
1623
+ writer.writeMessage(
1624
+ 2,
1625
+ f,
1626
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1627
+ );
1628
+ }
1629
+ };
1630
+
1631
+
1632
+ /**
1633
+ * optional DownPayment down_payment = 1;
1634
+ * @return {?proto.prisca.v1.down_payment.DownPayment}
1635
+ */
1636
+ proto.prisca.v1.down_payment.CreateDownPaymentRes.prototype.getDownPayment = function() {
1637
+ return /** @type{?proto.prisca.v1.down_payment.DownPayment} */ (
1638
+ jspb.Message.getWrapperField(this, proto.prisca.v1.down_payment.DownPayment, 1));
1639
+ };
1640
+
1641
+
1642
+ /**
1643
+ * @param {?proto.prisca.v1.down_payment.DownPayment|undefined} value
1644
+ * @return {!proto.prisca.v1.down_payment.CreateDownPaymentRes} returns this
1645
+ */
1646
+ proto.prisca.v1.down_payment.CreateDownPaymentRes.prototype.setDownPayment = function(value) {
1647
+ return jspb.Message.setWrapperField(this, 1, value);
1648
+ };
1649
+
1650
+
1651
+ /**
1652
+ * Clears the message field making it undefined.
1653
+ * @return {!proto.prisca.v1.down_payment.CreateDownPaymentRes} returns this
1654
+ */
1655
+ proto.prisca.v1.down_payment.CreateDownPaymentRes.prototype.clearDownPayment = function() {
1656
+ return this.setDownPayment(undefined);
1657
+ };
1658
+
1659
+
1660
+ /**
1661
+ * Returns whether this field is set.
1662
+ * @return {boolean}
1663
+ */
1664
+ proto.prisca.v1.down_payment.CreateDownPaymentRes.prototype.hasDownPayment = function() {
1665
+ return jspb.Message.getField(this, 1) != null;
1666
+ };
1667
+
1668
+
1669
+ /**
1670
+ * optional prisca.v1.global.meta.Meta meta = 2;
1671
+ * @return {?proto.prisca.v1.global.meta.Meta}
1672
+ */
1673
+ proto.prisca.v1.down_payment.CreateDownPaymentRes.prototype.getMeta = function() {
1674
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1675
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1676
+ };
1677
+
1678
+
1679
+ /**
1680
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1681
+ * @return {!proto.prisca.v1.down_payment.CreateDownPaymentRes} returns this
1682
+ */
1683
+ proto.prisca.v1.down_payment.CreateDownPaymentRes.prototype.setMeta = function(value) {
1684
+ return jspb.Message.setWrapperField(this, 2, value);
1685
+ };
1686
+
1687
+
1688
+ /**
1689
+ * Clears the message field making it undefined.
1690
+ * @return {!proto.prisca.v1.down_payment.CreateDownPaymentRes} returns this
1691
+ */
1692
+ proto.prisca.v1.down_payment.CreateDownPaymentRes.prototype.clearMeta = function() {
1693
+ return this.setMeta(undefined);
1694
+ };
1695
+
1696
+
1697
+ /**
1698
+ * Returns whether this field is set.
1699
+ * @return {boolean}
1700
+ */
1701
+ proto.prisca.v1.down_payment.CreateDownPaymentRes.prototype.hasMeta = function() {
1702
+ return jspb.Message.getField(this, 2) != null;
1703
+ };
1704
+
1705
+
1706
+
1707
+
1708
+
1709
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1710
+ /**
1711
+ * Creates an object representation of this proto.
1712
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1713
+ * Optional fields that are not set will be set to undefined.
1714
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1715
+ * For the list of reserved names please see:
1716
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1717
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1718
+ * JSPB instance for transitional soy proto support:
1719
+ * http://goto/soy-param-migration
1720
+ * @return {!Object}
1721
+ */
1722
+ proto.prisca.v1.down_payment.UpdateDownPaymentReq.prototype.toObject = function(opt_includeInstance) {
1723
+ return proto.prisca.v1.down_payment.UpdateDownPaymentReq.toObject(opt_includeInstance, this);
1724
+ };
1725
+
1726
+
1727
+ /**
1728
+ * Static version of the {@see toObject} method.
1729
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1730
+ * the JSPB instance for transitional soy proto support:
1731
+ * http://goto/soy-param-migration
1732
+ * @param {!proto.prisca.v1.down_payment.UpdateDownPaymentReq} msg The msg instance to transform.
1733
+ * @return {!Object}
1734
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1735
+ */
1736
+ proto.prisca.v1.down_payment.UpdateDownPaymentReq.toObject = function(includeInstance, msg) {
1737
+ var f, obj = {
1738
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1739
+ baseDownPayment: (f = msg.getBaseDownPayment()) && proto.prisca.v1.down_payment.BaseDownPayment.toObject(includeInstance, f)
1740
+ };
1741
+
1742
+ if (includeInstance) {
1743
+ obj.$jspbMessageInstance = msg;
1744
+ }
1745
+ return obj;
1746
+ };
1747
+ }
1748
+
1749
+
1750
+ /**
1751
+ * Deserializes binary data (in protobuf wire format).
1752
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1753
+ * @return {!proto.prisca.v1.down_payment.UpdateDownPaymentReq}
1754
+ */
1755
+ proto.prisca.v1.down_payment.UpdateDownPaymentReq.deserializeBinary = function(bytes) {
1756
+ var reader = new jspb.BinaryReader(bytes);
1757
+ var msg = new proto.prisca.v1.down_payment.UpdateDownPaymentReq;
1758
+ return proto.prisca.v1.down_payment.UpdateDownPaymentReq.deserializeBinaryFromReader(msg, reader);
1759
+ };
1760
+
1761
+
1762
+ /**
1763
+ * Deserializes binary data (in protobuf wire format) from the
1764
+ * given reader into the given message object.
1765
+ * @param {!proto.prisca.v1.down_payment.UpdateDownPaymentReq} msg The message object to deserialize into.
1766
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1767
+ * @return {!proto.prisca.v1.down_payment.UpdateDownPaymentReq}
1768
+ */
1769
+ proto.prisca.v1.down_payment.UpdateDownPaymentReq.deserializeBinaryFromReader = function(msg, reader) {
1770
+ while (reader.nextField()) {
1771
+ if (reader.isEndGroup()) {
1772
+ break;
1773
+ }
1774
+ var field = reader.getFieldNumber();
1775
+ switch (field) {
1776
+ case 1:
1777
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1778
+ msg.setReferencesId(value);
1779
+ break;
1780
+ case 2:
1781
+ var value = new proto.prisca.v1.down_payment.BaseDownPayment;
1782
+ reader.readMessage(value,proto.prisca.v1.down_payment.BaseDownPayment.deserializeBinaryFromReader);
1783
+ msg.setBaseDownPayment(value);
1784
+ break;
1785
+ default:
1786
+ reader.skipField();
1787
+ break;
1788
+ }
1789
+ }
1790
+ return msg;
1791
+ };
1792
+
1793
+
1794
+ /**
1795
+ * Serializes the message to binary data (in protobuf wire format).
1796
+ * @return {!Uint8Array}
1797
+ */
1798
+ proto.prisca.v1.down_payment.UpdateDownPaymentReq.prototype.serializeBinary = function() {
1799
+ var writer = new jspb.BinaryWriter();
1800
+ proto.prisca.v1.down_payment.UpdateDownPaymentReq.serializeBinaryToWriter(this, writer);
1801
+ return writer.getResultBuffer();
1802
+ };
1803
+
1804
+
1805
+ /**
1806
+ * Serializes the given message to binary data (in protobuf wire
1807
+ * format), writing to the given BinaryWriter.
1808
+ * @param {!proto.prisca.v1.down_payment.UpdateDownPaymentReq} message
1809
+ * @param {!jspb.BinaryWriter} writer
1810
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1811
+ */
1812
+ proto.prisca.v1.down_payment.UpdateDownPaymentReq.serializeBinaryToWriter = function(message, writer) {
1813
+ var f = undefined;
1814
+ f = message.getReferencesId();
1815
+ if (f.length > 0) {
1816
+ writer.writeString(
1817
+ 1,
1818
+ f
1819
+ );
1820
+ }
1821
+ f = message.getBaseDownPayment();
1822
+ if (f != null) {
1823
+ writer.writeMessage(
1824
+ 2,
1825
+ f,
1826
+ proto.prisca.v1.down_payment.BaseDownPayment.serializeBinaryToWriter
1827
+ );
1828
+ }
1829
+ };
1830
+
1831
+
1832
+ /**
1833
+ * optional string references_id = 1;
1834
+ * @return {string}
1835
+ */
1836
+ proto.prisca.v1.down_payment.UpdateDownPaymentReq.prototype.getReferencesId = function() {
1837
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1838
+ };
1839
+
1840
+
1841
+ /**
1842
+ * @param {string} value
1843
+ * @return {!proto.prisca.v1.down_payment.UpdateDownPaymentReq} returns this
1844
+ */
1845
+ proto.prisca.v1.down_payment.UpdateDownPaymentReq.prototype.setReferencesId = function(value) {
1846
+ return jspb.Message.setProto3StringField(this, 1, value);
1847
+ };
1848
+
1849
+
1850
+ /**
1851
+ * optional BaseDownPayment base_down_payment = 2;
1852
+ * @return {?proto.prisca.v1.down_payment.BaseDownPayment}
1853
+ */
1854
+ proto.prisca.v1.down_payment.UpdateDownPaymentReq.prototype.getBaseDownPayment = function() {
1855
+ return /** @type{?proto.prisca.v1.down_payment.BaseDownPayment} */ (
1856
+ jspb.Message.getWrapperField(this, proto.prisca.v1.down_payment.BaseDownPayment, 2));
1857
+ };
1858
+
1859
+
1860
+ /**
1861
+ * @param {?proto.prisca.v1.down_payment.BaseDownPayment|undefined} value
1862
+ * @return {!proto.prisca.v1.down_payment.UpdateDownPaymentReq} returns this
1863
+ */
1864
+ proto.prisca.v1.down_payment.UpdateDownPaymentReq.prototype.setBaseDownPayment = function(value) {
1865
+ return jspb.Message.setWrapperField(this, 2, value);
1866
+ };
1867
+
1868
+
1869
+ /**
1870
+ * Clears the message field making it undefined.
1871
+ * @return {!proto.prisca.v1.down_payment.UpdateDownPaymentReq} returns this
1872
+ */
1873
+ proto.prisca.v1.down_payment.UpdateDownPaymentReq.prototype.clearBaseDownPayment = function() {
1874
+ return this.setBaseDownPayment(undefined);
1875
+ };
1876
+
1877
+
1878
+ /**
1879
+ * Returns whether this field is set.
1880
+ * @return {boolean}
1881
+ */
1882
+ proto.prisca.v1.down_payment.UpdateDownPaymentReq.prototype.hasBaseDownPayment = function() {
1883
+ return jspb.Message.getField(this, 2) != null;
1884
+ };
1885
+
1886
+
1887
+
1888
+
1889
+
1890
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1891
+ /**
1892
+ * Creates an object representation of this proto.
1893
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1894
+ * Optional fields that are not set will be set to undefined.
1895
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1896
+ * For the list of reserved names please see:
1897
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1898
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1899
+ * JSPB instance for transitional soy proto support:
1900
+ * http://goto/soy-param-migration
1901
+ * @return {!Object}
1902
+ */
1903
+ proto.prisca.v1.down_payment.UpdateDownPaymentRes.prototype.toObject = function(opt_includeInstance) {
1904
+ return proto.prisca.v1.down_payment.UpdateDownPaymentRes.toObject(opt_includeInstance, this);
1905
+ };
1906
+
1907
+
1908
+ /**
1909
+ * Static version of the {@see toObject} method.
1910
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1911
+ * the JSPB instance for transitional soy proto support:
1912
+ * http://goto/soy-param-migration
1913
+ * @param {!proto.prisca.v1.down_payment.UpdateDownPaymentRes} msg The msg instance to transform.
1914
+ * @return {!Object}
1915
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1916
+ */
1917
+ proto.prisca.v1.down_payment.UpdateDownPaymentRes.toObject = function(includeInstance, msg) {
1918
+ var f, obj = {
1919
+ downPayment: (f = msg.getDownPayment()) && proto.prisca.v1.down_payment.DownPayment.toObject(includeInstance, f),
1920
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1921
+ };
1922
+
1923
+ if (includeInstance) {
1924
+ obj.$jspbMessageInstance = msg;
1925
+ }
1926
+ return obj;
1927
+ };
1928
+ }
1929
+
1930
+
1931
+ /**
1932
+ * Deserializes binary data (in protobuf wire format).
1933
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1934
+ * @return {!proto.prisca.v1.down_payment.UpdateDownPaymentRes}
1935
+ */
1936
+ proto.prisca.v1.down_payment.UpdateDownPaymentRes.deserializeBinary = function(bytes) {
1937
+ var reader = new jspb.BinaryReader(bytes);
1938
+ var msg = new proto.prisca.v1.down_payment.UpdateDownPaymentRes;
1939
+ return proto.prisca.v1.down_payment.UpdateDownPaymentRes.deserializeBinaryFromReader(msg, reader);
1940
+ };
1941
+
1942
+
1943
+ /**
1944
+ * Deserializes binary data (in protobuf wire format) from the
1945
+ * given reader into the given message object.
1946
+ * @param {!proto.prisca.v1.down_payment.UpdateDownPaymentRes} msg The message object to deserialize into.
1947
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1948
+ * @return {!proto.prisca.v1.down_payment.UpdateDownPaymentRes}
1949
+ */
1950
+ proto.prisca.v1.down_payment.UpdateDownPaymentRes.deserializeBinaryFromReader = function(msg, reader) {
1951
+ while (reader.nextField()) {
1952
+ if (reader.isEndGroup()) {
1953
+ break;
1954
+ }
1955
+ var field = reader.getFieldNumber();
1956
+ switch (field) {
1957
+ case 1:
1958
+ var value = new proto.prisca.v1.down_payment.DownPayment;
1959
+ reader.readMessage(value,proto.prisca.v1.down_payment.DownPayment.deserializeBinaryFromReader);
1960
+ msg.setDownPayment(value);
1961
+ break;
1962
+ case 2:
1963
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1964
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1965
+ msg.setMeta(value);
1966
+ break;
1967
+ default:
1968
+ reader.skipField();
1969
+ break;
1970
+ }
1971
+ }
1972
+ return msg;
1973
+ };
1974
+
1975
+
1976
+ /**
1977
+ * Serializes the message to binary data (in protobuf wire format).
1978
+ * @return {!Uint8Array}
1979
+ */
1980
+ proto.prisca.v1.down_payment.UpdateDownPaymentRes.prototype.serializeBinary = function() {
1981
+ var writer = new jspb.BinaryWriter();
1982
+ proto.prisca.v1.down_payment.UpdateDownPaymentRes.serializeBinaryToWriter(this, writer);
1983
+ return writer.getResultBuffer();
1984
+ };
1985
+
1986
+
1987
+ /**
1988
+ * Serializes the given message to binary data (in protobuf wire
1989
+ * format), writing to the given BinaryWriter.
1990
+ * @param {!proto.prisca.v1.down_payment.UpdateDownPaymentRes} message
1991
+ * @param {!jspb.BinaryWriter} writer
1992
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1993
+ */
1994
+ proto.prisca.v1.down_payment.UpdateDownPaymentRes.serializeBinaryToWriter = function(message, writer) {
1995
+ var f = undefined;
1996
+ f = message.getDownPayment();
1997
+ if (f != null) {
1998
+ writer.writeMessage(
1999
+ 1,
2000
+ f,
2001
+ proto.prisca.v1.down_payment.DownPayment.serializeBinaryToWriter
2002
+ );
2003
+ }
2004
+ f = message.getMeta();
2005
+ if (f != null) {
2006
+ writer.writeMessage(
2007
+ 2,
2008
+ f,
2009
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2010
+ );
2011
+ }
2012
+ };
2013
+
2014
+
2015
+ /**
2016
+ * optional DownPayment down_payment = 1;
2017
+ * @return {?proto.prisca.v1.down_payment.DownPayment}
2018
+ */
2019
+ proto.prisca.v1.down_payment.UpdateDownPaymentRes.prototype.getDownPayment = function() {
2020
+ return /** @type{?proto.prisca.v1.down_payment.DownPayment} */ (
2021
+ jspb.Message.getWrapperField(this, proto.prisca.v1.down_payment.DownPayment, 1));
2022
+ };
2023
+
2024
+
2025
+ /**
2026
+ * @param {?proto.prisca.v1.down_payment.DownPayment|undefined} value
2027
+ * @return {!proto.prisca.v1.down_payment.UpdateDownPaymentRes} returns this
2028
+ */
2029
+ proto.prisca.v1.down_payment.UpdateDownPaymentRes.prototype.setDownPayment = function(value) {
2030
+ return jspb.Message.setWrapperField(this, 1, value);
2031
+ };
2032
+
2033
+
2034
+ /**
2035
+ * Clears the message field making it undefined.
2036
+ * @return {!proto.prisca.v1.down_payment.UpdateDownPaymentRes} returns this
2037
+ */
2038
+ proto.prisca.v1.down_payment.UpdateDownPaymentRes.prototype.clearDownPayment = function() {
2039
+ return this.setDownPayment(undefined);
2040
+ };
2041
+
2042
+
2043
+ /**
2044
+ * Returns whether this field is set.
2045
+ * @return {boolean}
2046
+ */
2047
+ proto.prisca.v1.down_payment.UpdateDownPaymentRes.prototype.hasDownPayment = function() {
2048
+ return jspb.Message.getField(this, 1) != null;
2049
+ };
2050
+
2051
+
2052
+ /**
2053
+ * optional prisca.v1.global.meta.Meta meta = 2;
2054
+ * @return {?proto.prisca.v1.global.meta.Meta}
2055
+ */
2056
+ proto.prisca.v1.down_payment.UpdateDownPaymentRes.prototype.getMeta = function() {
2057
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2058
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2059
+ };
2060
+
2061
+
2062
+ /**
2063
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2064
+ * @return {!proto.prisca.v1.down_payment.UpdateDownPaymentRes} returns this
2065
+ */
2066
+ proto.prisca.v1.down_payment.UpdateDownPaymentRes.prototype.setMeta = function(value) {
2067
+ return jspb.Message.setWrapperField(this, 2, value);
2068
+ };
2069
+
2070
+
2071
+ /**
2072
+ * Clears the message field making it undefined.
2073
+ * @return {!proto.prisca.v1.down_payment.UpdateDownPaymentRes} returns this
2074
+ */
2075
+ proto.prisca.v1.down_payment.UpdateDownPaymentRes.prototype.clearMeta = function() {
2076
+ return this.setMeta(undefined);
2077
+ };
2078
+
2079
+
2080
+ /**
2081
+ * Returns whether this field is set.
2082
+ * @return {boolean}
2083
+ */
2084
+ proto.prisca.v1.down_payment.UpdateDownPaymentRes.prototype.hasMeta = function() {
2085
+ return jspb.Message.getField(this, 2) != null;
2086
+ };
2087
+
2088
+
2089
+
2090
+
2091
+
2092
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2093
+ /**
2094
+ * Creates an object representation of this proto.
2095
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2096
+ * Optional fields that are not set will be set to undefined.
2097
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2098
+ * For the list of reserved names please see:
2099
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2100
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2101
+ * JSPB instance for transitional soy proto support:
2102
+ * http://goto/soy-param-migration
2103
+ * @return {!Object}
2104
+ */
2105
+ proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq.prototype.toObject = function(opt_includeInstance) {
2106
+ return proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq.toObject(opt_includeInstance, this);
2107
+ };
2108
+
2109
+
2110
+ /**
2111
+ * Static version of the {@see toObject} method.
2112
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2113
+ * the JSPB instance for transitional soy proto support:
2114
+ * http://goto/soy-param-migration
2115
+ * @param {!proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq} msg The msg instance to transform.
2116
+ * @return {!Object}
2117
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2118
+ */
2119
+ proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq.toObject = function(includeInstance, msg) {
2120
+ var f, obj = {
2121
+ status: jspb.Message.getFieldWithDefault(msg, 1, ""),
2122
+ referencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
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.prisca.v1.down_payment.UpdateDownPaymentStatusReq}
2137
+ */
2138
+ proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq.deserializeBinary = function(bytes) {
2139
+ var reader = new jspb.BinaryReader(bytes);
2140
+ var msg = new proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq;
2141
+ return proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq.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.prisca.v1.down_payment.UpdateDownPaymentStatusReq} msg The message object to deserialize into.
2149
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2150
+ * @return {!proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq}
2151
+ */
2152
+ proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq.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 = /** @type {string} */ (reader.readStringRequireUtf8());
2161
+ msg.setStatus(value);
2162
+ break;
2163
+ case 2:
2164
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2165
+ msg.setReferencesId(value);
2166
+ break;
2167
+ default:
2168
+ reader.skipField();
2169
+ break;
2170
+ }
2171
+ }
2172
+ return msg;
2173
+ };
2174
+
2175
+
2176
+ /**
2177
+ * Serializes the message to binary data (in protobuf wire format).
2178
+ * @return {!Uint8Array}
2179
+ */
2180
+ proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq.prototype.serializeBinary = function() {
2181
+ var writer = new jspb.BinaryWriter();
2182
+ proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq.serializeBinaryToWriter(this, writer);
2183
+ return writer.getResultBuffer();
2184
+ };
2185
+
2186
+
2187
+ /**
2188
+ * Serializes the given message to binary data (in protobuf wire
2189
+ * format), writing to the given BinaryWriter.
2190
+ * @param {!proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq} message
2191
+ * @param {!jspb.BinaryWriter} writer
2192
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2193
+ */
2194
+ proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq.serializeBinaryToWriter = function(message, writer) {
2195
+ var f = undefined;
2196
+ f = message.getStatus();
2197
+ if (f.length > 0) {
2198
+ writer.writeString(
2199
+ 1,
2200
+ f
2201
+ );
2202
+ }
2203
+ f = message.getReferencesId();
2204
+ if (f.length > 0) {
2205
+ writer.writeString(
2206
+ 2,
2207
+ f
2208
+ );
2209
+ }
2210
+ };
2211
+
2212
+
2213
+ /**
2214
+ * optional string status = 1;
2215
+ * @return {string}
2216
+ */
2217
+ proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq.prototype.getStatus = function() {
2218
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2219
+ };
2220
+
2221
+
2222
+ /**
2223
+ * @param {string} value
2224
+ * @return {!proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq} returns this
2225
+ */
2226
+ proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq.prototype.setStatus = function(value) {
2227
+ return jspb.Message.setProto3StringField(this, 1, value);
2228
+ };
2229
+
2230
+
2231
+ /**
2232
+ * optional string references_id = 2;
2233
+ * @return {string}
2234
+ */
2235
+ proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq.prototype.getReferencesId = function() {
2236
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2237
+ };
2238
+
2239
+
2240
+ /**
2241
+ * @param {string} value
2242
+ * @return {!proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq} returns this
2243
+ */
2244
+ proto.prisca.v1.down_payment.UpdateDownPaymentStatusReq.prototype.setReferencesId = function(value) {
2245
+ return jspb.Message.setProto3StringField(this, 2, value);
2246
+ };
2247
+
2248
+
2249
+
2250
+
2251
+
2252
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2253
+ /**
2254
+ * Creates an object representation of this proto.
2255
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2256
+ * Optional fields that are not set will be set to undefined.
2257
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2258
+ * For the list of reserved names please see:
2259
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2260
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2261
+ * JSPB instance for transitional soy proto support:
2262
+ * http://goto/soy-param-migration
2263
+ * @return {!Object}
2264
+ */
2265
+ proto.prisca.v1.down_payment.GetDownPaymentByIdReq.prototype.toObject = function(opt_includeInstance) {
2266
+ return proto.prisca.v1.down_payment.GetDownPaymentByIdReq.toObject(opt_includeInstance, this);
2267
+ };
2268
+
2269
+
2270
+ /**
2271
+ * Static version of the {@see toObject} method.
2272
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2273
+ * the JSPB instance for transitional soy proto support:
2274
+ * http://goto/soy-param-migration
2275
+ * @param {!proto.prisca.v1.down_payment.GetDownPaymentByIdReq} msg The msg instance to transform.
2276
+ * @return {!Object}
2277
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2278
+ */
2279
+ proto.prisca.v1.down_payment.GetDownPaymentByIdReq.toObject = function(includeInstance, msg) {
2280
+ var f, obj = {
2281
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2282
+ };
2283
+
2284
+ if (includeInstance) {
2285
+ obj.$jspbMessageInstance = msg;
2286
+ }
2287
+ return obj;
2288
+ };
2289
+ }
2290
+
2291
+
2292
+ /**
2293
+ * Deserializes binary data (in protobuf wire format).
2294
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2295
+ * @return {!proto.prisca.v1.down_payment.GetDownPaymentByIdReq}
2296
+ */
2297
+ proto.prisca.v1.down_payment.GetDownPaymentByIdReq.deserializeBinary = function(bytes) {
2298
+ var reader = new jspb.BinaryReader(bytes);
2299
+ var msg = new proto.prisca.v1.down_payment.GetDownPaymentByIdReq;
2300
+ return proto.prisca.v1.down_payment.GetDownPaymentByIdReq.deserializeBinaryFromReader(msg, reader);
2301
+ };
2302
+
2303
+
2304
+ /**
2305
+ * Deserializes binary data (in protobuf wire format) from the
2306
+ * given reader into the given message object.
2307
+ * @param {!proto.prisca.v1.down_payment.GetDownPaymentByIdReq} msg The message object to deserialize into.
2308
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2309
+ * @return {!proto.prisca.v1.down_payment.GetDownPaymentByIdReq}
2310
+ */
2311
+ proto.prisca.v1.down_payment.GetDownPaymentByIdReq.deserializeBinaryFromReader = function(msg, reader) {
2312
+ while (reader.nextField()) {
2313
+ if (reader.isEndGroup()) {
2314
+ break;
2315
+ }
2316
+ var field = reader.getFieldNumber();
2317
+ switch (field) {
2318
+ case 1:
2319
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2320
+ msg.setReferencesId(value);
2321
+ break;
2322
+ default:
2323
+ reader.skipField();
2324
+ break;
2325
+ }
2326
+ }
2327
+ return msg;
2328
+ };
2329
+
2330
+
2331
+ /**
2332
+ * Serializes the message to binary data (in protobuf wire format).
2333
+ * @return {!Uint8Array}
2334
+ */
2335
+ proto.prisca.v1.down_payment.GetDownPaymentByIdReq.prototype.serializeBinary = function() {
2336
+ var writer = new jspb.BinaryWriter();
2337
+ proto.prisca.v1.down_payment.GetDownPaymentByIdReq.serializeBinaryToWriter(this, writer);
2338
+ return writer.getResultBuffer();
2339
+ };
2340
+
2341
+
2342
+ /**
2343
+ * Serializes the given message to binary data (in protobuf wire
2344
+ * format), writing to the given BinaryWriter.
2345
+ * @param {!proto.prisca.v1.down_payment.GetDownPaymentByIdReq} message
2346
+ * @param {!jspb.BinaryWriter} writer
2347
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2348
+ */
2349
+ proto.prisca.v1.down_payment.GetDownPaymentByIdReq.serializeBinaryToWriter = function(message, writer) {
2350
+ var f = undefined;
2351
+ f = message.getReferencesId();
2352
+ if (f.length > 0) {
2353
+ writer.writeString(
2354
+ 1,
2355
+ f
2356
+ );
2357
+ }
2358
+ };
2359
+
2360
+
2361
+ /**
2362
+ * optional string references_id = 1;
2363
+ * @return {string}
2364
+ */
2365
+ proto.prisca.v1.down_payment.GetDownPaymentByIdReq.prototype.getReferencesId = function() {
2366
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2367
+ };
2368
+
2369
+
2370
+ /**
2371
+ * @param {string} value
2372
+ * @return {!proto.prisca.v1.down_payment.GetDownPaymentByIdReq} returns this
2373
+ */
2374
+ proto.prisca.v1.down_payment.GetDownPaymentByIdReq.prototype.setReferencesId = function(value) {
2375
+ return jspb.Message.setProto3StringField(this, 1, value);
2376
+ };
2377
+
2378
+
2379
+
2380
+
2381
+
2382
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2383
+ /**
2384
+ * Creates an object representation of this proto.
2385
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2386
+ * Optional fields that are not set will be set to undefined.
2387
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2388
+ * For the list of reserved names please see:
2389
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2390
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2391
+ * JSPB instance for transitional soy proto support:
2392
+ * http://goto/soy-param-migration
2393
+ * @return {!Object}
2394
+ */
2395
+ proto.prisca.v1.down_payment.GetDownPaymentByIdRes.prototype.toObject = function(opt_includeInstance) {
2396
+ return proto.prisca.v1.down_payment.GetDownPaymentByIdRes.toObject(opt_includeInstance, this);
2397
+ };
2398
+
2399
+
2400
+ /**
2401
+ * Static version of the {@see toObject} method.
2402
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2403
+ * the JSPB instance for transitional soy proto support:
2404
+ * http://goto/soy-param-migration
2405
+ * @param {!proto.prisca.v1.down_payment.GetDownPaymentByIdRes} msg The msg instance to transform.
2406
+ * @return {!Object}
2407
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2408
+ */
2409
+ proto.prisca.v1.down_payment.GetDownPaymentByIdRes.toObject = function(includeInstance, msg) {
2410
+ var f, obj = {
2411
+ downPayment: (f = msg.getDownPayment()) && proto.prisca.v1.down_payment.DownPayment.toObject(includeInstance, f),
2412
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2413
+ };
2414
+
2415
+ if (includeInstance) {
2416
+ obj.$jspbMessageInstance = msg;
2417
+ }
2418
+ return obj;
2419
+ };
2420
+ }
2421
+
2422
+
2423
+ /**
2424
+ * Deserializes binary data (in protobuf wire format).
2425
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2426
+ * @return {!proto.prisca.v1.down_payment.GetDownPaymentByIdRes}
2427
+ */
2428
+ proto.prisca.v1.down_payment.GetDownPaymentByIdRes.deserializeBinary = function(bytes) {
2429
+ var reader = new jspb.BinaryReader(bytes);
2430
+ var msg = new proto.prisca.v1.down_payment.GetDownPaymentByIdRes;
2431
+ return proto.prisca.v1.down_payment.GetDownPaymentByIdRes.deserializeBinaryFromReader(msg, reader);
2432
+ };
2433
+
2434
+
2435
+ /**
2436
+ * Deserializes binary data (in protobuf wire format) from the
2437
+ * given reader into the given message object.
2438
+ * @param {!proto.prisca.v1.down_payment.GetDownPaymentByIdRes} msg The message object to deserialize into.
2439
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2440
+ * @return {!proto.prisca.v1.down_payment.GetDownPaymentByIdRes}
2441
+ */
2442
+ proto.prisca.v1.down_payment.GetDownPaymentByIdRes.deserializeBinaryFromReader = function(msg, reader) {
2443
+ while (reader.nextField()) {
2444
+ if (reader.isEndGroup()) {
2445
+ break;
2446
+ }
2447
+ var field = reader.getFieldNumber();
2448
+ switch (field) {
2449
+ case 1:
2450
+ var value = new proto.prisca.v1.down_payment.DownPayment;
2451
+ reader.readMessage(value,proto.prisca.v1.down_payment.DownPayment.deserializeBinaryFromReader);
2452
+ msg.setDownPayment(value);
2453
+ break;
2454
+ case 2:
2455
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2456
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2457
+ msg.setMeta(value);
2458
+ break;
2459
+ default:
2460
+ reader.skipField();
2461
+ break;
2462
+ }
2463
+ }
2464
+ return msg;
2465
+ };
2466
+
2467
+
2468
+ /**
2469
+ * Serializes the message to binary data (in protobuf wire format).
2470
+ * @return {!Uint8Array}
2471
+ */
2472
+ proto.prisca.v1.down_payment.GetDownPaymentByIdRes.prototype.serializeBinary = function() {
2473
+ var writer = new jspb.BinaryWriter();
2474
+ proto.prisca.v1.down_payment.GetDownPaymentByIdRes.serializeBinaryToWriter(this, writer);
2475
+ return writer.getResultBuffer();
2476
+ };
2477
+
2478
+
2479
+ /**
2480
+ * Serializes the given message to binary data (in protobuf wire
2481
+ * format), writing to the given BinaryWriter.
2482
+ * @param {!proto.prisca.v1.down_payment.GetDownPaymentByIdRes} message
2483
+ * @param {!jspb.BinaryWriter} writer
2484
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2485
+ */
2486
+ proto.prisca.v1.down_payment.GetDownPaymentByIdRes.serializeBinaryToWriter = function(message, writer) {
2487
+ var f = undefined;
2488
+ f = message.getDownPayment();
2489
+ if (f != null) {
2490
+ writer.writeMessage(
2491
+ 1,
2492
+ f,
2493
+ proto.prisca.v1.down_payment.DownPayment.serializeBinaryToWriter
2494
+ );
2495
+ }
2496
+ f = message.getMeta();
2497
+ if (f != null) {
2498
+ writer.writeMessage(
2499
+ 2,
2500
+ f,
2501
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2502
+ );
2503
+ }
2504
+ };
2505
+
2506
+
2507
+ /**
2508
+ * optional DownPayment down_payment = 1;
2509
+ * @return {?proto.prisca.v1.down_payment.DownPayment}
2510
+ */
2511
+ proto.prisca.v1.down_payment.GetDownPaymentByIdRes.prototype.getDownPayment = function() {
2512
+ return /** @type{?proto.prisca.v1.down_payment.DownPayment} */ (
2513
+ jspb.Message.getWrapperField(this, proto.prisca.v1.down_payment.DownPayment, 1));
2514
+ };
2515
+
2516
+
2517
+ /**
2518
+ * @param {?proto.prisca.v1.down_payment.DownPayment|undefined} value
2519
+ * @return {!proto.prisca.v1.down_payment.GetDownPaymentByIdRes} returns this
2520
+ */
2521
+ proto.prisca.v1.down_payment.GetDownPaymentByIdRes.prototype.setDownPayment = function(value) {
2522
+ return jspb.Message.setWrapperField(this, 1, value);
2523
+ };
2524
+
2525
+
2526
+ /**
2527
+ * Clears the message field making it undefined.
2528
+ * @return {!proto.prisca.v1.down_payment.GetDownPaymentByIdRes} returns this
2529
+ */
2530
+ proto.prisca.v1.down_payment.GetDownPaymentByIdRes.prototype.clearDownPayment = function() {
2531
+ return this.setDownPayment(undefined);
2532
+ };
2533
+
2534
+
2535
+ /**
2536
+ * Returns whether this field is set.
2537
+ * @return {boolean}
2538
+ */
2539
+ proto.prisca.v1.down_payment.GetDownPaymentByIdRes.prototype.hasDownPayment = function() {
2540
+ return jspb.Message.getField(this, 1) != null;
2541
+ };
2542
+
2543
+
2544
+ /**
2545
+ * optional prisca.v1.global.meta.Meta meta = 2;
2546
+ * @return {?proto.prisca.v1.global.meta.Meta}
2547
+ */
2548
+ proto.prisca.v1.down_payment.GetDownPaymentByIdRes.prototype.getMeta = function() {
2549
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2550
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2551
+ };
2552
+
2553
+
2554
+ /**
2555
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2556
+ * @return {!proto.prisca.v1.down_payment.GetDownPaymentByIdRes} returns this
2557
+ */
2558
+ proto.prisca.v1.down_payment.GetDownPaymentByIdRes.prototype.setMeta = function(value) {
2559
+ return jspb.Message.setWrapperField(this, 2, value);
2560
+ };
2561
+
2562
+
2563
+ /**
2564
+ * Clears the message field making it undefined.
2565
+ * @return {!proto.prisca.v1.down_payment.GetDownPaymentByIdRes} returns this
2566
+ */
2567
+ proto.prisca.v1.down_payment.GetDownPaymentByIdRes.prototype.clearMeta = function() {
2568
+ return this.setMeta(undefined);
2569
+ };
2570
+
2571
+
2572
+ /**
2573
+ * Returns whether this field is set.
2574
+ * @return {boolean}
2575
+ */
2576
+ proto.prisca.v1.down_payment.GetDownPaymentByIdRes.prototype.hasMeta = function() {
2577
+ return jspb.Message.getField(this, 2) != null;
2578
+ };
2579
+
2580
+
2581
+
2582
+
2583
+
2584
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2585
+ /**
2586
+ * Creates an object representation of this proto.
2587
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2588
+ * Optional fields that are not set will be set to undefined.
2589
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2590
+ * For the list of reserved names please see:
2591
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2592
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2593
+ * JSPB instance for transitional soy proto support:
2594
+ * http://goto/soy-param-migration
2595
+ * @return {!Object}
2596
+ */
2597
+ proto.prisca.v1.down_payment.GetListDownPaymentReq.prototype.toObject = function(opt_includeInstance) {
2598
+ return proto.prisca.v1.down_payment.GetListDownPaymentReq.toObject(opt_includeInstance, this);
2599
+ };
2600
+
2601
+
2602
+ /**
2603
+ * Static version of the {@see toObject} method.
2604
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2605
+ * the JSPB instance for transitional soy proto support:
2606
+ * http://goto/soy-param-migration
2607
+ * @param {!proto.prisca.v1.down_payment.GetListDownPaymentReq} msg The msg instance to transform.
2608
+ * @return {!Object}
2609
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2610
+ */
2611
+ proto.prisca.v1.down_payment.GetListDownPaymentReq.toObject = function(includeInstance, msg) {
2612
+ var f, obj = {
2613
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
2614
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
2615
+ };
2616
+
2617
+ if (includeInstance) {
2618
+ obj.$jspbMessageInstance = msg;
2619
+ }
2620
+ return obj;
2621
+ };
2622
+ }
2623
+
2624
+
2625
+ /**
2626
+ * Deserializes binary data (in protobuf wire format).
2627
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2628
+ * @return {!proto.prisca.v1.down_payment.GetListDownPaymentReq}
2629
+ */
2630
+ proto.prisca.v1.down_payment.GetListDownPaymentReq.deserializeBinary = function(bytes) {
2631
+ var reader = new jspb.BinaryReader(bytes);
2632
+ var msg = new proto.prisca.v1.down_payment.GetListDownPaymentReq;
2633
+ return proto.prisca.v1.down_payment.GetListDownPaymentReq.deserializeBinaryFromReader(msg, reader);
2634
+ };
2635
+
2636
+
2637
+ /**
2638
+ * Deserializes binary data (in protobuf wire format) from the
2639
+ * given reader into the given message object.
2640
+ * @param {!proto.prisca.v1.down_payment.GetListDownPaymentReq} msg The message object to deserialize into.
2641
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2642
+ * @return {!proto.prisca.v1.down_payment.GetListDownPaymentReq}
2643
+ */
2644
+ proto.prisca.v1.down_payment.GetListDownPaymentReq.deserializeBinaryFromReader = function(msg, reader) {
2645
+ while (reader.nextField()) {
2646
+ if (reader.isEndGroup()) {
2647
+ break;
2648
+ }
2649
+ var field = reader.getFieldNumber();
2650
+ switch (field) {
2651
+ case 1:
2652
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
2653
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
2654
+ msg.setPagination(value);
2655
+ break;
2656
+ case 2:
2657
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
2658
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
2659
+ msg.setQuery(value);
2660
+ break;
2661
+ default:
2662
+ reader.skipField();
2663
+ break;
2664
+ }
2665
+ }
2666
+ return msg;
2667
+ };
2668
+
2669
+
2670
+ /**
2671
+ * Serializes the message to binary data (in protobuf wire format).
2672
+ * @return {!Uint8Array}
2673
+ */
2674
+ proto.prisca.v1.down_payment.GetListDownPaymentReq.prototype.serializeBinary = function() {
2675
+ var writer = new jspb.BinaryWriter();
2676
+ proto.prisca.v1.down_payment.GetListDownPaymentReq.serializeBinaryToWriter(this, writer);
2677
+ return writer.getResultBuffer();
2678
+ };
2679
+
2680
+
2681
+ /**
2682
+ * Serializes the given message to binary data (in protobuf wire
2683
+ * format), writing to the given BinaryWriter.
2684
+ * @param {!proto.prisca.v1.down_payment.GetListDownPaymentReq} message
2685
+ * @param {!jspb.BinaryWriter} writer
2686
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2687
+ */
2688
+ proto.prisca.v1.down_payment.GetListDownPaymentReq.serializeBinaryToWriter = function(message, writer) {
2689
+ var f = undefined;
2690
+ f = message.getPagination();
2691
+ if (f != null) {
2692
+ writer.writeMessage(
2693
+ 1,
2694
+ f,
2695
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
2696
+ );
2697
+ }
2698
+ f = message.getQuery();
2699
+ if (f != null) {
2700
+ writer.writeMessage(
2701
+ 2,
2702
+ f,
2703
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
2704
+ );
2705
+ }
2706
+ };
2707
+
2708
+
2709
+ /**
2710
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
2711
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
2712
+ */
2713
+ proto.prisca.v1.down_payment.GetListDownPaymentReq.prototype.getPagination = function() {
2714
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
2715
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
2716
+ };
2717
+
2718
+
2719
+ /**
2720
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
2721
+ * @return {!proto.prisca.v1.down_payment.GetListDownPaymentReq} returns this
2722
+ */
2723
+ proto.prisca.v1.down_payment.GetListDownPaymentReq.prototype.setPagination = function(value) {
2724
+ return jspb.Message.setWrapperField(this, 1, value);
2725
+ };
2726
+
2727
+
2728
+ /**
2729
+ * Clears the message field making it undefined.
2730
+ * @return {!proto.prisca.v1.down_payment.GetListDownPaymentReq} returns this
2731
+ */
2732
+ proto.prisca.v1.down_payment.GetListDownPaymentReq.prototype.clearPagination = function() {
2733
+ return this.setPagination(undefined);
2734
+ };
2735
+
2736
+
2737
+ /**
2738
+ * Returns whether this field is set.
2739
+ * @return {boolean}
2740
+ */
2741
+ proto.prisca.v1.down_payment.GetListDownPaymentReq.prototype.hasPagination = function() {
2742
+ return jspb.Message.getField(this, 1) != null;
2743
+ };
2744
+
2745
+
2746
+ /**
2747
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
2748
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
2749
+ */
2750
+ proto.prisca.v1.down_payment.GetListDownPaymentReq.prototype.getQuery = function() {
2751
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
2752
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
2753
+ };
2754
+
2755
+
2756
+ /**
2757
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
2758
+ * @return {!proto.prisca.v1.down_payment.GetListDownPaymentReq} returns this
2759
+ */
2760
+ proto.prisca.v1.down_payment.GetListDownPaymentReq.prototype.setQuery = function(value) {
2761
+ return jspb.Message.setWrapperField(this, 2, value);
2762
+ };
2763
+
2764
+
2765
+ /**
2766
+ * Clears the message field making it undefined.
2767
+ * @return {!proto.prisca.v1.down_payment.GetListDownPaymentReq} returns this
2768
+ */
2769
+ proto.prisca.v1.down_payment.GetListDownPaymentReq.prototype.clearQuery = function() {
2770
+ return this.setQuery(undefined);
2771
+ };
2772
+
2773
+
2774
+ /**
2775
+ * Returns whether this field is set.
2776
+ * @return {boolean}
2777
+ */
2778
+ proto.prisca.v1.down_payment.GetListDownPaymentReq.prototype.hasQuery = function() {
2779
+ return jspb.Message.getField(this, 2) != null;
2780
+ };
2781
+
2782
+
2783
+
2784
+ /**
2785
+ * List of repeated fields within this message type.
2786
+ * @private {!Array<number>}
2787
+ * @const
2788
+ */
2789
+ proto.prisca.v1.down_payment.GetListDownPaymentRes.repeatedFields_ = [1];
2790
+
2791
+
2792
+
2793
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2794
+ /**
2795
+ * Creates an object representation of this proto.
2796
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2797
+ * Optional fields that are not set will be set to undefined.
2798
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2799
+ * For the list of reserved names please see:
2800
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2801
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2802
+ * JSPB instance for transitional soy proto support:
2803
+ * http://goto/soy-param-migration
2804
+ * @return {!Object}
2805
+ */
2806
+ proto.prisca.v1.down_payment.GetListDownPaymentRes.prototype.toObject = function(opt_includeInstance) {
2807
+ return proto.prisca.v1.down_payment.GetListDownPaymentRes.toObject(opt_includeInstance, this);
2808
+ };
2809
+
2810
+
2811
+ /**
2812
+ * Static version of the {@see toObject} method.
2813
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2814
+ * the JSPB instance for transitional soy proto support:
2815
+ * http://goto/soy-param-migration
2816
+ * @param {!proto.prisca.v1.down_payment.GetListDownPaymentRes} msg The msg instance to transform.
2817
+ * @return {!Object}
2818
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2819
+ */
2820
+ proto.prisca.v1.down_payment.GetListDownPaymentRes.toObject = function(includeInstance, msg) {
2821
+ var f, obj = {
2822
+ downPaymentsList: jspb.Message.toObjectList(msg.getDownPaymentsList(),
2823
+ proto.prisca.v1.down_payment.DownPayment.toObject, includeInstance),
2824
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2825
+ };
2826
+
2827
+ if (includeInstance) {
2828
+ obj.$jspbMessageInstance = msg;
2829
+ }
2830
+ return obj;
2831
+ };
2832
+ }
2833
+
2834
+
2835
+ /**
2836
+ * Deserializes binary data (in protobuf wire format).
2837
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2838
+ * @return {!proto.prisca.v1.down_payment.GetListDownPaymentRes}
2839
+ */
2840
+ proto.prisca.v1.down_payment.GetListDownPaymentRes.deserializeBinary = function(bytes) {
2841
+ var reader = new jspb.BinaryReader(bytes);
2842
+ var msg = new proto.prisca.v1.down_payment.GetListDownPaymentRes;
2843
+ return proto.prisca.v1.down_payment.GetListDownPaymentRes.deserializeBinaryFromReader(msg, reader);
2844
+ };
2845
+
2846
+
2847
+ /**
2848
+ * Deserializes binary data (in protobuf wire format) from the
2849
+ * given reader into the given message object.
2850
+ * @param {!proto.prisca.v1.down_payment.GetListDownPaymentRes} msg The message object to deserialize into.
2851
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2852
+ * @return {!proto.prisca.v1.down_payment.GetListDownPaymentRes}
2853
+ */
2854
+ proto.prisca.v1.down_payment.GetListDownPaymentRes.deserializeBinaryFromReader = function(msg, reader) {
2855
+ while (reader.nextField()) {
2856
+ if (reader.isEndGroup()) {
2857
+ break;
2858
+ }
2859
+ var field = reader.getFieldNumber();
2860
+ switch (field) {
2861
+ case 1:
2862
+ var value = new proto.prisca.v1.down_payment.DownPayment;
2863
+ reader.readMessage(value,proto.prisca.v1.down_payment.DownPayment.deserializeBinaryFromReader);
2864
+ msg.addDownPayments(value);
2865
+ break;
2866
+ case 2:
2867
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2868
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2869
+ msg.setMeta(value);
2870
+ break;
2871
+ default:
2872
+ reader.skipField();
2873
+ break;
2874
+ }
2875
+ }
2876
+ return msg;
2877
+ };
2878
+
2879
+
2880
+ /**
2881
+ * Serializes the message to binary data (in protobuf wire format).
2882
+ * @return {!Uint8Array}
2883
+ */
2884
+ proto.prisca.v1.down_payment.GetListDownPaymentRes.prototype.serializeBinary = function() {
2885
+ var writer = new jspb.BinaryWriter();
2886
+ proto.prisca.v1.down_payment.GetListDownPaymentRes.serializeBinaryToWriter(this, writer);
2887
+ return writer.getResultBuffer();
2888
+ };
2889
+
2890
+
2891
+ /**
2892
+ * Serializes the given message to binary data (in protobuf wire
2893
+ * format), writing to the given BinaryWriter.
2894
+ * @param {!proto.prisca.v1.down_payment.GetListDownPaymentRes} message
2895
+ * @param {!jspb.BinaryWriter} writer
2896
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2897
+ */
2898
+ proto.prisca.v1.down_payment.GetListDownPaymentRes.serializeBinaryToWriter = function(message, writer) {
2899
+ var f = undefined;
2900
+ f = message.getDownPaymentsList();
2901
+ if (f.length > 0) {
2902
+ writer.writeRepeatedMessage(
2903
+ 1,
2904
+ f,
2905
+ proto.prisca.v1.down_payment.DownPayment.serializeBinaryToWriter
2906
+ );
2907
+ }
2908
+ f = message.getMeta();
2909
+ if (f != null) {
2910
+ writer.writeMessage(
2911
+ 2,
2912
+ f,
2913
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2914
+ );
2915
+ }
2916
+ };
2917
+
2918
+
2919
+ /**
2920
+ * repeated DownPayment down_payments = 1;
2921
+ * @return {!Array<!proto.prisca.v1.down_payment.DownPayment>}
2922
+ */
2923
+ proto.prisca.v1.down_payment.GetListDownPaymentRes.prototype.getDownPaymentsList = function() {
2924
+ return /** @type{!Array<!proto.prisca.v1.down_payment.DownPayment>} */ (
2925
+ jspb.Message.getRepeatedWrapperField(this, proto.prisca.v1.down_payment.DownPayment, 1));
2926
+ };
2927
+
2928
+
2929
+ /**
2930
+ * @param {!Array<!proto.prisca.v1.down_payment.DownPayment>} value
2931
+ * @return {!proto.prisca.v1.down_payment.GetListDownPaymentRes} returns this
2932
+ */
2933
+ proto.prisca.v1.down_payment.GetListDownPaymentRes.prototype.setDownPaymentsList = function(value) {
2934
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2935
+ };
2936
+
2937
+
2938
+ /**
2939
+ * @param {!proto.prisca.v1.down_payment.DownPayment=} opt_value
2940
+ * @param {number=} opt_index
2941
+ * @return {!proto.prisca.v1.down_payment.DownPayment}
2942
+ */
2943
+ proto.prisca.v1.down_payment.GetListDownPaymentRes.prototype.addDownPayments = function(opt_value, opt_index) {
2944
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.prisca.v1.down_payment.DownPayment, opt_index);
2945
+ };
2946
+
2947
+
2948
+ /**
2949
+ * Clears the list making it empty but non-null.
2950
+ * @return {!proto.prisca.v1.down_payment.GetListDownPaymentRes} returns this
2951
+ */
2952
+ proto.prisca.v1.down_payment.GetListDownPaymentRes.prototype.clearDownPaymentsList = function() {
2953
+ return this.setDownPaymentsList([]);
2954
+ };
2955
+
2956
+
2957
+ /**
2958
+ * optional prisca.v1.global.meta.Meta meta = 2;
2959
+ * @return {?proto.prisca.v1.global.meta.Meta}
2960
+ */
2961
+ proto.prisca.v1.down_payment.GetListDownPaymentRes.prototype.getMeta = function() {
2962
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2963
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2964
+ };
2965
+
2966
+
2967
+ /**
2968
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2969
+ * @return {!proto.prisca.v1.down_payment.GetListDownPaymentRes} returns this
2970
+ */
2971
+ proto.prisca.v1.down_payment.GetListDownPaymentRes.prototype.setMeta = function(value) {
2972
+ return jspb.Message.setWrapperField(this, 2, value);
2973
+ };
2974
+
2975
+
2976
+ /**
2977
+ * Clears the message field making it undefined.
2978
+ * @return {!proto.prisca.v1.down_payment.GetListDownPaymentRes} returns this
2979
+ */
2980
+ proto.prisca.v1.down_payment.GetListDownPaymentRes.prototype.clearMeta = function() {
2981
+ return this.setMeta(undefined);
2982
+ };
2983
+
2984
+
2985
+ /**
2986
+ * Returns whether this field is set.
2987
+ * @return {boolean}
2988
+ */
2989
+ proto.prisca.v1.down_payment.GetListDownPaymentRes.prototype.hasMeta = function() {
2990
+ return jspb.Message.getField(this, 2) != null;
2991
+ };
2992
+
2993
+
2994
+
2995
+ /**
2996
+ * List of repeated fields within this message type.
2997
+ * @private {!Array<number>}
2998
+ * @const
2999
+ */
3000
+ proto.prisca.v1.down_payment.DeleteDownPaymentReq.repeatedFields_ = [1];
3001
+
3002
+
3003
+
3004
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3005
+ /**
3006
+ * Creates an object representation of this proto.
3007
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3008
+ * Optional fields that are not set will be set to undefined.
3009
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3010
+ * For the list of reserved names please see:
3011
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3012
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3013
+ * JSPB instance for transitional soy proto support:
3014
+ * http://goto/soy-param-migration
3015
+ * @return {!Object}
3016
+ */
3017
+ proto.prisca.v1.down_payment.DeleteDownPaymentReq.prototype.toObject = function(opt_includeInstance) {
3018
+ return proto.prisca.v1.down_payment.DeleteDownPaymentReq.toObject(opt_includeInstance, this);
3019
+ };
3020
+
3021
+
3022
+ /**
3023
+ * Static version of the {@see toObject} method.
3024
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3025
+ * the JSPB instance for transitional soy proto support:
3026
+ * http://goto/soy-param-migration
3027
+ * @param {!proto.prisca.v1.down_payment.DeleteDownPaymentReq} msg The msg instance to transform.
3028
+ * @return {!Object}
3029
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3030
+ */
3031
+ proto.prisca.v1.down_payment.DeleteDownPaymentReq.toObject = function(includeInstance, msg) {
3032
+ var f, obj = {
3033
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
3034
+ };
3035
+
3036
+ if (includeInstance) {
3037
+ obj.$jspbMessageInstance = msg;
3038
+ }
3039
+ return obj;
3040
+ };
3041
+ }
3042
+
3043
+
3044
+ /**
3045
+ * Deserializes binary data (in protobuf wire format).
3046
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3047
+ * @return {!proto.prisca.v1.down_payment.DeleteDownPaymentReq}
3048
+ */
3049
+ proto.prisca.v1.down_payment.DeleteDownPaymentReq.deserializeBinary = function(bytes) {
3050
+ var reader = new jspb.BinaryReader(bytes);
3051
+ var msg = new proto.prisca.v1.down_payment.DeleteDownPaymentReq;
3052
+ return proto.prisca.v1.down_payment.DeleteDownPaymentReq.deserializeBinaryFromReader(msg, reader);
3053
+ };
3054
+
3055
+
3056
+ /**
3057
+ * Deserializes binary data (in protobuf wire format) from the
3058
+ * given reader into the given message object.
3059
+ * @param {!proto.prisca.v1.down_payment.DeleteDownPaymentReq} msg The message object to deserialize into.
3060
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3061
+ * @return {!proto.prisca.v1.down_payment.DeleteDownPaymentReq}
3062
+ */
3063
+ proto.prisca.v1.down_payment.DeleteDownPaymentReq.deserializeBinaryFromReader = function(msg, reader) {
3064
+ while (reader.nextField()) {
3065
+ if (reader.isEndGroup()) {
3066
+ break;
3067
+ }
3068
+ var field = reader.getFieldNumber();
3069
+ switch (field) {
3070
+ case 1:
3071
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3072
+ msg.addReferenceIds(value);
3073
+ break;
3074
+ default:
3075
+ reader.skipField();
3076
+ break;
3077
+ }
3078
+ }
3079
+ return msg;
3080
+ };
3081
+
3082
+
3083
+ /**
3084
+ * Serializes the message to binary data (in protobuf wire format).
3085
+ * @return {!Uint8Array}
3086
+ */
3087
+ proto.prisca.v1.down_payment.DeleteDownPaymentReq.prototype.serializeBinary = function() {
3088
+ var writer = new jspb.BinaryWriter();
3089
+ proto.prisca.v1.down_payment.DeleteDownPaymentReq.serializeBinaryToWriter(this, writer);
3090
+ return writer.getResultBuffer();
3091
+ };
3092
+
3093
+
3094
+ /**
3095
+ * Serializes the given message to binary data (in protobuf wire
3096
+ * format), writing to the given BinaryWriter.
3097
+ * @param {!proto.prisca.v1.down_payment.DeleteDownPaymentReq} message
3098
+ * @param {!jspb.BinaryWriter} writer
3099
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3100
+ */
3101
+ proto.prisca.v1.down_payment.DeleteDownPaymentReq.serializeBinaryToWriter = function(message, writer) {
3102
+ var f = undefined;
3103
+ f = message.getReferenceIdsList();
3104
+ if (f.length > 0) {
3105
+ writer.writeRepeatedString(
3106
+ 1,
3107
+ f
3108
+ );
3109
+ }
3110
+ };
3111
+
3112
+
3113
+ /**
3114
+ * repeated string reference_ids = 1;
3115
+ * @return {!Array<string>}
3116
+ */
3117
+ proto.prisca.v1.down_payment.DeleteDownPaymentReq.prototype.getReferenceIdsList = function() {
3118
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
3119
+ };
3120
+
3121
+
3122
+ /**
3123
+ * @param {!Array<string>} value
3124
+ * @return {!proto.prisca.v1.down_payment.DeleteDownPaymentReq} returns this
3125
+ */
3126
+ proto.prisca.v1.down_payment.DeleteDownPaymentReq.prototype.setReferenceIdsList = function(value) {
3127
+ return jspb.Message.setField(this, 1, value || []);
3128
+ };
3129
+
3130
+
3131
+ /**
3132
+ * @param {string} value
3133
+ * @param {number=} opt_index
3134
+ * @return {!proto.prisca.v1.down_payment.DeleteDownPaymentReq} returns this
3135
+ */
3136
+ proto.prisca.v1.down_payment.DeleteDownPaymentReq.prototype.addReferenceIds = function(value, opt_index) {
3137
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3138
+ };
3139
+
3140
+
3141
+ /**
3142
+ * Clears the list making it empty but non-null.
3143
+ * @return {!proto.prisca.v1.down_payment.DeleteDownPaymentReq} returns this
3144
+ */
3145
+ proto.prisca.v1.down_payment.DeleteDownPaymentReq.prototype.clearReferenceIdsList = function() {
3146
+ return this.setReferenceIdsList([]);
3147
+ };
3148
+
3149
+
3150
+
3151
+ /**
3152
+ * List of repeated fields within this message type.
3153
+ * @private {!Array<number>}
3154
+ * @const
3155
+ */
3156
+ proto.prisca.v1.down_payment.DeleteDownPaymentRes.repeatedFields_ = [1];
3157
+
3158
+
3159
+
3160
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3161
+ /**
3162
+ * Creates an object representation of this proto.
3163
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3164
+ * Optional fields that are not set will be set to undefined.
3165
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3166
+ * For the list of reserved names please see:
3167
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3168
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3169
+ * JSPB instance for transitional soy proto support:
3170
+ * http://goto/soy-param-migration
3171
+ * @return {!Object}
3172
+ */
3173
+ proto.prisca.v1.down_payment.DeleteDownPaymentRes.prototype.toObject = function(opt_includeInstance) {
3174
+ return proto.prisca.v1.down_payment.DeleteDownPaymentRes.toObject(opt_includeInstance, this);
3175
+ };
3176
+
3177
+
3178
+ /**
3179
+ * Static version of the {@see toObject} method.
3180
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3181
+ * the JSPB instance for transitional soy proto support:
3182
+ * http://goto/soy-param-migration
3183
+ * @param {!proto.prisca.v1.down_payment.DeleteDownPaymentRes} msg The msg instance to transform.
3184
+ * @return {!Object}
3185
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3186
+ */
3187
+ proto.prisca.v1.down_payment.DeleteDownPaymentRes.toObject = function(includeInstance, msg) {
3188
+ var f, obj = {
3189
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
3190
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3191
+ };
3192
+
3193
+ if (includeInstance) {
3194
+ obj.$jspbMessageInstance = msg;
3195
+ }
3196
+ return obj;
3197
+ };
3198
+ }
3199
+
3200
+
3201
+ /**
3202
+ * Deserializes binary data (in protobuf wire format).
3203
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3204
+ * @return {!proto.prisca.v1.down_payment.DeleteDownPaymentRes}
3205
+ */
3206
+ proto.prisca.v1.down_payment.DeleteDownPaymentRes.deserializeBinary = function(bytes) {
3207
+ var reader = new jspb.BinaryReader(bytes);
3208
+ var msg = new proto.prisca.v1.down_payment.DeleteDownPaymentRes;
3209
+ return proto.prisca.v1.down_payment.DeleteDownPaymentRes.deserializeBinaryFromReader(msg, reader);
3210
+ };
3211
+
3212
+
3213
+ /**
3214
+ * Deserializes binary data (in protobuf wire format) from the
3215
+ * given reader into the given message object.
3216
+ * @param {!proto.prisca.v1.down_payment.DeleteDownPaymentRes} msg The message object to deserialize into.
3217
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3218
+ * @return {!proto.prisca.v1.down_payment.DeleteDownPaymentRes}
3219
+ */
3220
+ proto.prisca.v1.down_payment.DeleteDownPaymentRes.deserializeBinaryFromReader = function(msg, reader) {
3221
+ while (reader.nextField()) {
3222
+ if (reader.isEndGroup()) {
3223
+ break;
3224
+ }
3225
+ var field = reader.getFieldNumber();
3226
+ switch (field) {
3227
+ case 1:
3228
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3229
+ msg.addReferenceIds(value);
3230
+ break;
3231
+ case 2:
3232
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3233
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3234
+ msg.setMeta(value);
3235
+ break;
3236
+ default:
3237
+ reader.skipField();
3238
+ break;
3239
+ }
3240
+ }
3241
+ return msg;
3242
+ };
3243
+
3244
+
3245
+ /**
3246
+ * Serializes the message to binary data (in protobuf wire format).
3247
+ * @return {!Uint8Array}
3248
+ */
3249
+ proto.prisca.v1.down_payment.DeleteDownPaymentRes.prototype.serializeBinary = function() {
3250
+ var writer = new jspb.BinaryWriter();
3251
+ proto.prisca.v1.down_payment.DeleteDownPaymentRes.serializeBinaryToWriter(this, writer);
3252
+ return writer.getResultBuffer();
3253
+ };
3254
+
3255
+
3256
+ /**
3257
+ * Serializes the given message to binary data (in protobuf wire
3258
+ * format), writing to the given BinaryWriter.
3259
+ * @param {!proto.prisca.v1.down_payment.DeleteDownPaymentRes} message
3260
+ * @param {!jspb.BinaryWriter} writer
3261
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3262
+ */
3263
+ proto.prisca.v1.down_payment.DeleteDownPaymentRes.serializeBinaryToWriter = function(message, writer) {
3264
+ var f = undefined;
3265
+ f = message.getReferenceIdsList();
3266
+ if (f.length > 0) {
3267
+ writer.writeRepeatedString(
3268
+ 1,
3269
+ f
3270
+ );
3271
+ }
3272
+ f = message.getMeta();
3273
+ if (f != null) {
3274
+ writer.writeMessage(
3275
+ 2,
3276
+ f,
3277
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3278
+ );
3279
+ }
3280
+ };
3281
+
3282
+
3283
+ /**
3284
+ * repeated string reference_ids = 1;
3285
+ * @return {!Array<string>}
3286
+ */
3287
+ proto.prisca.v1.down_payment.DeleteDownPaymentRes.prototype.getReferenceIdsList = function() {
3288
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
3289
+ };
3290
+
3291
+
3292
+ /**
3293
+ * @param {!Array<string>} value
3294
+ * @return {!proto.prisca.v1.down_payment.DeleteDownPaymentRes} returns this
3295
+ */
3296
+ proto.prisca.v1.down_payment.DeleteDownPaymentRes.prototype.setReferenceIdsList = function(value) {
3297
+ return jspb.Message.setField(this, 1, value || []);
3298
+ };
3299
+
3300
+
3301
+ /**
3302
+ * @param {string} value
3303
+ * @param {number=} opt_index
3304
+ * @return {!proto.prisca.v1.down_payment.DeleteDownPaymentRes} returns this
3305
+ */
3306
+ proto.prisca.v1.down_payment.DeleteDownPaymentRes.prototype.addReferenceIds = function(value, opt_index) {
3307
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3308
+ };
3309
+
3310
+
3311
+ /**
3312
+ * Clears the list making it empty but non-null.
3313
+ * @return {!proto.prisca.v1.down_payment.DeleteDownPaymentRes} returns this
3314
+ */
3315
+ proto.prisca.v1.down_payment.DeleteDownPaymentRes.prototype.clearReferenceIdsList = function() {
3316
+ return this.setReferenceIdsList([]);
3317
+ };
3318
+
3319
+
3320
+ /**
3321
+ * optional prisca.v1.global.meta.Meta meta = 2;
3322
+ * @return {?proto.prisca.v1.global.meta.Meta}
3323
+ */
3324
+ proto.prisca.v1.down_payment.DeleteDownPaymentRes.prototype.getMeta = function() {
3325
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3326
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3327
+ };
3328
+
3329
+
3330
+ /**
3331
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3332
+ * @return {!proto.prisca.v1.down_payment.DeleteDownPaymentRes} returns this
3333
+ */
3334
+ proto.prisca.v1.down_payment.DeleteDownPaymentRes.prototype.setMeta = function(value) {
3335
+ return jspb.Message.setWrapperField(this, 2, value);
3336
+ };
3337
+
3338
+
3339
+ /**
3340
+ * Clears the message field making it undefined.
3341
+ * @return {!proto.prisca.v1.down_payment.DeleteDownPaymentRes} returns this
3342
+ */
3343
+ proto.prisca.v1.down_payment.DeleteDownPaymentRes.prototype.clearMeta = function() {
3344
+ return this.setMeta(undefined);
3345
+ };
3346
+
3347
+
3348
+ /**
3349
+ * Returns whether this field is set.
3350
+ * @return {boolean}
3351
+ */
3352
+ proto.prisca.v1.down_payment.DeleteDownPaymentRes.prototype.hasMeta = function() {
3353
+ return jspb.Message.getField(this, 2) != null;
3354
+ };
3355
+
3356
+
3357
+ goog.object.extend(exports, proto.prisca.v1.down_payment);