@aldiokta/protocgen 1.1.52 → 1.1.53

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