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