@aldiokta/protocgen 1.1.67 → 1.1.68

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 (74) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/audit_trail/audit_trail_grpc_pb.js +92 -0
  3. package/prisca/v1/audit_trail/audit_trail_pb.js +2107 -0
  4. package/prisca/v1/bidding/bidding_pb.js +61 -1
  5. package/prisca/v1/business_partner/business_partner_grpc_pb.js +334 -0
  6. package/prisca/v1/business_partner/business_partner_pb.js +5244 -0
  7. package/prisca/v1/core/bp_config/bp_config_grpc_pb.js +697 -0
  8. package/prisca/v1/core/bp_config/bp_config_pb.js +10812 -0
  9. package/prisca/v1/core/item_transaction/item_transaction_pb.js +340 -10
  10. package/prisca/v1/core/job_title/job_title_pb.js +31 -1
  11. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +73 -0
  12. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +2027 -0
  13. package/prisca/v1/core/material_sales/material_account_assignment_group_grpc_pb.js +183 -0
  14. package/prisca/v1/core/material_sales/material_account_assignment_group_pb.js +2658 -0
  15. package/prisca/v1/core/material_sales/material_division_grpc_pb.js +199 -0
  16. package/prisca/v1/core/material_sales/material_division_pb.js +2706 -0
  17. package/prisca/v1/core/material_sales/material_item_category_group_grpc_pb.js +183 -0
  18. package/prisca/v1/core/material_sales/material_item_category_group_pb.js +2658 -0
  19. package/prisca/v1/core/material_sales/material_plant_grpc_pb.js +193 -0
  20. package/prisca/v1/core/material_sales/material_plant_pb.js +2757 -0
  21. package/prisca/v1/core/material_sales/material_sales_eligibility_grpc_pb.js +62 -0
  22. package/prisca/v1/core/material_sales/material_sales_eligibility_pb.js +475 -0
  23. package/prisca/v1/core/material_sales/material_sales_org_grpc_pb.js +191 -0
  24. package/prisca/v1/core/material_sales/material_sales_org_pb.js +2937 -0
  25. package/prisca/v1/core/material_sales/material_tax_classification_grpc_pb.js +193 -0
  26. package/prisca/v1/core/material_sales/material_tax_classification_pb.js +2817 -0
  27. package/prisca/v1/core/material_sales/material_tax_classification_value_grpc_pb.js +194 -0
  28. package/prisca/v1/core/material_sales/material_tax_classification_value_pb.js +2868 -0
  29. package/prisca/v1/core/material_sales/material_withholding_tax_group_grpc_pb.js +188 -0
  30. package/prisca/v1/core/material_sales/material_withholding_tax_group_pb.js +2658 -0
  31. package/prisca/v1/core/sales_org/distribution_channel_grpc_pb.js +180 -0
  32. package/prisca/v1/core/sales_org/distribution_channel_pb.js +2658 -0
  33. package/prisca/v1/core/sales_org/sales_address_grpc_pb.js +1 -0
  34. package/prisca/v1/core/sales_org/sales_address_pb.js +380 -0
  35. package/prisca/v1/core/sales_org/sales_area_grpc_pb.js +157 -0
  36. package/prisca/v1/core/sales_org/sales_area_pb.js +2381 -0
  37. package/prisca/v1/core/sales_org/sales_division_grpc_pb.js +180 -0
  38. package/prisca/v1/core/sales_org/sales_division_pb.js +2658 -0
  39. package/prisca/v1/core/sales_org/sales_group_assignment_grpc_pb.js +151 -0
  40. package/prisca/v1/core/sales_org/sales_group_assignment_pb.js +2231 -0
  41. package/prisca/v1/core/sales_org/sales_group_grpc_pb.js +180 -0
  42. package/prisca/v1/core/sales_org/sales_group_pb.js +2658 -0
  43. package/prisca/v1/core/sales_org/sales_office_assignment_grpc_pb.js +151 -0
  44. package/prisca/v1/core/sales_org/sales_office_assignment_pb.js +2231 -0
  45. package/prisca/v1/core/sales_org/sales_office_grpc_pb.js +181 -0
  46. package/prisca/v1/core/sales_org/sales_office_pb.js +2762 -0
  47. package/prisca/v1/core/sales_org/sales_org_distribution_channel_grpc_pb.js +151 -0
  48. package/prisca/v1/core/sales_org/sales_org_distribution_channel_pb.js +2231 -0
  49. package/prisca/v1/core/sales_org/sales_org_division_grpc_pb.js +151 -0
  50. package/prisca/v1/core/sales_org/sales_org_division_pb.js +2231 -0
  51. package/prisca/v1/core/sales_org/sales_org_plant_grpc_pb.js +152 -0
  52. package/prisca/v1/core/sales_org/sales_org_plant_pb.js +2291 -0
  53. package/prisca/v1/core/sales_org/sales_organization_grpc_pb.js +181 -0
  54. package/prisca/v1/core/sales_org/sales_organization_pb.js +2822 -0
  55. package/prisca/v1/core/sales_org/shipping_point_grpc_pb.js +181 -0
  56. package/prisca/v1/core/sales_org/shipping_point_pb.js +2762 -0
  57. package/prisca/v1/core/sales_org/shipping_point_plant_grpc_pb.js +152 -0
  58. package/prisca/v1/core/sales_org/shipping_point_plant_pb.js +2231 -0
  59. package/prisca/v1/core/transaction_type/transaction_type_grpc_pb.js +147 -0
  60. package/prisca/v1/core/transaction_type/transaction_type_pb.js +2587 -0
  61. package/prisca/v1/customer/customer_grpc_pb.js +184 -0
  62. package/prisca/v1/customer/customer_pb.js +3498 -0
  63. package/prisca/v1/customer/customer_registration_grpc_pb.js +93 -0
  64. package/prisca/v1/customer/customer_registration_pb.js +1300 -0
  65. package/prisca/v1/customer/customer_sales_area_grpc_pb.js +256 -0
  66. package/prisca/v1/customer/customer_sales_area_pb.js +4681 -0
  67. package/prisca/v1/delivery_order/delivery_order_pb.js +61 -1
  68. package/prisca/v1/good_receipt/good_receipt_pb.js +31 -1
  69. package/prisca/v1/invoice/invoice_pb.js +62 -2
  70. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +87 -0
  71. package/prisca/v1/purchase_order/purchase_order_pb.js +1015 -5
  72. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +31 -1
  73. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +152 -2
  74. package/prisca/v1/vendor_domain/vendor_domain_pb.js +94 -15
@@ -0,0 +1,2107 @@
1
+ // source: prisca/v1/audit_trail/audit_trail.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = globalThis;
17
+
18
+ var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
19
+ goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
20
+ goog.exportSymbol('proto.AuditTrail', null, global);
21
+ goog.exportSymbol('proto.AuditTrailFilter', null, global);
22
+ goog.exportSymbol('proto.ExportAuditTrailRequest', null, global);
23
+ goog.exportSymbol('proto.ExportAuditTrailResponse', null, global);
24
+ goog.exportSymbol('proto.GetListAuditTrailRequest', null, global);
25
+ goog.exportSymbol('proto.GetListAuditTrailResponse', null, global);
26
+ /**
27
+ * Generated by JsPbCodeGenerator.
28
+ * @param {Array=} opt_data Optional initial data array, typically from a
29
+ * server response, or constructed directly in Javascript. The array is used
30
+ * in place and becomes part of the constructed object. It is not cloned.
31
+ * If no data is provided, the constructed object will be empty, but still
32
+ * valid.
33
+ * @extends {jspb.Message}
34
+ * @constructor
35
+ */
36
+ proto.AuditTrail = function(opt_data) {
37
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.AuditTrail.repeatedFields_, null);
38
+ };
39
+ goog.inherits(proto.AuditTrail, jspb.Message);
40
+ if (goog.DEBUG && !COMPILED) {
41
+ /**
42
+ * @public
43
+ * @override
44
+ */
45
+ proto.AuditTrail.displayName = 'proto.AuditTrail';
46
+ }
47
+ /**
48
+ * Generated by JsPbCodeGenerator.
49
+ * @param {Array=} opt_data Optional initial data array, typically from a
50
+ * server response, or constructed directly in Javascript. The array is used
51
+ * in place and becomes part of the constructed object. It is not cloned.
52
+ * If no data is provided, the constructed object will be empty, but still
53
+ * valid.
54
+ * @extends {jspb.Message}
55
+ * @constructor
56
+ */
57
+ proto.AuditTrailFilter = function(opt_data) {
58
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
59
+ };
60
+ goog.inherits(proto.AuditTrailFilter, jspb.Message);
61
+ if (goog.DEBUG && !COMPILED) {
62
+ /**
63
+ * @public
64
+ * @override
65
+ */
66
+ proto.AuditTrailFilter.displayName = 'proto.AuditTrailFilter';
67
+ }
68
+ /**
69
+ * Generated by JsPbCodeGenerator.
70
+ * @param {Array=} opt_data Optional initial data array, typically from a
71
+ * server response, or constructed directly in Javascript. The array is used
72
+ * in place and becomes part of the constructed object. It is not cloned.
73
+ * If no data is provided, the constructed object will be empty, but still
74
+ * valid.
75
+ * @extends {jspb.Message}
76
+ * @constructor
77
+ */
78
+ proto.GetListAuditTrailRequest = function(opt_data) {
79
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
80
+ };
81
+ goog.inherits(proto.GetListAuditTrailRequest, jspb.Message);
82
+ if (goog.DEBUG && !COMPILED) {
83
+ /**
84
+ * @public
85
+ * @override
86
+ */
87
+ proto.GetListAuditTrailRequest.displayName = 'proto.GetListAuditTrailRequest';
88
+ }
89
+ /**
90
+ * Generated by JsPbCodeGenerator.
91
+ * @param {Array=} opt_data Optional initial data array, typically from a
92
+ * server response, or constructed directly in Javascript. The array is used
93
+ * in place and becomes part of the constructed object. It is not cloned.
94
+ * If no data is provided, the constructed object will be empty, but still
95
+ * valid.
96
+ * @extends {jspb.Message}
97
+ * @constructor
98
+ */
99
+ proto.GetListAuditTrailResponse = function(opt_data) {
100
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListAuditTrailResponse.repeatedFields_, null);
101
+ };
102
+ goog.inherits(proto.GetListAuditTrailResponse, jspb.Message);
103
+ if (goog.DEBUG && !COMPILED) {
104
+ /**
105
+ * @public
106
+ * @override
107
+ */
108
+ proto.GetListAuditTrailResponse.displayName = 'proto.GetListAuditTrailResponse';
109
+ }
110
+ /**
111
+ * Generated by JsPbCodeGenerator.
112
+ * @param {Array=} opt_data Optional initial data array, typically from a
113
+ * server response, or constructed directly in Javascript. The array is used
114
+ * in place and becomes part of the constructed object. It is not cloned.
115
+ * If no data is provided, the constructed object will be empty, but still
116
+ * valid.
117
+ * @extends {jspb.Message}
118
+ * @constructor
119
+ */
120
+ proto.ExportAuditTrailRequest = function(opt_data) {
121
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
122
+ };
123
+ goog.inherits(proto.ExportAuditTrailRequest, jspb.Message);
124
+ if (goog.DEBUG && !COMPILED) {
125
+ /**
126
+ * @public
127
+ * @override
128
+ */
129
+ proto.ExportAuditTrailRequest.displayName = 'proto.ExportAuditTrailRequest';
130
+ }
131
+ /**
132
+ * Generated by JsPbCodeGenerator.
133
+ * @param {Array=} opt_data Optional initial data array, typically from a
134
+ * server response, or constructed directly in Javascript. The array is used
135
+ * in place and becomes part of the constructed object. It is not cloned.
136
+ * If no data is provided, the constructed object will be empty, but still
137
+ * valid.
138
+ * @extends {jspb.Message}
139
+ * @constructor
140
+ */
141
+ proto.ExportAuditTrailResponse = function(opt_data) {
142
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
143
+ };
144
+ goog.inherits(proto.ExportAuditTrailResponse, jspb.Message);
145
+ if (goog.DEBUG && !COMPILED) {
146
+ /**
147
+ * @public
148
+ * @override
149
+ */
150
+ proto.ExportAuditTrailResponse.displayName = 'proto.ExportAuditTrailResponse';
151
+ }
152
+
153
+ /**
154
+ * List of repeated fields within this message type.
155
+ * @private {!Array<number>}
156
+ * @const
157
+ */
158
+ proto.AuditTrail.repeatedFields_ = [14];
159
+
160
+
161
+
162
+ if (jspb.Message.GENERATE_TO_OBJECT) {
163
+ /**
164
+ * Creates an object representation of this proto.
165
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
166
+ * Optional fields that are not set will be set to undefined.
167
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
168
+ * For the list of reserved names please see:
169
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
170
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
171
+ * JSPB instance for transitional soy proto support:
172
+ * http://goto/soy-param-migration
173
+ * @return {!Object}
174
+ */
175
+ proto.AuditTrail.prototype.toObject = function(opt_includeInstance) {
176
+ return proto.AuditTrail.toObject(opt_includeInstance, this);
177
+ };
178
+
179
+
180
+ /**
181
+ * Static version of the {@see toObject} method.
182
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
183
+ * the JSPB instance for transitional soy proto support:
184
+ * http://goto/soy-param-migration
185
+ * @param {!proto.AuditTrail} msg The msg instance to transform.
186
+ * @return {!Object}
187
+ * @suppress {unusedLocalVariables} f is only used for nested messages
188
+ */
189
+ proto.AuditTrail.toObject = function(includeInstance, msg) {
190
+ var f, obj = {
191
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
192
+ referencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
193
+ module: jspb.Message.getFieldWithDefault(msg, 3, ""),
194
+ activityType: jspb.Message.getFieldWithDefault(msg, 4, ""),
195
+ isCritical: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
196
+ objectType: jspb.Message.getFieldWithDefault(msg, 6, ""),
197
+ objectReferencesId: jspb.Message.getFieldWithDefault(msg, 7, ""),
198
+ objectLabel: jspb.Message.getFieldWithDefault(msg, 8, ""),
199
+ fieldName: jspb.Message.getFieldWithDefault(msg, 9, ""),
200
+ oldValue: jspb.Message.getFieldWithDefault(msg, 10, ""),
201
+ newValue: jspb.Message.getFieldWithDefault(msg, 11, ""),
202
+ userReferencesId: jspb.Message.getFieldWithDefault(msg, 12, ""),
203
+ userName: jspb.Message.getFieldWithDefault(msg, 13, ""),
204
+ userRolesList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f,
205
+ requestId: jspb.Message.getFieldWithDefault(msg, 15, ""),
206
+ ipAddress: jspb.Message.getFieldWithDefault(msg, 16, ""),
207
+ userAgent: jspb.Message.getFieldWithDefault(msg, 17, ""),
208
+ result: jspb.Message.getFieldWithDefault(msg, 18, ""),
209
+ rejectReason: jspb.Message.getFieldWithDefault(msg, 19, ""),
210
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 20, ""),
211
+ createdAt: jspb.Message.getFieldWithDefault(msg, 21, "")
212
+ };
213
+
214
+ if (includeInstance) {
215
+ obj.$jspbMessageInstance = msg;
216
+ }
217
+ return obj;
218
+ };
219
+ }
220
+
221
+
222
+ /**
223
+ * Deserializes binary data (in protobuf wire format).
224
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
225
+ * @return {!proto.AuditTrail}
226
+ */
227
+ proto.AuditTrail.deserializeBinary = function(bytes) {
228
+ var reader = new jspb.BinaryReader(bytes);
229
+ var msg = new proto.AuditTrail;
230
+ return proto.AuditTrail.deserializeBinaryFromReader(msg, reader);
231
+ };
232
+
233
+
234
+ /**
235
+ * Deserializes binary data (in protobuf wire format) from the
236
+ * given reader into the given message object.
237
+ * @param {!proto.AuditTrail} msg The message object to deserialize into.
238
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
239
+ * @return {!proto.AuditTrail}
240
+ */
241
+ proto.AuditTrail.deserializeBinaryFromReader = function(msg, reader) {
242
+ while (reader.nextField()) {
243
+ if (reader.isEndGroup()) {
244
+ break;
245
+ }
246
+ var field = reader.getFieldNumber();
247
+ switch (field) {
248
+ case 1:
249
+ var value = /** @type {number} */ (reader.readInt64());
250
+ msg.setId(value);
251
+ break;
252
+ case 2:
253
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
254
+ msg.setReferencesId(value);
255
+ break;
256
+ case 3:
257
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
258
+ msg.setModule(value);
259
+ break;
260
+ case 4:
261
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
262
+ msg.setActivityType(value);
263
+ break;
264
+ case 5:
265
+ var value = /** @type {boolean} */ (reader.readBool());
266
+ msg.setIsCritical(value);
267
+ break;
268
+ case 6:
269
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
270
+ msg.setObjectType(value);
271
+ break;
272
+ case 7:
273
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
274
+ msg.setObjectReferencesId(value);
275
+ break;
276
+ case 8:
277
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
278
+ msg.setObjectLabel(value);
279
+ break;
280
+ case 9:
281
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
282
+ msg.setFieldName(value);
283
+ break;
284
+ case 10:
285
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
286
+ msg.setOldValue(value);
287
+ break;
288
+ case 11:
289
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
290
+ msg.setNewValue(value);
291
+ break;
292
+ case 12:
293
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
294
+ msg.setUserReferencesId(value);
295
+ break;
296
+ case 13:
297
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
298
+ msg.setUserName(value);
299
+ break;
300
+ case 14:
301
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
302
+ msg.addUserRoles(value);
303
+ break;
304
+ case 15:
305
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
306
+ msg.setRequestId(value);
307
+ break;
308
+ case 16:
309
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
310
+ msg.setIpAddress(value);
311
+ break;
312
+ case 17:
313
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
314
+ msg.setUserAgent(value);
315
+ break;
316
+ case 18:
317
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
318
+ msg.setResult(value);
319
+ break;
320
+ case 19:
321
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
322
+ msg.setRejectReason(value);
323
+ break;
324
+ case 20:
325
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
326
+ msg.setCompaniesReferencesId(value);
327
+ break;
328
+ case 21:
329
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
330
+ msg.setCreatedAt(value);
331
+ break;
332
+ default:
333
+ reader.skipField();
334
+ break;
335
+ }
336
+ }
337
+ return msg;
338
+ };
339
+
340
+
341
+ /**
342
+ * Serializes the message to binary data (in protobuf wire format).
343
+ * @return {!Uint8Array}
344
+ */
345
+ proto.AuditTrail.prototype.serializeBinary = function() {
346
+ var writer = new jspb.BinaryWriter();
347
+ proto.AuditTrail.serializeBinaryToWriter(this, writer);
348
+ return writer.getResultBuffer();
349
+ };
350
+
351
+
352
+ /**
353
+ * Serializes the given message to binary data (in protobuf wire
354
+ * format), writing to the given BinaryWriter.
355
+ * @param {!proto.AuditTrail} message
356
+ * @param {!jspb.BinaryWriter} writer
357
+ * @suppress {unusedLocalVariables} f is only used for nested messages
358
+ */
359
+ proto.AuditTrail.serializeBinaryToWriter = function(message, writer) {
360
+ var f = undefined;
361
+ f = message.getId();
362
+ if (f !== 0) {
363
+ writer.writeInt64(
364
+ 1,
365
+ f
366
+ );
367
+ }
368
+ f = message.getReferencesId();
369
+ if (f.length > 0) {
370
+ writer.writeString(
371
+ 2,
372
+ f
373
+ );
374
+ }
375
+ f = message.getModule();
376
+ if (f.length > 0) {
377
+ writer.writeString(
378
+ 3,
379
+ f
380
+ );
381
+ }
382
+ f = message.getActivityType();
383
+ if (f.length > 0) {
384
+ writer.writeString(
385
+ 4,
386
+ f
387
+ );
388
+ }
389
+ f = message.getIsCritical();
390
+ if (f) {
391
+ writer.writeBool(
392
+ 5,
393
+ f
394
+ );
395
+ }
396
+ f = message.getObjectType();
397
+ if (f.length > 0) {
398
+ writer.writeString(
399
+ 6,
400
+ f
401
+ );
402
+ }
403
+ f = message.getObjectReferencesId();
404
+ if (f.length > 0) {
405
+ writer.writeString(
406
+ 7,
407
+ f
408
+ );
409
+ }
410
+ f = message.getObjectLabel();
411
+ if (f.length > 0) {
412
+ writer.writeString(
413
+ 8,
414
+ f
415
+ );
416
+ }
417
+ f = message.getFieldName();
418
+ if (f.length > 0) {
419
+ writer.writeString(
420
+ 9,
421
+ f
422
+ );
423
+ }
424
+ f = message.getOldValue();
425
+ if (f.length > 0) {
426
+ writer.writeString(
427
+ 10,
428
+ f
429
+ );
430
+ }
431
+ f = message.getNewValue();
432
+ if (f.length > 0) {
433
+ writer.writeString(
434
+ 11,
435
+ f
436
+ );
437
+ }
438
+ f = message.getUserReferencesId();
439
+ if (f.length > 0) {
440
+ writer.writeString(
441
+ 12,
442
+ f
443
+ );
444
+ }
445
+ f = message.getUserName();
446
+ if (f.length > 0) {
447
+ writer.writeString(
448
+ 13,
449
+ f
450
+ );
451
+ }
452
+ f = message.getUserRolesList();
453
+ if (f.length > 0) {
454
+ writer.writeRepeatedString(
455
+ 14,
456
+ f
457
+ );
458
+ }
459
+ f = message.getRequestId();
460
+ if (f.length > 0) {
461
+ writer.writeString(
462
+ 15,
463
+ f
464
+ );
465
+ }
466
+ f = message.getIpAddress();
467
+ if (f.length > 0) {
468
+ writer.writeString(
469
+ 16,
470
+ f
471
+ );
472
+ }
473
+ f = message.getUserAgent();
474
+ if (f.length > 0) {
475
+ writer.writeString(
476
+ 17,
477
+ f
478
+ );
479
+ }
480
+ f = message.getResult();
481
+ if (f.length > 0) {
482
+ writer.writeString(
483
+ 18,
484
+ f
485
+ );
486
+ }
487
+ f = message.getRejectReason();
488
+ if (f.length > 0) {
489
+ writer.writeString(
490
+ 19,
491
+ f
492
+ );
493
+ }
494
+ f = message.getCompaniesReferencesId();
495
+ if (f.length > 0) {
496
+ writer.writeString(
497
+ 20,
498
+ f
499
+ );
500
+ }
501
+ f = message.getCreatedAt();
502
+ if (f.length > 0) {
503
+ writer.writeString(
504
+ 21,
505
+ f
506
+ );
507
+ }
508
+ };
509
+
510
+
511
+ /**
512
+ * optional int64 id = 1;
513
+ * @return {number}
514
+ */
515
+ proto.AuditTrail.prototype.getId = function() {
516
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
517
+ };
518
+
519
+
520
+ /**
521
+ * @param {number} value
522
+ * @return {!proto.AuditTrail} returns this
523
+ */
524
+ proto.AuditTrail.prototype.setId = function(value) {
525
+ return jspb.Message.setProto3IntField(this, 1, value);
526
+ };
527
+
528
+
529
+ /**
530
+ * optional string references_id = 2;
531
+ * @return {string}
532
+ */
533
+ proto.AuditTrail.prototype.getReferencesId = function() {
534
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
535
+ };
536
+
537
+
538
+ /**
539
+ * @param {string} value
540
+ * @return {!proto.AuditTrail} returns this
541
+ */
542
+ proto.AuditTrail.prototype.setReferencesId = function(value) {
543
+ return jspb.Message.setProto3StringField(this, 2, value);
544
+ };
545
+
546
+
547
+ /**
548
+ * optional string module = 3;
549
+ * @return {string}
550
+ */
551
+ proto.AuditTrail.prototype.getModule = function() {
552
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
553
+ };
554
+
555
+
556
+ /**
557
+ * @param {string} value
558
+ * @return {!proto.AuditTrail} returns this
559
+ */
560
+ proto.AuditTrail.prototype.setModule = function(value) {
561
+ return jspb.Message.setProto3StringField(this, 3, value);
562
+ };
563
+
564
+
565
+ /**
566
+ * optional string activity_type = 4;
567
+ * @return {string}
568
+ */
569
+ proto.AuditTrail.prototype.getActivityType = function() {
570
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
571
+ };
572
+
573
+
574
+ /**
575
+ * @param {string} value
576
+ * @return {!proto.AuditTrail} returns this
577
+ */
578
+ proto.AuditTrail.prototype.setActivityType = function(value) {
579
+ return jspb.Message.setProto3StringField(this, 4, value);
580
+ };
581
+
582
+
583
+ /**
584
+ * optional bool is_critical = 5;
585
+ * @return {boolean}
586
+ */
587
+ proto.AuditTrail.prototype.getIsCritical = function() {
588
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
589
+ };
590
+
591
+
592
+ /**
593
+ * @param {boolean} value
594
+ * @return {!proto.AuditTrail} returns this
595
+ */
596
+ proto.AuditTrail.prototype.setIsCritical = function(value) {
597
+ return jspb.Message.setProto3BooleanField(this, 5, value);
598
+ };
599
+
600
+
601
+ /**
602
+ * optional string object_type = 6;
603
+ * @return {string}
604
+ */
605
+ proto.AuditTrail.prototype.getObjectType = function() {
606
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
607
+ };
608
+
609
+
610
+ /**
611
+ * @param {string} value
612
+ * @return {!proto.AuditTrail} returns this
613
+ */
614
+ proto.AuditTrail.prototype.setObjectType = function(value) {
615
+ return jspb.Message.setProto3StringField(this, 6, value);
616
+ };
617
+
618
+
619
+ /**
620
+ * optional string object_references_id = 7;
621
+ * @return {string}
622
+ */
623
+ proto.AuditTrail.prototype.getObjectReferencesId = function() {
624
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
625
+ };
626
+
627
+
628
+ /**
629
+ * @param {string} value
630
+ * @return {!proto.AuditTrail} returns this
631
+ */
632
+ proto.AuditTrail.prototype.setObjectReferencesId = function(value) {
633
+ return jspb.Message.setProto3StringField(this, 7, value);
634
+ };
635
+
636
+
637
+ /**
638
+ * optional string object_label = 8;
639
+ * @return {string}
640
+ */
641
+ proto.AuditTrail.prototype.getObjectLabel = function() {
642
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
643
+ };
644
+
645
+
646
+ /**
647
+ * @param {string} value
648
+ * @return {!proto.AuditTrail} returns this
649
+ */
650
+ proto.AuditTrail.prototype.setObjectLabel = function(value) {
651
+ return jspb.Message.setProto3StringField(this, 8, value);
652
+ };
653
+
654
+
655
+ /**
656
+ * optional string field_name = 9;
657
+ * @return {string}
658
+ */
659
+ proto.AuditTrail.prototype.getFieldName = function() {
660
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
661
+ };
662
+
663
+
664
+ /**
665
+ * @param {string} value
666
+ * @return {!proto.AuditTrail} returns this
667
+ */
668
+ proto.AuditTrail.prototype.setFieldName = function(value) {
669
+ return jspb.Message.setProto3StringField(this, 9, value);
670
+ };
671
+
672
+
673
+ /**
674
+ * optional string old_value = 10;
675
+ * @return {string}
676
+ */
677
+ proto.AuditTrail.prototype.getOldValue = function() {
678
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
679
+ };
680
+
681
+
682
+ /**
683
+ * @param {string} value
684
+ * @return {!proto.AuditTrail} returns this
685
+ */
686
+ proto.AuditTrail.prototype.setOldValue = function(value) {
687
+ return jspb.Message.setProto3StringField(this, 10, value);
688
+ };
689
+
690
+
691
+ /**
692
+ * optional string new_value = 11;
693
+ * @return {string}
694
+ */
695
+ proto.AuditTrail.prototype.getNewValue = function() {
696
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
697
+ };
698
+
699
+
700
+ /**
701
+ * @param {string} value
702
+ * @return {!proto.AuditTrail} returns this
703
+ */
704
+ proto.AuditTrail.prototype.setNewValue = function(value) {
705
+ return jspb.Message.setProto3StringField(this, 11, value);
706
+ };
707
+
708
+
709
+ /**
710
+ * optional string user_references_id = 12;
711
+ * @return {string}
712
+ */
713
+ proto.AuditTrail.prototype.getUserReferencesId = function() {
714
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
715
+ };
716
+
717
+
718
+ /**
719
+ * @param {string} value
720
+ * @return {!proto.AuditTrail} returns this
721
+ */
722
+ proto.AuditTrail.prototype.setUserReferencesId = function(value) {
723
+ return jspb.Message.setProto3StringField(this, 12, value);
724
+ };
725
+
726
+
727
+ /**
728
+ * optional string user_name = 13;
729
+ * @return {string}
730
+ */
731
+ proto.AuditTrail.prototype.getUserName = function() {
732
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
733
+ };
734
+
735
+
736
+ /**
737
+ * @param {string} value
738
+ * @return {!proto.AuditTrail} returns this
739
+ */
740
+ proto.AuditTrail.prototype.setUserName = function(value) {
741
+ return jspb.Message.setProto3StringField(this, 13, value);
742
+ };
743
+
744
+
745
+ /**
746
+ * repeated string user_roles = 14;
747
+ * @return {!Array<string>}
748
+ */
749
+ proto.AuditTrail.prototype.getUserRolesList = function() {
750
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 14));
751
+ };
752
+
753
+
754
+ /**
755
+ * @param {!Array<string>} value
756
+ * @return {!proto.AuditTrail} returns this
757
+ */
758
+ proto.AuditTrail.prototype.setUserRolesList = function(value) {
759
+ return jspb.Message.setField(this, 14, value || []);
760
+ };
761
+
762
+
763
+ /**
764
+ * @param {string} value
765
+ * @param {number=} opt_index
766
+ * @return {!proto.AuditTrail} returns this
767
+ */
768
+ proto.AuditTrail.prototype.addUserRoles = function(value, opt_index) {
769
+ return jspb.Message.addToRepeatedField(this, 14, value, opt_index);
770
+ };
771
+
772
+
773
+ /**
774
+ * Clears the list making it empty but non-null.
775
+ * @return {!proto.AuditTrail} returns this
776
+ */
777
+ proto.AuditTrail.prototype.clearUserRolesList = function() {
778
+ return this.setUserRolesList([]);
779
+ };
780
+
781
+
782
+ /**
783
+ * optional string request_id = 15;
784
+ * @return {string}
785
+ */
786
+ proto.AuditTrail.prototype.getRequestId = function() {
787
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
788
+ };
789
+
790
+
791
+ /**
792
+ * @param {string} value
793
+ * @return {!proto.AuditTrail} returns this
794
+ */
795
+ proto.AuditTrail.prototype.setRequestId = function(value) {
796
+ return jspb.Message.setProto3StringField(this, 15, value);
797
+ };
798
+
799
+
800
+ /**
801
+ * optional string ip_address = 16;
802
+ * @return {string}
803
+ */
804
+ proto.AuditTrail.prototype.getIpAddress = function() {
805
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
806
+ };
807
+
808
+
809
+ /**
810
+ * @param {string} value
811
+ * @return {!proto.AuditTrail} returns this
812
+ */
813
+ proto.AuditTrail.prototype.setIpAddress = function(value) {
814
+ return jspb.Message.setProto3StringField(this, 16, value);
815
+ };
816
+
817
+
818
+ /**
819
+ * optional string user_agent = 17;
820
+ * @return {string}
821
+ */
822
+ proto.AuditTrail.prototype.getUserAgent = function() {
823
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
824
+ };
825
+
826
+
827
+ /**
828
+ * @param {string} value
829
+ * @return {!proto.AuditTrail} returns this
830
+ */
831
+ proto.AuditTrail.prototype.setUserAgent = function(value) {
832
+ return jspb.Message.setProto3StringField(this, 17, value);
833
+ };
834
+
835
+
836
+ /**
837
+ * optional string result = 18;
838
+ * @return {string}
839
+ */
840
+ proto.AuditTrail.prototype.getResult = function() {
841
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
842
+ };
843
+
844
+
845
+ /**
846
+ * @param {string} value
847
+ * @return {!proto.AuditTrail} returns this
848
+ */
849
+ proto.AuditTrail.prototype.setResult = function(value) {
850
+ return jspb.Message.setProto3StringField(this, 18, value);
851
+ };
852
+
853
+
854
+ /**
855
+ * optional string reject_reason = 19;
856
+ * @return {string}
857
+ */
858
+ proto.AuditTrail.prototype.getRejectReason = function() {
859
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
860
+ };
861
+
862
+
863
+ /**
864
+ * @param {string} value
865
+ * @return {!proto.AuditTrail} returns this
866
+ */
867
+ proto.AuditTrail.prototype.setRejectReason = function(value) {
868
+ return jspb.Message.setProto3StringField(this, 19, value);
869
+ };
870
+
871
+
872
+ /**
873
+ * optional string companies_references_id = 20;
874
+ * @return {string}
875
+ */
876
+ proto.AuditTrail.prototype.getCompaniesReferencesId = function() {
877
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
878
+ };
879
+
880
+
881
+ /**
882
+ * @param {string} value
883
+ * @return {!proto.AuditTrail} returns this
884
+ */
885
+ proto.AuditTrail.prototype.setCompaniesReferencesId = function(value) {
886
+ return jspb.Message.setProto3StringField(this, 20, value);
887
+ };
888
+
889
+
890
+ /**
891
+ * optional string created_at = 21;
892
+ * @return {string}
893
+ */
894
+ proto.AuditTrail.prototype.getCreatedAt = function() {
895
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
896
+ };
897
+
898
+
899
+ /**
900
+ * @param {string} value
901
+ * @return {!proto.AuditTrail} returns this
902
+ */
903
+ proto.AuditTrail.prototype.setCreatedAt = function(value) {
904
+ return jspb.Message.setProto3StringField(this, 21, value);
905
+ };
906
+
907
+
908
+
909
+
910
+
911
+ if (jspb.Message.GENERATE_TO_OBJECT) {
912
+ /**
913
+ * Creates an object representation of this proto.
914
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
915
+ * Optional fields that are not set will be set to undefined.
916
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
917
+ * For the list of reserved names please see:
918
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
919
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
920
+ * JSPB instance for transitional soy proto support:
921
+ * http://goto/soy-param-migration
922
+ * @return {!Object}
923
+ */
924
+ proto.AuditTrailFilter.prototype.toObject = function(opt_includeInstance) {
925
+ return proto.AuditTrailFilter.toObject(opt_includeInstance, this);
926
+ };
927
+
928
+
929
+ /**
930
+ * Static version of the {@see toObject} method.
931
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
932
+ * the JSPB instance for transitional soy proto support:
933
+ * http://goto/soy-param-migration
934
+ * @param {!proto.AuditTrailFilter} msg The msg instance to transform.
935
+ * @return {!Object}
936
+ * @suppress {unusedLocalVariables} f is only used for nested messages
937
+ */
938
+ proto.AuditTrailFilter.toObject = function(includeInstance, msg) {
939
+ var f, obj = {
940
+ module: jspb.Message.getFieldWithDefault(msg, 1, ""),
941
+ activityType: jspb.Message.getFieldWithDefault(msg, 2, ""),
942
+ objectType: jspb.Message.getFieldWithDefault(msg, 3, ""),
943
+ objectReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
944
+ userReferencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
945
+ onlyCritical: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
946
+ fromDate: jspb.Message.getFieldWithDefault(msg, 7, ""),
947
+ toDate: jspb.Message.getFieldWithDefault(msg, 8, "")
948
+ };
949
+
950
+ if (includeInstance) {
951
+ obj.$jspbMessageInstance = msg;
952
+ }
953
+ return obj;
954
+ };
955
+ }
956
+
957
+
958
+ /**
959
+ * Deserializes binary data (in protobuf wire format).
960
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
961
+ * @return {!proto.AuditTrailFilter}
962
+ */
963
+ proto.AuditTrailFilter.deserializeBinary = function(bytes) {
964
+ var reader = new jspb.BinaryReader(bytes);
965
+ var msg = new proto.AuditTrailFilter;
966
+ return proto.AuditTrailFilter.deserializeBinaryFromReader(msg, reader);
967
+ };
968
+
969
+
970
+ /**
971
+ * Deserializes binary data (in protobuf wire format) from the
972
+ * given reader into the given message object.
973
+ * @param {!proto.AuditTrailFilter} msg The message object to deserialize into.
974
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
975
+ * @return {!proto.AuditTrailFilter}
976
+ */
977
+ proto.AuditTrailFilter.deserializeBinaryFromReader = function(msg, reader) {
978
+ while (reader.nextField()) {
979
+ if (reader.isEndGroup()) {
980
+ break;
981
+ }
982
+ var field = reader.getFieldNumber();
983
+ switch (field) {
984
+ case 1:
985
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
986
+ msg.setModule(value);
987
+ break;
988
+ case 2:
989
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
990
+ msg.setActivityType(value);
991
+ break;
992
+ case 3:
993
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
994
+ msg.setObjectType(value);
995
+ break;
996
+ case 4:
997
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
998
+ msg.setObjectReferencesId(value);
999
+ break;
1000
+ case 5:
1001
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1002
+ msg.setUserReferencesId(value);
1003
+ break;
1004
+ case 6:
1005
+ var value = /** @type {boolean} */ (reader.readBool());
1006
+ msg.setOnlyCritical(value);
1007
+ break;
1008
+ case 7:
1009
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1010
+ msg.setFromDate(value);
1011
+ break;
1012
+ case 8:
1013
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1014
+ msg.setToDate(value);
1015
+ break;
1016
+ default:
1017
+ reader.skipField();
1018
+ break;
1019
+ }
1020
+ }
1021
+ return msg;
1022
+ };
1023
+
1024
+
1025
+ /**
1026
+ * Serializes the message to binary data (in protobuf wire format).
1027
+ * @return {!Uint8Array}
1028
+ */
1029
+ proto.AuditTrailFilter.prototype.serializeBinary = function() {
1030
+ var writer = new jspb.BinaryWriter();
1031
+ proto.AuditTrailFilter.serializeBinaryToWriter(this, writer);
1032
+ return writer.getResultBuffer();
1033
+ };
1034
+
1035
+
1036
+ /**
1037
+ * Serializes the given message to binary data (in protobuf wire
1038
+ * format), writing to the given BinaryWriter.
1039
+ * @param {!proto.AuditTrailFilter} message
1040
+ * @param {!jspb.BinaryWriter} writer
1041
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1042
+ */
1043
+ proto.AuditTrailFilter.serializeBinaryToWriter = function(message, writer) {
1044
+ var f = undefined;
1045
+ f = message.getModule();
1046
+ if (f.length > 0) {
1047
+ writer.writeString(
1048
+ 1,
1049
+ f
1050
+ );
1051
+ }
1052
+ f = message.getActivityType();
1053
+ if (f.length > 0) {
1054
+ writer.writeString(
1055
+ 2,
1056
+ f
1057
+ );
1058
+ }
1059
+ f = message.getObjectType();
1060
+ if (f.length > 0) {
1061
+ writer.writeString(
1062
+ 3,
1063
+ f
1064
+ );
1065
+ }
1066
+ f = message.getObjectReferencesId();
1067
+ if (f.length > 0) {
1068
+ writer.writeString(
1069
+ 4,
1070
+ f
1071
+ );
1072
+ }
1073
+ f = message.getUserReferencesId();
1074
+ if (f.length > 0) {
1075
+ writer.writeString(
1076
+ 5,
1077
+ f
1078
+ );
1079
+ }
1080
+ f = message.getOnlyCritical();
1081
+ if (f) {
1082
+ writer.writeBool(
1083
+ 6,
1084
+ f
1085
+ );
1086
+ }
1087
+ f = message.getFromDate();
1088
+ if (f.length > 0) {
1089
+ writer.writeString(
1090
+ 7,
1091
+ f
1092
+ );
1093
+ }
1094
+ f = message.getToDate();
1095
+ if (f.length > 0) {
1096
+ writer.writeString(
1097
+ 8,
1098
+ f
1099
+ );
1100
+ }
1101
+ };
1102
+
1103
+
1104
+ /**
1105
+ * optional string module = 1;
1106
+ * @return {string}
1107
+ */
1108
+ proto.AuditTrailFilter.prototype.getModule = function() {
1109
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1110
+ };
1111
+
1112
+
1113
+ /**
1114
+ * @param {string} value
1115
+ * @return {!proto.AuditTrailFilter} returns this
1116
+ */
1117
+ proto.AuditTrailFilter.prototype.setModule = function(value) {
1118
+ return jspb.Message.setProto3StringField(this, 1, value);
1119
+ };
1120
+
1121
+
1122
+ /**
1123
+ * optional string activity_type = 2;
1124
+ * @return {string}
1125
+ */
1126
+ proto.AuditTrailFilter.prototype.getActivityType = function() {
1127
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1128
+ };
1129
+
1130
+
1131
+ /**
1132
+ * @param {string} value
1133
+ * @return {!proto.AuditTrailFilter} returns this
1134
+ */
1135
+ proto.AuditTrailFilter.prototype.setActivityType = function(value) {
1136
+ return jspb.Message.setProto3StringField(this, 2, value);
1137
+ };
1138
+
1139
+
1140
+ /**
1141
+ * optional string object_type = 3;
1142
+ * @return {string}
1143
+ */
1144
+ proto.AuditTrailFilter.prototype.getObjectType = function() {
1145
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1146
+ };
1147
+
1148
+
1149
+ /**
1150
+ * @param {string} value
1151
+ * @return {!proto.AuditTrailFilter} returns this
1152
+ */
1153
+ proto.AuditTrailFilter.prototype.setObjectType = function(value) {
1154
+ return jspb.Message.setProto3StringField(this, 3, value);
1155
+ };
1156
+
1157
+
1158
+ /**
1159
+ * optional string object_references_id = 4;
1160
+ * @return {string}
1161
+ */
1162
+ proto.AuditTrailFilter.prototype.getObjectReferencesId = function() {
1163
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1164
+ };
1165
+
1166
+
1167
+ /**
1168
+ * @param {string} value
1169
+ * @return {!proto.AuditTrailFilter} returns this
1170
+ */
1171
+ proto.AuditTrailFilter.prototype.setObjectReferencesId = function(value) {
1172
+ return jspb.Message.setProto3StringField(this, 4, value);
1173
+ };
1174
+
1175
+
1176
+ /**
1177
+ * optional string user_references_id = 5;
1178
+ * @return {string}
1179
+ */
1180
+ proto.AuditTrailFilter.prototype.getUserReferencesId = function() {
1181
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1182
+ };
1183
+
1184
+
1185
+ /**
1186
+ * @param {string} value
1187
+ * @return {!proto.AuditTrailFilter} returns this
1188
+ */
1189
+ proto.AuditTrailFilter.prototype.setUserReferencesId = function(value) {
1190
+ return jspb.Message.setProto3StringField(this, 5, value);
1191
+ };
1192
+
1193
+
1194
+ /**
1195
+ * optional bool only_critical = 6;
1196
+ * @return {boolean}
1197
+ */
1198
+ proto.AuditTrailFilter.prototype.getOnlyCritical = function() {
1199
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
1200
+ };
1201
+
1202
+
1203
+ /**
1204
+ * @param {boolean} value
1205
+ * @return {!proto.AuditTrailFilter} returns this
1206
+ */
1207
+ proto.AuditTrailFilter.prototype.setOnlyCritical = function(value) {
1208
+ return jspb.Message.setProto3BooleanField(this, 6, value);
1209
+ };
1210
+
1211
+
1212
+ /**
1213
+ * optional string from_date = 7;
1214
+ * @return {string}
1215
+ */
1216
+ proto.AuditTrailFilter.prototype.getFromDate = function() {
1217
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1218
+ };
1219
+
1220
+
1221
+ /**
1222
+ * @param {string} value
1223
+ * @return {!proto.AuditTrailFilter} returns this
1224
+ */
1225
+ proto.AuditTrailFilter.prototype.setFromDate = function(value) {
1226
+ return jspb.Message.setProto3StringField(this, 7, value);
1227
+ };
1228
+
1229
+
1230
+ /**
1231
+ * optional string to_date = 8;
1232
+ * @return {string}
1233
+ */
1234
+ proto.AuditTrailFilter.prototype.getToDate = function() {
1235
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1236
+ };
1237
+
1238
+
1239
+ /**
1240
+ * @param {string} value
1241
+ * @return {!proto.AuditTrailFilter} returns this
1242
+ */
1243
+ proto.AuditTrailFilter.prototype.setToDate = function(value) {
1244
+ return jspb.Message.setProto3StringField(this, 8, value);
1245
+ };
1246
+
1247
+
1248
+
1249
+
1250
+
1251
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1252
+ /**
1253
+ * Creates an object representation of this proto.
1254
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1255
+ * Optional fields that are not set will be set to undefined.
1256
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1257
+ * For the list of reserved names please see:
1258
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1259
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1260
+ * JSPB instance for transitional soy proto support:
1261
+ * http://goto/soy-param-migration
1262
+ * @return {!Object}
1263
+ */
1264
+ proto.GetListAuditTrailRequest.prototype.toObject = function(opt_includeInstance) {
1265
+ return proto.GetListAuditTrailRequest.toObject(opt_includeInstance, this);
1266
+ };
1267
+
1268
+
1269
+ /**
1270
+ * Static version of the {@see toObject} method.
1271
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1272
+ * the JSPB instance for transitional soy proto support:
1273
+ * http://goto/soy-param-migration
1274
+ * @param {!proto.GetListAuditTrailRequest} msg The msg instance to transform.
1275
+ * @return {!Object}
1276
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1277
+ */
1278
+ proto.GetListAuditTrailRequest.toObject = function(includeInstance, msg) {
1279
+ var f, obj = {
1280
+ filter: (f = msg.getFilter()) && proto.AuditTrailFilter.toObject(includeInstance, f),
1281
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f)
1282
+ };
1283
+
1284
+ if (includeInstance) {
1285
+ obj.$jspbMessageInstance = msg;
1286
+ }
1287
+ return obj;
1288
+ };
1289
+ }
1290
+
1291
+
1292
+ /**
1293
+ * Deserializes binary data (in protobuf wire format).
1294
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1295
+ * @return {!proto.GetListAuditTrailRequest}
1296
+ */
1297
+ proto.GetListAuditTrailRequest.deserializeBinary = function(bytes) {
1298
+ var reader = new jspb.BinaryReader(bytes);
1299
+ var msg = new proto.GetListAuditTrailRequest;
1300
+ return proto.GetListAuditTrailRequest.deserializeBinaryFromReader(msg, reader);
1301
+ };
1302
+
1303
+
1304
+ /**
1305
+ * Deserializes binary data (in protobuf wire format) from the
1306
+ * given reader into the given message object.
1307
+ * @param {!proto.GetListAuditTrailRequest} msg The message object to deserialize into.
1308
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1309
+ * @return {!proto.GetListAuditTrailRequest}
1310
+ */
1311
+ proto.GetListAuditTrailRequest.deserializeBinaryFromReader = function(msg, reader) {
1312
+ while (reader.nextField()) {
1313
+ if (reader.isEndGroup()) {
1314
+ break;
1315
+ }
1316
+ var field = reader.getFieldNumber();
1317
+ switch (field) {
1318
+ case 1:
1319
+ var value = new proto.AuditTrailFilter;
1320
+ reader.readMessage(value,proto.AuditTrailFilter.deserializeBinaryFromReader);
1321
+ msg.setFilter(value);
1322
+ break;
1323
+ case 2:
1324
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1325
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1326
+ msg.setPagination(value);
1327
+ break;
1328
+ default:
1329
+ reader.skipField();
1330
+ break;
1331
+ }
1332
+ }
1333
+ return msg;
1334
+ };
1335
+
1336
+
1337
+ /**
1338
+ * Serializes the message to binary data (in protobuf wire format).
1339
+ * @return {!Uint8Array}
1340
+ */
1341
+ proto.GetListAuditTrailRequest.prototype.serializeBinary = function() {
1342
+ var writer = new jspb.BinaryWriter();
1343
+ proto.GetListAuditTrailRequest.serializeBinaryToWriter(this, writer);
1344
+ return writer.getResultBuffer();
1345
+ };
1346
+
1347
+
1348
+ /**
1349
+ * Serializes the given message to binary data (in protobuf wire
1350
+ * format), writing to the given BinaryWriter.
1351
+ * @param {!proto.GetListAuditTrailRequest} message
1352
+ * @param {!jspb.BinaryWriter} writer
1353
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1354
+ */
1355
+ proto.GetListAuditTrailRequest.serializeBinaryToWriter = function(message, writer) {
1356
+ var f = undefined;
1357
+ f = message.getFilter();
1358
+ if (f != null) {
1359
+ writer.writeMessage(
1360
+ 1,
1361
+ f,
1362
+ proto.AuditTrailFilter.serializeBinaryToWriter
1363
+ );
1364
+ }
1365
+ f = message.getPagination();
1366
+ if (f != null) {
1367
+ writer.writeMessage(
1368
+ 2,
1369
+ f,
1370
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1371
+ );
1372
+ }
1373
+ };
1374
+
1375
+
1376
+ /**
1377
+ * optional AuditTrailFilter filter = 1;
1378
+ * @return {?proto.AuditTrailFilter}
1379
+ */
1380
+ proto.GetListAuditTrailRequest.prototype.getFilter = function() {
1381
+ return /** @type{?proto.AuditTrailFilter} */ (
1382
+ jspb.Message.getWrapperField(this, proto.AuditTrailFilter, 1));
1383
+ };
1384
+
1385
+
1386
+ /**
1387
+ * @param {?proto.AuditTrailFilter|undefined} value
1388
+ * @return {!proto.GetListAuditTrailRequest} returns this
1389
+ */
1390
+ proto.GetListAuditTrailRequest.prototype.setFilter = function(value) {
1391
+ return jspb.Message.setWrapperField(this, 1, value);
1392
+ };
1393
+
1394
+
1395
+ /**
1396
+ * Clears the message field making it undefined.
1397
+ * @return {!proto.GetListAuditTrailRequest} returns this
1398
+ */
1399
+ proto.GetListAuditTrailRequest.prototype.clearFilter = function() {
1400
+ return this.setFilter(undefined);
1401
+ };
1402
+
1403
+
1404
+ /**
1405
+ * Returns whether this field is set.
1406
+ * @return {boolean}
1407
+ */
1408
+ proto.GetListAuditTrailRequest.prototype.hasFilter = function() {
1409
+ return jspb.Message.getField(this, 1) != null;
1410
+ };
1411
+
1412
+
1413
+ /**
1414
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 2;
1415
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1416
+ */
1417
+ proto.GetListAuditTrailRequest.prototype.getPagination = function() {
1418
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1419
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 2));
1420
+ };
1421
+
1422
+
1423
+ /**
1424
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1425
+ * @return {!proto.GetListAuditTrailRequest} returns this
1426
+ */
1427
+ proto.GetListAuditTrailRequest.prototype.setPagination = function(value) {
1428
+ return jspb.Message.setWrapperField(this, 2, value);
1429
+ };
1430
+
1431
+
1432
+ /**
1433
+ * Clears the message field making it undefined.
1434
+ * @return {!proto.GetListAuditTrailRequest} returns this
1435
+ */
1436
+ proto.GetListAuditTrailRequest.prototype.clearPagination = function() {
1437
+ return this.setPagination(undefined);
1438
+ };
1439
+
1440
+
1441
+ /**
1442
+ * Returns whether this field is set.
1443
+ * @return {boolean}
1444
+ */
1445
+ proto.GetListAuditTrailRequest.prototype.hasPagination = function() {
1446
+ return jspb.Message.getField(this, 2) != null;
1447
+ };
1448
+
1449
+
1450
+
1451
+ /**
1452
+ * List of repeated fields within this message type.
1453
+ * @private {!Array<number>}
1454
+ * @const
1455
+ */
1456
+ proto.GetListAuditTrailResponse.repeatedFields_ = [2];
1457
+
1458
+
1459
+
1460
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1461
+ /**
1462
+ * Creates an object representation of this proto.
1463
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1464
+ * Optional fields that are not set will be set to undefined.
1465
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1466
+ * For the list of reserved names please see:
1467
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1468
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1469
+ * JSPB instance for transitional soy proto support:
1470
+ * http://goto/soy-param-migration
1471
+ * @return {!Object}
1472
+ */
1473
+ proto.GetListAuditTrailResponse.prototype.toObject = function(opt_includeInstance) {
1474
+ return proto.GetListAuditTrailResponse.toObject(opt_includeInstance, this);
1475
+ };
1476
+
1477
+
1478
+ /**
1479
+ * Static version of the {@see toObject} method.
1480
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1481
+ * the JSPB instance for transitional soy proto support:
1482
+ * http://goto/soy-param-migration
1483
+ * @param {!proto.GetListAuditTrailResponse} msg The msg instance to transform.
1484
+ * @return {!Object}
1485
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1486
+ */
1487
+ proto.GetListAuditTrailResponse.toObject = function(includeInstance, msg) {
1488
+ var f, obj = {
1489
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f),
1490
+ dataList: jspb.Message.toObjectList(msg.getDataList(),
1491
+ proto.AuditTrail.toObject, includeInstance)
1492
+ };
1493
+
1494
+ if (includeInstance) {
1495
+ obj.$jspbMessageInstance = msg;
1496
+ }
1497
+ return obj;
1498
+ };
1499
+ }
1500
+
1501
+
1502
+ /**
1503
+ * Deserializes binary data (in protobuf wire format).
1504
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1505
+ * @return {!proto.GetListAuditTrailResponse}
1506
+ */
1507
+ proto.GetListAuditTrailResponse.deserializeBinary = function(bytes) {
1508
+ var reader = new jspb.BinaryReader(bytes);
1509
+ var msg = new proto.GetListAuditTrailResponse;
1510
+ return proto.GetListAuditTrailResponse.deserializeBinaryFromReader(msg, reader);
1511
+ };
1512
+
1513
+
1514
+ /**
1515
+ * Deserializes binary data (in protobuf wire format) from the
1516
+ * given reader into the given message object.
1517
+ * @param {!proto.GetListAuditTrailResponse} msg The message object to deserialize into.
1518
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1519
+ * @return {!proto.GetListAuditTrailResponse}
1520
+ */
1521
+ proto.GetListAuditTrailResponse.deserializeBinaryFromReader = function(msg, reader) {
1522
+ while (reader.nextField()) {
1523
+ if (reader.isEndGroup()) {
1524
+ break;
1525
+ }
1526
+ var field = reader.getFieldNumber();
1527
+ switch (field) {
1528
+ case 1:
1529
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1530
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1531
+ msg.setMeta(value);
1532
+ break;
1533
+ case 2:
1534
+ var value = new proto.AuditTrail;
1535
+ reader.readMessage(value,proto.AuditTrail.deserializeBinaryFromReader);
1536
+ msg.addData(value);
1537
+ break;
1538
+ default:
1539
+ reader.skipField();
1540
+ break;
1541
+ }
1542
+ }
1543
+ return msg;
1544
+ };
1545
+
1546
+
1547
+ /**
1548
+ * Serializes the message to binary data (in protobuf wire format).
1549
+ * @return {!Uint8Array}
1550
+ */
1551
+ proto.GetListAuditTrailResponse.prototype.serializeBinary = function() {
1552
+ var writer = new jspb.BinaryWriter();
1553
+ proto.GetListAuditTrailResponse.serializeBinaryToWriter(this, writer);
1554
+ return writer.getResultBuffer();
1555
+ };
1556
+
1557
+
1558
+ /**
1559
+ * Serializes the given message to binary data (in protobuf wire
1560
+ * format), writing to the given BinaryWriter.
1561
+ * @param {!proto.GetListAuditTrailResponse} message
1562
+ * @param {!jspb.BinaryWriter} writer
1563
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1564
+ */
1565
+ proto.GetListAuditTrailResponse.serializeBinaryToWriter = function(message, writer) {
1566
+ var f = undefined;
1567
+ f = message.getMeta();
1568
+ if (f != null) {
1569
+ writer.writeMessage(
1570
+ 1,
1571
+ f,
1572
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1573
+ );
1574
+ }
1575
+ f = message.getDataList();
1576
+ if (f.length > 0) {
1577
+ writer.writeRepeatedMessage(
1578
+ 2,
1579
+ f,
1580
+ proto.AuditTrail.serializeBinaryToWriter
1581
+ );
1582
+ }
1583
+ };
1584
+
1585
+
1586
+ /**
1587
+ * optional prisca.v1.global.meta.Meta meta = 1;
1588
+ * @return {?proto.prisca.v1.global.meta.Meta}
1589
+ */
1590
+ proto.GetListAuditTrailResponse.prototype.getMeta = function() {
1591
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1592
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 1));
1593
+ };
1594
+
1595
+
1596
+ /**
1597
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1598
+ * @return {!proto.GetListAuditTrailResponse} returns this
1599
+ */
1600
+ proto.GetListAuditTrailResponse.prototype.setMeta = function(value) {
1601
+ return jspb.Message.setWrapperField(this, 1, value);
1602
+ };
1603
+
1604
+
1605
+ /**
1606
+ * Clears the message field making it undefined.
1607
+ * @return {!proto.GetListAuditTrailResponse} returns this
1608
+ */
1609
+ proto.GetListAuditTrailResponse.prototype.clearMeta = function() {
1610
+ return this.setMeta(undefined);
1611
+ };
1612
+
1613
+
1614
+ /**
1615
+ * Returns whether this field is set.
1616
+ * @return {boolean}
1617
+ */
1618
+ proto.GetListAuditTrailResponse.prototype.hasMeta = function() {
1619
+ return jspb.Message.getField(this, 1) != null;
1620
+ };
1621
+
1622
+
1623
+ /**
1624
+ * repeated AuditTrail data = 2;
1625
+ * @return {!Array<!proto.AuditTrail>}
1626
+ */
1627
+ proto.GetListAuditTrailResponse.prototype.getDataList = function() {
1628
+ return /** @type{!Array<!proto.AuditTrail>} */ (
1629
+ jspb.Message.getRepeatedWrapperField(this, proto.AuditTrail, 2));
1630
+ };
1631
+
1632
+
1633
+ /**
1634
+ * @param {!Array<!proto.AuditTrail>} value
1635
+ * @return {!proto.GetListAuditTrailResponse} returns this
1636
+ */
1637
+ proto.GetListAuditTrailResponse.prototype.setDataList = function(value) {
1638
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
1639
+ };
1640
+
1641
+
1642
+ /**
1643
+ * @param {!proto.AuditTrail=} opt_value
1644
+ * @param {number=} opt_index
1645
+ * @return {!proto.AuditTrail}
1646
+ */
1647
+ proto.GetListAuditTrailResponse.prototype.addData = function(opt_value, opt_index) {
1648
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.AuditTrail, opt_index);
1649
+ };
1650
+
1651
+
1652
+ /**
1653
+ * Clears the list making it empty but non-null.
1654
+ * @return {!proto.GetListAuditTrailResponse} returns this
1655
+ */
1656
+ proto.GetListAuditTrailResponse.prototype.clearDataList = function() {
1657
+ return this.setDataList([]);
1658
+ };
1659
+
1660
+
1661
+
1662
+
1663
+
1664
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1665
+ /**
1666
+ * Creates an object representation of this proto.
1667
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1668
+ * Optional fields that are not set will be set to undefined.
1669
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1670
+ * For the list of reserved names please see:
1671
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1672
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1673
+ * JSPB instance for transitional soy proto support:
1674
+ * http://goto/soy-param-migration
1675
+ * @return {!Object}
1676
+ */
1677
+ proto.ExportAuditTrailRequest.prototype.toObject = function(opt_includeInstance) {
1678
+ return proto.ExportAuditTrailRequest.toObject(opt_includeInstance, this);
1679
+ };
1680
+
1681
+
1682
+ /**
1683
+ * Static version of the {@see toObject} method.
1684
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1685
+ * the JSPB instance for transitional soy proto support:
1686
+ * http://goto/soy-param-migration
1687
+ * @param {!proto.ExportAuditTrailRequest} msg The msg instance to transform.
1688
+ * @return {!Object}
1689
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1690
+ */
1691
+ proto.ExportAuditTrailRequest.toObject = function(includeInstance, msg) {
1692
+ var f, obj = {
1693
+ filter: (f = msg.getFilter()) && proto.AuditTrailFilter.toObject(includeInstance, f),
1694
+ format: jspb.Message.getFieldWithDefault(msg, 2, "")
1695
+ };
1696
+
1697
+ if (includeInstance) {
1698
+ obj.$jspbMessageInstance = msg;
1699
+ }
1700
+ return obj;
1701
+ };
1702
+ }
1703
+
1704
+
1705
+ /**
1706
+ * Deserializes binary data (in protobuf wire format).
1707
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1708
+ * @return {!proto.ExportAuditTrailRequest}
1709
+ */
1710
+ proto.ExportAuditTrailRequest.deserializeBinary = function(bytes) {
1711
+ var reader = new jspb.BinaryReader(bytes);
1712
+ var msg = new proto.ExportAuditTrailRequest;
1713
+ return proto.ExportAuditTrailRequest.deserializeBinaryFromReader(msg, reader);
1714
+ };
1715
+
1716
+
1717
+ /**
1718
+ * Deserializes binary data (in protobuf wire format) from the
1719
+ * given reader into the given message object.
1720
+ * @param {!proto.ExportAuditTrailRequest} msg The message object to deserialize into.
1721
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1722
+ * @return {!proto.ExportAuditTrailRequest}
1723
+ */
1724
+ proto.ExportAuditTrailRequest.deserializeBinaryFromReader = function(msg, reader) {
1725
+ while (reader.nextField()) {
1726
+ if (reader.isEndGroup()) {
1727
+ break;
1728
+ }
1729
+ var field = reader.getFieldNumber();
1730
+ switch (field) {
1731
+ case 1:
1732
+ var value = new proto.AuditTrailFilter;
1733
+ reader.readMessage(value,proto.AuditTrailFilter.deserializeBinaryFromReader);
1734
+ msg.setFilter(value);
1735
+ break;
1736
+ case 2:
1737
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1738
+ msg.setFormat(value);
1739
+ break;
1740
+ default:
1741
+ reader.skipField();
1742
+ break;
1743
+ }
1744
+ }
1745
+ return msg;
1746
+ };
1747
+
1748
+
1749
+ /**
1750
+ * Serializes the message to binary data (in protobuf wire format).
1751
+ * @return {!Uint8Array}
1752
+ */
1753
+ proto.ExportAuditTrailRequest.prototype.serializeBinary = function() {
1754
+ var writer = new jspb.BinaryWriter();
1755
+ proto.ExportAuditTrailRequest.serializeBinaryToWriter(this, writer);
1756
+ return writer.getResultBuffer();
1757
+ };
1758
+
1759
+
1760
+ /**
1761
+ * Serializes the given message to binary data (in protobuf wire
1762
+ * format), writing to the given BinaryWriter.
1763
+ * @param {!proto.ExportAuditTrailRequest} message
1764
+ * @param {!jspb.BinaryWriter} writer
1765
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1766
+ */
1767
+ proto.ExportAuditTrailRequest.serializeBinaryToWriter = function(message, writer) {
1768
+ var f = undefined;
1769
+ f = message.getFilter();
1770
+ if (f != null) {
1771
+ writer.writeMessage(
1772
+ 1,
1773
+ f,
1774
+ proto.AuditTrailFilter.serializeBinaryToWriter
1775
+ );
1776
+ }
1777
+ f = message.getFormat();
1778
+ if (f.length > 0) {
1779
+ writer.writeString(
1780
+ 2,
1781
+ f
1782
+ );
1783
+ }
1784
+ };
1785
+
1786
+
1787
+ /**
1788
+ * optional AuditTrailFilter filter = 1;
1789
+ * @return {?proto.AuditTrailFilter}
1790
+ */
1791
+ proto.ExportAuditTrailRequest.prototype.getFilter = function() {
1792
+ return /** @type{?proto.AuditTrailFilter} */ (
1793
+ jspb.Message.getWrapperField(this, proto.AuditTrailFilter, 1));
1794
+ };
1795
+
1796
+
1797
+ /**
1798
+ * @param {?proto.AuditTrailFilter|undefined} value
1799
+ * @return {!proto.ExportAuditTrailRequest} returns this
1800
+ */
1801
+ proto.ExportAuditTrailRequest.prototype.setFilter = function(value) {
1802
+ return jspb.Message.setWrapperField(this, 1, value);
1803
+ };
1804
+
1805
+
1806
+ /**
1807
+ * Clears the message field making it undefined.
1808
+ * @return {!proto.ExportAuditTrailRequest} returns this
1809
+ */
1810
+ proto.ExportAuditTrailRequest.prototype.clearFilter = function() {
1811
+ return this.setFilter(undefined);
1812
+ };
1813
+
1814
+
1815
+ /**
1816
+ * Returns whether this field is set.
1817
+ * @return {boolean}
1818
+ */
1819
+ proto.ExportAuditTrailRequest.prototype.hasFilter = function() {
1820
+ return jspb.Message.getField(this, 1) != null;
1821
+ };
1822
+
1823
+
1824
+ /**
1825
+ * optional string format = 2;
1826
+ * @return {string}
1827
+ */
1828
+ proto.ExportAuditTrailRequest.prototype.getFormat = function() {
1829
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1830
+ };
1831
+
1832
+
1833
+ /**
1834
+ * @param {string} value
1835
+ * @return {!proto.ExportAuditTrailRequest} returns this
1836
+ */
1837
+ proto.ExportAuditTrailRequest.prototype.setFormat = function(value) {
1838
+ return jspb.Message.setProto3StringField(this, 2, value);
1839
+ };
1840
+
1841
+
1842
+
1843
+
1844
+
1845
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1846
+ /**
1847
+ * Creates an object representation of this proto.
1848
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1849
+ * Optional fields that are not set will be set to undefined.
1850
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1851
+ * For the list of reserved names please see:
1852
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1853
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1854
+ * JSPB instance for transitional soy proto support:
1855
+ * http://goto/soy-param-migration
1856
+ * @return {!Object}
1857
+ */
1858
+ proto.ExportAuditTrailResponse.prototype.toObject = function(opt_includeInstance) {
1859
+ return proto.ExportAuditTrailResponse.toObject(opt_includeInstance, this);
1860
+ };
1861
+
1862
+
1863
+ /**
1864
+ * Static version of the {@see toObject} method.
1865
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1866
+ * the JSPB instance for transitional soy proto support:
1867
+ * http://goto/soy-param-migration
1868
+ * @param {!proto.ExportAuditTrailResponse} msg The msg instance to transform.
1869
+ * @return {!Object}
1870
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1871
+ */
1872
+ proto.ExportAuditTrailResponse.toObject = function(includeInstance, msg) {
1873
+ var f, obj = {
1874
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f),
1875
+ content: msg.getContent_asB64(),
1876
+ fileName: jspb.Message.getFieldWithDefault(msg, 3, ""),
1877
+ contentType: jspb.Message.getFieldWithDefault(msg, 4, "")
1878
+ };
1879
+
1880
+ if (includeInstance) {
1881
+ obj.$jspbMessageInstance = msg;
1882
+ }
1883
+ return obj;
1884
+ };
1885
+ }
1886
+
1887
+
1888
+ /**
1889
+ * Deserializes binary data (in protobuf wire format).
1890
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1891
+ * @return {!proto.ExportAuditTrailResponse}
1892
+ */
1893
+ proto.ExportAuditTrailResponse.deserializeBinary = function(bytes) {
1894
+ var reader = new jspb.BinaryReader(bytes);
1895
+ var msg = new proto.ExportAuditTrailResponse;
1896
+ return proto.ExportAuditTrailResponse.deserializeBinaryFromReader(msg, reader);
1897
+ };
1898
+
1899
+
1900
+ /**
1901
+ * Deserializes binary data (in protobuf wire format) from the
1902
+ * given reader into the given message object.
1903
+ * @param {!proto.ExportAuditTrailResponse} msg The message object to deserialize into.
1904
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1905
+ * @return {!proto.ExportAuditTrailResponse}
1906
+ */
1907
+ proto.ExportAuditTrailResponse.deserializeBinaryFromReader = function(msg, reader) {
1908
+ while (reader.nextField()) {
1909
+ if (reader.isEndGroup()) {
1910
+ break;
1911
+ }
1912
+ var field = reader.getFieldNumber();
1913
+ switch (field) {
1914
+ case 1:
1915
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1916
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1917
+ msg.setMeta(value);
1918
+ break;
1919
+ case 2:
1920
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1921
+ msg.setContent(value);
1922
+ break;
1923
+ case 3:
1924
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1925
+ msg.setFileName(value);
1926
+ break;
1927
+ case 4:
1928
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1929
+ msg.setContentType(value);
1930
+ break;
1931
+ default:
1932
+ reader.skipField();
1933
+ break;
1934
+ }
1935
+ }
1936
+ return msg;
1937
+ };
1938
+
1939
+
1940
+ /**
1941
+ * Serializes the message to binary data (in protobuf wire format).
1942
+ * @return {!Uint8Array}
1943
+ */
1944
+ proto.ExportAuditTrailResponse.prototype.serializeBinary = function() {
1945
+ var writer = new jspb.BinaryWriter();
1946
+ proto.ExportAuditTrailResponse.serializeBinaryToWriter(this, writer);
1947
+ return writer.getResultBuffer();
1948
+ };
1949
+
1950
+
1951
+ /**
1952
+ * Serializes the given message to binary data (in protobuf wire
1953
+ * format), writing to the given BinaryWriter.
1954
+ * @param {!proto.ExportAuditTrailResponse} message
1955
+ * @param {!jspb.BinaryWriter} writer
1956
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1957
+ */
1958
+ proto.ExportAuditTrailResponse.serializeBinaryToWriter = function(message, writer) {
1959
+ var f = undefined;
1960
+ f = message.getMeta();
1961
+ if (f != null) {
1962
+ writer.writeMessage(
1963
+ 1,
1964
+ f,
1965
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1966
+ );
1967
+ }
1968
+ f = message.getContent_asU8();
1969
+ if (f.length > 0) {
1970
+ writer.writeBytes(
1971
+ 2,
1972
+ f
1973
+ );
1974
+ }
1975
+ f = message.getFileName();
1976
+ if (f.length > 0) {
1977
+ writer.writeString(
1978
+ 3,
1979
+ f
1980
+ );
1981
+ }
1982
+ f = message.getContentType();
1983
+ if (f.length > 0) {
1984
+ writer.writeString(
1985
+ 4,
1986
+ f
1987
+ );
1988
+ }
1989
+ };
1990
+
1991
+
1992
+ /**
1993
+ * optional prisca.v1.global.meta.Meta meta = 1;
1994
+ * @return {?proto.prisca.v1.global.meta.Meta}
1995
+ */
1996
+ proto.ExportAuditTrailResponse.prototype.getMeta = function() {
1997
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1998
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 1));
1999
+ };
2000
+
2001
+
2002
+ /**
2003
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2004
+ * @return {!proto.ExportAuditTrailResponse} returns this
2005
+ */
2006
+ proto.ExportAuditTrailResponse.prototype.setMeta = function(value) {
2007
+ return jspb.Message.setWrapperField(this, 1, value);
2008
+ };
2009
+
2010
+
2011
+ /**
2012
+ * Clears the message field making it undefined.
2013
+ * @return {!proto.ExportAuditTrailResponse} returns this
2014
+ */
2015
+ proto.ExportAuditTrailResponse.prototype.clearMeta = function() {
2016
+ return this.setMeta(undefined);
2017
+ };
2018
+
2019
+
2020
+ /**
2021
+ * Returns whether this field is set.
2022
+ * @return {boolean}
2023
+ */
2024
+ proto.ExportAuditTrailResponse.prototype.hasMeta = function() {
2025
+ return jspb.Message.getField(this, 1) != null;
2026
+ };
2027
+
2028
+
2029
+ /**
2030
+ * optional bytes content = 2;
2031
+ * @return {!(string|Uint8Array)}
2032
+ */
2033
+ proto.ExportAuditTrailResponse.prototype.getContent = function() {
2034
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2035
+ };
2036
+
2037
+
2038
+ /**
2039
+ * optional bytes content = 2;
2040
+ * This is a type-conversion wrapper around `getContent()`
2041
+ * @return {string}
2042
+ */
2043
+ proto.ExportAuditTrailResponse.prototype.getContent_asB64 = function() {
2044
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
2045
+ this.getContent()));
2046
+ };
2047
+
2048
+
2049
+ /**
2050
+ * optional bytes content = 2;
2051
+ * Note that Uint8Array is not supported on all browsers.
2052
+ * @see http://caniuse.com/Uint8Array
2053
+ * This is a type-conversion wrapper around `getContent()`
2054
+ * @return {!Uint8Array}
2055
+ */
2056
+ proto.ExportAuditTrailResponse.prototype.getContent_asU8 = function() {
2057
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
2058
+ this.getContent()));
2059
+ };
2060
+
2061
+
2062
+ /**
2063
+ * @param {!(string|Uint8Array)} value
2064
+ * @return {!proto.ExportAuditTrailResponse} returns this
2065
+ */
2066
+ proto.ExportAuditTrailResponse.prototype.setContent = function(value) {
2067
+ return jspb.Message.setProto3BytesField(this, 2, value);
2068
+ };
2069
+
2070
+
2071
+ /**
2072
+ * optional string file_name = 3;
2073
+ * @return {string}
2074
+ */
2075
+ proto.ExportAuditTrailResponse.prototype.getFileName = function() {
2076
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2077
+ };
2078
+
2079
+
2080
+ /**
2081
+ * @param {string} value
2082
+ * @return {!proto.ExportAuditTrailResponse} returns this
2083
+ */
2084
+ proto.ExportAuditTrailResponse.prototype.setFileName = function(value) {
2085
+ return jspb.Message.setProto3StringField(this, 3, value);
2086
+ };
2087
+
2088
+
2089
+ /**
2090
+ * optional string content_type = 4;
2091
+ * @return {string}
2092
+ */
2093
+ proto.ExportAuditTrailResponse.prototype.getContentType = function() {
2094
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2095
+ };
2096
+
2097
+
2098
+ /**
2099
+ * @param {string} value
2100
+ * @return {!proto.ExportAuditTrailResponse} returns this
2101
+ */
2102
+ proto.ExportAuditTrailResponse.prototype.setContentType = function(value) {
2103
+ return jspb.Message.setProto3StringField(this, 4, value);
2104
+ };
2105
+
2106
+
2107
+ goog.object.extend(exports, proto);