@aldiokta/protocgen 1.0.32 → 1.0.34

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 (73) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/core/auth/auth_grpc_pb.js +311 -0
  3. package/prisca/v1/core/auth/auth_pb.js +3236 -0
  4. package/prisca/v1/core/company/company_grpc_pb.js +177 -0
  5. package/prisca/v1/core/company/company_pb.js +2875 -0
  6. package/prisca/v1/core/department_material/department_material_grpc_pb.js +144 -0
  7. package/prisca/v1/core/department_material/department_material_pb.js +2167 -0
  8. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +178 -0
  9. package/prisca/v1/core/job_grade/job_grade_pb.js +2605 -0
  10. package/prisca/v1/core/job_position/job_position_grpc_pb.js +181 -0
  11. package/prisca/v1/core/job_position/job_position_pb.js +3732 -0
  12. package/prisca/v1/core/job_title/job_title_grpc_pb.js +178 -0
  13. package/prisca/v1/core/job_title/job_title_pb.js +2928 -0
  14. package/prisca/v1/core/location/location_grpc_pb.js +837 -0
  15. package/prisca/v1/core/location/location_pb.js +10879 -0
  16. package/prisca/v1/core/material/material_grpc_pb.js +181 -0
  17. package/prisca/v1/core/material/material_pb.js +4076 -0
  18. package/prisca/v1/core/material_group/material_group_grpc_pb.js +177 -0
  19. package/prisca/v1/core/material_group/material_group_pb.js +2582 -0
  20. package/prisca/v1/core/material_type/material_type_grpc_pb.js +147 -0
  21. package/prisca/v1/core/material_type/material_type_pb.js +2399 -0
  22. package/prisca/v1/core/number_range/number_range_grpc_pb.js +177 -0
  23. package/prisca/v1/core/number_range/number_range_pb.js +2672 -0
  24. package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
  25. package/prisca/v1/core/organization/organization_pb.js +3002 -0
  26. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +177 -0
  27. package/prisca/v1/core/organization_level/organization_level_pb.js +2432 -0
  28. package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
  29. package/prisca/v1/core/procurement/procurement_pb.js +1681 -0
  30. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +266 -0
  31. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_pb.js +4429 -0
  32. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +1 -0
  33. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +206 -0
  34. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
  35. package/prisca/v1/core/tax_code/tax_code_pb.js +2582 -0
  36. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +421 -0
  37. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +9138 -0
  38. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
  39. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2798 -0
  40. package/prisca/v1/core/users/users_grpc_pb.js +1 -0
  41. package/prisca/v1/core/users/users_pb.js +626 -0
  42. package/prisca/v1/core/users_role/users_role_grpc_pb.js +177 -0
  43. package/prisca/v1/core/users_role/users_role_pb.js +2372 -0
  44. package/prisca/v1/core/work_location/work_location_grpc_pb.js +179 -0
  45. package/prisca/v1/core/work_location/work_location_pb.js +3972 -0
  46. package/prisca/v1/core/workflow/workflow_grpc_pb.js +179 -0
  47. package/prisca/v1/core/workflow/workflow_pb.js +6426 -0
  48. package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
  49. package/prisca/v1/global/meta/meta_pb.js +1179 -0
  50. package/prisca/v1/core/auth/auth.proto +0 -114
  51. package/prisca/v1/core/company/company.proto +0 -86
  52. package/prisca/v1/core/department_material/department_material.proto +0 -69
  53. package/prisca/v1/core/job_grade/job_grade.proto +0 -79
  54. package/prisca/v1/core/job_position/job_position.proto +0 -112
  55. package/prisca/v1/core/job_title/job_title.proto +0 -88
  56. package/prisca/v1/core/location/location.proto +0 -289
  57. package/prisca/v1/core/material/material.proto +0 -128
  58. package/prisca/v1/core/material_group/material_group.proto +0 -79
  59. package/prisca/v1/core/material_type/material_type.proto +0 -77
  60. package/prisca/v1/core/number_range/number_range.proto +0 -81
  61. package/prisca/v1/core/organization/organization.proto +0 -93
  62. package/prisca/v1/core/organization_level/organization_level.proto +0 -73
  63. package/prisca/v1/core/procurement/procurement.proto +0 -54
  64. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.proto +0 -131
  65. package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
  66. package/prisca/v1/core/tax_code/tax_code.proto +0 -79
  67. package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -265
  68. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
  69. package/prisca/v1/core/users/users.proto +0 -22
  70. package/prisca/v1/core/users_role/users_role.proto +0 -72
  71. package/prisca/v1/core/work_location/work_location.proto +0 -122
  72. package/prisca/v1/core/workflow/workflow.proto +0 -193
  73. package/prisca/v1/global/meta/meta.proto +0 -57
@@ -0,0 +1,3732 @@
1
+ // source: prisca/v1/core/job_position/job_position.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
25
+ goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
+ var prisca_v1_core_organization_organization_pb = require('../../../../prisca/v1/core/organization/organization_pb.js');
27
+ goog.object.extend(proto, prisca_v1_core_organization_organization_pb);
28
+ var prisca_v1_core_work_location_work_location_pb = require('../../../../prisca/v1/core/work_location/work_location_pb.js');
29
+ goog.object.extend(proto, prisca_v1_core_work_location_work_location_pb);
30
+ var prisca_v1_core_company_company_pb = require('../../../../prisca/v1/core/company/company_pb.js');
31
+ goog.object.extend(proto, prisca_v1_core_company_company_pb);
32
+ var prisca_v1_core_users_role_users_role_pb = require('../../../../prisca/v1/core/users_role/users_role_pb.js');
33
+ goog.object.extend(proto, prisca_v1_core_users_role_users_role_pb);
34
+ goog.exportSymbol('proto.BaseJobPosition', null, global);
35
+ goog.exportSymbol('proto.BaseJobPositionParent', null, global);
36
+ goog.exportSymbol('proto.CreateJobPositionRequest', null, global);
37
+ goog.exportSymbol('proto.CreateJobPositionResponse', null, global);
38
+ goog.exportSymbol('proto.DeleteJobPositionRequest', null, global);
39
+ goog.exportSymbol('proto.DeleteJobPositionResponse', null, global);
40
+ goog.exportSymbol('proto.GetListJobPositionRequest', null, global);
41
+ goog.exportSymbol('proto.GetListJobPositionResponse', null, global);
42
+ goog.exportSymbol('proto.JobPosition', null, global);
43
+ goog.exportSymbol('proto.JobPositionGetByIdRequest', null, global);
44
+ goog.exportSymbol('proto.JobPositionGetByIdResponse', null, global);
45
+ goog.exportSymbol('proto.UpdateJobPositionRequest', null, global);
46
+ goog.exportSymbol('proto.UpdateJobPositionResponse', null, global);
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.BaseJobPosition = function(opt_data) {
58
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
59
+ };
60
+ goog.inherits(proto.BaseJobPosition, jspb.Message);
61
+ if (goog.DEBUG && !COMPILED) {
62
+ /**
63
+ * @public
64
+ * @override
65
+ */
66
+ proto.BaseJobPosition.displayName = 'proto.BaseJobPosition';
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.BaseJobPositionParent = function(opt_data) {
79
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
80
+ };
81
+ goog.inherits(proto.BaseJobPositionParent, jspb.Message);
82
+ if (goog.DEBUG && !COMPILED) {
83
+ /**
84
+ * @public
85
+ * @override
86
+ */
87
+ proto.BaseJobPositionParent.displayName = 'proto.BaseJobPositionParent';
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.JobPosition = function(opt_data) {
100
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
101
+ };
102
+ goog.inherits(proto.JobPosition, jspb.Message);
103
+ if (goog.DEBUG && !COMPILED) {
104
+ /**
105
+ * @public
106
+ * @override
107
+ */
108
+ proto.JobPosition.displayName = 'proto.JobPosition';
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.JobPositionGetByIdRequest = function(opt_data) {
121
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
122
+ };
123
+ goog.inherits(proto.JobPositionGetByIdRequest, jspb.Message);
124
+ if (goog.DEBUG && !COMPILED) {
125
+ /**
126
+ * @public
127
+ * @override
128
+ */
129
+ proto.JobPositionGetByIdRequest.displayName = 'proto.JobPositionGetByIdRequest';
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.CreateJobPositionRequest = function(opt_data) {
142
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
143
+ };
144
+ goog.inherits(proto.CreateJobPositionRequest, jspb.Message);
145
+ if (goog.DEBUG && !COMPILED) {
146
+ /**
147
+ * @public
148
+ * @override
149
+ */
150
+ proto.CreateJobPositionRequest.displayName = 'proto.CreateJobPositionRequest';
151
+ }
152
+ /**
153
+ * Generated by JsPbCodeGenerator.
154
+ * @param {Array=} opt_data Optional initial data array, typically from a
155
+ * server response, or constructed directly in Javascript. The array is used
156
+ * in place and becomes part of the constructed object. It is not cloned.
157
+ * If no data is provided, the constructed object will be empty, but still
158
+ * valid.
159
+ * @extends {jspb.Message}
160
+ * @constructor
161
+ */
162
+ proto.UpdateJobPositionRequest = function(opt_data) {
163
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
164
+ };
165
+ goog.inherits(proto.UpdateJobPositionRequest, jspb.Message);
166
+ if (goog.DEBUG && !COMPILED) {
167
+ /**
168
+ * @public
169
+ * @override
170
+ */
171
+ proto.UpdateJobPositionRequest.displayName = 'proto.UpdateJobPositionRequest';
172
+ }
173
+ /**
174
+ * Generated by JsPbCodeGenerator.
175
+ * @param {Array=} opt_data Optional initial data array, typically from a
176
+ * server response, or constructed directly in Javascript. The array is used
177
+ * in place and becomes part of the constructed object. It is not cloned.
178
+ * If no data is provided, the constructed object will be empty, but still
179
+ * valid.
180
+ * @extends {jspb.Message}
181
+ * @constructor
182
+ */
183
+ proto.DeleteJobPositionRequest = function(opt_data) {
184
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
185
+ };
186
+ goog.inherits(proto.DeleteJobPositionRequest, jspb.Message);
187
+ if (goog.DEBUG && !COMPILED) {
188
+ /**
189
+ * @public
190
+ * @override
191
+ */
192
+ proto.DeleteJobPositionRequest.displayName = 'proto.DeleteJobPositionRequest';
193
+ }
194
+ /**
195
+ * Generated by JsPbCodeGenerator.
196
+ * @param {Array=} opt_data Optional initial data array, typically from a
197
+ * server response, or constructed directly in Javascript. The array is used
198
+ * in place and becomes part of the constructed object. It is not cloned.
199
+ * If no data is provided, the constructed object will be empty, but still
200
+ * valid.
201
+ * @extends {jspb.Message}
202
+ * @constructor
203
+ */
204
+ proto.DeleteJobPositionResponse = function(opt_data) {
205
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
206
+ };
207
+ goog.inherits(proto.DeleteJobPositionResponse, jspb.Message);
208
+ if (goog.DEBUG && !COMPILED) {
209
+ /**
210
+ * @public
211
+ * @override
212
+ */
213
+ proto.DeleteJobPositionResponse.displayName = 'proto.DeleteJobPositionResponse';
214
+ }
215
+ /**
216
+ * Generated by JsPbCodeGenerator.
217
+ * @param {Array=} opt_data Optional initial data array, typically from a
218
+ * server response, or constructed directly in Javascript. The array is used
219
+ * in place and becomes part of the constructed object. It is not cloned.
220
+ * If no data is provided, the constructed object will be empty, but still
221
+ * valid.
222
+ * @extends {jspb.Message}
223
+ * @constructor
224
+ */
225
+ proto.GetListJobPositionRequest = function(opt_data) {
226
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
227
+ };
228
+ goog.inherits(proto.GetListJobPositionRequest, jspb.Message);
229
+ if (goog.DEBUG && !COMPILED) {
230
+ /**
231
+ * @public
232
+ * @override
233
+ */
234
+ proto.GetListJobPositionRequest.displayName = 'proto.GetListJobPositionRequest';
235
+ }
236
+ /**
237
+ * Generated by JsPbCodeGenerator.
238
+ * @param {Array=} opt_data Optional initial data array, typically from a
239
+ * server response, or constructed directly in Javascript. The array is used
240
+ * in place and becomes part of the constructed object. It is not cloned.
241
+ * If no data is provided, the constructed object will be empty, but still
242
+ * valid.
243
+ * @extends {jspb.Message}
244
+ * @constructor
245
+ */
246
+ proto.CreateJobPositionResponse = function(opt_data) {
247
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
248
+ };
249
+ goog.inherits(proto.CreateJobPositionResponse, jspb.Message);
250
+ if (goog.DEBUG && !COMPILED) {
251
+ /**
252
+ * @public
253
+ * @override
254
+ */
255
+ proto.CreateJobPositionResponse.displayName = 'proto.CreateJobPositionResponse';
256
+ }
257
+ /**
258
+ * Generated by JsPbCodeGenerator.
259
+ * @param {Array=} opt_data Optional initial data array, typically from a
260
+ * server response, or constructed directly in Javascript. The array is used
261
+ * in place and becomes part of the constructed object. It is not cloned.
262
+ * If no data is provided, the constructed object will be empty, but still
263
+ * valid.
264
+ * @extends {jspb.Message}
265
+ * @constructor
266
+ */
267
+ proto.GetListJobPositionResponse = function(opt_data) {
268
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListJobPositionResponse.repeatedFields_, null);
269
+ };
270
+ goog.inherits(proto.GetListJobPositionResponse, jspb.Message);
271
+ if (goog.DEBUG && !COMPILED) {
272
+ /**
273
+ * @public
274
+ * @override
275
+ */
276
+ proto.GetListJobPositionResponse.displayName = 'proto.GetListJobPositionResponse';
277
+ }
278
+ /**
279
+ * Generated by JsPbCodeGenerator.
280
+ * @param {Array=} opt_data Optional initial data array, typically from a
281
+ * server response, or constructed directly in Javascript. The array is used
282
+ * in place and becomes part of the constructed object. It is not cloned.
283
+ * If no data is provided, the constructed object will be empty, but still
284
+ * valid.
285
+ * @extends {jspb.Message}
286
+ * @constructor
287
+ */
288
+ proto.UpdateJobPositionResponse = function(opt_data) {
289
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
290
+ };
291
+ goog.inherits(proto.UpdateJobPositionResponse, jspb.Message);
292
+ if (goog.DEBUG && !COMPILED) {
293
+ /**
294
+ * @public
295
+ * @override
296
+ */
297
+ proto.UpdateJobPositionResponse.displayName = 'proto.UpdateJobPositionResponse';
298
+ }
299
+ /**
300
+ * Generated by JsPbCodeGenerator.
301
+ * @param {Array=} opt_data Optional initial data array, typically from a
302
+ * server response, or constructed directly in Javascript. The array is used
303
+ * in place and becomes part of the constructed object. It is not cloned.
304
+ * If no data is provided, the constructed object will be empty, but still
305
+ * valid.
306
+ * @extends {jspb.Message}
307
+ * @constructor
308
+ */
309
+ proto.JobPositionGetByIdResponse = function(opt_data) {
310
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
311
+ };
312
+ goog.inherits(proto.JobPositionGetByIdResponse, jspb.Message);
313
+ if (goog.DEBUG && !COMPILED) {
314
+ /**
315
+ * @public
316
+ * @override
317
+ */
318
+ proto.JobPositionGetByIdResponse.displayName = 'proto.JobPositionGetByIdResponse';
319
+ }
320
+
321
+
322
+
323
+ if (jspb.Message.GENERATE_TO_OBJECT) {
324
+ /**
325
+ * Creates an object representation of this proto.
326
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
327
+ * Optional fields that are not set will be set to undefined.
328
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
329
+ * For the list of reserved names please see:
330
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
331
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
332
+ * JSPB instance for transitional soy proto support:
333
+ * http://goto/soy-param-migration
334
+ * @return {!Object}
335
+ */
336
+ proto.BaseJobPosition.prototype.toObject = function(opt_includeInstance) {
337
+ return proto.BaseJobPosition.toObject(opt_includeInstance, this);
338
+ };
339
+
340
+
341
+ /**
342
+ * Static version of the {@see toObject} method.
343
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
344
+ * the JSPB instance for transitional soy proto support:
345
+ * http://goto/soy-param-migration
346
+ * @param {!proto.BaseJobPosition} msg The msg instance to transform.
347
+ * @return {!Object}
348
+ * @suppress {unusedLocalVariables} f is only used for nested messages
349
+ */
350
+ proto.BaseJobPosition.toObject = function(includeInstance, msg) {
351
+ var f, obj = {
352
+ code: jspb.Message.getFieldWithDefault(msg, 1, ""),
353
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
354
+ alias: jspb.Message.getFieldWithDefault(msg, 3, ""),
355
+ costCenterCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
356
+ parentReferencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
357
+ parent: (f = msg.getParent()) && proto.BaseJobPositionParent.toObject(includeInstance, f),
358
+ organizationReferencesId: jspb.Message.getFieldWithDefault(msg, 7, ""),
359
+ organizations: (f = msg.getOrganizations()) && prisca_v1_core_organization_organization_pb.BaseOrganization.toObject(includeInstance, f),
360
+ workLocationReferencesId: jspb.Message.getFieldWithDefault(msg, 9, ""),
361
+ workLocations: (f = msg.getWorkLocations()) && prisca_v1_core_work_location_work_location_pb.WorkLocation.toObject(includeInstance, f),
362
+ description: jspb.Message.getFieldWithDefault(msg, 11, ""),
363
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 12, ""),
364
+ companies: (f = msg.getCompanies()) && prisca_v1_core_company_company_pb.BaseCompanyParent.toObject(includeInstance, f),
365
+ usersRoleReferencesId: jspb.Message.getFieldWithDefault(msg, 14, ""),
366
+ role: (f = msg.getRole()) && prisca_v1_core_users_role_users_role_pb.BaseUsersRole.toObject(includeInstance, f),
367
+ referencesId: jspb.Message.getFieldWithDefault(msg, 16, "")
368
+ };
369
+
370
+ if (includeInstance) {
371
+ obj.$jspbMessageInstance = msg;
372
+ }
373
+ return obj;
374
+ };
375
+ }
376
+
377
+
378
+ /**
379
+ * Deserializes binary data (in protobuf wire format).
380
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
381
+ * @return {!proto.BaseJobPosition}
382
+ */
383
+ proto.BaseJobPosition.deserializeBinary = function(bytes) {
384
+ var reader = new jspb.BinaryReader(bytes);
385
+ var msg = new proto.BaseJobPosition;
386
+ return proto.BaseJobPosition.deserializeBinaryFromReader(msg, reader);
387
+ };
388
+
389
+
390
+ /**
391
+ * Deserializes binary data (in protobuf wire format) from the
392
+ * given reader into the given message object.
393
+ * @param {!proto.BaseJobPosition} msg The message object to deserialize into.
394
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
395
+ * @return {!proto.BaseJobPosition}
396
+ */
397
+ proto.BaseJobPosition.deserializeBinaryFromReader = function(msg, reader) {
398
+ while (reader.nextField()) {
399
+ if (reader.isEndGroup()) {
400
+ break;
401
+ }
402
+ var field = reader.getFieldNumber();
403
+ switch (field) {
404
+ case 1:
405
+ var value = /** @type {string} */ (reader.readString());
406
+ msg.setCode(value);
407
+ break;
408
+ case 2:
409
+ var value = /** @type {string} */ (reader.readString());
410
+ msg.setName(value);
411
+ break;
412
+ case 3:
413
+ var value = /** @type {string} */ (reader.readString());
414
+ msg.setAlias(value);
415
+ break;
416
+ case 4:
417
+ var value = /** @type {string} */ (reader.readString());
418
+ msg.setCostCenterCode(value);
419
+ break;
420
+ case 5:
421
+ var value = /** @type {string} */ (reader.readString());
422
+ msg.setParentReferencesId(value);
423
+ break;
424
+ case 6:
425
+ var value = new proto.BaseJobPositionParent;
426
+ reader.readMessage(value,proto.BaseJobPositionParent.deserializeBinaryFromReader);
427
+ msg.setParent(value);
428
+ break;
429
+ case 7:
430
+ var value = /** @type {string} */ (reader.readString());
431
+ msg.setOrganizationReferencesId(value);
432
+ break;
433
+ case 8:
434
+ var value = new prisca_v1_core_organization_organization_pb.BaseOrganization;
435
+ reader.readMessage(value,prisca_v1_core_organization_organization_pb.BaseOrganization.deserializeBinaryFromReader);
436
+ msg.setOrganizations(value);
437
+ break;
438
+ case 9:
439
+ var value = /** @type {string} */ (reader.readString());
440
+ msg.setWorkLocationReferencesId(value);
441
+ break;
442
+ case 10:
443
+ var value = new prisca_v1_core_work_location_work_location_pb.WorkLocation;
444
+ reader.readMessage(value,prisca_v1_core_work_location_work_location_pb.WorkLocation.deserializeBinaryFromReader);
445
+ msg.setWorkLocations(value);
446
+ break;
447
+ case 11:
448
+ var value = /** @type {string} */ (reader.readString());
449
+ msg.setDescription(value);
450
+ break;
451
+ case 12:
452
+ var value = /** @type {string} */ (reader.readString());
453
+ msg.setCompaniesReferencesId(value);
454
+ break;
455
+ case 13:
456
+ var value = new prisca_v1_core_company_company_pb.BaseCompanyParent;
457
+ reader.readMessage(value,prisca_v1_core_company_company_pb.BaseCompanyParent.deserializeBinaryFromReader);
458
+ msg.setCompanies(value);
459
+ break;
460
+ case 14:
461
+ var value = /** @type {string} */ (reader.readString());
462
+ msg.setUsersRoleReferencesId(value);
463
+ break;
464
+ case 15:
465
+ var value = new prisca_v1_core_users_role_users_role_pb.BaseUsersRole;
466
+ reader.readMessage(value,prisca_v1_core_users_role_users_role_pb.BaseUsersRole.deserializeBinaryFromReader);
467
+ msg.setRole(value);
468
+ break;
469
+ case 16:
470
+ var value = /** @type {string} */ (reader.readString());
471
+ msg.setReferencesId(value);
472
+ break;
473
+ default:
474
+ reader.skipField();
475
+ break;
476
+ }
477
+ }
478
+ return msg;
479
+ };
480
+
481
+
482
+ /**
483
+ * Serializes the message to binary data (in protobuf wire format).
484
+ * @return {!Uint8Array}
485
+ */
486
+ proto.BaseJobPosition.prototype.serializeBinary = function() {
487
+ var writer = new jspb.BinaryWriter();
488
+ proto.BaseJobPosition.serializeBinaryToWriter(this, writer);
489
+ return writer.getResultBuffer();
490
+ };
491
+
492
+
493
+ /**
494
+ * Serializes the given message to binary data (in protobuf wire
495
+ * format), writing to the given BinaryWriter.
496
+ * @param {!proto.BaseJobPosition} message
497
+ * @param {!jspb.BinaryWriter} writer
498
+ * @suppress {unusedLocalVariables} f is only used for nested messages
499
+ */
500
+ proto.BaseJobPosition.serializeBinaryToWriter = function(message, writer) {
501
+ var f = undefined;
502
+ f = message.getCode();
503
+ if (f.length > 0) {
504
+ writer.writeString(
505
+ 1,
506
+ f
507
+ );
508
+ }
509
+ f = message.getName();
510
+ if (f.length > 0) {
511
+ writer.writeString(
512
+ 2,
513
+ f
514
+ );
515
+ }
516
+ f = message.getAlias();
517
+ if (f.length > 0) {
518
+ writer.writeString(
519
+ 3,
520
+ f
521
+ );
522
+ }
523
+ f = message.getCostCenterCode();
524
+ if (f.length > 0) {
525
+ writer.writeString(
526
+ 4,
527
+ f
528
+ );
529
+ }
530
+ f = message.getParentReferencesId();
531
+ if (f.length > 0) {
532
+ writer.writeString(
533
+ 5,
534
+ f
535
+ );
536
+ }
537
+ f = message.getParent();
538
+ if (f != null) {
539
+ writer.writeMessage(
540
+ 6,
541
+ f,
542
+ proto.BaseJobPositionParent.serializeBinaryToWriter
543
+ );
544
+ }
545
+ f = message.getOrganizationReferencesId();
546
+ if (f.length > 0) {
547
+ writer.writeString(
548
+ 7,
549
+ f
550
+ );
551
+ }
552
+ f = message.getOrganizations();
553
+ if (f != null) {
554
+ writer.writeMessage(
555
+ 8,
556
+ f,
557
+ prisca_v1_core_organization_organization_pb.BaseOrganization.serializeBinaryToWriter
558
+ );
559
+ }
560
+ f = message.getWorkLocationReferencesId();
561
+ if (f.length > 0) {
562
+ writer.writeString(
563
+ 9,
564
+ f
565
+ );
566
+ }
567
+ f = message.getWorkLocations();
568
+ if (f != null) {
569
+ writer.writeMessage(
570
+ 10,
571
+ f,
572
+ prisca_v1_core_work_location_work_location_pb.WorkLocation.serializeBinaryToWriter
573
+ );
574
+ }
575
+ f = message.getDescription();
576
+ if (f.length > 0) {
577
+ writer.writeString(
578
+ 11,
579
+ f
580
+ );
581
+ }
582
+ f = message.getCompaniesReferencesId();
583
+ if (f.length > 0) {
584
+ writer.writeString(
585
+ 12,
586
+ f
587
+ );
588
+ }
589
+ f = message.getCompanies();
590
+ if (f != null) {
591
+ writer.writeMessage(
592
+ 13,
593
+ f,
594
+ prisca_v1_core_company_company_pb.BaseCompanyParent.serializeBinaryToWriter
595
+ );
596
+ }
597
+ f = message.getUsersRoleReferencesId();
598
+ if (f.length > 0) {
599
+ writer.writeString(
600
+ 14,
601
+ f
602
+ );
603
+ }
604
+ f = message.getRole();
605
+ if (f != null) {
606
+ writer.writeMessage(
607
+ 15,
608
+ f,
609
+ prisca_v1_core_users_role_users_role_pb.BaseUsersRole.serializeBinaryToWriter
610
+ );
611
+ }
612
+ f = message.getReferencesId();
613
+ if (f.length > 0) {
614
+ writer.writeString(
615
+ 16,
616
+ f
617
+ );
618
+ }
619
+ };
620
+
621
+
622
+ /**
623
+ * optional string code = 1;
624
+ * @return {string}
625
+ */
626
+ proto.BaseJobPosition.prototype.getCode = function() {
627
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
628
+ };
629
+
630
+
631
+ /**
632
+ * @param {string} value
633
+ * @return {!proto.BaseJobPosition} returns this
634
+ */
635
+ proto.BaseJobPosition.prototype.setCode = function(value) {
636
+ return jspb.Message.setProto3StringField(this, 1, value);
637
+ };
638
+
639
+
640
+ /**
641
+ * optional string name = 2;
642
+ * @return {string}
643
+ */
644
+ proto.BaseJobPosition.prototype.getName = function() {
645
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
646
+ };
647
+
648
+
649
+ /**
650
+ * @param {string} value
651
+ * @return {!proto.BaseJobPosition} returns this
652
+ */
653
+ proto.BaseJobPosition.prototype.setName = function(value) {
654
+ return jspb.Message.setProto3StringField(this, 2, value);
655
+ };
656
+
657
+
658
+ /**
659
+ * optional string alias = 3;
660
+ * @return {string}
661
+ */
662
+ proto.BaseJobPosition.prototype.getAlias = function() {
663
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
664
+ };
665
+
666
+
667
+ /**
668
+ * @param {string} value
669
+ * @return {!proto.BaseJobPosition} returns this
670
+ */
671
+ proto.BaseJobPosition.prototype.setAlias = function(value) {
672
+ return jspb.Message.setProto3StringField(this, 3, value);
673
+ };
674
+
675
+
676
+ /**
677
+ * optional string cost_center_code = 4;
678
+ * @return {string}
679
+ */
680
+ proto.BaseJobPosition.prototype.getCostCenterCode = function() {
681
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
682
+ };
683
+
684
+
685
+ /**
686
+ * @param {string} value
687
+ * @return {!proto.BaseJobPosition} returns this
688
+ */
689
+ proto.BaseJobPosition.prototype.setCostCenterCode = function(value) {
690
+ return jspb.Message.setProto3StringField(this, 4, value);
691
+ };
692
+
693
+
694
+ /**
695
+ * optional string parent_references_id = 5;
696
+ * @return {string}
697
+ */
698
+ proto.BaseJobPosition.prototype.getParentReferencesId = function() {
699
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
700
+ };
701
+
702
+
703
+ /**
704
+ * @param {string} value
705
+ * @return {!proto.BaseJobPosition} returns this
706
+ */
707
+ proto.BaseJobPosition.prototype.setParentReferencesId = function(value) {
708
+ return jspb.Message.setProto3StringField(this, 5, value);
709
+ };
710
+
711
+
712
+ /**
713
+ * optional BaseJobPositionParent parent = 6;
714
+ * @return {?proto.BaseJobPositionParent}
715
+ */
716
+ proto.BaseJobPosition.prototype.getParent = function() {
717
+ return /** @type{?proto.BaseJobPositionParent} */ (
718
+ jspb.Message.getWrapperField(this, proto.BaseJobPositionParent, 6));
719
+ };
720
+
721
+
722
+ /**
723
+ * @param {?proto.BaseJobPositionParent|undefined} value
724
+ * @return {!proto.BaseJobPosition} returns this
725
+ */
726
+ proto.BaseJobPosition.prototype.setParent = function(value) {
727
+ return jspb.Message.setWrapperField(this, 6, value);
728
+ };
729
+
730
+
731
+ /**
732
+ * Clears the message field making it undefined.
733
+ * @return {!proto.BaseJobPosition} returns this
734
+ */
735
+ proto.BaseJobPosition.prototype.clearParent = function() {
736
+ return this.setParent(undefined);
737
+ };
738
+
739
+
740
+ /**
741
+ * Returns whether this field is set.
742
+ * @return {boolean}
743
+ */
744
+ proto.BaseJobPosition.prototype.hasParent = function() {
745
+ return jspb.Message.getField(this, 6) != null;
746
+ };
747
+
748
+
749
+ /**
750
+ * optional string organization_references_id = 7;
751
+ * @return {string}
752
+ */
753
+ proto.BaseJobPosition.prototype.getOrganizationReferencesId = function() {
754
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
755
+ };
756
+
757
+
758
+ /**
759
+ * @param {string} value
760
+ * @return {!proto.BaseJobPosition} returns this
761
+ */
762
+ proto.BaseJobPosition.prototype.setOrganizationReferencesId = function(value) {
763
+ return jspb.Message.setProto3StringField(this, 7, value);
764
+ };
765
+
766
+
767
+ /**
768
+ * optional BaseOrganization organizations = 8;
769
+ * @return {?proto.BaseOrganization}
770
+ */
771
+ proto.BaseJobPosition.prototype.getOrganizations = function() {
772
+ return /** @type{?proto.BaseOrganization} */ (
773
+ jspb.Message.getWrapperField(this, prisca_v1_core_organization_organization_pb.BaseOrganization, 8));
774
+ };
775
+
776
+
777
+ /**
778
+ * @param {?proto.BaseOrganization|undefined} value
779
+ * @return {!proto.BaseJobPosition} returns this
780
+ */
781
+ proto.BaseJobPosition.prototype.setOrganizations = function(value) {
782
+ return jspb.Message.setWrapperField(this, 8, value);
783
+ };
784
+
785
+
786
+ /**
787
+ * Clears the message field making it undefined.
788
+ * @return {!proto.BaseJobPosition} returns this
789
+ */
790
+ proto.BaseJobPosition.prototype.clearOrganizations = function() {
791
+ return this.setOrganizations(undefined);
792
+ };
793
+
794
+
795
+ /**
796
+ * Returns whether this field is set.
797
+ * @return {boolean}
798
+ */
799
+ proto.BaseJobPosition.prototype.hasOrganizations = function() {
800
+ return jspb.Message.getField(this, 8) != null;
801
+ };
802
+
803
+
804
+ /**
805
+ * optional string work_location_references_id = 9;
806
+ * @return {string}
807
+ */
808
+ proto.BaseJobPosition.prototype.getWorkLocationReferencesId = function() {
809
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
810
+ };
811
+
812
+
813
+ /**
814
+ * @param {string} value
815
+ * @return {!proto.BaseJobPosition} returns this
816
+ */
817
+ proto.BaseJobPosition.prototype.setWorkLocationReferencesId = function(value) {
818
+ return jspb.Message.setProto3StringField(this, 9, value);
819
+ };
820
+
821
+
822
+ /**
823
+ * optional WorkLocation work_locations = 10;
824
+ * @return {?proto.WorkLocation}
825
+ */
826
+ proto.BaseJobPosition.prototype.getWorkLocations = function() {
827
+ return /** @type{?proto.WorkLocation} */ (
828
+ jspb.Message.getWrapperField(this, prisca_v1_core_work_location_work_location_pb.WorkLocation, 10));
829
+ };
830
+
831
+
832
+ /**
833
+ * @param {?proto.WorkLocation|undefined} value
834
+ * @return {!proto.BaseJobPosition} returns this
835
+ */
836
+ proto.BaseJobPosition.prototype.setWorkLocations = function(value) {
837
+ return jspb.Message.setWrapperField(this, 10, value);
838
+ };
839
+
840
+
841
+ /**
842
+ * Clears the message field making it undefined.
843
+ * @return {!proto.BaseJobPosition} returns this
844
+ */
845
+ proto.BaseJobPosition.prototype.clearWorkLocations = function() {
846
+ return this.setWorkLocations(undefined);
847
+ };
848
+
849
+
850
+ /**
851
+ * Returns whether this field is set.
852
+ * @return {boolean}
853
+ */
854
+ proto.BaseJobPosition.prototype.hasWorkLocations = function() {
855
+ return jspb.Message.getField(this, 10) != null;
856
+ };
857
+
858
+
859
+ /**
860
+ * optional string description = 11;
861
+ * @return {string}
862
+ */
863
+ proto.BaseJobPosition.prototype.getDescription = function() {
864
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
865
+ };
866
+
867
+
868
+ /**
869
+ * @param {string} value
870
+ * @return {!proto.BaseJobPosition} returns this
871
+ */
872
+ proto.BaseJobPosition.prototype.setDescription = function(value) {
873
+ return jspb.Message.setProto3StringField(this, 11, value);
874
+ };
875
+
876
+
877
+ /**
878
+ * optional string companies_references_id = 12;
879
+ * @return {string}
880
+ */
881
+ proto.BaseJobPosition.prototype.getCompaniesReferencesId = function() {
882
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
883
+ };
884
+
885
+
886
+ /**
887
+ * @param {string} value
888
+ * @return {!proto.BaseJobPosition} returns this
889
+ */
890
+ proto.BaseJobPosition.prototype.setCompaniesReferencesId = function(value) {
891
+ return jspb.Message.setProto3StringField(this, 12, value);
892
+ };
893
+
894
+
895
+ /**
896
+ * optional BaseCompanyParent companies = 13;
897
+ * @return {?proto.BaseCompanyParent}
898
+ */
899
+ proto.BaseJobPosition.prototype.getCompanies = function() {
900
+ return /** @type{?proto.BaseCompanyParent} */ (
901
+ jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.BaseCompanyParent, 13));
902
+ };
903
+
904
+
905
+ /**
906
+ * @param {?proto.BaseCompanyParent|undefined} value
907
+ * @return {!proto.BaseJobPosition} returns this
908
+ */
909
+ proto.BaseJobPosition.prototype.setCompanies = function(value) {
910
+ return jspb.Message.setWrapperField(this, 13, value);
911
+ };
912
+
913
+
914
+ /**
915
+ * Clears the message field making it undefined.
916
+ * @return {!proto.BaseJobPosition} returns this
917
+ */
918
+ proto.BaseJobPosition.prototype.clearCompanies = function() {
919
+ return this.setCompanies(undefined);
920
+ };
921
+
922
+
923
+ /**
924
+ * Returns whether this field is set.
925
+ * @return {boolean}
926
+ */
927
+ proto.BaseJobPosition.prototype.hasCompanies = function() {
928
+ return jspb.Message.getField(this, 13) != null;
929
+ };
930
+
931
+
932
+ /**
933
+ * optional string users_role_references_id = 14;
934
+ * @return {string}
935
+ */
936
+ proto.BaseJobPosition.prototype.getUsersRoleReferencesId = function() {
937
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
938
+ };
939
+
940
+
941
+ /**
942
+ * @param {string} value
943
+ * @return {!proto.BaseJobPosition} returns this
944
+ */
945
+ proto.BaseJobPosition.prototype.setUsersRoleReferencesId = function(value) {
946
+ return jspb.Message.setProto3StringField(this, 14, value);
947
+ };
948
+
949
+
950
+ /**
951
+ * optional BaseUsersRole role = 15;
952
+ * @return {?proto.BaseUsersRole}
953
+ */
954
+ proto.BaseJobPosition.prototype.getRole = function() {
955
+ return /** @type{?proto.BaseUsersRole} */ (
956
+ jspb.Message.getWrapperField(this, prisca_v1_core_users_role_users_role_pb.BaseUsersRole, 15));
957
+ };
958
+
959
+
960
+ /**
961
+ * @param {?proto.BaseUsersRole|undefined} value
962
+ * @return {!proto.BaseJobPosition} returns this
963
+ */
964
+ proto.BaseJobPosition.prototype.setRole = function(value) {
965
+ return jspb.Message.setWrapperField(this, 15, value);
966
+ };
967
+
968
+
969
+ /**
970
+ * Clears the message field making it undefined.
971
+ * @return {!proto.BaseJobPosition} returns this
972
+ */
973
+ proto.BaseJobPosition.prototype.clearRole = function() {
974
+ return this.setRole(undefined);
975
+ };
976
+
977
+
978
+ /**
979
+ * Returns whether this field is set.
980
+ * @return {boolean}
981
+ */
982
+ proto.BaseJobPosition.prototype.hasRole = function() {
983
+ return jspb.Message.getField(this, 15) != null;
984
+ };
985
+
986
+
987
+ /**
988
+ * optional string references_id = 16;
989
+ * @return {string}
990
+ */
991
+ proto.BaseJobPosition.prototype.getReferencesId = function() {
992
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
993
+ };
994
+
995
+
996
+ /**
997
+ * @param {string} value
998
+ * @return {!proto.BaseJobPosition} returns this
999
+ */
1000
+ proto.BaseJobPosition.prototype.setReferencesId = function(value) {
1001
+ return jspb.Message.setProto3StringField(this, 16, value);
1002
+ };
1003
+
1004
+
1005
+
1006
+
1007
+
1008
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1009
+ /**
1010
+ * Creates an object representation of this proto.
1011
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1012
+ * Optional fields that are not set will be set to undefined.
1013
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1014
+ * For the list of reserved names please see:
1015
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1016
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1017
+ * JSPB instance for transitional soy proto support:
1018
+ * http://goto/soy-param-migration
1019
+ * @return {!Object}
1020
+ */
1021
+ proto.BaseJobPositionParent.prototype.toObject = function(opt_includeInstance) {
1022
+ return proto.BaseJobPositionParent.toObject(opt_includeInstance, this);
1023
+ };
1024
+
1025
+
1026
+ /**
1027
+ * Static version of the {@see toObject} method.
1028
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1029
+ * the JSPB instance for transitional soy proto support:
1030
+ * http://goto/soy-param-migration
1031
+ * @param {!proto.BaseJobPositionParent} msg The msg instance to transform.
1032
+ * @return {!Object}
1033
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1034
+ */
1035
+ proto.BaseJobPositionParent.toObject = function(includeInstance, msg) {
1036
+ var f, obj = {
1037
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1038
+ code: jspb.Message.getFieldWithDefault(msg, 2, ""),
1039
+ name: jspb.Message.getFieldWithDefault(msg, 3, ""),
1040
+ alias: jspb.Message.getFieldWithDefault(msg, 4, ""),
1041
+ costCenterCode: jspb.Message.getFieldWithDefault(msg, 5, ""),
1042
+ jobPositions: (f = msg.getJobPositions()) && proto.BaseJobPosition.toObject(includeInstance, f),
1043
+ organizations: (f = msg.getOrganizations()) && prisca_v1_core_organization_organization_pb.Organization.toObject(includeInstance, f),
1044
+ workLocations: (f = msg.getWorkLocations()) && prisca_v1_core_work_location_work_location_pb.WorkLocation.toObject(includeInstance, f),
1045
+ description: jspb.Message.getFieldWithDefault(msg, 9, ""),
1046
+ companies: (f = msg.getCompanies()) && prisca_v1_core_company_company_pb.BaseCompanyParent.toObject(includeInstance, f),
1047
+ role: (f = msg.getRole()) && prisca_v1_core_users_role_users_role_pb.BaseUsersRole.toObject(includeInstance, f)
1048
+ };
1049
+
1050
+ if (includeInstance) {
1051
+ obj.$jspbMessageInstance = msg;
1052
+ }
1053
+ return obj;
1054
+ };
1055
+ }
1056
+
1057
+
1058
+ /**
1059
+ * Deserializes binary data (in protobuf wire format).
1060
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1061
+ * @return {!proto.BaseJobPositionParent}
1062
+ */
1063
+ proto.BaseJobPositionParent.deserializeBinary = function(bytes) {
1064
+ var reader = new jspb.BinaryReader(bytes);
1065
+ var msg = new proto.BaseJobPositionParent;
1066
+ return proto.BaseJobPositionParent.deserializeBinaryFromReader(msg, reader);
1067
+ };
1068
+
1069
+
1070
+ /**
1071
+ * Deserializes binary data (in protobuf wire format) from the
1072
+ * given reader into the given message object.
1073
+ * @param {!proto.BaseJobPositionParent} msg The message object to deserialize into.
1074
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1075
+ * @return {!proto.BaseJobPositionParent}
1076
+ */
1077
+ proto.BaseJobPositionParent.deserializeBinaryFromReader = function(msg, reader) {
1078
+ while (reader.nextField()) {
1079
+ if (reader.isEndGroup()) {
1080
+ break;
1081
+ }
1082
+ var field = reader.getFieldNumber();
1083
+ switch (field) {
1084
+ case 1:
1085
+ var value = /** @type {string} */ (reader.readString());
1086
+ msg.setReferencesId(value);
1087
+ break;
1088
+ case 2:
1089
+ var value = /** @type {string} */ (reader.readString());
1090
+ msg.setCode(value);
1091
+ break;
1092
+ case 3:
1093
+ var value = /** @type {string} */ (reader.readString());
1094
+ msg.setName(value);
1095
+ break;
1096
+ case 4:
1097
+ var value = /** @type {string} */ (reader.readString());
1098
+ msg.setAlias(value);
1099
+ break;
1100
+ case 5:
1101
+ var value = /** @type {string} */ (reader.readString());
1102
+ msg.setCostCenterCode(value);
1103
+ break;
1104
+ case 6:
1105
+ var value = new proto.BaseJobPosition;
1106
+ reader.readMessage(value,proto.BaseJobPosition.deserializeBinaryFromReader);
1107
+ msg.setJobPositions(value);
1108
+ break;
1109
+ case 7:
1110
+ var value = new prisca_v1_core_organization_organization_pb.Organization;
1111
+ reader.readMessage(value,prisca_v1_core_organization_organization_pb.Organization.deserializeBinaryFromReader);
1112
+ msg.setOrganizations(value);
1113
+ break;
1114
+ case 8:
1115
+ var value = new prisca_v1_core_work_location_work_location_pb.WorkLocation;
1116
+ reader.readMessage(value,prisca_v1_core_work_location_work_location_pb.WorkLocation.deserializeBinaryFromReader);
1117
+ msg.setWorkLocations(value);
1118
+ break;
1119
+ case 9:
1120
+ var value = /** @type {string} */ (reader.readString());
1121
+ msg.setDescription(value);
1122
+ break;
1123
+ case 10:
1124
+ var value = new prisca_v1_core_company_company_pb.BaseCompanyParent;
1125
+ reader.readMessage(value,prisca_v1_core_company_company_pb.BaseCompanyParent.deserializeBinaryFromReader);
1126
+ msg.setCompanies(value);
1127
+ break;
1128
+ case 11:
1129
+ var value = new prisca_v1_core_users_role_users_role_pb.BaseUsersRole;
1130
+ reader.readMessage(value,prisca_v1_core_users_role_users_role_pb.BaseUsersRole.deserializeBinaryFromReader);
1131
+ msg.setRole(value);
1132
+ break;
1133
+ default:
1134
+ reader.skipField();
1135
+ break;
1136
+ }
1137
+ }
1138
+ return msg;
1139
+ };
1140
+
1141
+
1142
+ /**
1143
+ * Serializes the message to binary data (in protobuf wire format).
1144
+ * @return {!Uint8Array}
1145
+ */
1146
+ proto.BaseJobPositionParent.prototype.serializeBinary = function() {
1147
+ var writer = new jspb.BinaryWriter();
1148
+ proto.BaseJobPositionParent.serializeBinaryToWriter(this, writer);
1149
+ return writer.getResultBuffer();
1150
+ };
1151
+
1152
+
1153
+ /**
1154
+ * Serializes the given message to binary data (in protobuf wire
1155
+ * format), writing to the given BinaryWriter.
1156
+ * @param {!proto.BaseJobPositionParent} message
1157
+ * @param {!jspb.BinaryWriter} writer
1158
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1159
+ */
1160
+ proto.BaseJobPositionParent.serializeBinaryToWriter = function(message, writer) {
1161
+ var f = undefined;
1162
+ f = message.getReferencesId();
1163
+ if (f.length > 0) {
1164
+ writer.writeString(
1165
+ 1,
1166
+ f
1167
+ );
1168
+ }
1169
+ f = message.getCode();
1170
+ if (f.length > 0) {
1171
+ writer.writeString(
1172
+ 2,
1173
+ f
1174
+ );
1175
+ }
1176
+ f = message.getName();
1177
+ if (f.length > 0) {
1178
+ writer.writeString(
1179
+ 3,
1180
+ f
1181
+ );
1182
+ }
1183
+ f = message.getAlias();
1184
+ if (f.length > 0) {
1185
+ writer.writeString(
1186
+ 4,
1187
+ f
1188
+ );
1189
+ }
1190
+ f = message.getCostCenterCode();
1191
+ if (f.length > 0) {
1192
+ writer.writeString(
1193
+ 5,
1194
+ f
1195
+ );
1196
+ }
1197
+ f = message.getJobPositions();
1198
+ if (f != null) {
1199
+ writer.writeMessage(
1200
+ 6,
1201
+ f,
1202
+ proto.BaseJobPosition.serializeBinaryToWriter
1203
+ );
1204
+ }
1205
+ f = message.getOrganizations();
1206
+ if (f != null) {
1207
+ writer.writeMessage(
1208
+ 7,
1209
+ f,
1210
+ prisca_v1_core_organization_organization_pb.Organization.serializeBinaryToWriter
1211
+ );
1212
+ }
1213
+ f = message.getWorkLocations();
1214
+ if (f != null) {
1215
+ writer.writeMessage(
1216
+ 8,
1217
+ f,
1218
+ prisca_v1_core_work_location_work_location_pb.WorkLocation.serializeBinaryToWriter
1219
+ );
1220
+ }
1221
+ f = message.getDescription();
1222
+ if (f.length > 0) {
1223
+ writer.writeString(
1224
+ 9,
1225
+ f
1226
+ );
1227
+ }
1228
+ f = message.getCompanies();
1229
+ if (f != null) {
1230
+ writer.writeMessage(
1231
+ 10,
1232
+ f,
1233
+ prisca_v1_core_company_company_pb.BaseCompanyParent.serializeBinaryToWriter
1234
+ );
1235
+ }
1236
+ f = message.getRole();
1237
+ if (f != null) {
1238
+ writer.writeMessage(
1239
+ 11,
1240
+ f,
1241
+ prisca_v1_core_users_role_users_role_pb.BaseUsersRole.serializeBinaryToWriter
1242
+ );
1243
+ }
1244
+ };
1245
+
1246
+
1247
+ /**
1248
+ * optional string references_id = 1;
1249
+ * @return {string}
1250
+ */
1251
+ proto.BaseJobPositionParent.prototype.getReferencesId = function() {
1252
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1253
+ };
1254
+
1255
+
1256
+ /**
1257
+ * @param {string} value
1258
+ * @return {!proto.BaseJobPositionParent} returns this
1259
+ */
1260
+ proto.BaseJobPositionParent.prototype.setReferencesId = function(value) {
1261
+ return jspb.Message.setProto3StringField(this, 1, value);
1262
+ };
1263
+
1264
+
1265
+ /**
1266
+ * optional string code = 2;
1267
+ * @return {string}
1268
+ */
1269
+ proto.BaseJobPositionParent.prototype.getCode = function() {
1270
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1271
+ };
1272
+
1273
+
1274
+ /**
1275
+ * @param {string} value
1276
+ * @return {!proto.BaseJobPositionParent} returns this
1277
+ */
1278
+ proto.BaseJobPositionParent.prototype.setCode = function(value) {
1279
+ return jspb.Message.setProto3StringField(this, 2, value);
1280
+ };
1281
+
1282
+
1283
+ /**
1284
+ * optional string name = 3;
1285
+ * @return {string}
1286
+ */
1287
+ proto.BaseJobPositionParent.prototype.getName = function() {
1288
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1289
+ };
1290
+
1291
+
1292
+ /**
1293
+ * @param {string} value
1294
+ * @return {!proto.BaseJobPositionParent} returns this
1295
+ */
1296
+ proto.BaseJobPositionParent.prototype.setName = function(value) {
1297
+ return jspb.Message.setProto3StringField(this, 3, value);
1298
+ };
1299
+
1300
+
1301
+ /**
1302
+ * optional string alias = 4;
1303
+ * @return {string}
1304
+ */
1305
+ proto.BaseJobPositionParent.prototype.getAlias = function() {
1306
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1307
+ };
1308
+
1309
+
1310
+ /**
1311
+ * @param {string} value
1312
+ * @return {!proto.BaseJobPositionParent} returns this
1313
+ */
1314
+ proto.BaseJobPositionParent.prototype.setAlias = function(value) {
1315
+ return jspb.Message.setProto3StringField(this, 4, value);
1316
+ };
1317
+
1318
+
1319
+ /**
1320
+ * optional string cost_center_code = 5;
1321
+ * @return {string}
1322
+ */
1323
+ proto.BaseJobPositionParent.prototype.getCostCenterCode = function() {
1324
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1325
+ };
1326
+
1327
+
1328
+ /**
1329
+ * @param {string} value
1330
+ * @return {!proto.BaseJobPositionParent} returns this
1331
+ */
1332
+ proto.BaseJobPositionParent.prototype.setCostCenterCode = function(value) {
1333
+ return jspb.Message.setProto3StringField(this, 5, value);
1334
+ };
1335
+
1336
+
1337
+ /**
1338
+ * optional BaseJobPosition job_positions = 6;
1339
+ * @return {?proto.BaseJobPosition}
1340
+ */
1341
+ proto.BaseJobPositionParent.prototype.getJobPositions = function() {
1342
+ return /** @type{?proto.BaseJobPosition} */ (
1343
+ jspb.Message.getWrapperField(this, proto.BaseJobPosition, 6));
1344
+ };
1345
+
1346
+
1347
+ /**
1348
+ * @param {?proto.BaseJobPosition|undefined} value
1349
+ * @return {!proto.BaseJobPositionParent} returns this
1350
+ */
1351
+ proto.BaseJobPositionParent.prototype.setJobPositions = function(value) {
1352
+ return jspb.Message.setWrapperField(this, 6, value);
1353
+ };
1354
+
1355
+
1356
+ /**
1357
+ * Clears the message field making it undefined.
1358
+ * @return {!proto.BaseJobPositionParent} returns this
1359
+ */
1360
+ proto.BaseJobPositionParent.prototype.clearJobPositions = function() {
1361
+ return this.setJobPositions(undefined);
1362
+ };
1363
+
1364
+
1365
+ /**
1366
+ * Returns whether this field is set.
1367
+ * @return {boolean}
1368
+ */
1369
+ proto.BaseJobPositionParent.prototype.hasJobPositions = function() {
1370
+ return jspb.Message.getField(this, 6) != null;
1371
+ };
1372
+
1373
+
1374
+ /**
1375
+ * optional Organization organizations = 7;
1376
+ * @return {?proto.Organization}
1377
+ */
1378
+ proto.BaseJobPositionParent.prototype.getOrganizations = function() {
1379
+ return /** @type{?proto.Organization} */ (
1380
+ jspb.Message.getWrapperField(this, prisca_v1_core_organization_organization_pb.Organization, 7));
1381
+ };
1382
+
1383
+
1384
+ /**
1385
+ * @param {?proto.Organization|undefined} value
1386
+ * @return {!proto.BaseJobPositionParent} returns this
1387
+ */
1388
+ proto.BaseJobPositionParent.prototype.setOrganizations = function(value) {
1389
+ return jspb.Message.setWrapperField(this, 7, value);
1390
+ };
1391
+
1392
+
1393
+ /**
1394
+ * Clears the message field making it undefined.
1395
+ * @return {!proto.BaseJobPositionParent} returns this
1396
+ */
1397
+ proto.BaseJobPositionParent.prototype.clearOrganizations = function() {
1398
+ return this.setOrganizations(undefined);
1399
+ };
1400
+
1401
+
1402
+ /**
1403
+ * Returns whether this field is set.
1404
+ * @return {boolean}
1405
+ */
1406
+ proto.BaseJobPositionParent.prototype.hasOrganizations = function() {
1407
+ return jspb.Message.getField(this, 7) != null;
1408
+ };
1409
+
1410
+
1411
+ /**
1412
+ * optional WorkLocation work_locations = 8;
1413
+ * @return {?proto.WorkLocation}
1414
+ */
1415
+ proto.BaseJobPositionParent.prototype.getWorkLocations = function() {
1416
+ return /** @type{?proto.WorkLocation} */ (
1417
+ jspb.Message.getWrapperField(this, prisca_v1_core_work_location_work_location_pb.WorkLocation, 8));
1418
+ };
1419
+
1420
+
1421
+ /**
1422
+ * @param {?proto.WorkLocation|undefined} value
1423
+ * @return {!proto.BaseJobPositionParent} returns this
1424
+ */
1425
+ proto.BaseJobPositionParent.prototype.setWorkLocations = function(value) {
1426
+ return jspb.Message.setWrapperField(this, 8, value);
1427
+ };
1428
+
1429
+
1430
+ /**
1431
+ * Clears the message field making it undefined.
1432
+ * @return {!proto.BaseJobPositionParent} returns this
1433
+ */
1434
+ proto.BaseJobPositionParent.prototype.clearWorkLocations = function() {
1435
+ return this.setWorkLocations(undefined);
1436
+ };
1437
+
1438
+
1439
+ /**
1440
+ * Returns whether this field is set.
1441
+ * @return {boolean}
1442
+ */
1443
+ proto.BaseJobPositionParent.prototype.hasWorkLocations = function() {
1444
+ return jspb.Message.getField(this, 8) != null;
1445
+ };
1446
+
1447
+
1448
+ /**
1449
+ * optional string description = 9;
1450
+ * @return {string}
1451
+ */
1452
+ proto.BaseJobPositionParent.prototype.getDescription = function() {
1453
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1454
+ };
1455
+
1456
+
1457
+ /**
1458
+ * @param {string} value
1459
+ * @return {!proto.BaseJobPositionParent} returns this
1460
+ */
1461
+ proto.BaseJobPositionParent.prototype.setDescription = function(value) {
1462
+ return jspb.Message.setProto3StringField(this, 9, value);
1463
+ };
1464
+
1465
+
1466
+ /**
1467
+ * optional BaseCompanyParent companies = 10;
1468
+ * @return {?proto.BaseCompanyParent}
1469
+ */
1470
+ proto.BaseJobPositionParent.prototype.getCompanies = function() {
1471
+ return /** @type{?proto.BaseCompanyParent} */ (
1472
+ jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.BaseCompanyParent, 10));
1473
+ };
1474
+
1475
+
1476
+ /**
1477
+ * @param {?proto.BaseCompanyParent|undefined} value
1478
+ * @return {!proto.BaseJobPositionParent} returns this
1479
+ */
1480
+ proto.BaseJobPositionParent.prototype.setCompanies = function(value) {
1481
+ return jspb.Message.setWrapperField(this, 10, value);
1482
+ };
1483
+
1484
+
1485
+ /**
1486
+ * Clears the message field making it undefined.
1487
+ * @return {!proto.BaseJobPositionParent} returns this
1488
+ */
1489
+ proto.BaseJobPositionParent.prototype.clearCompanies = function() {
1490
+ return this.setCompanies(undefined);
1491
+ };
1492
+
1493
+
1494
+ /**
1495
+ * Returns whether this field is set.
1496
+ * @return {boolean}
1497
+ */
1498
+ proto.BaseJobPositionParent.prototype.hasCompanies = function() {
1499
+ return jspb.Message.getField(this, 10) != null;
1500
+ };
1501
+
1502
+
1503
+ /**
1504
+ * optional BaseUsersRole role = 11;
1505
+ * @return {?proto.BaseUsersRole}
1506
+ */
1507
+ proto.BaseJobPositionParent.prototype.getRole = function() {
1508
+ return /** @type{?proto.BaseUsersRole} */ (
1509
+ jspb.Message.getWrapperField(this, prisca_v1_core_users_role_users_role_pb.BaseUsersRole, 11));
1510
+ };
1511
+
1512
+
1513
+ /**
1514
+ * @param {?proto.BaseUsersRole|undefined} value
1515
+ * @return {!proto.BaseJobPositionParent} returns this
1516
+ */
1517
+ proto.BaseJobPositionParent.prototype.setRole = function(value) {
1518
+ return jspb.Message.setWrapperField(this, 11, value);
1519
+ };
1520
+
1521
+
1522
+ /**
1523
+ * Clears the message field making it undefined.
1524
+ * @return {!proto.BaseJobPositionParent} returns this
1525
+ */
1526
+ proto.BaseJobPositionParent.prototype.clearRole = function() {
1527
+ return this.setRole(undefined);
1528
+ };
1529
+
1530
+
1531
+ /**
1532
+ * Returns whether this field is set.
1533
+ * @return {boolean}
1534
+ */
1535
+ proto.BaseJobPositionParent.prototype.hasRole = function() {
1536
+ return jspb.Message.getField(this, 11) != null;
1537
+ };
1538
+
1539
+
1540
+
1541
+
1542
+
1543
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1544
+ /**
1545
+ * Creates an object representation of this proto.
1546
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1547
+ * Optional fields that are not set will be set to undefined.
1548
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1549
+ * For the list of reserved names please see:
1550
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1551
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1552
+ * JSPB instance for transitional soy proto support:
1553
+ * http://goto/soy-param-migration
1554
+ * @return {!Object}
1555
+ */
1556
+ proto.JobPosition.prototype.toObject = function(opt_includeInstance) {
1557
+ return proto.JobPosition.toObject(opt_includeInstance, this);
1558
+ };
1559
+
1560
+
1561
+ /**
1562
+ * Static version of the {@see toObject} method.
1563
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1564
+ * the JSPB instance for transitional soy proto support:
1565
+ * http://goto/soy-param-migration
1566
+ * @param {!proto.JobPosition} msg The msg instance to transform.
1567
+ * @return {!Object}
1568
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1569
+ */
1570
+ proto.JobPosition.toObject = function(includeInstance, msg) {
1571
+ var f, obj = {
1572
+ code: jspb.Message.getFieldWithDefault(msg, 2, ""),
1573
+ name: jspb.Message.getFieldWithDefault(msg, 3, ""),
1574
+ alias: jspb.Message.getFieldWithDefault(msg, 4, ""),
1575
+ costCenterCode: jspb.Message.getFieldWithDefault(msg, 5, ""),
1576
+ parentReferencesId: jspb.Message.getFieldWithDefault(msg, 6, ""),
1577
+ organizationReferencesId: jspb.Message.getFieldWithDefault(msg, 7, ""),
1578
+ workLocationReferencesId: jspb.Message.getFieldWithDefault(msg, 8, ""),
1579
+ description: jspb.Message.getFieldWithDefault(msg, 9, ""),
1580
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 10, ""),
1581
+ usersRoleReferencesId: jspb.Message.getFieldWithDefault(msg, 11, "")
1582
+ };
1583
+
1584
+ if (includeInstance) {
1585
+ obj.$jspbMessageInstance = msg;
1586
+ }
1587
+ return obj;
1588
+ };
1589
+ }
1590
+
1591
+
1592
+ /**
1593
+ * Deserializes binary data (in protobuf wire format).
1594
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1595
+ * @return {!proto.JobPosition}
1596
+ */
1597
+ proto.JobPosition.deserializeBinary = function(bytes) {
1598
+ var reader = new jspb.BinaryReader(bytes);
1599
+ var msg = new proto.JobPosition;
1600
+ return proto.JobPosition.deserializeBinaryFromReader(msg, reader);
1601
+ };
1602
+
1603
+
1604
+ /**
1605
+ * Deserializes binary data (in protobuf wire format) from the
1606
+ * given reader into the given message object.
1607
+ * @param {!proto.JobPosition} msg The message object to deserialize into.
1608
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1609
+ * @return {!proto.JobPosition}
1610
+ */
1611
+ proto.JobPosition.deserializeBinaryFromReader = function(msg, reader) {
1612
+ while (reader.nextField()) {
1613
+ if (reader.isEndGroup()) {
1614
+ break;
1615
+ }
1616
+ var field = reader.getFieldNumber();
1617
+ switch (field) {
1618
+ case 2:
1619
+ var value = /** @type {string} */ (reader.readString());
1620
+ msg.setCode(value);
1621
+ break;
1622
+ case 3:
1623
+ var value = /** @type {string} */ (reader.readString());
1624
+ msg.setName(value);
1625
+ break;
1626
+ case 4:
1627
+ var value = /** @type {string} */ (reader.readString());
1628
+ msg.setAlias(value);
1629
+ break;
1630
+ case 5:
1631
+ var value = /** @type {string} */ (reader.readString());
1632
+ msg.setCostCenterCode(value);
1633
+ break;
1634
+ case 6:
1635
+ var value = /** @type {string} */ (reader.readString());
1636
+ msg.setParentReferencesId(value);
1637
+ break;
1638
+ case 7:
1639
+ var value = /** @type {string} */ (reader.readString());
1640
+ msg.setOrganizationReferencesId(value);
1641
+ break;
1642
+ case 8:
1643
+ var value = /** @type {string} */ (reader.readString());
1644
+ msg.setWorkLocationReferencesId(value);
1645
+ break;
1646
+ case 9:
1647
+ var value = /** @type {string} */ (reader.readString());
1648
+ msg.setDescription(value);
1649
+ break;
1650
+ case 10:
1651
+ var value = /** @type {string} */ (reader.readString());
1652
+ msg.setCompaniesReferencesId(value);
1653
+ break;
1654
+ case 11:
1655
+ var value = /** @type {string} */ (reader.readString());
1656
+ msg.setUsersRoleReferencesId(value);
1657
+ break;
1658
+ default:
1659
+ reader.skipField();
1660
+ break;
1661
+ }
1662
+ }
1663
+ return msg;
1664
+ };
1665
+
1666
+
1667
+ /**
1668
+ * Serializes the message to binary data (in protobuf wire format).
1669
+ * @return {!Uint8Array}
1670
+ */
1671
+ proto.JobPosition.prototype.serializeBinary = function() {
1672
+ var writer = new jspb.BinaryWriter();
1673
+ proto.JobPosition.serializeBinaryToWriter(this, writer);
1674
+ return writer.getResultBuffer();
1675
+ };
1676
+
1677
+
1678
+ /**
1679
+ * Serializes the given message to binary data (in protobuf wire
1680
+ * format), writing to the given BinaryWriter.
1681
+ * @param {!proto.JobPosition} message
1682
+ * @param {!jspb.BinaryWriter} writer
1683
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1684
+ */
1685
+ proto.JobPosition.serializeBinaryToWriter = function(message, writer) {
1686
+ var f = undefined;
1687
+ f = message.getCode();
1688
+ if (f.length > 0) {
1689
+ writer.writeString(
1690
+ 2,
1691
+ f
1692
+ );
1693
+ }
1694
+ f = message.getName();
1695
+ if (f.length > 0) {
1696
+ writer.writeString(
1697
+ 3,
1698
+ f
1699
+ );
1700
+ }
1701
+ f = message.getAlias();
1702
+ if (f.length > 0) {
1703
+ writer.writeString(
1704
+ 4,
1705
+ f
1706
+ );
1707
+ }
1708
+ f = message.getCostCenterCode();
1709
+ if (f.length > 0) {
1710
+ writer.writeString(
1711
+ 5,
1712
+ f
1713
+ );
1714
+ }
1715
+ f = message.getParentReferencesId();
1716
+ if (f.length > 0) {
1717
+ writer.writeString(
1718
+ 6,
1719
+ f
1720
+ );
1721
+ }
1722
+ f = message.getOrganizationReferencesId();
1723
+ if (f.length > 0) {
1724
+ writer.writeString(
1725
+ 7,
1726
+ f
1727
+ );
1728
+ }
1729
+ f = message.getWorkLocationReferencesId();
1730
+ if (f.length > 0) {
1731
+ writer.writeString(
1732
+ 8,
1733
+ f
1734
+ );
1735
+ }
1736
+ f = message.getDescription();
1737
+ if (f.length > 0) {
1738
+ writer.writeString(
1739
+ 9,
1740
+ f
1741
+ );
1742
+ }
1743
+ f = message.getCompaniesReferencesId();
1744
+ if (f.length > 0) {
1745
+ writer.writeString(
1746
+ 10,
1747
+ f
1748
+ );
1749
+ }
1750
+ f = message.getUsersRoleReferencesId();
1751
+ if (f.length > 0) {
1752
+ writer.writeString(
1753
+ 11,
1754
+ f
1755
+ );
1756
+ }
1757
+ };
1758
+
1759
+
1760
+ /**
1761
+ * optional string code = 2;
1762
+ * @return {string}
1763
+ */
1764
+ proto.JobPosition.prototype.getCode = function() {
1765
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1766
+ };
1767
+
1768
+
1769
+ /**
1770
+ * @param {string} value
1771
+ * @return {!proto.JobPosition} returns this
1772
+ */
1773
+ proto.JobPosition.prototype.setCode = function(value) {
1774
+ return jspb.Message.setProto3StringField(this, 2, value);
1775
+ };
1776
+
1777
+
1778
+ /**
1779
+ * optional string name = 3;
1780
+ * @return {string}
1781
+ */
1782
+ proto.JobPosition.prototype.getName = function() {
1783
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1784
+ };
1785
+
1786
+
1787
+ /**
1788
+ * @param {string} value
1789
+ * @return {!proto.JobPosition} returns this
1790
+ */
1791
+ proto.JobPosition.prototype.setName = function(value) {
1792
+ return jspb.Message.setProto3StringField(this, 3, value);
1793
+ };
1794
+
1795
+
1796
+ /**
1797
+ * optional string alias = 4;
1798
+ * @return {string}
1799
+ */
1800
+ proto.JobPosition.prototype.getAlias = function() {
1801
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1802
+ };
1803
+
1804
+
1805
+ /**
1806
+ * @param {string} value
1807
+ * @return {!proto.JobPosition} returns this
1808
+ */
1809
+ proto.JobPosition.prototype.setAlias = function(value) {
1810
+ return jspb.Message.setProto3StringField(this, 4, value);
1811
+ };
1812
+
1813
+
1814
+ /**
1815
+ * optional string cost_center_code = 5;
1816
+ * @return {string}
1817
+ */
1818
+ proto.JobPosition.prototype.getCostCenterCode = function() {
1819
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1820
+ };
1821
+
1822
+
1823
+ /**
1824
+ * @param {string} value
1825
+ * @return {!proto.JobPosition} returns this
1826
+ */
1827
+ proto.JobPosition.prototype.setCostCenterCode = function(value) {
1828
+ return jspb.Message.setProto3StringField(this, 5, value);
1829
+ };
1830
+
1831
+
1832
+ /**
1833
+ * optional string parent_references_id = 6;
1834
+ * @return {string}
1835
+ */
1836
+ proto.JobPosition.prototype.getParentReferencesId = function() {
1837
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1838
+ };
1839
+
1840
+
1841
+ /**
1842
+ * @param {string} value
1843
+ * @return {!proto.JobPosition} returns this
1844
+ */
1845
+ proto.JobPosition.prototype.setParentReferencesId = function(value) {
1846
+ return jspb.Message.setProto3StringField(this, 6, value);
1847
+ };
1848
+
1849
+
1850
+ /**
1851
+ * optional string organization_references_id = 7;
1852
+ * @return {string}
1853
+ */
1854
+ proto.JobPosition.prototype.getOrganizationReferencesId = function() {
1855
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1856
+ };
1857
+
1858
+
1859
+ /**
1860
+ * @param {string} value
1861
+ * @return {!proto.JobPosition} returns this
1862
+ */
1863
+ proto.JobPosition.prototype.setOrganizationReferencesId = function(value) {
1864
+ return jspb.Message.setProto3StringField(this, 7, value);
1865
+ };
1866
+
1867
+
1868
+ /**
1869
+ * optional string work_location_references_id = 8;
1870
+ * @return {string}
1871
+ */
1872
+ proto.JobPosition.prototype.getWorkLocationReferencesId = function() {
1873
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1874
+ };
1875
+
1876
+
1877
+ /**
1878
+ * @param {string} value
1879
+ * @return {!proto.JobPosition} returns this
1880
+ */
1881
+ proto.JobPosition.prototype.setWorkLocationReferencesId = function(value) {
1882
+ return jspb.Message.setProto3StringField(this, 8, value);
1883
+ };
1884
+
1885
+
1886
+ /**
1887
+ * optional string description = 9;
1888
+ * @return {string}
1889
+ */
1890
+ proto.JobPosition.prototype.getDescription = function() {
1891
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1892
+ };
1893
+
1894
+
1895
+ /**
1896
+ * @param {string} value
1897
+ * @return {!proto.JobPosition} returns this
1898
+ */
1899
+ proto.JobPosition.prototype.setDescription = function(value) {
1900
+ return jspb.Message.setProto3StringField(this, 9, value);
1901
+ };
1902
+
1903
+
1904
+ /**
1905
+ * optional string companies_references_id = 10;
1906
+ * @return {string}
1907
+ */
1908
+ proto.JobPosition.prototype.getCompaniesReferencesId = function() {
1909
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1910
+ };
1911
+
1912
+
1913
+ /**
1914
+ * @param {string} value
1915
+ * @return {!proto.JobPosition} returns this
1916
+ */
1917
+ proto.JobPosition.prototype.setCompaniesReferencesId = function(value) {
1918
+ return jspb.Message.setProto3StringField(this, 10, value);
1919
+ };
1920
+
1921
+
1922
+ /**
1923
+ * optional string users_role_references_id = 11;
1924
+ * @return {string}
1925
+ */
1926
+ proto.JobPosition.prototype.getUsersRoleReferencesId = function() {
1927
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1928
+ };
1929
+
1930
+
1931
+ /**
1932
+ * @param {string} value
1933
+ * @return {!proto.JobPosition} returns this
1934
+ */
1935
+ proto.JobPosition.prototype.setUsersRoleReferencesId = function(value) {
1936
+ return jspb.Message.setProto3StringField(this, 11, value);
1937
+ };
1938
+
1939
+
1940
+
1941
+
1942
+
1943
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1944
+ /**
1945
+ * Creates an object representation of this proto.
1946
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1947
+ * Optional fields that are not set will be set to undefined.
1948
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1949
+ * For the list of reserved names please see:
1950
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1951
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1952
+ * JSPB instance for transitional soy proto support:
1953
+ * http://goto/soy-param-migration
1954
+ * @return {!Object}
1955
+ */
1956
+ proto.JobPositionGetByIdRequest.prototype.toObject = function(opt_includeInstance) {
1957
+ return proto.JobPositionGetByIdRequest.toObject(opt_includeInstance, this);
1958
+ };
1959
+
1960
+
1961
+ /**
1962
+ * Static version of the {@see toObject} method.
1963
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1964
+ * the JSPB instance for transitional soy proto support:
1965
+ * http://goto/soy-param-migration
1966
+ * @param {!proto.JobPositionGetByIdRequest} msg The msg instance to transform.
1967
+ * @return {!Object}
1968
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1969
+ */
1970
+ proto.JobPositionGetByIdRequest.toObject = function(includeInstance, msg) {
1971
+ var f, obj = {
1972
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1973
+ };
1974
+
1975
+ if (includeInstance) {
1976
+ obj.$jspbMessageInstance = msg;
1977
+ }
1978
+ return obj;
1979
+ };
1980
+ }
1981
+
1982
+
1983
+ /**
1984
+ * Deserializes binary data (in protobuf wire format).
1985
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1986
+ * @return {!proto.JobPositionGetByIdRequest}
1987
+ */
1988
+ proto.JobPositionGetByIdRequest.deserializeBinary = function(bytes) {
1989
+ var reader = new jspb.BinaryReader(bytes);
1990
+ var msg = new proto.JobPositionGetByIdRequest;
1991
+ return proto.JobPositionGetByIdRequest.deserializeBinaryFromReader(msg, reader);
1992
+ };
1993
+
1994
+
1995
+ /**
1996
+ * Deserializes binary data (in protobuf wire format) from the
1997
+ * given reader into the given message object.
1998
+ * @param {!proto.JobPositionGetByIdRequest} msg The message object to deserialize into.
1999
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2000
+ * @return {!proto.JobPositionGetByIdRequest}
2001
+ */
2002
+ proto.JobPositionGetByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
2003
+ while (reader.nextField()) {
2004
+ if (reader.isEndGroup()) {
2005
+ break;
2006
+ }
2007
+ var field = reader.getFieldNumber();
2008
+ switch (field) {
2009
+ case 1:
2010
+ var value = /** @type {string} */ (reader.readString());
2011
+ msg.setReferencesId(value);
2012
+ break;
2013
+ default:
2014
+ reader.skipField();
2015
+ break;
2016
+ }
2017
+ }
2018
+ return msg;
2019
+ };
2020
+
2021
+
2022
+ /**
2023
+ * Serializes the message to binary data (in protobuf wire format).
2024
+ * @return {!Uint8Array}
2025
+ */
2026
+ proto.JobPositionGetByIdRequest.prototype.serializeBinary = function() {
2027
+ var writer = new jspb.BinaryWriter();
2028
+ proto.JobPositionGetByIdRequest.serializeBinaryToWriter(this, writer);
2029
+ return writer.getResultBuffer();
2030
+ };
2031
+
2032
+
2033
+ /**
2034
+ * Serializes the given message to binary data (in protobuf wire
2035
+ * format), writing to the given BinaryWriter.
2036
+ * @param {!proto.JobPositionGetByIdRequest} message
2037
+ * @param {!jspb.BinaryWriter} writer
2038
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2039
+ */
2040
+ proto.JobPositionGetByIdRequest.serializeBinaryToWriter = function(message, writer) {
2041
+ var f = undefined;
2042
+ f = message.getReferencesId();
2043
+ if (f.length > 0) {
2044
+ writer.writeString(
2045
+ 1,
2046
+ f
2047
+ );
2048
+ }
2049
+ };
2050
+
2051
+
2052
+ /**
2053
+ * optional string references_id = 1;
2054
+ * @return {string}
2055
+ */
2056
+ proto.JobPositionGetByIdRequest.prototype.getReferencesId = function() {
2057
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2058
+ };
2059
+
2060
+
2061
+ /**
2062
+ * @param {string} value
2063
+ * @return {!proto.JobPositionGetByIdRequest} returns this
2064
+ */
2065
+ proto.JobPositionGetByIdRequest.prototype.setReferencesId = function(value) {
2066
+ return jspb.Message.setProto3StringField(this, 1, value);
2067
+ };
2068
+
2069
+
2070
+
2071
+
2072
+
2073
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2074
+ /**
2075
+ * Creates an object representation of this proto.
2076
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2077
+ * Optional fields that are not set will be set to undefined.
2078
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2079
+ * For the list of reserved names please see:
2080
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2081
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2082
+ * JSPB instance for transitional soy proto support:
2083
+ * http://goto/soy-param-migration
2084
+ * @return {!Object}
2085
+ */
2086
+ proto.CreateJobPositionRequest.prototype.toObject = function(opt_includeInstance) {
2087
+ return proto.CreateJobPositionRequest.toObject(opt_includeInstance, this);
2088
+ };
2089
+
2090
+
2091
+ /**
2092
+ * Static version of the {@see toObject} method.
2093
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2094
+ * the JSPB instance for transitional soy proto support:
2095
+ * http://goto/soy-param-migration
2096
+ * @param {!proto.CreateJobPositionRequest} msg The msg instance to transform.
2097
+ * @return {!Object}
2098
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2099
+ */
2100
+ proto.CreateJobPositionRequest.toObject = function(includeInstance, msg) {
2101
+ var f, obj = {
2102
+ jobPosition: (f = msg.getJobPosition()) && proto.JobPosition.toObject(includeInstance, f)
2103
+ };
2104
+
2105
+ if (includeInstance) {
2106
+ obj.$jspbMessageInstance = msg;
2107
+ }
2108
+ return obj;
2109
+ };
2110
+ }
2111
+
2112
+
2113
+ /**
2114
+ * Deserializes binary data (in protobuf wire format).
2115
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2116
+ * @return {!proto.CreateJobPositionRequest}
2117
+ */
2118
+ proto.CreateJobPositionRequest.deserializeBinary = function(bytes) {
2119
+ var reader = new jspb.BinaryReader(bytes);
2120
+ var msg = new proto.CreateJobPositionRequest;
2121
+ return proto.CreateJobPositionRequest.deserializeBinaryFromReader(msg, reader);
2122
+ };
2123
+
2124
+
2125
+ /**
2126
+ * Deserializes binary data (in protobuf wire format) from the
2127
+ * given reader into the given message object.
2128
+ * @param {!proto.CreateJobPositionRequest} msg The message object to deserialize into.
2129
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2130
+ * @return {!proto.CreateJobPositionRequest}
2131
+ */
2132
+ proto.CreateJobPositionRequest.deserializeBinaryFromReader = function(msg, reader) {
2133
+ while (reader.nextField()) {
2134
+ if (reader.isEndGroup()) {
2135
+ break;
2136
+ }
2137
+ var field = reader.getFieldNumber();
2138
+ switch (field) {
2139
+ case 1:
2140
+ var value = new proto.JobPosition;
2141
+ reader.readMessage(value,proto.JobPosition.deserializeBinaryFromReader);
2142
+ msg.setJobPosition(value);
2143
+ break;
2144
+ default:
2145
+ reader.skipField();
2146
+ break;
2147
+ }
2148
+ }
2149
+ return msg;
2150
+ };
2151
+
2152
+
2153
+ /**
2154
+ * Serializes the message to binary data (in protobuf wire format).
2155
+ * @return {!Uint8Array}
2156
+ */
2157
+ proto.CreateJobPositionRequest.prototype.serializeBinary = function() {
2158
+ var writer = new jspb.BinaryWriter();
2159
+ proto.CreateJobPositionRequest.serializeBinaryToWriter(this, writer);
2160
+ return writer.getResultBuffer();
2161
+ };
2162
+
2163
+
2164
+ /**
2165
+ * Serializes the given message to binary data (in protobuf wire
2166
+ * format), writing to the given BinaryWriter.
2167
+ * @param {!proto.CreateJobPositionRequest} message
2168
+ * @param {!jspb.BinaryWriter} writer
2169
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2170
+ */
2171
+ proto.CreateJobPositionRequest.serializeBinaryToWriter = function(message, writer) {
2172
+ var f = undefined;
2173
+ f = message.getJobPosition();
2174
+ if (f != null) {
2175
+ writer.writeMessage(
2176
+ 1,
2177
+ f,
2178
+ proto.JobPosition.serializeBinaryToWriter
2179
+ );
2180
+ }
2181
+ };
2182
+
2183
+
2184
+ /**
2185
+ * optional JobPosition job_position = 1;
2186
+ * @return {?proto.JobPosition}
2187
+ */
2188
+ proto.CreateJobPositionRequest.prototype.getJobPosition = function() {
2189
+ return /** @type{?proto.JobPosition} */ (
2190
+ jspb.Message.getWrapperField(this, proto.JobPosition, 1));
2191
+ };
2192
+
2193
+
2194
+ /**
2195
+ * @param {?proto.JobPosition|undefined} value
2196
+ * @return {!proto.CreateJobPositionRequest} returns this
2197
+ */
2198
+ proto.CreateJobPositionRequest.prototype.setJobPosition = function(value) {
2199
+ return jspb.Message.setWrapperField(this, 1, value);
2200
+ };
2201
+
2202
+
2203
+ /**
2204
+ * Clears the message field making it undefined.
2205
+ * @return {!proto.CreateJobPositionRequest} returns this
2206
+ */
2207
+ proto.CreateJobPositionRequest.prototype.clearJobPosition = function() {
2208
+ return this.setJobPosition(undefined);
2209
+ };
2210
+
2211
+
2212
+ /**
2213
+ * Returns whether this field is set.
2214
+ * @return {boolean}
2215
+ */
2216
+ proto.CreateJobPositionRequest.prototype.hasJobPosition = function() {
2217
+ return jspb.Message.getField(this, 1) != null;
2218
+ };
2219
+
2220
+
2221
+
2222
+
2223
+
2224
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2225
+ /**
2226
+ * Creates an object representation of this proto.
2227
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2228
+ * Optional fields that are not set will be set to undefined.
2229
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2230
+ * For the list of reserved names please see:
2231
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2232
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2233
+ * JSPB instance for transitional soy proto support:
2234
+ * http://goto/soy-param-migration
2235
+ * @return {!Object}
2236
+ */
2237
+ proto.UpdateJobPositionRequest.prototype.toObject = function(opt_includeInstance) {
2238
+ return proto.UpdateJobPositionRequest.toObject(opt_includeInstance, this);
2239
+ };
2240
+
2241
+
2242
+ /**
2243
+ * Static version of the {@see toObject} method.
2244
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2245
+ * the JSPB instance for transitional soy proto support:
2246
+ * http://goto/soy-param-migration
2247
+ * @param {!proto.UpdateJobPositionRequest} msg The msg instance to transform.
2248
+ * @return {!Object}
2249
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2250
+ */
2251
+ proto.UpdateJobPositionRequest.toObject = function(includeInstance, msg) {
2252
+ var f, obj = {
2253
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2254
+ jobPosition: (f = msg.getJobPosition()) && proto.JobPosition.toObject(includeInstance, f)
2255
+ };
2256
+
2257
+ if (includeInstance) {
2258
+ obj.$jspbMessageInstance = msg;
2259
+ }
2260
+ return obj;
2261
+ };
2262
+ }
2263
+
2264
+
2265
+ /**
2266
+ * Deserializes binary data (in protobuf wire format).
2267
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2268
+ * @return {!proto.UpdateJobPositionRequest}
2269
+ */
2270
+ proto.UpdateJobPositionRequest.deserializeBinary = function(bytes) {
2271
+ var reader = new jspb.BinaryReader(bytes);
2272
+ var msg = new proto.UpdateJobPositionRequest;
2273
+ return proto.UpdateJobPositionRequest.deserializeBinaryFromReader(msg, reader);
2274
+ };
2275
+
2276
+
2277
+ /**
2278
+ * Deserializes binary data (in protobuf wire format) from the
2279
+ * given reader into the given message object.
2280
+ * @param {!proto.UpdateJobPositionRequest} msg The message object to deserialize into.
2281
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2282
+ * @return {!proto.UpdateJobPositionRequest}
2283
+ */
2284
+ proto.UpdateJobPositionRequest.deserializeBinaryFromReader = function(msg, reader) {
2285
+ while (reader.nextField()) {
2286
+ if (reader.isEndGroup()) {
2287
+ break;
2288
+ }
2289
+ var field = reader.getFieldNumber();
2290
+ switch (field) {
2291
+ case 1:
2292
+ var value = /** @type {string} */ (reader.readString());
2293
+ msg.setReferencesId(value);
2294
+ break;
2295
+ case 2:
2296
+ var value = new proto.JobPosition;
2297
+ reader.readMessage(value,proto.JobPosition.deserializeBinaryFromReader);
2298
+ msg.setJobPosition(value);
2299
+ break;
2300
+ default:
2301
+ reader.skipField();
2302
+ break;
2303
+ }
2304
+ }
2305
+ return msg;
2306
+ };
2307
+
2308
+
2309
+ /**
2310
+ * Serializes the message to binary data (in protobuf wire format).
2311
+ * @return {!Uint8Array}
2312
+ */
2313
+ proto.UpdateJobPositionRequest.prototype.serializeBinary = function() {
2314
+ var writer = new jspb.BinaryWriter();
2315
+ proto.UpdateJobPositionRequest.serializeBinaryToWriter(this, writer);
2316
+ return writer.getResultBuffer();
2317
+ };
2318
+
2319
+
2320
+ /**
2321
+ * Serializes the given message to binary data (in protobuf wire
2322
+ * format), writing to the given BinaryWriter.
2323
+ * @param {!proto.UpdateJobPositionRequest} message
2324
+ * @param {!jspb.BinaryWriter} writer
2325
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2326
+ */
2327
+ proto.UpdateJobPositionRequest.serializeBinaryToWriter = function(message, writer) {
2328
+ var f = undefined;
2329
+ f = message.getReferencesId();
2330
+ if (f.length > 0) {
2331
+ writer.writeString(
2332
+ 1,
2333
+ f
2334
+ );
2335
+ }
2336
+ f = message.getJobPosition();
2337
+ if (f != null) {
2338
+ writer.writeMessage(
2339
+ 2,
2340
+ f,
2341
+ proto.JobPosition.serializeBinaryToWriter
2342
+ );
2343
+ }
2344
+ };
2345
+
2346
+
2347
+ /**
2348
+ * optional string references_id = 1;
2349
+ * @return {string}
2350
+ */
2351
+ proto.UpdateJobPositionRequest.prototype.getReferencesId = function() {
2352
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2353
+ };
2354
+
2355
+
2356
+ /**
2357
+ * @param {string} value
2358
+ * @return {!proto.UpdateJobPositionRequest} returns this
2359
+ */
2360
+ proto.UpdateJobPositionRequest.prototype.setReferencesId = function(value) {
2361
+ return jspb.Message.setProto3StringField(this, 1, value);
2362
+ };
2363
+
2364
+
2365
+ /**
2366
+ * optional JobPosition job_position = 2;
2367
+ * @return {?proto.JobPosition}
2368
+ */
2369
+ proto.UpdateJobPositionRequest.prototype.getJobPosition = function() {
2370
+ return /** @type{?proto.JobPosition} */ (
2371
+ jspb.Message.getWrapperField(this, proto.JobPosition, 2));
2372
+ };
2373
+
2374
+
2375
+ /**
2376
+ * @param {?proto.JobPosition|undefined} value
2377
+ * @return {!proto.UpdateJobPositionRequest} returns this
2378
+ */
2379
+ proto.UpdateJobPositionRequest.prototype.setJobPosition = function(value) {
2380
+ return jspb.Message.setWrapperField(this, 2, value);
2381
+ };
2382
+
2383
+
2384
+ /**
2385
+ * Clears the message field making it undefined.
2386
+ * @return {!proto.UpdateJobPositionRequest} returns this
2387
+ */
2388
+ proto.UpdateJobPositionRequest.prototype.clearJobPosition = function() {
2389
+ return this.setJobPosition(undefined);
2390
+ };
2391
+
2392
+
2393
+ /**
2394
+ * Returns whether this field is set.
2395
+ * @return {boolean}
2396
+ */
2397
+ proto.UpdateJobPositionRequest.prototype.hasJobPosition = function() {
2398
+ return jspb.Message.getField(this, 2) != null;
2399
+ };
2400
+
2401
+
2402
+
2403
+
2404
+
2405
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2406
+ /**
2407
+ * Creates an object representation of this proto.
2408
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2409
+ * Optional fields that are not set will be set to undefined.
2410
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2411
+ * For the list of reserved names please see:
2412
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2413
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2414
+ * JSPB instance for transitional soy proto support:
2415
+ * http://goto/soy-param-migration
2416
+ * @return {!Object}
2417
+ */
2418
+ proto.DeleteJobPositionRequest.prototype.toObject = function(opt_includeInstance) {
2419
+ return proto.DeleteJobPositionRequest.toObject(opt_includeInstance, this);
2420
+ };
2421
+
2422
+
2423
+ /**
2424
+ * Static version of the {@see toObject} method.
2425
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2426
+ * the JSPB instance for transitional soy proto support:
2427
+ * http://goto/soy-param-migration
2428
+ * @param {!proto.DeleteJobPositionRequest} msg The msg instance to transform.
2429
+ * @return {!Object}
2430
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2431
+ */
2432
+ proto.DeleteJobPositionRequest.toObject = function(includeInstance, msg) {
2433
+ var f, obj = {
2434
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2435
+ };
2436
+
2437
+ if (includeInstance) {
2438
+ obj.$jspbMessageInstance = msg;
2439
+ }
2440
+ return obj;
2441
+ };
2442
+ }
2443
+
2444
+
2445
+ /**
2446
+ * Deserializes binary data (in protobuf wire format).
2447
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2448
+ * @return {!proto.DeleteJobPositionRequest}
2449
+ */
2450
+ proto.DeleteJobPositionRequest.deserializeBinary = function(bytes) {
2451
+ var reader = new jspb.BinaryReader(bytes);
2452
+ var msg = new proto.DeleteJobPositionRequest;
2453
+ return proto.DeleteJobPositionRequest.deserializeBinaryFromReader(msg, reader);
2454
+ };
2455
+
2456
+
2457
+ /**
2458
+ * Deserializes binary data (in protobuf wire format) from the
2459
+ * given reader into the given message object.
2460
+ * @param {!proto.DeleteJobPositionRequest} msg The message object to deserialize into.
2461
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2462
+ * @return {!proto.DeleteJobPositionRequest}
2463
+ */
2464
+ proto.DeleteJobPositionRequest.deserializeBinaryFromReader = function(msg, reader) {
2465
+ while (reader.nextField()) {
2466
+ if (reader.isEndGroup()) {
2467
+ break;
2468
+ }
2469
+ var field = reader.getFieldNumber();
2470
+ switch (field) {
2471
+ case 1:
2472
+ var value = /** @type {string} */ (reader.readString());
2473
+ msg.setReferencesId(value);
2474
+ break;
2475
+ default:
2476
+ reader.skipField();
2477
+ break;
2478
+ }
2479
+ }
2480
+ return msg;
2481
+ };
2482
+
2483
+
2484
+ /**
2485
+ * Serializes the message to binary data (in protobuf wire format).
2486
+ * @return {!Uint8Array}
2487
+ */
2488
+ proto.DeleteJobPositionRequest.prototype.serializeBinary = function() {
2489
+ var writer = new jspb.BinaryWriter();
2490
+ proto.DeleteJobPositionRequest.serializeBinaryToWriter(this, writer);
2491
+ return writer.getResultBuffer();
2492
+ };
2493
+
2494
+
2495
+ /**
2496
+ * Serializes the given message to binary data (in protobuf wire
2497
+ * format), writing to the given BinaryWriter.
2498
+ * @param {!proto.DeleteJobPositionRequest} message
2499
+ * @param {!jspb.BinaryWriter} writer
2500
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2501
+ */
2502
+ proto.DeleteJobPositionRequest.serializeBinaryToWriter = function(message, writer) {
2503
+ var f = undefined;
2504
+ f = message.getReferencesId();
2505
+ if (f.length > 0) {
2506
+ writer.writeString(
2507
+ 1,
2508
+ f
2509
+ );
2510
+ }
2511
+ };
2512
+
2513
+
2514
+ /**
2515
+ * optional string references_id = 1;
2516
+ * @return {string}
2517
+ */
2518
+ proto.DeleteJobPositionRequest.prototype.getReferencesId = function() {
2519
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2520
+ };
2521
+
2522
+
2523
+ /**
2524
+ * @param {string} value
2525
+ * @return {!proto.DeleteJobPositionRequest} returns this
2526
+ */
2527
+ proto.DeleteJobPositionRequest.prototype.setReferencesId = function(value) {
2528
+ return jspb.Message.setProto3StringField(this, 1, value);
2529
+ };
2530
+
2531
+
2532
+
2533
+
2534
+
2535
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2536
+ /**
2537
+ * Creates an object representation of this proto.
2538
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2539
+ * Optional fields that are not set will be set to undefined.
2540
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2541
+ * For the list of reserved names please see:
2542
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2543
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2544
+ * JSPB instance for transitional soy proto support:
2545
+ * http://goto/soy-param-migration
2546
+ * @return {!Object}
2547
+ */
2548
+ proto.DeleteJobPositionResponse.prototype.toObject = function(opt_includeInstance) {
2549
+ return proto.DeleteJobPositionResponse.toObject(opt_includeInstance, this);
2550
+ };
2551
+
2552
+
2553
+ /**
2554
+ * Static version of the {@see toObject} method.
2555
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2556
+ * the JSPB instance for transitional soy proto support:
2557
+ * http://goto/soy-param-migration
2558
+ * @param {!proto.DeleteJobPositionResponse} msg The msg instance to transform.
2559
+ * @return {!Object}
2560
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2561
+ */
2562
+ proto.DeleteJobPositionResponse.toObject = function(includeInstance, msg) {
2563
+ var f, obj = {
2564
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2565
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2566
+ };
2567
+
2568
+ if (includeInstance) {
2569
+ obj.$jspbMessageInstance = msg;
2570
+ }
2571
+ return obj;
2572
+ };
2573
+ }
2574
+
2575
+
2576
+ /**
2577
+ * Deserializes binary data (in protobuf wire format).
2578
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2579
+ * @return {!proto.DeleteJobPositionResponse}
2580
+ */
2581
+ proto.DeleteJobPositionResponse.deserializeBinary = function(bytes) {
2582
+ var reader = new jspb.BinaryReader(bytes);
2583
+ var msg = new proto.DeleteJobPositionResponse;
2584
+ return proto.DeleteJobPositionResponse.deserializeBinaryFromReader(msg, reader);
2585
+ };
2586
+
2587
+
2588
+ /**
2589
+ * Deserializes binary data (in protobuf wire format) from the
2590
+ * given reader into the given message object.
2591
+ * @param {!proto.DeleteJobPositionResponse} msg The message object to deserialize into.
2592
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2593
+ * @return {!proto.DeleteJobPositionResponse}
2594
+ */
2595
+ proto.DeleteJobPositionResponse.deserializeBinaryFromReader = function(msg, reader) {
2596
+ while (reader.nextField()) {
2597
+ if (reader.isEndGroup()) {
2598
+ break;
2599
+ }
2600
+ var field = reader.getFieldNumber();
2601
+ switch (field) {
2602
+ case 1:
2603
+ var value = /** @type {string} */ (reader.readString());
2604
+ msg.setReferencesId(value);
2605
+ break;
2606
+ case 2:
2607
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2608
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2609
+ msg.setMeta(value);
2610
+ break;
2611
+ default:
2612
+ reader.skipField();
2613
+ break;
2614
+ }
2615
+ }
2616
+ return msg;
2617
+ };
2618
+
2619
+
2620
+ /**
2621
+ * Serializes the message to binary data (in protobuf wire format).
2622
+ * @return {!Uint8Array}
2623
+ */
2624
+ proto.DeleteJobPositionResponse.prototype.serializeBinary = function() {
2625
+ var writer = new jspb.BinaryWriter();
2626
+ proto.DeleteJobPositionResponse.serializeBinaryToWriter(this, writer);
2627
+ return writer.getResultBuffer();
2628
+ };
2629
+
2630
+
2631
+ /**
2632
+ * Serializes the given message to binary data (in protobuf wire
2633
+ * format), writing to the given BinaryWriter.
2634
+ * @param {!proto.DeleteJobPositionResponse} message
2635
+ * @param {!jspb.BinaryWriter} writer
2636
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2637
+ */
2638
+ proto.DeleteJobPositionResponse.serializeBinaryToWriter = function(message, writer) {
2639
+ var f = undefined;
2640
+ f = message.getReferencesId();
2641
+ if (f.length > 0) {
2642
+ writer.writeString(
2643
+ 1,
2644
+ f
2645
+ );
2646
+ }
2647
+ f = message.getMeta();
2648
+ if (f != null) {
2649
+ writer.writeMessage(
2650
+ 2,
2651
+ f,
2652
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2653
+ );
2654
+ }
2655
+ };
2656
+
2657
+
2658
+ /**
2659
+ * optional string references_id = 1;
2660
+ * @return {string}
2661
+ */
2662
+ proto.DeleteJobPositionResponse.prototype.getReferencesId = function() {
2663
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2664
+ };
2665
+
2666
+
2667
+ /**
2668
+ * @param {string} value
2669
+ * @return {!proto.DeleteJobPositionResponse} returns this
2670
+ */
2671
+ proto.DeleteJobPositionResponse.prototype.setReferencesId = function(value) {
2672
+ return jspb.Message.setProto3StringField(this, 1, value);
2673
+ };
2674
+
2675
+
2676
+ /**
2677
+ * optional prisca.v1.global.meta.Meta meta = 2;
2678
+ * @return {?proto.prisca.v1.global.meta.Meta}
2679
+ */
2680
+ proto.DeleteJobPositionResponse.prototype.getMeta = function() {
2681
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2682
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2683
+ };
2684
+
2685
+
2686
+ /**
2687
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2688
+ * @return {!proto.DeleteJobPositionResponse} returns this
2689
+ */
2690
+ proto.DeleteJobPositionResponse.prototype.setMeta = function(value) {
2691
+ return jspb.Message.setWrapperField(this, 2, value);
2692
+ };
2693
+
2694
+
2695
+ /**
2696
+ * Clears the message field making it undefined.
2697
+ * @return {!proto.DeleteJobPositionResponse} returns this
2698
+ */
2699
+ proto.DeleteJobPositionResponse.prototype.clearMeta = function() {
2700
+ return this.setMeta(undefined);
2701
+ };
2702
+
2703
+
2704
+ /**
2705
+ * Returns whether this field is set.
2706
+ * @return {boolean}
2707
+ */
2708
+ proto.DeleteJobPositionResponse.prototype.hasMeta = function() {
2709
+ return jspb.Message.getField(this, 2) != null;
2710
+ };
2711
+
2712
+
2713
+
2714
+
2715
+
2716
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2717
+ /**
2718
+ * Creates an object representation of this proto.
2719
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2720
+ * Optional fields that are not set will be set to undefined.
2721
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2722
+ * For the list of reserved names please see:
2723
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2724
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2725
+ * JSPB instance for transitional soy proto support:
2726
+ * http://goto/soy-param-migration
2727
+ * @return {!Object}
2728
+ */
2729
+ proto.GetListJobPositionRequest.prototype.toObject = function(opt_includeInstance) {
2730
+ return proto.GetListJobPositionRequest.toObject(opt_includeInstance, this);
2731
+ };
2732
+
2733
+
2734
+ /**
2735
+ * Static version of the {@see toObject} method.
2736
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2737
+ * the JSPB instance for transitional soy proto support:
2738
+ * http://goto/soy-param-migration
2739
+ * @param {!proto.GetListJobPositionRequest} msg The msg instance to transform.
2740
+ * @return {!Object}
2741
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2742
+ */
2743
+ proto.GetListJobPositionRequest.toObject = function(includeInstance, msg) {
2744
+ var f, obj = {
2745
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
2746
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
2747
+ };
2748
+
2749
+ if (includeInstance) {
2750
+ obj.$jspbMessageInstance = msg;
2751
+ }
2752
+ return obj;
2753
+ };
2754
+ }
2755
+
2756
+
2757
+ /**
2758
+ * Deserializes binary data (in protobuf wire format).
2759
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2760
+ * @return {!proto.GetListJobPositionRequest}
2761
+ */
2762
+ proto.GetListJobPositionRequest.deserializeBinary = function(bytes) {
2763
+ var reader = new jspb.BinaryReader(bytes);
2764
+ var msg = new proto.GetListJobPositionRequest;
2765
+ return proto.GetListJobPositionRequest.deserializeBinaryFromReader(msg, reader);
2766
+ };
2767
+
2768
+
2769
+ /**
2770
+ * Deserializes binary data (in protobuf wire format) from the
2771
+ * given reader into the given message object.
2772
+ * @param {!proto.GetListJobPositionRequest} msg The message object to deserialize into.
2773
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2774
+ * @return {!proto.GetListJobPositionRequest}
2775
+ */
2776
+ proto.GetListJobPositionRequest.deserializeBinaryFromReader = function(msg, reader) {
2777
+ while (reader.nextField()) {
2778
+ if (reader.isEndGroup()) {
2779
+ break;
2780
+ }
2781
+ var field = reader.getFieldNumber();
2782
+ switch (field) {
2783
+ case 1:
2784
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
2785
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
2786
+ msg.setPagination(value);
2787
+ break;
2788
+ case 2:
2789
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
2790
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
2791
+ msg.setQuery(value);
2792
+ break;
2793
+ default:
2794
+ reader.skipField();
2795
+ break;
2796
+ }
2797
+ }
2798
+ return msg;
2799
+ };
2800
+
2801
+
2802
+ /**
2803
+ * Serializes the message to binary data (in protobuf wire format).
2804
+ * @return {!Uint8Array}
2805
+ */
2806
+ proto.GetListJobPositionRequest.prototype.serializeBinary = function() {
2807
+ var writer = new jspb.BinaryWriter();
2808
+ proto.GetListJobPositionRequest.serializeBinaryToWriter(this, writer);
2809
+ return writer.getResultBuffer();
2810
+ };
2811
+
2812
+
2813
+ /**
2814
+ * Serializes the given message to binary data (in protobuf wire
2815
+ * format), writing to the given BinaryWriter.
2816
+ * @param {!proto.GetListJobPositionRequest} message
2817
+ * @param {!jspb.BinaryWriter} writer
2818
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2819
+ */
2820
+ proto.GetListJobPositionRequest.serializeBinaryToWriter = function(message, writer) {
2821
+ var f = undefined;
2822
+ f = message.getPagination();
2823
+ if (f != null) {
2824
+ writer.writeMessage(
2825
+ 1,
2826
+ f,
2827
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
2828
+ );
2829
+ }
2830
+ f = message.getQuery();
2831
+ if (f != null) {
2832
+ writer.writeMessage(
2833
+ 2,
2834
+ f,
2835
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
2836
+ );
2837
+ }
2838
+ };
2839
+
2840
+
2841
+ /**
2842
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
2843
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
2844
+ */
2845
+ proto.GetListJobPositionRequest.prototype.getPagination = function() {
2846
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
2847
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
2848
+ };
2849
+
2850
+
2851
+ /**
2852
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
2853
+ * @return {!proto.GetListJobPositionRequest} returns this
2854
+ */
2855
+ proto.GetListJobPositionRequest.prototype.setPagination = function(value) {
2856
+ return jspb.Message.setWrapperField(this, 1, value);
2857
+ };
2858
+
2859
+
2860
+ /**
2861
+ * Clears the message field making it undefined.
2862
+ * @return {!proto.GetListJobPositionRequest} returns this
2863
+ */
2864
+ proto.GetListJobPositionRequest.prototype.clearPagination = function() {
2865
+ return this.setPagination(undefined);
2866
+ };
2867
+
2868
+
2869
+ /**
2870
+ * Returns whether this field is set.
2871
+ * @return {boolean}
2872
+ */
2873
+ proto.GetListJobPositionRequest.prototype.hasPagination = function() {
2874
+ return jspb.Message.getField(this, 1) != null;
2875
+ };
2876
+
2877
+
2878
+ /**
2879
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
2880
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
2881
+ */
2882
+ proto.GetListJobPositionRequest.prototype.getQuery = function() {
2883
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
2884
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
2885
+ };
2886
+
2887
+
2888
+ /**
2889
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
2890
+ * @return {!proto.GetListJobPositionRequest} returns this
2891
+ */
2892
+ proto.GetListJobPositionRequest.prototype.setQuery = function(value) {
2893
+ return jspb.Message.setWrapperField(this, 2, value);
2894
+ };
2895
+
2896
+
2897
+ /**
2898
+ * Clears the message field making it undefined.
2899
+ * @return {!proto.GetListJobPositionRequest} returns this
2900
+ */
2901
+ proto.GetListJobPositionRequest.prototype.clearQuery = function() {
2902
+ return this.setQuery(undefined);
2903
+ };
2904
+
2905
+
2906
+ /**
2907
+ * Returns whether this field is set.
2908
+ * @return {boolean}
2909
+ */
2910
+ proto.GetListJobPositionRequest.prototype.hasQuery = function() {
2911
+ return jspb.Message.getField(this, 2) != null;
2912
+ };
2913
+
2914
+
2915
+
2916
+
2917
+
2918
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2919
+ /**
2920
+ * Creates an object representation of this proto.
2921
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2922
+ * Optional fields that are not set will be set to undefined.
2923
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2924
+ * For the list of reserved names please see:
2925
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2926
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2927
+ * JSPB instance for transitional soy proto support:
2928
+ * http://goto/soy-param-migration
2929
+ * @return {!Object}
2930
+ */
2931
+ proto.CreateJobPositionResponse.prototype.toObject = function(opt_includeInstance) {
2932
+ return proto.CreateJobPositionResponse.toObject(opt_includeInstance, this);
2933
+ };
2934
+
2935
+
2936
+ /**
2937
+ * Static version of the {@see toObject} method.
2938
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2939
+ * the JSPB instance for transitional soy proto support:
2940
+ * http://goto/soy-param-migration
2941
+ * @param {!proto.CreateJobPositionResponse} msg The msg instance to transform.
2942
+ * @return {!Object}
2943
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2944
+ */
2945
+ proto.CreateJobPositionResponse.toObject = function(includeInstance, msg) {
2946
+ var f, obj = {
2947
+ jobPosition: (f = msg.getJobPosition()) && proto.JobPosition.toObject(includeInstance, f),
2948
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2949
+ };
2950
+
2951
+ if (includeInstance) {
2952
+ obj.$jspbMessageInstance = msg;
2953
+ }
2954
+ return obj;
2955
+ };
2956
+ }
2957
+
2958
+
2959
+ /**
2960
+ * Deserializes binary data (in protobuf wire format).
2961
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2962
+ * @return {!proto.CreateJobPositionResponse}
2963
+ */
2964
+ proto.CreateJobPositionResponse.deserializeBinary = function(bytes) {
2965
+ var reader = new jspb.BinaryReader(bytes);
2966
+ var msg = new proto.CreateJobPositionResponse;
2967
+ return proto.CreateJobPositionResponse.deserializeBinaryFromReader(msg, reader);
2968
+ };
2969
+
2970
+
2971
+ /**
2972
+ * Deserializes binary data (in protobuf wire format) from the
2973
+ * given reader into the given message object.
2974
+ * @param {!proto.CreateJobPositionResponse} msg The message object to deserialize into.
2975
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2976
+ * @return {!proto.CreateJobPositionResponse}
2977
+ */
2978
+ proto.CreateJobPositionResponse.deserializeBinaryFromReader = function(msg, reader) {
2979
+ while (reader.nextField()) {
2980
+ if (reader.isEndGroup()) {
2981
+ break;
2982
+ }
2983
+ var field = reader.getFieldNumber();
2984
+ switch (field) {
2985
+ case 1:
2986
+ var value = new proto.JobPosition;
2987
+ reader.readMessage(value,proto.JobPosition.deserializeBinaryFromReader);
2988
+ msg.setJobPosition(value);
2989
+ break;
2990
+ case 2:
2991
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2992
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2993
+ msg.setMeta(value);
2994
+ break;
2995
+ default:
2996
+ reader.skipField();
2997
+ break;
2998
+ }
2999
+ }
3000
+ return msg;
3001
+ };
3002
+
3003
+
3004
+ /**
3005
+ * Serializes the message to binary data (in protobuf wire format).
3006
+ * @return {!Uint8Array}
3007
+ */
3008
+ proto.CreateJobPositionResponse.prototype.serializeBinary = function() {
3009
+ var writer = new jspb.BinaryWriter();
3010
+ proto.CreateJobPositionResponse.serializeBinaryToWriter(this, writer);
3011
+ return writer.getResultBuffer();
3012
+ };
3013
+
3014
+
3015
+ /**
3016
+ * Serializes the given message to binary data (in protobuf wire
3017
+ * format), writing to the given BinaryWriter.
3018
+ * @param {!proto.CreateJobPositionResponse} message
3019
+ * @param {!jspb.BinaryWriter} writer
3020
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3021
+ */
3022
+ proto.CreateJobPositionResponse.serializeBinaryToWriter = function(message, writer) {
3023
+ var f = undefined;
3024
+ f = message.getJobPosition();
3025
+ if (f != null) {
3026
+ writer.writeMessage(
3027
+ 1,
3028
+ f,
3029
+ proto.JobPosition.serializeBinaryToWriter
3030
+ );
3031
+ }
3032
+ f = message.getMeta();
3033
+ if (f != null) {
3034
+ writer.writeMessage(
3035
+ 2,
3036
+ f,
3037
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3038
+ );
3039
+ }
3040
+ };
3041
+
3042
+
3043
+ /**
3044
+ * optional JobPosition job_position = 1;
3045
+ * @return {?proto.JobPosition}
3046
+ */
3047
+ proto.CreateJobPositionResponse.prototype.getJobPosition = function() {
3048
+ return /** @type{?proto.JobPosition} */ (
3049
+ jspb.Message.getWrapperField(this, proto.JobPosition, 1));
3050
+ };
3051
+
3052
+
3053
+ /**
3054
+ * @param {?proto.JobPosition|undefined} value
3055
+ * @return {!proto.CreateJobPositionResponse} returns this
3056
+ */
3057
+ proto.CreateJobPositionResponse.prototype.setJobPosition = function(value) {
3058
+ return jspb.Message.setWrapperField(this, 1, value);
3059
+ };
3060
+
3061
+
3062
+ /**
3063
+ * Clears the message field making it undefined.
3064
+ * @return {!proto.CreateJobPositionResponse} returns this
3065
+ */
3066
+ proto.CreateJobPositionResponse.prototype.clearJobPosition = function() {
3067
+ return this.setJobPosition(undefined);
3068
+ };
3069
+
3070
+
3071
+ /**
3072
+ * Returns whether this field is set.
3073
+ * @return {boolean}
3074
+ */
3075
+ proto.CreateJobPositionResponse.prototype.hasJobPosition = function() {
3076
+ return jspb.Message.getField(this, 1) != null;
3077
+ };
3078
+
3079
+
3080
+ /**
3081
+ * optional prisca.v1.global.meta.Meta meta = 2;
3082
+ * @return {?proto.prisca.v1.global.meta.Meta}
3083
+ */
3084
+ proto.CreateJobPositionResponse.prototype.getMeta = function() {
3085
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3086
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3087
+ };
3088
+
3089
+
3090
+ /**
3091
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3092
+ * @return {!proto.CreateJobPositionResponse} returns this
3093
+ */
3094
+ proto.CreateJobPositionResponse.prototype.setMeta = function(value) {
3095
+ return jspb.Message.setWrapperField(this, 2, value);
3096
+ };
3097
+
3098
+
3099
+ /**
3100
+ * Clears the message field making it undefined.
3101
+ * @return {!proto.CreateJobPositionResponse} returns this
3102
+ */
3103
+ proto.CreateJobPositionResponse.prototype.clearMeta = function() {
3104
+ return this.setMeta(undefined);
3105
+ };
3106
+
3107
+
3108
+ /**
3109
+ * Returns whether this field is set.
3110
+ * @return {boolean}
3111
+ */
3112
+ proto.CreateJobPositionResponse.prototype.hasMeta = function() {
3113
+ return jspb.Message.getField(this, 2) != null;
3114
+ };
3115
+
3116
+
3117
+
3118
+ /**
3119
+ * List of repeated fields within this message type.
3120
+ * @private {!Array<number>}
3121
+ * @const
3122
+ */
3123
+ proto.GetListJobPositionResponse.repeatedFields_ = [1];
3124
+
3125
+
3126
+
3127
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3128
+ /**
3129
+ * Creates an object representation of this proto.
3130
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3131
+ * Optional fields that are not set will be set to undefined.
3132
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3133
+ * For the list of reserved names please see:
3134
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3135
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3136
+ * JSPB instance for transitional soy proto support:
3137
+ * http://goto/soy-param-migration
3138
+ * @return {!Object}
3139
+ */
3140
+ proto.GetListJobPositionResponse.prototype.toObject = function(opt_includeInstance) {
3141
+ return proto.GetListJobPositionResponse.toObject(opt_includeInstance, this);
3142
+ };
3143
+
3144
+
3145
+ /**
3146
+ * Static version of the {@see toObject} method.
3147
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3148
+ * the JSPB instance for transitional soy proto support:
3149
+ * http://goto/soy-param-migration
3150
+ * @param {!proto.GetListJobPositionResponse} msg The msg instance to transform.
3151
+ * @return {!Object}
3152
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3153
+ */
3154
+ proto.GetListJobPositionResponse.toObject = function(includeInstance, msg) {
3155
+ var f, obj = {
3156
+ jobPositionList: jspb.Message.toObjectList(msg.getJobPositionList(),
3157
+ proto.BaseJobPosition.toObject, includeInstance),
3158
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3159
+ };
3160
+
3161
+ if (includeInstance) {
3162
+ obj.$jspbMessageInstance = msg;
3163
+ }
3164
+ return obj;
3165
+ };
3166
+ }
3167
+
3168
+
3169
+ /**
3170
+ * Deserializes binary data (in protobuf wire format).
3171
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3172
+ * @return {!proto.GetListJobPositionResponse}
3173
+ */
3174
+ proto.GetListJobPositionResponse.deserializeBinary = function(bytes) {
3175
+ var reader = new jspb.BinaryReader(bytes);
3176
+ var msg = new proto.GetListJobPositionResponse;
3177
+ return proto.GetListJobPositionResponse.deserializeBinaryFromReader(msg, reader);
3178
+ };
3179
+
3180
+
3181
+ /**
3182
+ * Deserializes binary data (in protobuf wire format) from the
3183
+ * given reader into the given message object.
3184
+ * @param {!proto.GetListJobPositionResponse} msg The message object to deserialize into.
3185
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3186
+ * @return {!proto.GetListJobPositionResponse}
3187
+ */
3188
+ proto.GetListJobPositionResponse.deserializeBinaryFromReader = function(msg, reader) {
3189
+ while (reader.nextField()) {
3190
+ if (reader.isEndGroup()) {
3191
+ break;
3192
+ }
3193
+ var field = reader.getFieldNumber();
3194
+ switch (field) {
3195
+ case 1:
3196
+ var value = new proto.BaseJobPosition;
3197
+ reader.readMessage(value,proto.BaseJobPosition.deserializeBinaryFromReader);
3198
+ msg.addJobPosition(value);
3199
+ break;
3200
+ case 2:
3201
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3202
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3203
+ msg.setMeta(value);
3204
+ break;
3205
+ default:
3206
+ reader.skipField();
3207
+ break;
3208
+ }
3209
+ }
3210
+ return msg;
3211
+ };
3212
+
3213
+
3214
+ /**
3215
+ * Serializes the message to binary data (in protobuf wire format).
3216
+ * @return {!Uint8Array}
3217
+ */
3218
+ proto.GetListJobPositionResponse.prototype.serializeBinary = function() {
3219
+ var writer = new jspb.BinaryWriter();
3220
+ proto.GetListJobPositionResponse.serializeBinaryToWriter(this, writer);
3221
+ return writer.getResultBuffer();
3222
+ };
3223
+
3224
+
3225
+ /**
3226
+ * Serializes the given message to binary data (in protobuf wire
3227
+ * format), writing to the given BinaryWriter.
3228
+ * @param {!proto.GetListJobPositionResponse} message
3229
+ * @param {!jspb.BinaryWriter} writer
3230
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3231
+ */
3232
+ proto.GetListJobPositionResponse.serializeBinaryToWriter = function(message, writer) {
3233
+ var f = undefined;
3234
+ f = message.getJobPositionList();
3235
+ if (f.length > 0) {
3236
+ writer.writeRepeatedMessage(
3237
+ 1,
3238
+ f,
3239
+ proto.BaseJobPosition.serializeBinaryToWriter
3240
+ );
3241
+ }
3242
+ f = message.getMeta();
3243
+ if (f != null) {
3244
+ writer.writeMessage(
3245
+ 2,
3246
+ f,
3247
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3248
+ );
3249
+ }
3250
+ };
3251
+
3252
+
3253
+ /**
3254
+ * repeated BaseJobPosition job_position = 1;
3255
+ * @return {!Array<!proto.BaseJobPosition>}
3256
+ */
3257
+ proto.GetListJobPositionResponse.prototype.getJobPositionList = function() {
3258
+ return /** @type{!Array<!proto.BaseJobPosition>} */ (
3259
+ jspb.Message.getRepeatedWrapperField(this, proto.BaseJobPosition, 1));
3260
+ };
3261
+
3262
+
3263
+ /**
3264
+ * @param {!Array<!proto.BaseJobPosition>} value
3265
+ * @return {!proto.GetListJobPositionResponse} returns this
3266
+ */
3267
+ proto.GetListJobPositionResponse.prototype.setJobPositionList = function(value) {
3268
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3269
+ };
3270
+
3271
+
3272
+ /**
3273
+ * @param {!proto.BaseJobPosition=} opt_value
3274
+ * @param {number=} opt_index
3275
+ * @return {!proto.BaseJobPosition}
3276
+ */
3277
+ proto.GetListJobPositionResponse.prototype.addJobPosition = function(opt_value, opt_index) {
3278
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.BaseJobPosition, opt_index);
3279
+ };
3280
+
3281
+
3282
+ /**
3283
+ * Clears the list making it empty but non-null.
3284
+ * @return {!proto.GetListJobPositionResponse} returns this
3285
+ */
3286
+ proto.GetListJobPositionResponse.prototype.clearJobPositionList = function() {
3287
+ return this.setJobPositionList([]);
3288
+ };
3289
+
3290
+
3291
+ /**
3292
+ * optional prisca.v1.global.meta.Meta meta = 2;
3293
+ * @return {?proto.prisca.v1.global.meta.Meta}
3294
+ */
3295
+ proto.GetListJobPositionResponse.prototype.getMeta = function() {
3296
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3297
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3298
+ };
3299
+
3300
+
3301
+ /**
3302
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3303
+ * @return {!proto.GetListJobPositionResponse} returns this
3304
+ */
3305
+ proto.GetListJobPositionResponse.prototype.setMeta = function(value) {
3306
+ return jspb.Message.setWrapperField(this, 2, value);
3307
+ };
3308
+
3309
+
3310
+ /**
3311
+ * Clears the message field making it undefined.
3312
+ * @return {!proto.GetListJobPositionResponse} returns this
3313
+ */
3314
+ proto.GetListJobPositionResponse.prototype.clearMeta = function() {
3315
+ return this.setMeta(undefined);
3316
+ };
3317
+
3318
+
3319
+ /**
3320
+ * Returns whether this field is set.
3321
+ * @return {boolean}
3322
+ */
3323
+ proto.GetListJobPositionResponse.prototype.hasMeta = function() {
3324
+ return jspb.Message.getField(this, 2) != null;
3325
+ };
3326
+
3327
+
3328
+
3329
+
3330
+
3331
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3332
+ /**
3333
+ * Creates an object representation of this proto.
3334
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3335
+ * Optional fields that are not set will be set to undefined.
3336
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3337
+ * For the list of reserved names please see:
3338
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3339
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3340
+ * JSPB instance for transitional soy proto support:
3341
+ * http://goto/soy-param-migration
3342
+ * @return {!Object}
3343
+ */
3344
+ proto.UpdateJobPositionResponse.prototype.toObject = function(opt_includeInstance) {
3345
+ return proto.UpdateJobPositionResponse.toObject(opt_includeInstance, this);
3346
+ };
3347
+
3348
+
3349
+ /**
3350
+ * Static version of the {@see toObject} method.
3351
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3352
+ * the JSPB instance for transitional soy proto support:
3353
+ * http://goto/soy-param-migration
3354
+ * @param {!proto.UpdateJobPositionResponse} msg The msg instance to transform.
3355
+ * @return {!Object}
3356
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3357
+ */
3358
+ proto.UpdateJobPositionResponse.toObject = function(includeInstance, msg) {
3359
+ var f, obj = {
3360
+ jobPosition: (f = msg.getJobPosition()) && proto.JobPosition.toObject(includeInstance, f),
3361
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3362
+ };
3363
+
3364
+ if (includeInstance) {
3365
+ obj.$jspbMessageInstance = msg;
3366
+ }
3367
+ return obj;
3368
+ };
3369
+ }
3370
+
3371
+
3372
+ /**
3373
+ * Deserializes binary data (in protobuf wire format).
3374
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3375
+ * @return {!proto.UpdateJobPositionResponse}
3376
+ */
3377
+ proto.UpdateJobPositionResponse.deserializeBinary = function(bytes) {
3378
+ var reader = new jspb.BinaryReader(bytes);
3379
+ var msg = new proto.UpdateJobPositionResponse;
3380
+ return proto.UpdateJobPositionResponse.deserializeBinaryFromReader(msg, reader);
3381
+ };
3382
+
3383
+
3384
+ /**
3385
+ * Deserializes binary data (in protobuf wire format) from the
3386
+ * given reader into the given message object.
3387
+ * @param {!proto.UpdateJobPositionResponse} msg The message object to deserialize into.
3388
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3389
+ * @return {!proto.UpdateJobPositionResponse}
3390
+ */
3391
+ proto.UpdateJobPositionResponse.deserializeBinaryFromReader = function(msg, reader) {
3392
+ while (reader.nextField()) {
3393
+ if (reader.isEndGroup()) {
3394
+ break;
3395
+ }
3396
+ var field = reader.getFieldNumber();
3397
+ switch (field) {
3398
+ case 1:
3399
+ var value = new proto.JobPosition;
3400
+ reader.readMessage(value,proto.JobPosition.deserializeBinaryFromReader);
3401
+ msg.setJobPosition(value);
3402
+ break;
3403
+ case 2:
3404
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3405
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3406
+ msg.setMeta(value);
3407
+ break;
3408
+ default:
3409
+ reader.skipField();
3410
+ break;
3411
+ }
3412
+ }
3413
+ return msg;
3414
+ };
3415
+
3416
+
3417
+ /**
3418
+ * Serializes the message to binary data (in protobuf wire format).
3419
+ * @return {!Uint8Array}
3420
+ */
3421
+ proto.UpdateJobPositionResponse.prototype.serializeBinary = function() {
3422
+ var writer = new jspb.BinaryWriter();
3423
+ proto.UpdateJobPositionResponse.serializeBinaryToWriter(this, writer);
3424
+ return writer.getResultBuffer();
3425
+ };
3426
+
3427
+
3428
+ /**
3429
+ * Serializes the given message to binary data (in protobuf wire
3430
+ * format), writing to the given BinaryWriter.
3431
+ * @param {!proto.UpdateJobPositionResponse} message
3432
+ * @param {!jspb.BinaryWriter} writer
3433
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3434
+ */
3435
+ proto.UpdateJobPositionResponse.serializeBinaryToWriter = function(message, writer) {
3436
+ var f = undefined;
3437
+ f = message.getJobPosition();
3438
+ if (f != null) {
3439
+ writer.writeMessage(
3440
+ 1,
3441
+ f,
3442
+ proto.JobPosition.serializeBinaryToWriter
3443
+ );
3444
+ }
3445
+ f = message.getMeta();
3446
+ if (f != null) {
3447
+ writer.writeMessage(
3448
+ 2,
3449
+ f,
3450
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3451
+ );
3452
+ }
3453
+ };
3454
+
3455
+
3456
+ /**
3457
+ * optional JobPosition job_position = 1;
3458
+ * @return {?proto.JobPosition}
3459
+ */
3460
+ proto.UpdateJobPositionResponse.prototype.getJobPosition = function() {
3461
+ return /** @type{?proto.JobPosition} */ (
3462
+ jspb.Message.getWrapperField(this, proto.JobPosition, 1));
3463
+ };
3464
+
3465
+
3466
+ /**
3467
+ * @param {?proto.JobPosition|undefined} value
3468
+ * @return {!proto.UpdateJobPositionResponse} returns this
3469
+ */
3470
+ proto.UpdateJobPositionResponse.prototype.setJobPosition = function(value) {
3471
+ return jspb.Message.setWrapperField(this, 1, value);
3472
+ };
3473
+
3474
+
3475
+ /**
3476
+ * Clears the message field making it undefined.
3477
+ * @return {!proto.UpdateJobPositionResponse} returns this
3478
+ */
3479
+ proto.UpdateJobPositionResponse.prototype.clearJobPosition = function() {
3480
+ return this.setJobPosition(undefined);
3481
+ };
3482
+
3483
+
3484
+ /**
3485
+ * Returns whether this field is set.
3486
+ * @return {boolean}
3487
+ */
3488
+ proto.UpdateJobPositionResponse.prototype.hasJobPosition = function() {
3489
+ return jspb.Message.getField(this, 1) != null;
3490
+ };
3491
+
3492
+
3493
+ /**
3494
+ * optional prisca.v1.global.meta.Meta meta = 2;
3495
+ * @return {?proto.prisca.v1.global.meta.Meta}
3496
+ */
3497
+ proto.UpdateJobPositionResponse.prototype.getMeta = function() {
3498
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3499
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3500
+ };
3501
+
3502
+
3503
+ /**
3504
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3505
+ * @return {!proto.UpdateJobPositionResponse} returns this
3506
+ */
3507
+ proto.UpdateJobPositionResponse.prototype.setMeta = function(value) {
3508
+ return jspb.Message.setWrapperField(this, 2, value);
3509
+ };
3510
+
3511
+
3512
+ /**
3513
+ * Clears the message field making it undefined.
3514
+ * @return {!proto.UpdateJobPositionResponse} returns this
3515
+ */
3516
+ proto.UpdateJobPositionResponse.prototype.clearMeta = function() {
3517
+ return this.setMeta(undefined);
3518
+ };
3519
+
3520
+
3521
+ /**
3522
+ * Returns whether this field is set.
3523
+ * @return {boolean}
3524
+ */
3525
+ proto.UpdateJobPositionResponse.prototype.hasMeta = function() {
3526
+ return jspb.Message.getField(this, 2) != null;
3527
+ };
3528
+
3529
+
3530
+
3531
+
3532
+
3533
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3534
+ /**
3535
+ * Creates an object representation of this proto.
3536
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3537
+ * Optional fields that are not set will be set to undefined.
3538
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3539
+ * For the list of reserved names please see:
3540
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3541
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3542
+ * JSPB instance for transitional soy proto support:
3543
+ * http://goto/soy-param-migration
3544
+ * @return {!Object}
3545
+ */
3546
+ proto.JobPositionGetByIdResponse.prototype.toObject = function(opt_includeInstance) {
3547
+ return proto.JobPositionGetByIdResponse.toObject(opt_includeInstance, this);
3548
+ };
3549
+
3550
+
3551
+ /**
3552
+ * Static version of the {@see toObject} method.
3553
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3554
+ * the JSPB instance for transitional soy proto support:
3555
+ * http://goto/soy-param-migration
3556
+ * @param {!proto.JobPositionGetByIdResponse} msg The msg instance to transform.
3557
+ * @return {!Object}
3558
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3559
+ */
3560
+ proto.JobPositionGetByIdResponse.toObject = function(includeInstance, msg) {
3561
+ var f, obj = {
3562
+ jobPosition: (f = msg.getJobPosition()) && proto.BaseJobPosition.toObject(includeInstance, f),
3563
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3564
+ };
3565
+
3566
+ if (includeInstance) {
3567
+ obj.$jspbMessageInstance = msg;
3568
+ }
3569
+ return obj;
3570
+ };
3571
+ }
3572
+
3573
+
3574
+ /**
3575
+ * Deserializes binary data (in protobuf wire format).
3576
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3577
+ * @return {!proto.JobPositionGetByIdResponse}
3578
+ */
3579
+ proto.JobPositionGetByIdResponse.deserializeBinary = function(bytes) {
3580
+ var reader = new jspb.BinaryReader(bytes);
3581
+ var msg = new proto.JobPositionGetByIdResponse;
3582
+ return proto.JobPositionGetByIdResponse.deserializeBinaryFromReader(msg, reader);
3583
+ };
3584
+
3585
+
3586
+ /**
3587
+ * Deserializes binary data (in protobuf wire format) from the
3588
+ * given reader into the given message object.
3589
+ * @param {!proto.JobPositionGetByIdResponse} msg The message object to deserialize into.
3590
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3591
+ * @return {!proto.JobPositionGetByIdResponse}
3592
+ */
3593
+ proto.JobPositionGetByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
3594
+ while (reader.nextField()) {
3595
+ if (reader.isEndGroup()) {
3596
+ break;
3597
+ }
3598
+ var field = reader.getFieldNumber();
3599
+ switch (field) {
3600
+ case 1:
3601
+ var value = new proto.BaseJobPosition;
3602
+ reader.readMessage(value,proto.BaseJobPosition.deserializeBinaryFromReader);
3603
+ msg.setJobPosition(value);
3604
+ break;
3605
+ case 2:
3606
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3607
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3608
+ msg.setMeta(value);
3609
+ break;
3610
+ default:
3611
+ reader.skipField();
3612
+ break;
3613
+ }
3614
+ }
3615
+ return msg;
3616
+ };
3617
+
3618
+
3619
+ /**
3620
+ * Serializes the message to binary data (in protobuf wire format).
3621
+ * @return {!Uint8Array}
3622
+ */
3623
+ proto.JobPositionGetByIdResponse.prototype.serializeBinary = function() {
3624
+ var writer = new jspb.BinaryWriter();
3625
+ proto.JobPositionGetByIdResponse.serializeBinaryToWriter(this, writer);
3626
+ return writer.getResultBuffer();
3627
+ };
3628
+
3629
+
3630
+ /**
3631
+ * Serializes the given message to binary data (in protobuf wire
3632
+ * format), writing to the given BinaryWriter.
3633
+ * @param {!proto.JobPositionGetByIdResponse} message
3634
+ * @param {!jspb.BinaryWriter} writer
3635
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3636
+ */
3637
+ proto.JobPositionGetByIdResponse.serializeBinaryToWriter = function(message, writer) {
3638
+ var f = undefined;
3639
+ f = message.getJobPosition();
3640
+ if (f != null) {
3641
+ writer.writeMessage(
3642
+ 1,
3643
+ f,
3644
+ proto.BaseJobPosition.serializeBinaryToWriter
3645
+ );
3646
+ }
3647
+ f = message.getMeta();
3648
+ if (f != null) {
3649
+ writer.writeMessage(
3650
+ 2,
3651
+ f,
3652
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3653
+ );
3654
+ }
3655
+ };
3656
+
3657
+
3658
+ /**
3659
+ * optional BaseJobPosition job_position = 1;
3660
+ * @return {?proto.BaseJobPosition}
3661
+ */
3662
+ proto.JobPositionGetByIdResponse.prototype.getJobPosition = function() {
3663
+ return /** @type{?proto.BaseJobPosition} */ (
3664
+ jspb.Message.getWrapperField(this, proto.BaseJobPosition, 1));
3665
+ };
3666
+
3667
+
3668
+ /**
3669
+ * @param {?proto.BaseJobPosition|undefined} value
3670
+ * @return {!proto.JobPositionGetByIdResponse} returns this
3671
+ */
3672
+ proto.JobPositionGetByIdResponse.prototype.setJobPosition = function(value) {
3673
+ return jspb.Message.setWrapperField(this, 1, value);
3674
+ };
3675
+
3676
+
3677
+ /**
3678
+ * Clears the message field making it undefined.
3679
+ * @return {!proto.JobPositionGetByIdResponse} returns this
3680
+ */
3681
+ proto.JobPositionGetByIdResponse.prototype.clearJobPosition = function() {
3682
+ return this.setJobPosition(undefined);
3683
+ };
3684
+
3685
+
3686
+ /**
3687
+ * Returns whether this field is set.
3688
+ * @return {boolean}
3689
+ */
3690
+ proto.JobPositionGetByIdResponse.prototype.hasJobPosition = function() {
3691
+ return jspb.Message.getField(this, 1) != null;
3692
+ };
3693
+
3694
+
3695
+ /**
3696
+ * optional prisca.v1.global.meta.Meta meta = 2;
3697
+ * @return {?proto.prisca.v1.global.meta.Meta}
3698
+ */
3699
+ proto.JobPositionGetByIdResponse.prototype.getMeta = function() {
3700
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3701
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3702
+ };
3703
+
3704
+
3705
+ /**
3706
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3707
+ * @return {!proto.JobPositionGetByIdResponse} returns this
3708
+ */
3709
+ proto.JobPositionGetByIdResponse.prototype.setMeta = function(value) {
3710
+ return jspb.Message.setWrapperField(this, 2, value);
3711
+ };
3712
+
3713
+
3714
+ /**
3715
+ * Clears the message field making it undefined.
3716
+ * @return {!proto.JobPositionGetByIdResponse} returns this
3717
+ */
3718
+ proto.JobPositionGetByIdResponse.prototype.clearMeta = function() {
3719
+ return this.setMeta(undefined);
3720
+ };
3721
+
3722
+
3723
+ /**
3724
+ * Returns whether this field is set.
3725
+ * @return {boolean}
3726
+ */
3727
+ proto.JobPositionGetByIdResponse.prototype.hasMeta = function() {
3728
+ return jspb.Message.getField(this, 2) != null;
3729
+ };
3730
+
3731
+
3732
+ goog.object.extend(exports, proto);