@aldiokta/protocgen 1.0.60 → 1.0.61

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