@aldiokta/protocgen 1.0.87 → 1.0.89

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