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