@aldiokta/protocgen 1.0.20 → 1.0.21

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