@aldiokta/protocgen 1.1.19 → 1.1.20

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