@aldiokta/protocgen 1.1.52 → 1.1.54

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