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