@aldiokta/protocgen 1.0.17 → 1.0.19

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