@aldiokta/protocgen 1.0.1 → 1.0.3

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