@aldiokta/protocgen 1.0.89 → 1.0.91

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_grpc_pb.js +544 -0
  3. package/prisca/v1/core/access_manager/access_manager_pb.js +9060 -0
  4. package/prisca/v1/core/auth/auth_grpc_pb.js +400 -0
  5. package/prisca/v1/core/auth/auth_pb.js +4253 -0
  6. package/prisca/v1/core/company/company_grpc_pb.js +177 -0
  7. package/prisca/v1/core/company/company_pb.js +2875 -0
  8. package/prisca/v1/core/currency/currency_grpc_pb.js +177 -0
  9. package/prisca/v1/core/currency/currency_pb.js +2522 -0
  10. package/prisca/v1/core/department_material/department_material_grpc_pb.js +144 -0
  11. package/prisca/v1/core/department_material/department_material_pb.js +2167 -0
  12. package/prisca/v1/core/employee/employee_grpc_pb.js +206 -0
  13. package/prisca/v1/core/employee/employee_pb.js +4283 -0
  14. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +66 -0
  15. package/prisca/v1/core/file_upload/file_upload_pb.js +864 -0
  16. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +178 -0
  17. package/prisca/v1/core/job_grade/job_grade_pb.js +2605 -0
  18. package/prisca/v1/core/job_position/job_position_grpc_pb.js +181 -0
  19. package/prisca/v1/core/job_position/job_position_pb.js +3762 -0
  20. package/prisca/v1/core/job_title/job_title_grpc_pb.js +178 -0
  21. package/prisca/v1/core/job_title/job_title_pb.js +2958 -0
  22. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +45 -0
  23. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +1218 -0
  24. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +178 -0
  25. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +2695 -0
  26. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +177 -0
  27. package/prisca/v1/core/link_data_source/link_data_source_pb.js +2612 -0
  28. package/prisca/v1/core/location/location_grpc_pb.js +837 -0
  29. package/prisca/v1/core/location/location_pb.js +10879 -0
  30. package/prisca/v1/core/material/material_grpc_pb.js +182 -0
  31. package/prisca/v1/core/material/material_pb.js +4180 -0
  32. package/prisca/v1/core/material_group/material_group_grpc_pb.js +178 -0
  33. package/prisca/v1/core/material_group/material_group_pb.js +2776 -0
  34. package/prisca/v1/core/material_type/material_type_grpc_pb.js +149 -0
  35. package/prisca/v1/core/material_type/material_type_pb.js +2697 -0
  36. package/prisca/v1/core/messaging/email_template_grpc_pb.js +177 -0
  37. package/prisca/v1/core/messaging/email_template_pb.js +2552 -0
  38. package/prisca/v1/core/messaging/messaging_grpc_pb.js +45 -0
  39. package/prisca/v1/core/messaging/messaging_pb.js +896 -0
  40. package/prisca/v1/core/number_range/number_range_grpc_pb.js +178 -0
  41. package/prisca/v1/core/number_range/number_range_pb.js +2926 -0
  42. package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
  43. package/prisca/v1/core/organization/organization_pb.js +3032 -0
  44. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +178 -0
  45. package/prisca/v1/core/organization_level/organization_level_pb.js +2545 -0
  46. package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
  47. package/prisca/v1/core/procurement/procurement_pb.js +1681 -0
  48. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +266 -0
  49. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_pb.js +4429 -0
  50. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +1 -0
  51. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +206 -0
  52. package/prisca/v1/core/report/report_grpc_pb.js +189 -0
  53. package/prisca/v1/core/report/report_pb.js +2732 -0
  54. package/prisca/v1/core/report/user_report_grpc_pb.js +179 -0
  55. package/prisca/v1/core/report/user_report_pb.js +2452 -0
  56. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
  57. package/prisca/v1/core/tax_code/tax_code_pb.js +2582 -0
  58. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +465 -0
  59. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +10591 -0
  60. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
  61. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2798 -0
  62. package/prisca/v1/core/users/users_grpc_pb.js +45 -0
  63. package/prisca/v1/core/users/users_pb.js +1246 -0
  64. package/prisca/v1/core/work_location/work_location_grpc_pb.js +179 -0
  65. package/prisca/v1/core/work_location/work_location_pb.js +3972 -0
  66. package/prisca/v1/core/workflow/workflow_grpc_pb.js +202 -0
  67. package/prisca/v1/core/workflow/workflow_pb.js +7376 -0
  68. package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
  69. package/prisca/v1/global/meta/meta_pb.js +1179 -0
  70. package/prisca/v1/core/access_manager/access_manager.proto +0 -273
  71. package/prisca/v1/core/auth/auth.proto +0 -142
  72. package/prisca/v1/core/company/company.proto +0 -86
  73. package/prisca/v1/core/currency/currency.proto +0 -76
  74. package/prisca/v1/core/department_material/department_material.proto +0 -69
  75. package/prisca/v1/core/employee/employee.proto +0 -129
  76. package/prisca/v1/core/file_upload/file_upload.proto +0 -31
  77. package/prisca/v1/core/job_grade/job_grade.proto +0 -79
  78. package/prisca/v1/core/job_position/job_position.proto +0 -113
  79. package/prisca/v1/core/job_title/job_title.proto +0 -89
  80. package/prisca/v1/core/line_of_activity/line_of_activity.proto +0 -42
  81. package/prisca/v1/core/line_of_approval/line_of_approval.proto +0 -82
  82. package/prisca/v1/core/link_data_source/link_data_source.proto +0 -78
  83. package/prisca/v1/core/location/location.proto +0 -289
  84. package/prisca/v1/core/material/material.proto +0 -131
  85. package/prisca/v1/core/material_group/material_group.proto +0 -85
  86. package/prisca/v1/core/material_type/material_type.proto +0 -86
  87. package/prisca/v1/core/messaging/email_template.proto +0 -75
  88. package/prisca/v1/core/messaging/messaging.proto +0 -28
  89. package/prisca/v1/core/number_range/number_range.proto +0 -89
  90. package/prisca/v1/core/organization/organization.proto +0 -94
  91. package/prisca/v1/core/organization_level/organization_level.proto +0 -77
  92. package/prisca/v1/core/procurement/procurement.proto +0 -54
  93. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.proto +0 -131
  94. package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
  95. package/prisca/v1/core/report/report.proto +0 -86
  96. package/prisca/v1/core/report/user_report.proto +0 -74
  97. package/prisca/v1/core/tax_code/tax_code.proto +0 -77
  98. package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -314
  99. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
  100. package/prisca/v1/core/users/users.proto +0 -45
  101. package/prisca/v1/core/work_location/work_location.proto +0 -122
  102. package/prisca/v1/core/workflow/workflow.proto +0 -219
  103. package/prisca/v1/global/meta/meta.proto +0 -57
@@ -0,0 +1,1218 @@
1
+ // source: prisca/v1/core/line_of_activity/line_of_activity.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
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.Activity', null, global);
27
+ goog.exportSymbol('proto.ActivityRequest', null, global);
28
+ goog.exportSymbol('proto.ActivityResponse', null, global);
29
+ goog.exportSymbol('proto.DocumentRequest', null, global);
30
+ goog.exportSymbol('proto.LineOfActivity', null, global);
31
+ /**
32
+ * Generated by JsPbCodeGenerator.
33
+ * @param {Array=} opt_data Optional initial data array, typically from a
34
+ * server response, or constructed directly in Javascript. The array is used
35
+ * in place and becomes part of the constructed object. It is not cloned.
36
+ * If no data is provided, the constructed object will be empty, but still
37
+ * valid.
38
+ * @extends {jspb.Message}
39
+ * @constructor
40
+ */
41
+ proto.LineOfActivity = function(opt_data) {
42
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.LineOfActivity.repeatedFields_, null);
43
+ };
44
+ goog.inherits(proto.LineOfActivity, jspb.Message);
45
+ if (goog.DEBUG && !COMPILED) {
46
+ /**
47
+ * @public
48
+ * @override
49
+ */
50
+ proto.LineOfActivity.displayName = 'proto.LineOfActivity';
51
+ }
52
+ /**
53
+ * Generated by JsPbCodeGenerator.
54
+ * @param {Array=} opt_data Optional initial data array, typically from a
55
+ * server response, or constructed directly in Javascript. The array is used
56
+ * in place and becomes part of the constructed object. It is not cloned.
57
+ * If no data is provided, the constructed object will be empty, but still
58
+ * valid.
59
+ * @extends {jspb.Message}
60
+ * @constructor
61
+ */
62
+ proto.Activity = function(opt_data) {
63
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
64
+ };
65
+ goog.inherits(proto.Activity, jspb.Message);
66
+ if (goog.DEBUG && !COMPILED) {
67
+ /**
68
+ * @public
69
+ * @override
70
+ */
71
+ proto.Activity.displayName = 'proto.Activity';
72
+ }
73
+ /**
74
+ * Generated by JsPbCodeGenerator.
75
+ * @param {Array=} opt_data Optional initial data array, typically from a
76
+ * server response, or constructed directly in Javascript. The array is used
77
+ * in place and becomes part of the constructed object. It is not cloned.
78
+ * If no data is provided, the constructed object will be empty, but still
79
+ * valid.
80
+ * @extends {jspb.Message}
81
+ * @constructor
82
+ */
83
+ proto.ActivityRequest = function(opt_data) {
84
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ActivityRequest.repeatedFields_, null);
85
+ };
86
+ goog.inherits(proto.ActivityRequest, jspb.Message);
87
+ if (goog.DEBUG && !COMPILED) {
88
+ /**
89
+ * @public
90
+ * @override
91
+ */
92
+ proto.ActivityRequest.displayName = 'proto.ActivityRequest';
93
+ }
94
+ /**
95
+ * Generated by JsPbCodeGenerator.
96
+ * @param {Array=} opt_data Optional initial data array, typically from a
97
+ * server response, or constructed directly in Javascript. The array is used
98
+ * in place and becomes part of the constructed object. It is not cloned.
99
+ * If no data is provided, the constructed object will be empty, but still
100
+ * valid.
101
+ * @extends {jspb.Message}
102
+ * @constructor
103
+ */
104
+ proto.DocumentRequest = function(opt_data) {
105
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
106
+ };
107
+ goog.inherits(proto.DocumentRequest, jspb.Message);
108
+ if (goog.DEBUG && !COMPILED) {
109
+ /**
110
+ * @public
111
+ * @override
112
+ */
113
+ proto.DocumentRequest.displayName = 'proto.DocumentRequest';
114
+ }
115
+ /**
116
+ * Generated by JsPbCodeGenerator.
117
+ * @param {Array=} opt_data Optional initial data array, typically from a
118
+ * server response, or constructed directly in Javascript. The array is used
119
+ * in place and becomes part of the constructed object. It is not cloned.
120
+ * If no data is provided, the constructed object will be empty, but still
121
+ * valid.
122
+ * @extends {jspb.Message}
123
+ * @constructor
124
+ */
125
+ proto.ActivityResponse = function(opt_data) {
126
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
127
+ };
128
+ goog.inherits(proto.ActivityResponse, jspb.Message);
129
+ if (goog.DEBUG && !COMPILED) {
130
+ /**
131
+ * @public
132
+ * @override
133
+ */
134
+ proto.ActivityResponse.displayName = 'proto.ActivityResponse';
135
+ }
136
+
137
+ /**
138
+ * List of repeated fields within this message type.
139
+ * @private {!Array<number>}
140
+ * @const
141
+ */
142
+ proto.LineOfActivity.repeatedFields_ = [1];
143
+
144
+
145
+
146
+ if (jspb.Message.GENERATE_TO_OBJECT) {
147
+ /**
148
+ * Creates an object representation of this proto.
149
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
150
+ * Optional fields that are not set will be set to undefined.
151
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
152
+ * For the list of reserved names please see:
153
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
154
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
155
+ * JSPB instance for transitional soy proto support:
156
+ * http://goto/soy-param-migration
157
+ * @return {!Object}
158
+ */
159
+ proto.LineOfActivity.prototype.toObject = function(opt_includeInstance) {
160
+ return proto.LineOfActivity.toObject(opt_includeInstance, this);
161
+ };
162
+
163
+
164
+ /**
165
+ * Static version of the {@see toObject} method.
166
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
167
+ * the JSPB instance for transitional soy proto support:
168
+ * http://goto/soy-param-migration
169
+ * @param {!proto.LineOfActivity} msg The msg instance to transform.
170
+ * @return {!Object}
171
+ * @suppress {unusedLocalVariables} f is only used for nested messages
172
+ */
173
+ proto.LineOfActivity.toObject = function(includeInstance, msg) {
174
+ var f, obj = {
175
+ activityList: jspb.Message.toObjectList(msg.getActivityList(),
176
+ proto.Activity.toObject, includeInstance)
177
+ };
178
+
179
+ if (includeInstance) {
180
+ obj.$jspbMessageInstance = msg;
181
+ }
182
+ return obj;
183
+ };
184
+ }
185
+
186
+
187
+ /**
188
+ * Deserializes binary data (in protobuf wire format).
189
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
190
+ * @return {!proto.LineOfActivity}
191
+ */
192
+ proto.LineOfActivity.deserializeBinary = function(bytes) {
193
+ var reader = new jspb.BinaryReader(bytes);
194
+ var msg = new proto.LineOfActivity;
195
+ return proto.LineOfActivity.deserializeBinaryFromReader(msg, reader);
196
+ };
197
+
198
+
199
+ /**
200
+ * Deserializes binary data (in protobuf wire format) from the
201
+ * given reader into the given message object.
202
+ * @param {!proto.LineOfActivity} msg The message object to deserialize into.
203
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
204
+ * @return {!proto.LineOfActivity}
205
+ */
206
+ proto.LineOfActivity.deserializeBinaryFromReader = function(msg, reader) {
207
+ while (reader.nextField()) {
208
+ if (reader.isEndGroup()) {
209
+ break;
210
+ }
211
+ var field = reader.getFieldNumber();
212
+ switch (field) {
213
+ case 1:
214
+ var value = new proto.Activity;
215
+ reader.readMessage(value,proto.Activity.deserializeBinaryFromReader);
216
+ msg.addActivity(value);
217
+ break;
218
+ default:
219
+ reader.skipField();
220
+ break;
221
+ }
222
+ }
223
+ return msg;
224
+ };
225
+
226
+
227
+ /**
228
+ * Serializes the message to binary data (in protobuf wire format).
229
+ * @return {!Uint8Array}
230
+ */
231
+ proto.LineOfActivity.prototype.serializeBinary = function() {
232
+ var writer = new jspb.BinaryWriter();
233
+ proto.LineOfActivity.serializeBinaryToWriter(this, writer);
234
+ return writer.getResultBuffer();
235
+ };
236
+
237
+
238
+ /**
239
+ * Serializes the given message to binary data (in protobuf wire
240
+ * format), writing to the given BinaryWriter.
241
+ * @param {!proto.LineOfActivity} message
242
+ * @param {!jspb.BinaryWriter} writer
243
+ * @suppress {unusedLocalVariables} f is only used for nested messages
244
+ */
245
+ proto.LineOfActivity.serializeBinaryToWriter = function(message, writer) {
246
+ var f = undefined;
247
+ f = message.getActivityList();
248
+ if (f.length > 0) {
249
+ writer.writeRepeatedMessage(
250
+ 1,
251
+ f,
252
+ proto.Activity.serializeBinaryToWriter
253
+ );
254
+ }
255
+ };
256
+
257
+
258
+ /**
259
+ * repeated Activity activity = 1;
260
+ * @return {!Array<!proto.Activity>}
261
+ */
262
+ proto.LineOfActivity.prototype.getActivityList = function() {
263
+ return /** @type{!Array<!proto.Activity>} */ (
264
+ jspb.Message.getRepeatedWrapperField(this, proto.Activity, 1));
265
+ };
266
+
267
+
268
+ /**
269
+ * @param {!Array<!proto.Activity>} value
270
+ * @return {!proto.LineOfActivity} returns this
271
+ */
272
+ proto.LineOfActivity.prototype.setActivityList = function(value) {
273
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
274
+ };
275
+
276
+
277
+ /**
278
+ * @param {!proto.Activity=} opt_value
279
+ * @param {number=} opt_index
280
+ * @return {!proto.Activity}
281
+ */
282
+ proto.LineOfActivity.prototype.addActivity = function(opt_value, opt_index) {
283
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Activity, opt_index);
284
+ };
285
+
286
+
287
+ /**
288
+ * Clears the list making it empty but non-null.
289
+ * @return {!proto.LineOfActivity} returns this
290
+ */
291
+ proto.LineOfActivity.prototype.clearActivityList = function() {
292
+ return this.setActivityList([]);
293
+ };
294
+
295
+
296
+
297
+
298
+
299
+ if (jspb.Message.GENERATE_TO_OBJECT) {
300
+ /**
301
+ * Creates an object representation of this proto.
302
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
303
+ * Optional fields that are not set will be set to undefined.
304
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
305
+ * For the list of reserved names please see:
306
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
307
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
308
+ * JSPB instance for transitional soy proto support:
309
+ * http://goto/soy-param-migration
310
+ * @return {!Object}
311
+ */
312
+ proto.Activity.prototype.toObject = function(opt_includeInstance) {
313
+ return proto.Activity.toObject(opt_includeInstance, this);
314
+ };
315
+
316
+
317
+ /**
318
+ * Static version of the {@see toObject} method.
319
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
320
+ * the JSPB instance for transitional soy proto support:
321
+ * http://goto/soy-param-migration
322
+ * @param {!proto.Activity} msg The msg instance to transform.
323
+ * @return {!Object}
324
+ * @suppress {unusedLocalVariables} f is only used for nested messages
325
+ */
326
+ proto.Activity.toObject = function(includeInstance, msg) {
327
+ var f, obj = {
328
+ action: jspb.Message.getFieldWithDefault(msg, 1, ""),
329
+ actor: jspb.Message.getFieldWithDefault(msg, 2, ""),
330
+ document: jspb.Message.getFieldWithDefault(msg, 3, ""),
331
+ timestamp: jspb.Message.getFieldWithDefault(msg, 4, ""),
332
+ note: jspb.Message.getFieldWithDefault(msg, 5, "")
333
+ };
334
+
335
+ if (includeInstance) {
336
+ obj.$jspbMessageInstance = msg;
337
+ }
338
+ return obj;
339
+ };
340
+ }
341
+
342
+
343
+ /**
344
+ * Deserializes binary data (in protobuf wire format).
345
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
346
+ * @return {!proto.Activity}
347
+ */
348
+ proto.Activity.deserializeBinary = function(bytes) {
349
+ var reader = new jspb.BinaryReader(bytes);
350
+ var msg = new proto.Activity;
351
+ return proto.Activity.deserializeBinaryFromReader(msg, reader);
352
+ };
353
+
354
+
355
+ /**
356
+ * Deserializes binary data (in protobuf wire format) from the
357
+ * given reader into the given message object.
358
+ * @param {!proto.Activity} msg The message object to deserialize into.
359
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
360
+ * @return {!proto.Activity}
361
+ */
362
+ proto.Activity.deserializeBinaryFromReader = function(msg, reader) {
363
+ while (reader.nextField()) {
364
+ if (reader.isEndGroup()) {
365
+ break;
366
+ }
367
+ var field = reader.getFieldNumber();
368
+ switch (field) {
369
+ case 1:
370
+ var value = /** @type {string} */ (reader.readString());
371
+ msg.setAction(value);
372
+ break;
373
+ case 2:
374
+ var value = /** @type {string} */ (reader.readString());
375
+ msg.setActor(value);
376
+ break;
377
+ case 3:
378
+ var value = /** @type {string} */ (reader.readString());
379
+ msg.setDocument(value);
380
+ break;
381
+ case 4:
382
+ var value = /** @type {string} */ (reader.readString());
383
+ msg.setTimestamp(value);
384
+ break;
385
+ case 5:
386
+ var value = /** @type {string} */ (reader.readString());
387
+ msg.setNote(value);
388
+ break;
389
+ default:
390
+ reader.skipField();
391
+ break;
392
+ }
393
+ }
394
+ return msg;
395
+ };
396
+
397
+
398
+ /**
399
+ * Serializes the message to binary data (in protobuf wire format).
400
+ * @return {!Uint8Array}
401
+ */
402
+ proto.Activity.prototype.serializeBinary = function() {
403
+ var writer = new jspb.BinaryWriter();
404
+ proto.Activity.serializeBinaryToWriter(this, writer);
405
+ return writer.getResultBuffer();
406
+ };
407
+
408
+
409
+ /**
410
+ * Serializes the given message to binary data (in protobuf wire
411
+ * format), writing to the given BinaryWriter.
412
+ * @param {!proto.Activity} message
413
+ * @param {!jspb.BinaryWriter} writer
414
+ * @suppress {unusedLocalVariables} f is only used for nested messages
415
+ */
416
+ proto.Activity.serializeBinaryToWriter = function(message, writer) {
417
+ var f = undefined;
418
+ f = message.getAction();
419
+ if (f.length > 0) {
420
+ writer.writeString(
421
+ 1,
422
+ f
423
+ );
424
+ }
425
+ f = message.getActor();
426
+ if (f.length > 0) {
427
+ writer.writeString(
428
+ 2,
429
+ f
430
+ );
431
+ }
432
+ f = message.getDocument();
433
+ if (f.length > 0) {
434
+ writer.writeString(
435
+ 3,
436
+ f
437
+ );
438
+ }
439
+ f = message.getTimestamp();
440
+ if (f.length > 0) {
441
+ writer.writeString(
442
+ 4,
443
+ f
444
+ );
445
+ }
446
+ f = message.getNote();
447
+ if (f.length > 0) {
448
+ writer.writeString(
449
+ 5,
450
+ f
451
+ );
452
+ }
453
+ };
454
+
455
+
456
+ /**
457
+ * optional string action = 1;
458
+ * @return {string}
459
+ */
460
+ proto.Activity.prototype.getAction = function() {
461
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
462
+ };
463
+
464
+
465
+ /**
466
+ * @param {string} value
467
+ * @return {!proto.Activity} returns this
468
+ */
469
+ proto.Activity.prototype.setAction = function(value) {
470
+ return jspb.Message.setProto3StringField(this, 1, value);
471
+ };
472
+
473
+
474
+ /**
475
+ * optional string actor = 2;
476
+ * @return {string}
477
+ */
478
+ proto.Activity.prototype.getActor = function() {
479
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
480
+ };
481
+
482
+
483
+ /**
484
+ * @param {string} value
485
+ * @return {!proto.Activity} returns this
486
+ */
487
+ proto.Activity.prototype.setActor = function(value) {
488
+ return jspb.Message.setProto3StringField(this, 2, value);
489
+ };
490
+
491
+
492
+ /**
493
+ * optional string document = 3;
494
+ * @return {string}
495
+ */
496
+ proto.Activity.prototype.getDocument = function() {
497
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
498
+ };
499
+
500
+
501
+ /**
502
+ * @param {string} value
503
+ * @return {!proto.Activity} returns this
504
+ */
505
+ proto.Activity.prototype.setDocument = function(value) {
506
+ return jspb.Message.setProto3StringField(this, 3, value);
507
+ };
508
+
509
+
510
+ /**
511
+ * optional string timestamp = 4;
512
+ * @return {string}
513
+ */
514
+ proto.Activity.prototype.getTimestamp = function() {
515
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
516
+ };
517
+
518
+
519
+ /**
520
+ * @param {string} value
521
+ * @return {!proto.Activity} returns this
522
+ */
523
+ proto.Activity.prototype.setTimestamp = function(value) {
524
+ return jspb.Message.setProto3StringField(this, 4, value);
525
+ };
526
+
527
+
528
+ /**
529
+ * optional string note = 5;
530
+ * @return {string}
531
+ */
532
+ proto.Activity.prototype.getNote = function() {
533
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
534
+ };
535
+
536
+
537
+ /**
538
+ * @param {string} value
539
+ * @return {!proto.Activity} returns this
540
+ */
541
+ proto.Activity.prototype.setNote = function(value) {
542
+ return jspb.Message.setProto3StringField(this, 5, value);
543
+ };
544
+
545
+
546
+
547
+ /**
548
+ * List of repeated fields within this message type.
549
+ * @private {!Array<number>}
550
+ * @const
551
+ */
552
+ proto.ActivityRequest.repeatedFields_ = [1];
553
+
554
+
555
+
556
+ if (jspb.Message.GENERATE_TO_OBJECT) {
557
+ /**
558
+ * Creates an object representation of this proto.
559
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
560
+ * Optional fields that are not set will be set to undefined.
561
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
562
+ * For the list of reserved names please see:
563
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
564
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
565
+ * JSPB instance for transitional soy proto support:
566
+ * http://goto/soy-param-migration
567
+ * @return {!Object}
568
+ */
569
+ proto.ActivityRequest.prototype.toObject = function(opt_includeInstance) {
570
+ return proto.ActivityRequest.toObject(opt_includeInstance, this);
571
+ };
572
+
573
+
574
+ /**
575
+ * Static version of the {@see toObject} method.
576
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
577
+ * the JSPB instance for transitional soy proto support:
578
+ * http://goto/soy-param-migration
579
+ * @param {!proto.ActivityRequest} msg The msg instance to transform.
580
+ * @return {!Object}
581
+ * @suppress {unusedLocalVariables} f is only used for nested messages
582
+ */
583
+ proto.ActivityRequest.toObject = function(includeInstance, msg) {
584
+ var f, obj = {
585
+ documentsRequestList: jspb.Message.toObjectList(msg.getDocumentsRequestList(),
586
+ proto.DocumentRequest.toObject, includeInstance),
587
+ type: jspb.Message.getFieldWithDefault(msg, 2, "")
588
+ };
589
+
590
+ if (includeInstance) {
591
+ obj.$jspbMessageInstance = msg;
592
+ }
593
+ return obj;
594
+ };
595
+ }
596
+
597
+
598
+ /**
599
+ * Deserializes binary data (in protobuf wire format).
600
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
601
+ * @return {!proto.ActivityRequest}
602
+ */
603
+ proto.ActivityRequest.deserializeBinary = function(bytes) {
604
+ var reader = new jspb.BinaryReader(bytes);
605
+ var msg = new proto.ActivityRequest;
606
+ return proto.ActivityRequest.deserializeBinaryFromReader(msg, reader);
607
+ };
608
+
609
+
610
+ /**
611
+ * Deserializes binary data (in protobuf wire format) from the
612
+ * given reader into the given message object.
613
+ * @param {!proto.ActivityRequest} msg The message object to deserialize into.
614
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
615
+ * @return {!proto.ActivityRequest}
616
+ */
617
+ proto.ActivityRequest.deserializeBinaryFromReader = function(msg, reader) {
618
+ while (reader.nextField()) {
619
+ if (reader.isEndGroup()) {
620
+ break;
621
+ }
622
+ var field = reader.getFieldNumber();
623
+ switch (field) {
624
+ case 1:
625
+ var value = new proto.DocumentRequest;
626
+ reader.readMessage(value,proto.DocumentRequest.deserializeBinaryFromReader);
627
+ msg.addDocumentsRequest(value);
628
+ break;
629
+ case 2:
630
+ var value = /** @type {string} */ (reader.readString());
631
+ msg.setType(value);
632
+ break;
633
+ default:
634
+ reader.skipField();
635
+ break;
636
+ }
637
+ }
638
+ return msg;
639
+ };
640
+
641
+
642
+ /**
643
+ * Serializes the message to binary data (in protobuf wire format).
644
+ * @return {!Uint8Array}
645
+ */
646
+ proto.ActivityRequest.prototype.serializeBinary = function() {
647
+ var writer = new jspb.BinaryWriter();
648
+ proto.ActivityRequest.serializeBinaryToWriter(this, writer);
649
+ return writer.getResultBuffer();
650
+ };
651
+
652
+
653
+ /**
654
+ * Serializes the given message to binary data (in protobuf wire
655
+ * format), writing to the given BinaryWriter.
656
+ * @param {!proto.ActivityRequest} message
657
+ * @param {!jspb.BinaryWriter} writer
658
+ * @suppress {unusedLocalVariables} f is only used for nested messages
659
+ */
660
+ proto.ActivityRequest.serializeBinaryToWriter = function(message, writer) {
661
+ var f = undefined;
662
+ f = message.getDocumentsRequestList();
663
+ if (f.length > 0) {
664
+ writer.writeRepeatedMessage(
665
+ 1,
666
+ f,
667
+ proto.DocumentRequest.serializeBinaryToWriter
668
+ );
669
+ }
670
+ f = message.getType();
671
+ if (f.length > 0) {
672
+ writer.writeString(
673
+ 2,
674
+ f
675
+ );
676
+ }
677
+ };
678
+
679
+
680
+ /**
681
+ * repeated DocumentRequest documents_request = 1;
682
+ * @return {!Array<!proto.DocumentRequest>}
683
+ */
684
+ proto.ActivityRequest.prototype.getDocumentsRequestList = function() {
685
+ return /** @type{!Array<!proto.DocumentRequest>} */ (
686
+ jspb.Message.getRepeatedWrapperField(this, proto.DocumentRequest, 1));
687
+ };
688
+
689
+
690
+ /**
691
+ * @param {!Array<!proto.DocumentRequest>} value
692
+ * @return {!proto.ActivityRequest} returns this
693
+ */
694
+ proto.ActivityRequest.prototype.setDocumentsRequestList = function(value) {
695
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
696
+ };
697
+
698
+
699
+ /**
700
+ * @param {!proto.DocumentRequest=} opt_value
701
+ * @param {number=} opt_index
702
+ * @return {!proto.DocumentRequest}
703
+ */
704
+ proto.ActivityRequest.prototype.addDocumentsRequest = function(opt_value, opt_index) {
705
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.DocumentRequest, opt_index);
706
+ };
707
+
708
+
709
+ /**
710
+ * Clears the list making it empty but non-null.
711
+ * @return {!proto.ActivityRequest} returns this
712
+ */
713
+ proto.ActivityRequest.prototype.clearDocumentsRequestList = function() {
714
+ return this.setDocumentsRequestList([]);
715
+ };
716
+
717
+
718
+ /**
719
+ * optional string type = 2;
720
+ * @return {string}
721
+ */
722
+ proto.ActivityRequest.prototype.getType = function() {
723
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
724
+ };
725
+
726
+
727
+ /**
728
+ * @param {string} value
729
+ * @return {!proto.ActivityRequest} returns this
730
+ */
731
+ proto.ActivityRequest.prototype.setType = function(value) {
732
+ return jspb.Message.setProto3StringField(this, 2, value);
733
+ };
734
+
735
+
736
+
737
+
738
+
739
+ if (jspb.Message.GENERATE_TO_OBJECT) {
740
+ /**
741
+ * Creates an object representation of this proto.
742
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
743
+ * Optional fields that are not set will be set to undefined.
744
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
745
+ * For the list of reserved names please see:
746
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
747
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
748
+ * JSPB instance for transitional soy proto support:
749
+ * http://goto/soy-param-migration
750
+ * @return {!Object}
751
+ */
752
+ proto.DocumentRequest.prototype.toObject = function(opt_includeInstance) {
753
+ return proto.DocumentRequest.toObject(opt_includeInstance, this);
754
+ };
755
+
756
+
757
+ /**
758
+ * Static version of the {@see toObject} method.
759
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
760
+ * the JSPB instance for transitional soy proto support:
761
+ * http://goto/soy-param-migration
762
+ * @param {!proto.DocumentRequest} msg The msg instance to transform.
763
+ * @return {!Object}
764
+ * @suppress {unusedLocalVariables} f is only used for nested messages
765
+ */
766
+ proto.DocumentRequest.toObject = function(includeInstance, msg) {
767
+ var f, obj = {
768
+ documentsRefereneces: jspb.Message.getFieldWithDefault(msg, 1, ""),
769
+ status: jspb.Message.getFieldWithDefault(msg, 2, ""),
770
+ createdAt: jspb.Message.getFieldWithDefault(msg, 3, ""),
771
+ createdBy: jspb.Message.getFieldWithDefault(msg, 4, ""),
772
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 5, ""),
773
+ updatedBy: jspb.Message.getFieldWithDefault(msg, 6, "")
774
+ };
775
+
776
+ if (includeInstance) {
777
+ obj.$jspbMessageInstance = msg;
778
+ }
779
+ return obj;
780
+ };
781
+ }
782
+
783
+
784
+ /**
785
+ * Deserializes binary data (in protobuf wire format).
786
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
787
+ * @return {!proto.DocumentRequest}
788
+ */
789
+ proto.DocumentRequest.deserializeBinary = function(bytes) {
790
+ var reader = new jspb.BinaryReader(bytes);
791
+ var msg = new proto.DocumentRequest;
792
+ return proto.DocumentRequest.deserializeBinaryFromReader(msg, reader);
793
+ };
794
+
795
+
796
+ /**
797
+ * Deserializes binary data (in protobuf wire format) from the
798
+ * given reader into the given message object.
799
+ * @param {!proto.DocumentRequest} msg The message object to deserialize into.
800
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
801
+ * @return {!proto.DocumentRequest}
802
+ */
803
+ proto.DocumentRequest.deserializeBinaryFromReader = function(msg, reader) {
804
+ while (reader.nextField()) {
805
+ if (reader.isEndGroup()) {
806
+ break;
807
+ }
808
+ var field = reader.getFieldNumber();
809
+ switch (field) {
810
+ case 1:
811
+ var value = /** @type {string} */ (reader.readString());
812
+ msg.setDocumentsRefereneces(value);
813
+ break;
814
+ case 2:
815
+ var value = /** @type {string} */ (reader.readString());
816
+ msg.setStatus(value);
817
+ break;
818
+ case 3:
819
+ var value = /** @type {string} */ (reader.readString());
820
+ msg.setCreatedAt(value);
821
+ break;
822
+ case 4:
823
+ var value = /** @type {string} */ (reader.readString());
824
+ msg.setCreatedBy(value);
825
+ break;
826
+ case 5:
827
+ var value = /** @type {string} */ (reader.readString());
828
+ msg.setUpdatedAt(value);
829
+ break;
830
+ case 6:
831
+ var value = /** @type {string} */ (reader.readString());
832
+ msg.setUpdatedBy(value);
833
+ break;
834
+ default:
835
+ reader.skipField();
836
+ break;
837
+ }
838
+ }
839
+ return msg;
840
+ };
841
+
842
+
843
+ /**
844
+ * Serializes the message to binary data (in protobuf wire format).
845
+ * @return {!Uint8Array}
846
+ */
847
+ proto.DocumentRequest.prototype.serializeBinary = function() {
848
+ var writer = new jspb.BinaryWriter();
849
+ proto.DocumentRequest.serializeBinaryToWriter(this, writer);
850
+ return writer.getResultBuffer();
851
+ };
852
+
853
+
854
+ /**
855
+ * Serializes the given message to binary data (in protobuf wire
856
+ * format), writing to the given BinaryWriter.
857
+ * @param {!proto.DocumentRequest} message
858
+ * @param {!jspb.BinaryWriter} writer
859
+ * @suppress {unusedLocalVariables} f is only used for nested messages
860
+ */
861
+ proto.DocumentRequest.serializeBinaryToWriter = function(message, writer) {
862
+ var f = undefined;
863
+ f = message.getDocumentsRefereneces();
864
+ if (f.length > 0) {
865
+ writer.writeString(
866
+ 1,
867
+ f
868
+ );
869
+ }
870
+ f = message.getStatus();
871
+ if (f.length > 0) {
872
+ writer.writeString(
873
+ 2,
874
+ f
875
+ );
876
+ }
877
+ f = message.getCreatedAt();
878
+ if (f.length > 0) {
879
+ writer.writeString(
880
+ 3,
881
+ f
882
+ );
883
+ }
884
+ f = message.getCreatedBy();
885
+ if (f.length > 0) {
886
+ writer.writeString(
887
+ 4,
888
+ f
889
+ );
890
+ }
891
+ f = message.getUpdatedAt();
892
+ if (f.length > 0) {
893
+ writer.writeString(
894
+ 5,
895
+ f
896
+ );
897
+ }
898
+ f = message.getUpdatedBy();
899
+ if (f.length > 0) {
900
+ writer.writeString(
901
+ 6,
902
+ f
903
+ );
904
+ }
905
+ };
906
+
907
+
908
+ /**
909
+ * optional string documents_refereneces = 1;
910
+ * @return {string}
911
+ */
912
+ proto.DocumentRequest.prototype.getDocumentsRefereneces = function() {
913
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
914
+ };
915
+
916
+
917
+ /**
918
+ * @param {string} value
919
+ * @return {!proto.DocumentRequest} returns this
920
+ */
921
+ proto.DocumentRequest.prototype.setDocumentsRefereneces = function(value) {
922
+ return jspb.Message.setProto3StringField(this, 1, value);
923
+ };
924
+
925
+
926
+ /**
927
+ * optional string status = 2;
928
+ * @return {string}
929
+ */
930
+ proto.DocumentRequest.prototype.getStatus = function() {
931
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
932
+ };
933
+
934
+
935
+ /**
936
+ * @param {string} value
937
+ * @return {!proto.DocumentRequest} returns this
938
+ */
939
+ proto.DocumentRequest.prototype.setStatus = function(value) {
940
+ return jspb.Message.setProto3StringField(this, 2, value);
941
+ };
942
+
943
+
944
+ /**
945
+ * optional string created_at = 3;
946
+ * @return {string}
947
+ */
948
+ proto.DocumentRequest.prototype.getCreatedAt = function() {
949
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
950
+ };
951
+
952
+
953
+ /**
954
+ * @param {string} value
955
+ * @return {!proto.DocumentRequest} returns this
956
+ */
957
+ proto.DocumentRequest.prototype.setCreatedAt = function(value) {
958
+ return jspb.Message.setProto3StringField(this, 3, value);
959
+ };
960
+
961
+
962
+ /**
963
+ * optional string created_by = 4;
964
+ * @return {string}
965
+ */
966
+ proto.DocumentRequest.prototype.getCreatedBy = function() {
967
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
968
+ };
969
+
970
+
971
+ /**
972
+ * @param {string} value
973
+ * @return {!proto.DocumentRequest} returns this
974
+ */
975
+ proto.DocumentRequest.prototype.setCreatedBy = function(value) {
976
+ return jspb.Message.setProto3StringField(this, 4, value);
977
+ };
978
+
979
+
980
+ /**
981
+ * optional string updated_at = 5;
982
+ * @return {string}
983
+ */
984
+ proto.DocumentRequest.prototype.getUpdatedAt = function() {
985
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
986
+ };
987
+
988
+
989
+ /**
990
+ * @param {string} value
991
+ * @return {!proto.DocumentRequest} returns this
992
+ */
993
+ proto.DocumentRequest.prototype.setUpdatedAt = function(value) {
994
+ return jspb.Message.setProto3StringField(this, 5, value);
995
+ };
996
+
997
+
998
+ /**
999
+ * optional string updated_by = 6;
1000
+ * @return {string}
1001
+ */
1002
+ proto.DocumentRequest.prototype.getUpdatedBy = function() {
1003
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1004
+ };
1005
+
1006
+
1007
+ /**
1008
+ * @param {string} value
1009
+ * @return {!proto.DocumentRequest} returns this
1010
+ */
1011
+ proto.DocumentRequest.prototype.setUpdatedBy = function(value) {
1012
+ return jspb.Message.setProto3StringField(this, 6, value);
1013
+ };
1014
+
1015
+
1016
+
1017
+
1018
+
1019
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1020
+ /**
1021
+ * Creates an object representation of this proto.
1022
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1023
+ * Optional fields that are not set will be set to undefined.
1024
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1025
+ * For the list of reserved names please see:
1026
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1027
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1028
+ * JSPB instance for transitional soy proto support:
1029
+ * http://goto/soy-param-migration
1030
+ * @return {!Object}
1031
+ */
1032
+ proto.ActivityResponse.prototype.toObject = function(opt_includeInstance) {
1033
+ return proto.ActivityResponse.toObject(opt_includeInstance, this);
1034
+ };
1035
+
1036
+
1037
+ /**
1038
+ * Static version of the {@see toObject} method.
1039
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1040
+ * the JSPB instance for transitional soy proto support:
1041
+ * http://goto/soy-param-migration
1042
+ * @param {!proto.ActivityResponse} msg The msg instance to transform.
1043
+ * @return {!Object}
1044
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1045
+ */
1046
+ proto.ActivityResponse.toObject = function(includeInstance, msg) {
1047
+ var f, obj = {
1048
+ lineOfActivity: (f = msg.getLineOfActivity()) && proto.LineOfActivity.toObject(includeInstance, f),
1049
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1050
+ };
1051
+
1052
+ if (includeInstance) {
1053
+ obj.$jspbMessageInstance = msg;
1054
+ }
1055
+ return obj;
1056
+ };
1057
+ }
1058
+
1059
+
1060
+ /**
1061
+ * Deserializes binary data (in protobuf wire format).
1062
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1063
+ * @return {!proto.ActivityResponse}
1064
+ */
1065
+ proto.ActivityResponse.deserializeBinary = function(bytes) {
1066
+ var reader = new jspb.BinaryReader(bytes);
1067
+ var msg = new proto.ActivityResponse;
1068
+ return proto.ActivityResponse.deserializeBinaryFromReader(msg, reader);
1069
+ };
1070
+
1071
+
1072
+ /**
1073
+ * Deserializes binary data (in protobuf wire format) from the
1074
+ * given reader into the given message object.
1075
+ * @param {!proto.ActivityResponse} msg The message object to deserialize into.
1076
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1077
+ * @return {!proto.ActivityResponse}
1078
+ */
1079
+ proto.ActivityResponse.deserializeBinaryFromReader = function(msg, reader) {
1080
+ while (reader.nextField()) {
1081
+ if (reader.isEndGroup()) {
1082
+ break;
1083
+ }
1084
+ var field = reader.getFieldNumber();
1085
+ switch (field) {
1086
+ case 1:
1087
+ var value = new proto.LineOfActivity;
1088
+ reader.readMessage(value,proto.LineOfActivity.deserializeBinaryFromReader);
1089
+ msg.setLineOfActivity(value);
1090
+ break;
1091
+ case 2:
1092
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1093
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1094
+ msg.setMeta(value);
1095
+ break;
1096
+ default:
1097
+ reader.skipField();
1098
+ break;
1099
+ }
1100
+ }
1101
+ return msg;
1102
+ };
1103
+
1104
+
1105
+ /**
1106
+ * Serializes the message to binary data (in protobuf wire format).
1107
+ * @return {!Uint8Array}
1108
+ */
1109
+ proto.ActivityResponse.prototype.serializeBinary = function() {
1110
+ var writer = new jspb.BinaryWriter();
1111
+ proto.ActivityResponse.serializeBinaryToWriter(this, writer);
1112
+ return writer.getResultBuffer();
1113
+ };
1114
+
1115
+
1116
+ /**
1117
+ * Serializes the given message to binary data (in protobuf wire
1118
+ * format), writing to the given BinaryWriter.
1119
+ * @param {!proto.ActivityResponse} message
1120
+ * @param {!jspb.BinaryWriter} writer
1121
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1122
+ */
1123
+ proto.ActivityResponse.serializeBinaryToWriter = function(message, writer) {
1124
+ var f = undefined;
1125
+ f = message.getLineOfActivity();
1126
+ if (f != null) {
1127
+ writer.writeMessage(
1128
+ 1,
1129
+ f,
1130
+ proto.LineOfActivity.serializeBinaryToWriter
1131
+ );
1132
+ }
1133
+ f = message.getMeta();
1134
+ if (f != null) {
1135
+ writer.writeMessage(
1136
+ 2,
1137
+ f,
1138
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1139
+ );
1140
+ }
1141
+ };
1142
+
1143
+
1144
+ /**
1145
+ * optional LineOfActivity line_of_activity = 1;
1146
+ * @return {?proto.LineOfActivity}
1147
+ */
1148
+ proto.ActivityResponse.prototype.getLineOfActivity = function() {
1149
+ return /** @type{?proto.LineOfActivity} */ (
1150
+ jspb.Message.getWrapperField(this, proto.LineOfActivity, 1));
1151
+ };
1152
+
1153
+
1154
+ /**
1155
+ * @param {?proto.LineOfActivity|undefined} value
1156
+ * @return {!proto.ActivityResponse} returns this
1157
+ */
1158
+ proto.ActivityResponse.prototype.setLineOfActivity = function(value) {
1159
+ return jspb.Message.setWrapperField(this, 1, value);
1160
+ };
1161
+
1162
+
1163
+ /**
1164
+ * Clears the message field making it undefined.
1165
+ * @return {!proto.ActivityResponse} returns this
1166
+ */
1167
+ proto.ActivityResponse.prototype.clearLineOfActivity = function() {
1168
+ return this.setLineOfActivity(undefined);
1169
+ };
1170
+
1171
+
1172
+ /**
1173
+ * Returns whether this field is set.
1174
+ * @return {boolean}
1175
+ */
1176
+ proto.ActivityResponse.prototype.hasLineOfActivity = function() {
1177
+ return jspb.Message.getField(this, 1) != null;
1178
+ };
1179
+
1180
+
1181
+ /**
1182
+ * optional prisca.v1.global.meta.Meta meta = 2;
1183
+ * @return {?proto.prisca.v1.global.meta.Meta}
1184
+ */
1185
+ proto.ActivityResponse.prototype.getMeta = function() {
1186
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1187
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1188
+ };
1189
+
1190
+
1191
+ /**
1192
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1193
+ * @return {!proto.ActivityResponse} returns this
1194
+ */
1195
+ proto.ActivityResponse.prototype.setMeta = function(value) {
1196
+ return jspb.Message.setWrapperField(this, 2, value);
1197
+ };
1198
+
1199
+
1200
+ /**
1201
+ * Clears the message field making it undefined.
1202
+ * @return {!proto.ActivityResponse} returns this
1203
+ */
1204
+ proto.ActivityResponse.prototype.clearMeta = function() {
1205
+ return this.setMeta(undefined);
1206
+ };
1207
+
1208
+
1209
+ /**
1210
+ * Returns whether this field is set.
1211
+ * @return {boolean}
1212
+ */
1213
+ proto.ActivityResponse.prototype.hasMeta = function() {
1214
+ return jspb.Message.getField(this, 2) != null;
1215
+ };
1216
+
1217
+
1218
+ goog.object.extend(exports, proto);