@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,3762 @@
1
+ // source: prisca/v1/core/job_position/job_position.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
25
+ goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
+ var prisca_v1_core_organization_organization_pb = require('../../../../prisca/v1/core/organization/organization_pb.js');
27
+ goog.object.extend(proto, prisca_v1_core_organization_organization_pb);
28
+ var prisca_v1_core_work_location_work_location_pb = require('../../../../prisca/v1/core/work_location/work_location_pb.js');
29
+ goog.object.extend(proto, prisca_v1_core_work_location_work_location_pb);
30
+ var prisca_v1_core_company_company_pb = require('../../../../prisca/v1/core/company/company_pb.js');
31
+ goog.object.extend(proto, prisca_v1_core_company_company_pb);
32
+ var prisca_v1_core_access_manager_access_manager_pb = require('../../../../prisca/v1/core/access_manager/access_manager_pb.js');
33
+ goog.object.extend(proto, prisca_v1_core_access_manager_access_manager_pb);
34
+ goog.exportSymbol('proto.BaseJobPosition', null, global);
35
+ goog.exportSymbol('proto.BaseJobPositionParent', null, global);
36
+ goog.exportSymbol('proto.CreateJobPositionRequest', null, global);
37
+ goog.exportSymbol('proto.CreateJobPositionResponse', null, global);
38
+ goog.exportSymbol('proto.DeleteJobPositionRequest', null, global);
39
+ goog.exportSymbol('proto.DeleteJobPositionResponse', null, global);
40
+ goog.exportSymbol('proto.GetListJobPositionRequest', null, global);
41
+ goog.exportSymbol('proto.GetListJobPositionResponse', null, global);
42
+ goog.exportSymbol('proto.JobPosition', null, global);
43
+ goog.exportSymbol('proto.JobPositionGetByIdRequest', null, global);
44
+ goog.exportSymbol('proto.JobPositionGetByIdResponse', null, global);
45
+ goog.exportSymbol('proto.UpdateJobPositionRequest', null, global);
46
+ goog.exportSymbol('proto.UpdateJobPositionResponse', null, global);
47
+ /**
48
+ * Generated by JsPbCodeGenerator.
49
+ * @param {Array=} opt_data Optional initial data array, typically from a
50
+ * server response, or constructed directly in Javascript. The array is used
51
+ * in place and becomes part of the constructed object. It is not cloned.
52
+ * If no data is provided, the constructed object will be empty, but still
53
+ * valid.
54
+ * @extends {jspb.Message}
55
+ * @constructor
56
+ */
57
+ proto.BaseJobPosition = function(opt_data) {
58
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
59
+ };
60
+ goog.inherits(proto.BaseJobPosition, jspb.Message);
61
+ if (goog.DEBUG && !COMPILED) {
62
+ /**
63
+ * @public
64
+ * @override
65
+ */
66
+ proto.BaseJobPosition.displayName = 'proto.BaseJobPosition';
67
+ }
68
+ /**
69
+ * Generated by JsPbCodeGenerator.
70
+ * @param {Array=} opt_data Optional initial data array, typically from a
71
+ * server response, or constructed directly in Javascript. The array is used
72
+ * in place and becomes part of the constructed object. It is not cloned.
73
+ * If no data is provided, the constructed object will be empty, but still
74
+ * valid.
75
+ * @extends {jspb.Message}
76
+ * @constructor
77
+ */
78
+ proto.BaseJobPositionParent = function(opt_data) {
79
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
80
+ };
81
+ goog.inherits(proto.BaseJobPositionParent, jspb.Message);
82
+ if (goog.DEBUG && !COMPILED) {
83
+ /**
84
+ * @public
85
+ * @override
86
+ */
87
+ proto.BaseJobPositionParent.displayName = 'proto.BaseJobPositionParent';
88
+ }
89
+ /**
90
+ * Generated by JsPbCodeGenerator.
91
+ * @param {Array=} opt_data Optional initial data array, typically from a
92
+ * server response, or constructed directly in Javascript. The array is used
93
+ * in place and becomes part of the constructed object. It is not cloned.
94
+ * If no data is provided, the constructed object will be empty, but still
95
+ * valid.
96
+ * @extends {jspb.Message}
97
+ * @constructor
98
+ */
99
+ proto.JobPosition = function(opt_data) {
100
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
101
+ };
102
+ goog.inherits(proto.JobPosition, jspb.Message);
103
+ if (goog.DEBUG && !COMPILED) {
104
+ /**
105
+ * @public
106
+ * @override
107
+ */
108
+ proto.JobPosition.displayName = 'proto.JobPosition';
109
+ }
110
+ /**
111
+ * Generated by JsPbCodeGenerator.
112
+ * @param {Array=} opt_data Optional initial data array, typically from a
113
+ * server response, or constructed directly in Javascript. The array is used
114
+ * in place and becomes part of the constructed object. It is not cloned.
115
+ * If no data is provided, the constructed object will be empty, but still
116
+ * valid.
117
+ * @extends {jspb.Message}
118
+ * @constructor
119
+ */
120
+ proto.JobPositionGetByIdRequest = function(opt_data) {
121
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
122
+ };
123
+ goog.inherits(proto.JobPositionGetByIdRequest, jspb.Message);
124
+ if (goog.DEBUG && !COMPILED) {
125
+ /**
126
+ * @public
127
+ * @override
128
+ */
129
+ proto.JobPositionGetByIdRequest.displayName = 'proto.JobPositionGetByIdRequest';
130
+ }
131
+ /**
132
+ * Generated by JsPbCodeGenerator.
133
+ * @param {Array=} opt_data Optional initial data array, typically from a
134
+ * server response, or constructed directly in Javascript. The array is used
135
+ * in place and becomes part of the constructed object. It is not cloned.
136
+ * If no data is provided, the constructed object will be empty, but still
137
+ * valid.
138
+ * @extends {jspb.Message}
139
+ * @constructor
140
+ */
141
+ proto.CreateJobPositionRequest = function(opt_data) {
142
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
143
+ };
144
+ goog.inherits(proto.CreateJobPositionRequest, jspb.Message);
145
+ if (goog.DEBUG && !COMPILED) {
146
+ /**
147
+ * @public
148
+ * @override
149
+ */
150
+ proto.CreateJobPositionRequest.displayName = 'proto.CreateJobPositionRequest';
151
+ }
152
+ /**
153
+ * Generated by JsPbCodeGenerator.
154
+ * @param {Array=} opt_data Optional initial data array, typically from a
155
+ * server response, or constructed directly in Javascript. The array is used
156
+ * in place and becomes part of the constructed object. It is not cloned.
157
+ * If no data is provided, the constructed object will be empty, but still
158
+ * valid.
159
+ * @extends {jspb.Message}
160
+ * @constructor
161
+ */
162
+ proto.UpdateJobPositionRequest = function(opt_data) {
163
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
164
+ };
165
+ goog.inherits(proto.UpdateJobPositionRequest, jspb.Message);
166
+ if (goog.DEBUG && !COMPILED) {
167
+ /**
168
+ * @public
169
+ * @override
170
+ */
171
+ proto.UpdateJobPositionRequest.displayName = 'proto.UpdateJobPositionRequest';
172
+ }
173
+ /**
174
+ * Generated by JsPbCodeGenerator.
175
+ * @param {Array=} opt_data Optional initial data array, typically from a
176
+ * server response, or constructed directly in Javascript. The array is used
177
+ * in place and becomes part of the constructed object. It is not cloned.
178
+ * If no data is provided, the constructed object will be empty, but still
179
+ * valid.
180
+ * @extends {jspb.Message}
181
+ * @constructor
182
+ */
183
+ proto.DeleteJobPositionRequest = function(opt_data) {
184
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
185
+ };
186
+ goog.inherits(proto.DeleteJobPositionRequest, jspb.Message);
187
+ if (goog.DEBUG && !COMPILED) {
188
+ /**
189
+ * @public
190
+ * @override
191
+ */
192
+ proto.DeleteJobPositionRequest.displayName = 'proto.DeleteJobPositionRequest';
193
+ }
194
+ /**
195
+ * Generated by JsPbCodeGenerator.
196
+ * @param {Array=} opt_data Optional initial data array, typically from a
197
+ * server response, or constructed directly in Javascript. The array is used
198
+ * in place and becomes part of the constructed object. It is not cloned.
199
+ * If no data is provided, the constructed object will be empty, but still
200
+ * valid.
201
+ * @extends {jspb.Message}
202
+ * @constructor
203
+ */
204
+ proto.DeleteJobPositionResponse = function(opt_data) {
205
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
206
+ };
207
+ goog.inherits(proto.DeleteJobPositionResponse, jspb.Message);
208
+ if (goog.DEBUG && !COMPILED) {
209
+ /**
210
+ * @public
211
+ * @override
212
+ */
213
+ proto.DeleteJobPositionResponse.displayName = 'proto.DeleteJobPositionResponse';
214
+ }
215
+ /**
216
+ * Generated by JsPbCodeGenerator.
217
+ * @param {Array=} opt_data Optional initial data array, typically from a
218
+ * server response, or constructed directly in Javascript. The array is used
219
+ * in place and becomes part of the constructed object. It is not cloned.
220
+ * If no data is provided, the constructed object will be empty, but still
221
+ * valid.
222
+ * @extends {jspb.Message}
223
+ * @constructor
224
+ */
225
+ proto.GetListJobPositionRequest = function(opt_data) {
226
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
227
+ };
228
+ goog.inherits(proto.GetListJobPositionRequest, jspb.Message);
229
+ if (goog.DEBUG && !COMPILED) {
230
+ /**
231
+ * @public
232
+ * @override
233
+ */
234
+ proto.GetListJobPositionRequest.displayName = 'proto.GetListJobPositionRequest';
235
+ }
236
+ /**
237
+ * Generated by JsPbCodeGenerator.
238
+ * @param {Array=} opt_data Optional initial data array, typically from a
239
+ * server response, or constructed directly in Javascript. The array is used
240
+ * in place and becomes part of the constructed object. It is not cloned.
241
+ * If no data is provided, the constructed object will be empty, but still
242
+ * valid.
243
+ * @extends {jspb.Message}
244
+ * @constructor
245
+ */
246
+ proto.CreateJobPositionResponse = function(opt_data) {
247
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
248
+ };
249
+ goog.inherits(proto.CreateJobPositionResponse, jspb.Message);
250
+ if (goog.DEBUG && !COMPILED) {
251
+ /**
252
+ * @public
253
+ * @override
254
+ */
255
+ proto.CreateJobPositionResponse.displayName = 'proto.CreateJobPositionResponse';
256
+ }
257
+ /**
258
+ * Generated by JsPbCodeGenerator.
259
+ * @param {Array=} opt_data Optional initial data array, typically from a
260
+ * server response, or constructed directly in Javascript. The array is used
261
+ * in place and becomes part of the constructed object. It is not cloned.
262
+ * If no data is provided, the constructed object will be empty, but still
263
+ * valid.
264
+ * @extends {jspb.Message}
265
+ * @constructor
266
+ */
267
+ proto.GetListJobPositionResponse = function(opt_data) {
268
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListJobPositionResponse.repeatedFields_, null);
269
+ };
270
+ goog.inherits(proto.GetListJobPositionResponse, jspb.Message);
271
+ if (goog.DEBUG && !COMPILED) {
272
+ /**
273
+ * @public
274
+ * @override
275
+ */
276
+ proto.GetListJobPositionResponse.displayName = 'proto.GetListJobPositionResponse';
277
+ }
278
+ /**
279
+ * Generated by JsPbCodeGenerator.
280
+ * @param {Array=} opt_data Optional initial data array, typically from a
281
+ * server response, or constructed directly in Javascript. The array is used
282
+ * in place and becomes part of the constructed object. It is not cloned.
283
+ * If no data is provided, the constructed object will be empty, but still
284
+ * valid.
285
+ * @extends {jspb.Message}
286
+ * @constructor
287
+ */
288
+ proto.UpdateJobPositionResponse = function(opt_data) {
289
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
290
+ };
291
+ goog.inherits(proto.UpdateJobPositionResponse, jspb.Message);
292
+ if (goog.DEBUG && !COMPILED) {
293
+ /**
294
+ * @public
295
+ * @override
296
+ */
297
+ proto.UpdateJobPositionResponse.displayName = 'proto.UpdateJobPositionResponse';
298
+ }
299
+ /**
300
+ * Generated by JsPbCodeGenerator.
301
+ * @param {Array=} opt_data Optional initial data array, typically from a
302
+ * server response, or constructed directly in Javascript. The array is used
303
+ * in place and becomes part of the constructed object. It is not cloned.
304
+ * If no data is provided, the constructed object will be empty, but still
305
+ * valid.
306
+ * @extends {jspb.Message}
307
+ * @constructor
308
+ */
309
+ proto.JobPositionGetByIdResponse = function(opt_data) {
310
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
311
+ };
312
+ goog.inherits(proto.JobPositionGetByIdResponse, jspb.Message);
313
+ if (goog.DEBUG && !COMPILED) {
314
+ /**
315
+ * @public
316
+ * @override
317
+ */
318
+ proto.JobPositionGetByIdResponse.displayName = 'proto.JobPositionGetByIdResponse';
319
+ }
320
+
321
+
322
+
323
+ if (jspb.Message.GENERATE_TO_OBJECT) {
324
+ /**
325
+ * Creates an object representation of this proto.
326
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
327
+ * Optional fields that are not set will be set to undefined.
328
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
329
+ * For the list of reserved names please see:
330
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
331
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
332
+ * JSPB instance for transitional soy proto support:
333
+ * http://goto/soy-param-migration
334
+ * @return {!Object}
335
+ */
336
+ proto.BaseJobPosition.prototype.toObject = function(opt_includeInstance) {
337
+ return proto.BaseJobPosition.toObject(opt_includeInstance, this);
338
+ };
339
+
340
+
341
+ /**
342
+ * Static version of the {@see toObject} method.
343
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
344
+ * the JSPB instance for transitional soy proto support:
345
+ * http://goto/soy-param-migration
346
+ * @param {!proto.BaseJobPosition} msg The msg instance to transform.
347
+ * @return {!Object}
348
+ * @suppress {unusedLocalVariables} f is only used for nested messages
349
+ */
350
+ proto.BaseJobPosition.toObject = function(includeInstance, msg) {
351
+ var f, obj = {
352
+ code: jspb.Message.getFieldWithDefault(msg, 1, ""),
353
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
354
+ alias: jspb.Message.getFieldWithDefault(msg, 3, ""),
355
+ costCenterCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
356
+ parentReferencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
357
+ parent: (f = msg.getParent()) && proto.BaseJobPositionParent.toObject(includeInstance, f),
358
+ organizationReferencesId: jspb.Message.getFieldWithDefault(msg, 7, ""),
359
+ organizations: (f = msg.getOrganizations()) && prisca_v1_core_organization_organization_pb.BaseOrganization.toObject(includeInstance, f),
360
+ workLocationReferencesId: jspb.Message.getFieldWithDefault(msg, 9, ""),
361
+ workLocations: (f = msg.getWorkLocations()) && prisca_v1_core_work_location_work_location_pb.WorkLocation.toObject(includeInstance, f),
362
+ description: jspb.Message.getFieldWithDefault(msg, 11, ""),
363
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 12, ""),
364
+ company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.BaseCompanyParent.toObject(includeInstance, f),
365
+ usersRoleReferencesId: jspb.Message.getFieldWithDefault(msg, 14, ""),
366
+ role: (f = msg.getRole()) && prisca_v1_core_access_manager_access_manager_pb.Role.toObject(includeInstance, f),
367
+ referencesId: jspb.Message.getFieldWithDefault(msg, 16, "")
368
+ };
369
+
370
+ if (includeInstance) {
371
+ obj.$jspbMessageInstance = msg;
372
+ }
373
+ return obj;
374
+ };
375
+ }
376
+
377
+
378
+ /**
379
+ * Deserializes binary data (in protobuf wire format).
380
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
381
+ * @return {!proto.BaseJobPosition}
382
+ */
383
+ proto.BaseJobPosition.deserializeBinary = function(bytes) {
384
+ var reader = new jspb.BinaryReader(bytes);
385
+ var msg = new proto.BaseJobPosition;
386
+ return proto.BaseJobPosition.deserializeBinaryFromReader(msg, reader);
387
+ };
388
+
389
+
390
+ /**
391
+ * Deserializes binary data (in protobuf wire format) from the
392
+ * given reader into the given message object.
393
+ * @param {!proto.BaseJobPosition} msg The message object to deserialize into.
394
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
395
+ * @return {!proto.BaseJobPosition}
396
+ */
397
+ proto.BaseJobPosition.deserializeBinaryFromReader = function(msg, reader) {
398
+ while (reader.nextField()) {
399
+ if (reader.isEndGroup()) {
400
+ break;
401
+ }
402
+ var field = reader.getFieldNumber();
403
+ switch (field) {
404
+ case 1:
405
+ var value = /** @type {string} */ (reader.readString());
406
+ msg.setCode(value);
407
+ break;
408
+ case 2:
409
+ var value = /** @type {string} */ (reader.readString());
410
+ msg.setName(value);
411
+ break;
412
+ case 3:
413
+ var value = /** @type {string} */ (reader.readString());
414
+ msg.setAlias(value);
415
+ break;
416
+ case 4:
417
+ var value = /** @type {string} */ (reader.readString());
418
+ msg.setCostCenterCode(value);
419
+ break;
420
+ case 5:
421
+ var value = /** @type {string} */ (reader.readString());
422
+ msg.setParentReferencesId(value);
423
+ break;
424
+ case 6:
425
+ var value = new proto.BaseJobPositionParent;
426
+ reader.readMessage(value,proto.BaseJobPositionParent.deserializeBinaryFromReader);
427
+ msg.setParent(value);
428
+ break;
429
+ case 7:
430
+ var value = /** @type {string} */ (reader.readString());
431
+ msg.setOrganizationReferencesId(value);
432
+ break;
433
+ case 8:
434
+ var value = new prisca_v1_core_organization_organization_pb.BaseOrganization;
435
+ reader.readMessage(value,prisca_v1_core_organization_organization_pb.BaseOrganization.deserializeBinaryFromReader);
436
+ msg.setOrganizations(value);
437
+ break;
438
+ case 9:
439
+ var value = /** @type {string} */ (reader.readString());
440
+ msg.setWorkLocationReferencesId(value);
441
+ break;
442
+ case 10:
443
+ var value = new prisca_v1_core_work_location_work_location_pb.WorkLocation;
444
+ reader.readMessage(value,prisca_v1_core_work_location_work_location_pb.WorkLocation.deserializeBinaryFromReader);
445
+ msg.setWorkLocations(value);
446
+ break;
447
+ case 11:
448
+ var value = /** @type {string} */ (reader.readString());
449
+ msg.setDescription(value);
450
+ break;
451
+ case 12:
452
+ var value = /** @type {string} */ (reader.readString());
453
+ msg.setCompaniesReferencesId(value);
454
+ break;
455
+ case 13:
456
+ var value = new prisca_v1_core_company_company_pb.BaseCompanyParent;
457
+ reader.readMessage(value,prisca_v1_core_company_company_pb.BaseCompanyParent.deserializeBinaryFromReader);
458
+ msg.setCompany(value);
459
+ break;
460
+ case 14:
461
+ var value = /** @type {string} */ (reader.readString());
462
+ msg.setUsersRoleReferencesId(value);
463
+ break;
464
+ case 15:
465
+ var value = new prisca_v1_core_access_manager_access_manager_pb.Role;
466
+ reader.readMessage(value,prisca_v1_core_access_manager_access_manager_pb.Role.deserializeBinaryFromReader);
467
+ msg.setRole(value);
468
+ break;
469
+ case 16:
470
+ var value = /** @type {string} */ (reader.readString());
471
+ msg.setReferencesId(value);
472
+ break;
473
+ default:
474
+ reader.skipField();
475
+ break;
476
+ }
477
+ }
478
+ return msg;
479
+ };
480
+
481
+
482
+ /**
483
+ * Serializes the message to binary data (in protobuf wire format).
484
+ * @return {!Uint8Array}
485
+ */
486
+ proto.BaseJobPosition.prototype.serializeBinary = function() {
487
+ var writer = new jspb.BinaryWriter();
488
+ proto.BaseJobPosition.serializeBinaryToWriter(this, writer);
489
+ return writer.getResultBuffer();
490
+ };
491
+
492
+
493
+ /**
494
+ * Serializes the given message to binary data (in protobuf wire
495
+ * format), writing to the given BinaryWriter.
496
+ * @param {!proto.BaseJobPosition} message
497
+ * @param {!jspb.BinaryWriter} writer
498
+ * @suppress {unusedLocalVariables} f is only used for nested messages
499
+ */
500
+ proto.BaseJobPosition.serializeBinaryToWriter = function(message, writer) {
501
+ var f = undefined;
502
+ f = message.getCode();
503
+ if (f.length > 0) {
504
+ writer.writeString(
505
+ 1,
506
+ f
507
+ );
508
+ }
509
+ f = message.getName();
510
+ if (f.length > 0) {
511
+ writer.writeString(
512
+ 2,
513
+ f
514
+ );
515
+ }
516
+ f = message.getAlias();
517
+ if (f.length > 0) {
518
+ writer.writeString(
519
+ 3,
520
+ f
521
+ );
522
+ }
523
+ f = message.getCostCenterCode();
524
+ if (f.length > 0) {
525
+ writer.writeString(
526
+ 4,
527
+ f
528
+ );
529
+ }
530
+ f = message.getParentReferencesId();
531
+ if (f.length > 0) {
532
+ writer.writeString(
533
+ 5,
534
+ f
535
+ );
536
+ }
537
+ f = message.getParent();
538
+ if (f != null) {
539
+ writer.writeMessage(
540
+ 6,
541
+ f,
542
+ proto.BaseJobPositionParent.serializeBinaryToWriter
543
+ );
544
+ }
545
+ f = message.getOrganizationReferencesId();
546
+ if (f.length > 0) {
547
+ writer.writeString(
548
+ 7,
549
+ f
550
+ );
551
+ }
552
+ f = message.getOrganizations();
553
+ if (f != null) {
554
+ writer.writeMessage(
555
+ 8,
556
+ f,
557
+ prisca_v1_core_organization_organization_pb.BaseOrganization.serializeBinaryToWriter
558
+ );
559
+ }
560
+ f = message.getWorkLocationReferencesId();
561
+ if (f.length > 0) {
562
+ writer.writeString(
563
+ 9,
564
+ f
565
+ );
566
+ }
567
+ f = message.getWorkLocations();
568
+ if (f != null) {
569
+ writer.writeMessage(
570
+ 10,
571
+ f,
572
+ prisca_v1_core_work_location_work_location_pb.WorkLocation.serializeBinaryToWriter
573
+ );
574
+ }
575
+ f = message.getDescription();
576
+ if (f.length > 0) {
577
+ writer.writeString(
578
+ 11,
579
+ f
580
+ );
581
+ }
582
+ f = message.getCompaniesReferencesId();
583
+ if (f.length > 0) {
584
+ writer.writeString(
585
+ 12,
586
+ f
587
+ );
588
+ }
589
+ f = message.getCompany();
590
+ if (f != null) {
591
+ writer.writeMessage(
592
+ 13,
593
+ f,
594
+ prisca_v1_core_company_company_pb.BaseCompanyParent.serializeBinaryToWriter
595
+ );
596
+ }
597
+ f = message.getUsersRoleReferencesId();
598
+ if (f.length > 0) {
599
+ writer.writeString(
600
+ 14,
601
+ f
602
+ );
603
+ }
604
+ f = message.getRole();
605
+ if (f != null) {
606
+ writer.writeMessage(
607
+ 15,
608
+ f,
609
+ prisca_v1_core_access_manager_access_manager_pb.Role.serializeBinaryToWriter
610
+ );
611
+ }
612
+ f = message.getReferencesId();
613
+ if (f.length > 0) {
614
+ writer.writeString(
615
+ 16,
616
+ f
617
+ );
618
+ }
619
+ };
620
+
621
+
622
+ /**
623
+ * optional string code = 1;
624
+ * @return {string}
625
+ */
626
+ proto.BaseJobPosition.prototype.getCode = function() {
627
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
628
+ };
629
+
630
+
631
+ /**
632
+ * @param {string} value
633
+ * @return {!proto.BaseJobPosition} returns this
634
+ */
635
+ proto.BaseJobPosition.prototype.setCode = function(value) {
636
+ return jspb.Message.setProto3StringField(this, 1, value);
637
+ };
638
+
639
+
640
+ /**
641
+ * optional string name = 2;
642
+ * @return {string}
643
+ */
644
+ proto.BaseJobPosition.prototype.getName = function() {
645
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
646
+ };
647
+
648
+
649
+ /**
650
+ * @param {string} value
651
+ * @return {!proto.BaseJobPosition} returns this
652
+ */
653
+ proto.BaseJobPosition.prototype.setName = function(value) {
654
+ return jspb.Message.setProto3StringField(this, 2, value);
655
+ };
656
+
657
+
658
+ /**
659
+ * optional string alias = 3;
660
+ * @return {string}
661
+ */
662
+ proto.BaseJobPosition.prototype.getAlias = function() {
663
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
664
+ };
665
+
666
+
667
+ /**
668
+ * @param {string} value
669
+ * @return {!proto.BaseJobPosition} returns this
670
+ */
671
+ proto.BaseJobPosition.prototype.setAlias = function(value) {
672
+ return jspb.Message.setProto3StringField(this, 3, value);
673
+ };
674
+
675
+
676
+ /**
677
+ * optional string cost_center_code = 4;
678
+ * @return {string}
679
+ */
680
+ proto.BaseJobPosition.prototype.getCostCenterCode = function() {
681
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
682
+ };
683
+
684
+
685
+ /**
686
+ * @param {string} value
687
+ * @return {!proto.BaseJobPosition} returns this
688
+ */
689
+ proto.BaseJobPosition.prototype.setCostCenterCode = function(value) {
690
+ return jspb.Message.setProto3StringField(this, 4, value);
691
+ };
692
+
693
+
694
+ /**
695
+ * optional string parent_references_id = 5;
696
+ * @return {string}
697
+ */
698
+ proto.BaseJobPosition.prototype.getParentReferencesId = function() {
699
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
700
+ };
701
+
702
+
703
+ /**
704
+ * @param {string} value
705
+ * @return {!proto.BaseJobPosition} returns this
706
+ */
707
+ proto.BaseJobPosition.prototype.setParentReferencesId = function(value) {
708
+ return jspb.Message.setProto3StringField(this, 5, value);
709
+ };
710
+
711
+
712
+ /**
713
+ * optional BaseJobPositionParent parent = 6;
714
+ * @return {?proto.BaseJobPositionParent}
715
+ */
716
+ proto.BaseJobPosition.prototype.getParent = function() {
717
+ return /** @type{?proto.BaseJobPositionParent} */ (
718
+ jspb.Message.getWrapperField(this, proto.BaseJobPositionParent, 6));
719
+ };
720
+
721
+
722
+ /**
723
+ * @param {?proto.BaseJobPositionParent|undefined} value
724
+ * @return {!proto.BaseJobPosition} returns this
725
+ */
726
+ proto.BaseJobPosition.prototype.setParent = function(value) {
727
+ return jspb.Message.setWrapperField(this, 6, value);
728
+ };
729
+
730
+
731
+ /**
732
+ * Clears the message field making it undefined.
733
+ * @return {!proto.BaseJobPosition} returns this
734
+ */
735
+ proto.BaseJobPosition.prototype.clearParent = function() {
736
+ return this.setParent(undefined);
737
+ };
738
+
739
+
740
+ /**
741
+ * Returns whether this field is set.
742
+ * @return {boolean}
743
+ */
744
+ proto.BaseJobPosition.prototype.hasParent = function() {
745
+ return jspb.Message.getField(this, 6) != null;
746
+ };
747
+
748
+
749
+ /**
750
+ * optional string organization_references_id = 7;
751
+ * @return {string}
752
+ */
753
+ proto.BaseJobPosition.prototype.getOrganizationReferencesId = function() {
754
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
755
+ };
756
+
757
+
758
+ /**
759
+ * @param {string} value
760
+ * @return {!proto.BaseJobPosition} returns this
761
+ */
762
+ proto.BaseJobPosition.prototype.setOrganizationReferencesId = function(value) {
763
+ return jspb.Message.setProto3StringField(this, 7, value);
764
+ };
765
+
766
+
767
+ /**
768
+ * optional BaseOrganization organizations = 8;
769
+ * @return {?proto.BaseOrganization}
770
+ */
771
+ proto.BaseJobPosition.prototype.getOrganizations = function() {
772
+ return /** @type{?proto.BaseOrganization} */ (
773
+ jspb.Message.getWrapperField(this, prisca_v1_core_organization_organization_pb.BaseOrganization, 8));
774
+ };
775
+
776
+
777
+ /**
778
+ * @param {?proto.BaseOrganization|undefined} value
779
+ * @return {!proto.BaseJobPosition} returns this
780
+ */
781
+ proto.BaseJobPosition.prototype.setOrganizations = function(value) {
782
+ return jspb.Message.setWrapperField(this, 8, value);
783
+ };
784
+
785
+
786
+ /**
787
+ * Clears the message field making it undefined.
788
+ * @return {!proto.BaseJobPosition} returns this
789
+ */
790
+ proto.BaseJobPosition.prototype.clearOrganizations = function() {
791
+ return this.setOrganizations(undefined);
792
+ };
793
+
794
+
795
+ /**
796
+ * Returns whether this field is set.
797
+ * @return {boolean}
798
+ */
799
+ proto.BaseJobPosition.prototype.hasOrganizations = function() {
800
+ return jspb.Message.getField(this, 8) != null;
801
+ };
802
+
803
+
804
+ /**
805
+ * optional string work_location_references_id = 9;
806
+ * @return {string}
807
+ */
808
+ proto.BaseJobPosition.prototype.getWorkLocationReferencesId = function() {
809
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
810
+ };
811
+
812
+
813
+ /**
814
+ * @param {string} value
815
+ * @return {!proto.BaseJobPosition} returns this
816
+ */
817
+ proto.BaseJobPosition.prototype.setWorkLocationReferencesId = function(value) {
818
+ return jspb.Message.setProto3StringField(this, 9, value);
819
+ };
820
+
821
+
822
+ /**
823
+ * optional WorkLocation work_locations = 10;
824
+ * @return {?proto.WorkLocation}
825
+ */
826
+ proto.BaseJobPosition.prototype.getWorkLocations = function() {
827
+ return /** @type{?proto.WorkLocation} */ (
828
+ jspb.Message.getWrapperField(this, prisca_v1_core_work_location_work_location_pb.WorkLocation, 10));
829
+ };
830
+
831
+
832
+ /**
833
+ * @param {?proto.WorkLocation|undefined} value
834
+ * @return {!proto.BaseJobPosition} returns this
835
+ */
836
+ proto.BaseJobPosition.prototype.setWorkLocations = function(value) {
837
+ return jspb.Message.setWrapperField(this, 10, value);
838
+ };
839
+
840
+
841
+ /**
842
+ * Clears the message field making it undefined.
843
+ * @return {!proto.BaseJobPosition} returns this
844
+ */
845
+ proto.BaseJobPosition.prototype.clearWorkLocations = function() {
846
+ return this.setWorkLocations(undefined);
847
+ };
848
+
849
+
850
+ /**
851
+ * Returns whether this field is set.
852
+ * @return {boolean}
853
+ */
854
+ proto.BaseJobPosition.prototype.hasWorkLocations = function() {
855
+ return jspb.Message.getField(this, 10) != null;
856
+ };
857
+
858
+
859
+ /**
860
+ * optional string description = 11;
861
+ * @return {string}
862
+ */
863
+ proto.BaseJobPosition.prototype.getDescription = function() {
864
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
865
+ };
866
+
867
+
868
+ /**
869
+ * @param {string} value
870
+ * @return {!proto.BaseJobPosition} returns this
871
+ */
872
+ proto.BaseJobPosition.prototype.setDescription = function(value) {
873
+ return jspb.Message.setProto3StringField(this, 11, value);
874
+ };
875
+
876
+
877
+ /**
878
+ * optional string companies_references_id = 12;
879
+ * @return {string}
880
+ */
881
+ proto.BaseJobPosition.prototype.getCompaniesReferencesId = function() {
882
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
883
+ };
884
+
885
+
886
+ /**
887
+ * @param {string} value
888
+ * @return {!proto.BaseJobPosition} returns this
889
+ */
890
+ proto.BaseJobPosition.prototype.setCompaniesReferencesId = function(value) {
891
+ return jspb.Message.setProto3StringField(this, 12, value);
892
+ };
893
+
894
+
895
+ /**
896
+ * optional BaseCompanyParent company = 13;
897
+ * @return {?proto.BaseCompanyParent}
898
+ */
899
+ proto.BaseJobPosition.prototype.getCompany = function() {
900
+ return /** @type{?proto.BaseCompanyParent} */ (
901
+ jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.BaseCompanyParent, 13));
902
+ };
903
+
904
+
905
+ /**
906
+ * @param {?proto.BaseCompanyParent|undefined} value
907
+ * @return {!proto.BaseJobPosition} returns this
908
+ */
909
+ proto.BaseJobPosition.prototype.setCompany = function(value) {
910
+ return jspb.Message.setWrapperField(this, 13, value);
911
+ };
912
+
913
+
914
+ /**
915
+ * Clears the message field making it undefined.
916
+ * @return {!proto.BaseJobPosition} returns this
917
+ */
918
+ proto.BaseJobPosition.prototype.clearCompany = function() {
919
+ return this.setCompany(undefined);
920
+ };
921
+
922
+
923
+ /**
924
+ * Returns whether this field is set.
925
+ * @return {boolean}
926
+ */
927
+ proto.BaseJobPosition.prototype.hasCompany = function() {
928
+ return jspb.Message.getField(this, 13) != null;
929
+ };
930
+
931
+
932
+ /**
933
+ * optional string users_role_references_id = 14;
934
+ * @return {string}
935
+ */
936
+ proto.BaseJobPosition.prototype.getUsersRoleReferencesId = function() {
937
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
938
+ };
939
+
940
+
941
+ /**
942
+ * @param {string} value
943
+ * @return {!proto.BaseJobPosition} returns this
944
+ */
945
+ proto.BaseJobPosition.prototype.setUsersRoleReferencesId = function(value) {
946
+ return jspb.Message.setProto3StringField(this, 14, value);
947
+ };
948
+
949
+
950
+ /**
951
+ * optional Role role = 15;
952
+ * @return {?proto.Role}
953
+ */
954
+ proto.BaseJobPosition.prototype.getRole = function() {
955
+ return /** @type{?proto.Role} */ (
956
+ jspb.Message.getWrapperField(this, prisca_v1_core_access_manager_access_manager_pb.Role, 15));
957
+ };
958
+
959
+
960
+ /**
961
+ * @param {?proto.Role|undefined} value
962
+ * @return {!proto.BaseJobPosition} returns this
963
+ */
964
+ proto.BaseJobPosition.prototype.setRole = function(value) {
965
+ return jspb.Message.setWrapperField(this, 15, value);
966
+ };
967
+
968
+
969
+ /**
970
+ * Clears the message field making it undefined.
971
+ * @return {!proto.BaseJobPosition} returns this
972
+ */
973
+ proto.BaseJobPosition.prototype.clearRole = function() {
974
+ return this.setRole(undefined);
975
+ };
976
+
977
+
978
+ /**
979
+ * Returns whether this field is set.
980
+ * @return {boolean}
981
+ */
982
+ proto.BaseJobPosition.prototype.hasRole = function() {
983
+ return jspb.Message.getField(this, 15) != null;
984
+ };
985
+
986
+
987
+ /**
988
+ * optional string references_id = 16;
989
+ * @return {string}
990
+ */
991
+ proto.BaseJobPosition.prototype.getReferencesId = function() {
992
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
993
+ };
994
+
995
+
996
+ /**
997
+ * @param {string} value
998
+ * @return {!proto.BaseJobPosition} returns this
999
+ */
1000
+ proto.BaseJobPosition.prototype.setReferencesId = function(value) {
1001
+ return jspb.Message.setProto3StringField(this, 16, value);
1002
+ };
1003
+
1004
+
1005
+
1006
+
1007
+
1008
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1009
+ /**
1010
+ * Creates an object representation of this proto.
1011
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1012
+ * Optional fields that are not set will be set to undefined.
1013
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1014
+ * For the list of reserved names please see:
1015
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1016
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1017
+ * JSPB instance for transitional soy proto support:
1018
+ * http://goto/soy-param-migration
1019
+ * @return {!Object}
1020
+ */
1021
+ proto.BaseJobPositionParent.prototype.toObject = function(opt_includeInstance) {
1022
+ return proto.BaseJobPositionParent.toObject(opt_includeInstance, this);
1023
+ };
1024
+
1025
+
1026
+ /**
1027
+ * Static version of the {@see toObject} method.
1028
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1029
+ * the JSPB instance for transitional soy proto support:
1030
+ * http://goto/soy-param-migration
1031
+ * @param {!proto.BaseJobPositionParent} msg The msg instance to transform.
1032
+ * @return {!Object}
1033
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1034
+ */
1035
+ proto.BaseJobPositionParent.toObject = function(includeInstance, msg) {
1036
+ var f, obj = {
1037
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1038
+ code: jspb.Message.getFieldWithDefault(msg, 2, ""),
1039
+ name: jspb.Message.getFieldWithDefault(msg, 3, ""),
1040
+ alias: jspb.Message.getFieldWithDefault(msg, 4, ""),
1041
+ costCenterCode: jspb.Message.getFieldWithDefault(msg, 5, ""),
1042
+ jobPositions: (f = msg.getJobPositions()) && proto.BaseJobPosition.toObject(includeInstance, f),
1043
+ organizations: (f = msg.getOrganizations()) && prisca_v1_core_organization_organization_pb.Organization.toObject(includeInstance, f),
1044
+ workLocations: (f = msg.getWorkLocations()) && prisca_v1_core_work_location_work_location_pb.WorkLocation.toObject(includeInstance, f),
1045
+ description: jspb.Message.getFieldWithDefault(msg, 9, ""),
1046
+ company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.BaseCompanyParent.toObject(includeInstance, f),
1047
+ role: (f = msg.getRole()) && prisca_v1_core_access_manager_access_manager_pb.Role.toObject(includeInstance, f)
1048
+ };
1049
+
1050
+ if (includeInstance) {
1051
+ obj.$jspbMessageInstance = msg;
1052
+ }
1053
+ return obj;
1054
+ };
1055
+ }
1056
+
1057
+
1058
+ /**
1059
+ * Deserializes binary data (in protobuf wire format).
1060
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1061
+ * @return {!proto.BaseJobPositionParent}
1062
+ */
1063
+ proto.BaseJobPositionParent.deserializeBinary = function(bytes) {
1064
+ var reader = new jspb.BinaryReader(bytes);
1065
+ var msg = new proto.BaseJobPositionParent;
1066
+ return proto.BaseJobPositionParent.deserializeBinaryFromReader(msg, reader);
1067
+ };
1068
+
1069
+
1070
+ /**
1071
+ * Deserializes binary data (in protobuf wire format) from the
1072
+ * given reader into the given message object.
1073
+ * @param {!proto.BaseJobPositionParent} msg The message object to deserialize into.
1074
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1075
+ * @return {!proto.BaseJobPositionParent}
1076
+ */
1077
+ proto.BaseJobPositionParent.deserializeBinaryFromReader = function(msg, reader) {
1078
+ while (reader.nextField()) {
1079
+ if (reader.isEndGroup()) {
1080
+ break;
1081
+ }
1082
+ var field = reader.getFieldNumber();
1083
+ switch (field) {
1084
+ case 1:
1085
+ var value = /** @type {string} */ (reader.readString());
1086
+ msg.setReferencesId(value);
1087
+ break;
1088
+ case 2:
1089
+ var value = /** @type {string} */ (reader.readString());
1090
+ msg.setCode(value);
1091
+ break;
1092
+ case 3:
1093
+ var value = /** @type {string} */ (reader.readString());
1094
+ msg.setName(value);
1095
+ break;
1096
+ case 4:
1097
+ var value = /** @type {string} */ (reader.readString());
1098
+ msg.setAlias(value);
1099
+ break;
1100
+ case 5:
1101
+ var value = /** @type {string} */ (reader.readString());
1102
+ msg.setCostCenterCode(value);
1103
+ break;
1104
+ case 6:
1105
+ var value = new proto.BaseJobPosition;
1106
+ reader.readMessage(value,proto.BaseJobPosition.deserializeBinaryFromReader);
1107
+ msg.setJobPositions(value);
1108
+ break;
1109
+ case 7:
1110
+ var value = new prisca_v1_core_organization_organization_pb.Organization;
1111
+ reader.readMessage(value,prisca_v1_core_organization_organization_pb.Organization.deserializeBinaryFromReader);
1112
+ msg.setOrganizations(value);
1113
+ break;
1114
+ case 8:
1115
+ var value = new prisca_v1_core_work_location_work_location_pb.WorkLocation;
1116
+ reader.readMessage(value,prisca_v1_core_work_location_work_location_pb.WorkLocation.deserializeBinaryFromReader);
1117
+ msg.setWorkLocations(value);
1118
+ break;
1119
+ case 9:
1120
+ var value = /** @type {string} */ (reader.readString());
1121
+ msg.setDescription(value);
1122
+ break;
1123
+ case 10:
1124
+ var value = new prisca_v1_core_company_company_pb.BaseCompanyParent;
1125
+ reader.readMessage(value,prisca_v1_core_company_company_pb.BaseCompanyParent.deserializeBinaryFromReader);
1126
+ msg.setCompany(value);
1127
+ break;
1128
+ case 11:
1129
+ var value = new prisca_v1_core_access_manager_access_manager_pb.Role;
1130
+ reader.readMessage(value,prisca_v1_core_access_manager_access_manager_pb.Role.deserializeBinaryFromReader);
1131
+ msg.setRole(value);
1132
+ break;
1133
+ default:
1134
+ reader.skipField();
1135
+ break;
1136
+ }
1137
+ }
1138
+ return msg;
1139
+ };
1140
+
1141
+
1142
+ /**
1143
+ * Serializes the message to binary data (in protobuf wire format).
1144
+ * @return {!Uint8Array}
1145
+ */
1146
+ proto.BaseJobPositionParent.prototype.serializeBinary = function() {
1147
+ var writer = new jspb.BinaryWriter();
1148
+ proto.BaseJobPositionParent.serializeBinaryToWriter(this, writer);
1149
+ return writer.getResultBuffer();
1150
+ };
1151
+
1152
+
1153
+ /**
1154
+ * Serializes the given message to binary data (in protobuf wire
1155
+ * format), writing to the given BinaryWriter.
1156
+ * @param {!proto.BaseJobPositionParent} message
1157
+ * @param {!jspb.BinaryWriter} writer
1158
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1159
+ */
1160
+ proto.BaseJobPositionParent.serializeBinaryToWriter = function(message, writer) {
1161
+ var f = undefined;
1162
+ f = message.getReferencesId();
1163
+ if (f.length > 0) {
1164
+ writer.writeString(
1165
+ 1,
1166
+ f
1167
+ );
1168
+ }
1169
+ f = message.getCode();
1170
+ if (f.length > 0) {
1171
+ writer.writeString(
1172
+ 2,
1173
+ f
1174
+ );
1175
+ }
1176
+ f = message.getName();
1177
+ if (f.length > 0) {
1178
+ writer.writeString(
1179
+ 3,
1180
+ f
1181
+ );
1182
+ }
1183
+ f = message.getAlias();
1184
+ if (f.length > 0) {
1185
+ writer.writeString(
1186
+ 4,
1187
+ f
1188
+ );
1189
+ }
1190
+ f = message.getCostCenterCode();
1191
+ if (f.length > 0) {
1192
+ writer.writeString(
1193
+ 5,
1194
+ f
1195
+ );
1196
+ }
1197
+ f = message.getJobPositions();
1198
+ if (f != null) {
1199
+ writer.writeMessage(
1200
+ 6,
1201
+ f,
1202
+ proto.BaseJobPosition.serializeBinaryToWriter
1203
+ );
1204
+ }
1205
+ f = message.getOrganizations();
1206
+ if (f != null) {
1207
+ writer.writeMessage(
1208
+ 7,
1209
+ f,
1210
+ prisca_v1_core_organization_organization_pb.Organization.serializeBinaryToWriter
1211
+ );
1212
+ }
1213
+ f = message.getWorkLocations();
1214
+ if (f != null) {
1215
+ writer.writeMessage(
1216
+ 8,
1217
+ f,
1218
+ prisca_v1_core_work_location_work_location_pb.WorkLocation.serializeBinaryToWriter
1219
+ );
1220
+ }
1221
+ f = message.getDescription();
1222
+ if (f.length > 0) {
1223
+ writer.writeString(
1224
+ 9,
1225
+ f
1226
+ );
1227
+ }
1228
+ f = message.getCompany();
1229
+ if (f != null) {
1230
+ writer.writeMessage(
1231
+ 10,
1232
+ f,
1233
+ prisca_v1_core_company_company_pb.BaseCompanyParent.serializeBinaryToWriter
1234
+ );
1235
+ }
1236
+ f = message.getRole();
1237
+ if (f != null) {
1238
+ writer.writeMessage(
1239
+ 11,
1240
+ f,
1241
+ prisca_v1_core_access_manager_access_manager_pb.Role.serializeBinaryToWriter
1242
+ );
1243
+ }
1244
+ };
1245
+
1246
+
1247
+ /**
1248
+ * optional string references_id = 1;
1249
+ * @return {string}
1250
+ */
1251
+ proto.BaseJobPositionParent.prototype.getReferencesId = function() {
1252
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1253
+ };
1254
+
1255
+
1256
+ /**
1257
+ * @param {string} value
1258
+ * @return {!proto.BaseJobPositionParent} returns this
1259
+ */
1260
+ proto.BaseJobPositionParent.prototype.setReferencesId = function(value) {
1261
+ return jspb.Message.setProto3StringField(this, 1, value);
1262
+ };
1263
+
1264
+
1265
+ /**
1266
+ * optional string code = 2;
1267
+ * @return {string}
1268
+ */
1269
+ proto.BaseJobPositionParent.prototype.getCode = function() {
1270
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1271
+ };
1272
+
1273
+
1274
+ /**
1275
+ * @param {string} value
1276
+ * @return {!proto.BaseJobPositionParent} returns this
1277
+ */
1278
+ proto.BaseJobPositionParent.prototype.setCode = function(value) {
1279
+ return jspb.Message.setProto3StringField(this, 2, value);
1280
+ };
1281
+
1282
+
1283
+ /**
1284
+ * optional string name = 3;
1285
+ * @return {string}
1286
+ */
1287
+ proto.BaseJobPositionParent.prototype.getName = function() {
1288
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1289
+ };
1290
+
1291
+
1292
+ /**
1293
+ * @param {string} value
1294
+ * @return {!proto.BaseJobPositionParent} returns this
1295
+ */
1296
+ proto.BaseJobPositionParent.prototype.setName = function(value) {
1297
+ return jspb.Message.setProto3StringField(this, 3, value);
1298
+ };
1299
+
1300
+
1301
+ /**
1302
+ * optional string alias = 4;
1303
+ * @return {string}
1304
+ */
1305
+ proto.BaseJobPositionParent.prototype.getAlias = function() {
1306
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1307
+ };
1308
+
1309
+
1310
+ /**
1311
+ * @param {string} value
1312
+ * @return {!proto.BaseJobPositionParent} returns this
1313
+ */
1314
+ proto.BaseJobPositionParent.prototype.setAlias = function(value) {
1315
+ return jspb.Message.setProto3StringField(this, 4, value);
1316
+ };
1317
+
1318
+
1319
+ /**
1320
+ * optional string cost_center_code = 5;
1321
+ * @return {string}
1322
+ */
1323
+ proto.BaseJobPositionParent.prototype.getCostCenterCode = function() {
1324
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1325
+ };
1326
+
1327
+
1328
+ /**
1329
+ * @param {string} value
1330
+ * @return {!proto.BaseJobPositionParent} returns this
1331
+ */
1332
+ proto.BaseJobPositionParent.prototype.setCostCenterCode = function(value) {
1333
+ return jspb.Message.setProto3StringField(this, 5, value);
1334
+ };
1335
+
1336
+
1337
+ /**
1338
+ * optional BaseJobPosition job_positions = 6;
1339
+ * @return {?proto.BaseJobPosition}
1340
+ */
1341
+ proto.BaseJobPositionParent.prototype.getJobPositions = function() {
1342
+ return /** @type{?proto.BaseJobPosition} */ (
1343
+ jspb.Message.getWrapperField(this, proto.BaseJobPosition, 6));
1344
+ };
1345
+
1346
+
1347
+ /**
1348
+ * @param {?proto.BaseJobPosition|undefined} value
1349
+ * @return {!proto.BaseJobPositionParent} returns this
1350
+ */
1351
+ proto.BaseJobPositionParent.prototype.setJobPositions = function(value) {
1352
+ return jspb.Message.setWrapperField(this, 6, value);
1353
+ };
1354
+
1355
+
1356
+ /**
1357
+ * Clears the message field making it undefined.
1358
+ * @return {!proto.BaseJobPositionParent} returns this
1359
+ */
1360
+ proto.BaseJobPositionParent.prototype.clearJobPositions = function() {
1361
+ return this.setJobPositions(undefined);
1362
+ };
1363
+
1364
+
1365
+ /**
1366
+ * Returns whether this field is set.
1367
+ * @return {boolean}
1368
+ */
1369
+ proto.BaseJobPositionParent.prototype.hasJobPositions = function() {
1370
+ return jspb.Message.getField(this, 6) != null;
1371
+ };
1372
+
1373
+
1374
+ /**
1375
+ * optional Organization organizations = 7;
1376
+ * @return {?proto.Organization}
1377
+ */
1378
+ proto.BaseJobPositionParent.prototype.getOrganizations = function() {
1379
+ return /** @type{?proto.Organization} */ (
1380
+ jspb.Message.getWrapperField(this, prisca_v1_core_organization_organization_pb.Organization, 7));
1381
+ };
1382
+
1383
+
1384
+ /**
1385
+ * @param {?proto.Organization|undefined} value
1386
+ * @return {!proto.BaseJobPositionParent} returns this
1387
+ */
1388
+ proto.BaseJobPositionParent.prototype.setOrganizations = function(value) {
1389
+ return jspb.Message.setWrapperField(this, 7, value);
1390
+ };
1391
+
1392
+
1393
+ /**
1394
+ * Clears the message field making it undefined.
1395
+ * @return {!proto.BaseJobPositionParent} returns this
1396
+ */
1397
+ proto.BaseJobPositionParent.prototype.clearOrganizations = function() {
1398
+ return this.setOrganizations(undefined);
1399
+ };
1400
+
1401
+
1402
+ /**
1403
+ * Returns whether this field is set.
1404
+ * @return {boolean}
1405
+ */
1406
+ proto.BaseJobPositionParent.prototype.hasOrganizations = function() {
1407
+ return jspb.Message.getField(this, 7) != null;
1408
+ };
1409
+
1410
+
1411
+ /**
1412
+ * optional WorkLocation work_locations = 8;
1413
+ * @return {?proto.WorkLocation}
1414
+ */
1415
+ proto.BaseJobPositionParent.prototype.getWorkLocations = function() {
1416
+ return /** @type{?proto.WorkLocation} */ (
1417
+ jspb.Message.getWrapperField(this, prisca_v1_core_work_location_work_location_pb.WorkLocation, 8));
1418
+ };
1419
+
1420
+
1421
+ /**
1422
+ * @param {?proto.WorkLocation|undefined} value
1423
+ * @return {!proto.BaseJobPositionParent} returns this
1424
+ */
1425
+ proto.BaseJobPositionParent.prototype.setWorkLocations = function(value) {
1426
+ return jspb.Message.setWrapperField(this, 8, value);
1427
+ };
1428
+
1429
+
1430
+ /**
1431
+ * Clears the message field making it undefined.
1432
+ * @return {!proto.BaseJobPositionParent} returns this
1433
+ */
1434
+ proto.BaseJobPositionParent.prototype.clearWorkLocations = function() {
1435
+ return this.setWorkLocations(undefined);
1436
+ };
1437
+
1438
+
1439
+ /**
1440
+ * Returns whether this field is set.
1441
+ * @return {boolean}
1442
+ */
1443
+ proto.BaseJobPositionParent.prototype.hasWorkLocations = function() {
1444
+ return jspb.Message.getField(this, 8) != null;
1445
+ };
1446
+
1447
+
1448
+ /**
1449
+ * optional string description = 9;
1450
+ * @return {string}
1451
+ */
1452
+ proto.BaseJobPositionParent.prototype.getDescription = function() {
1453
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1454
+ };
1455
+
1456
+
1457
+ /**
1458
+ * @param {string} value
1459
+ * @return {!proto.BaseJobPositionParent} returns this
1460
+ */
1461
+ proto.BaseJobPositionParent.prototype.setDescription = function(value) {
1462
+ return jspb.Message.setProto3StringField(this, 9, value);
1463
+ };
1464
+
1465
+
1466
+ /**
1467
+ * optional BaseCompanyParent company = 10;
1468
+ * @return {?proto.BaseCompanyParent}
1469
+ */
1470
+ proto.BaseJobPositionParent.prototype.getCompany = function() {
1471
+ return /** @type{?proto.BaseCompanyParent} */ (
1472
+ jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.BaseCompanyParent, 10));
1473
+ };
1474
+
1475
+
1476
+ /**
1477
+ * @param {?proto.BaseCompanyParent|undefined} value
1478
+ * @return {!proto.BaseJobPositionParent} returns this
1479
+ */
1480
+ proto.BaseJobPositionParent.prototype.setCompany = function(value) {
1481
+ return jspb.Message.setWrapperField(this, 10, value);
1482
+ };
1483
+
1484
+
1485
+ /**
1486
+ * Clears the message field making it undefined.
1487
+ * @return {!proto.BaseJobPositionParent} returns this
1488
+ */
1489
+ proto.BaseJobPositionParent.prototype.clearCompany = function() {
1490
+ return this.setCompany(undefined);
1491
+ };
1492
+
1493
+
1494
+ /**
1495
+ * Returns whether this field is set.
1496
+ * @return {boolean}
1497
+ */
1498
+ proto.BaseJobPositionParent.prototype.hasCompany = function() {
1499
+ return jspb.Message.getField(this, 10) != null;
1500
+ };
1501
+
1502
+
1503
+ /**
1504
+ * optional Role role = 11;
1505
+ * @return {?proto.Role}
1506
+ */
1507
+ proto.BaseJobPositionParent.prototype.getRole = function() {
1508
+ return /** @type{?proto.Role} */ (
1509
+ jspb.Message.getWrapperField(this, prisca_v1_core_access_manager_access_manager_pb.Role, 11));
1510
+ };
1511
+
1512
+
1513
+ /**
1514
+ * @param {?proto.Role|undefined} value
1515
+ * @return {!proto.BaseJobPositionParent} returns this
1516
+ */
1517
+ proto.BaseJobPositionParent.prototype.setRole = function(value) {
1518
+ return jspb.Message.setWrapperField(this, 11, value);
1519
+ };
1520
+
1521
+
1522
+ /**
1523
+ * Clears the message field making it undefined.
1524
+ * @return {!proto.BaseJobPositionParent} returns this
1525
+ */
1526
+ proto.BaseJobPositionParent.prototype.clearRole = function() {
1527
+ return this.setRole(undefined);
1528
+ };
1529
+
1530
+
1531
+ /**
1532
+ * Returns whether this field is set.
1533
+ * @return {boolean}
1534
+ */
1535
+ proto.BaseJobPositionParent.prototype.hasRole = function() {
1536
+ return jspb.Message.getField(this, 11) != null;
1537
+ };
1538
+
1539
+
1540
+
1541
+
1542
+
1543
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1544
+ /**
1545
+ * Creates an object representation of this proto.
1546
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1547
+ * Optional fields that are not set will be set to undefined.
1548
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1549
+ * For the list of reserved names please see:
1550
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1551
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1552
+ * JSPB instance for transitional soy proto support:
1553
+ * http://goto/soy-param-migration
1554
+ * @return {!Object}
1555
+ */
1556
+ proto.JobPosition.prototype.toObject = function(opt_includeInstance) {
1557
+ return proto.JobPosition.toObject(opt_includeInstance, this);
1558
+ };
1559
+
1560
+
1561
+ /**
1562
+ * Static version of the {@see toObject} method.
1563
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1564
+ * the JSPB instance for transitional soy proto support:
1565
+ * http://goto/soy-param-migration
1566
+ * @param {!proto.JobPosition} msg The msg instance to transform.
1567
+ * @return {!Object}
1568
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1569
+ */
1570
+ proto.JobPosition.toObject = function(includeInstance, msg) {
1571
+ var f, obj = {
1572
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1573
+ code: jspb.Message.getFieldWithDefault(msg, 2, ""),
1574
+ name: jspb.Message.getFieldWithDefault(msg, 3, ""),
1575
+ alias: jspb.Message.getFieldWithDefault(msg, 4, ""),
1576
+ costCenterCode: jspb.Message.getFieldWithDefault(msg, 5, ""),
1577
+ parentReferencesId: jspb.Message.getFieldWithDefault(msg, 6, ""),
1578
+ organizationReferencesId: jspb.Message.getFieldWithDefault(msg, 7, ""),
1579
+ workLocationReferencesId: jspb.Message.getFieldWithDefault(msg, 8, ""),
1580
+ description: jspb.Message.getFieldWithDefault(msg, 9, ""),
1581
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 10, ""),
1582
+ usersRoleReferencesId: jspb.Message.getFieldWithDefault(msg, 11, "")
1583
+ };
1584
+
1585
+ if (includeInstance) {
1586
+ obj.$jspbMessageInstance = msg;
1587
+ }
1588
+ return obj;
1589
+ };
1590
+ }
1591
+
1592
+
1593
+ /**
1594
+ * Deserializes binary data (in protobuf wire format).
1595
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1596
+ * @return {!proto.JobPosition}
1597
+ */
1598
+ proto.JobPosition.deserializeBinary = function(bytes) {
1599
+ var reader = new jspb.BinaryReader(bytes);
1600
+ var msg = new proto.JobPosition;
1601
+ return proto.JobPosition.deserializeBinaryFromReader(msg, reader);
1602
+ };
1603
+
1604
+
1605
+ /**
1606
+ * Deserializes binary data (in protobuf wire format) from the
1607
+ * given reader into the given message object.
1608
+ * @param {!proto.JobPosition} msg The message object to deserialize into.
1609
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1610
+ * @return {!proto.JobPosition}
1611
+ */
1612
+ proto.JobPosition.deserializeBinaryFromReader = function(msg, reader) {
1613
+ while (reader.nextField()) {
1614
+ if (reader.isEndGroup()) {
1615
+ break;
1616
+ }
1617
+ var field = reader.getFieldNumber();
1618
+ switch (field) {
1619
+ case 1:
1620
+ var value = /** @type {string} */ (reader.readString());
1621
+ msg.setReferencesId(value);
1622
+ break;
1623
+ case 2:
1624
+ var value = /** @type {string} */ (reader.readString());
1625
+ msg.setCode(value);
1626
+ break;
1627
+ case 3:
1628
+ var value = /** @type {string} */ (reader.readString());
1629
+ msg.setName(value);
1630
+ break;
1631
+ case 4:
1632
+ var value = /** @type {string} */ (reader.readString());
1633
+ msg.setAlias(value);
1634
+ break;
1635
+ case 5:
1636
+ var value = /** @type {string} */ (reader.readString());
1637
+ msg.setCostCenterCode(value);
1638
+ break;
1639
+ case 6:
1640
+ var value = /** @type {string} */ (reader.readString());
1641
+ msg.setParentReferencesId(value);
1642
+ break;
1643
+ case 7:
1644
+ var value = /** @type {string} */ (reader.readString());
1645
+ msg.setOrganizationReferencesId(value);
1646
+ break;
1647
+ case 8:
1648
+ var value = /** @type {string} */ (reader.readString());
1649
+ msg.setWorkLocationReferencesId(value);
1650
+ break;
1651
+ case 9:
1652
+ var value = /** @type {string} */ (reader.readString());
1653
+ msg.setDescription(value);
1654
+ break;
1655
+ case 10:
1656
+ var value = /** @type {string} */ (reader.readString());
1657
+ msg.setCompaniesReferencesId(value);
1658
+ break;
1659
+ case 11:
1660
+ var value = /** @type {string} */ (reader.readString());
1661
+ msg.setUsersRoleReferencesId(value);
1662
+ break;
1663
+ default:
1664
+ reader.skipField();
1665
+ break;
1666
+ }
1667
+ }
1668
+ return msg;
1669
+ };
1670
+
1671
+
1672
+ /**
1673
+ * Serializes the message to binary data (in protobuf wire format).
1674
+ * @return {!Uint8Array}
1675
+ */
1676
+ proto.JobPosition.prototype.serializeBinary = function() {
1677
+ var writer = new jspb.BinaryWriter();
1678
+ proto.JobPosition.serializeBinaryToWriter(this, writer);
1679
+ return writer.getResultBuffer();
1680
+ };
1681
+
1682
+
1683
+ /**
1684
+ * Serializes the given message to binary data (in protobuf wire
1685
+ * format), writing to the given BinaryWriter.
1686
+ * @param {!proto.JobPosition} message
1687
+ * @param {!jspb.BinaryWriter} writer
1688
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1689
+ */
1690
+ proto.JobPosition.serializeBinaryToWriter = function(message, writer) {
1691
+ var f = undefined;
1692
+ f = message.getReferencesId();
1693
+ if (f.length > 0) {
1694
+ writer.writeString(
1695
+ 1,
1696
+ f
1697
+ );
1698
+ }
1699
+ f = message.getCode();
1700
+ if (f.length > 0) {
1701
+ writer.writeString(
1702
+ 2,
1703
+ f
1704
+ );
1705
+ }
1706
+ f = message.getName();
1707
+ if (f.length > 0) {
1708
+ writer.writeString(
1709
+ 3,
1710
+ f
1711
+ );
1712
+ }
1713
+ f = message.getAlias();
1714
+ if (f.length > 0) {
1715
+ writer.writeString(
1716
+ 4,
1717
+ f
1718
+ );
1719
+ }
1720
+ f = message.getCostCenterCode();
1721
+ if (f.length > 0) {
1722
+ writer.writeString(
1723
+ 5,
1724
+ f
1725
+ );
1726
+ }
1727
+ f = message.getParentReferencesId();
1728
+ if (f.length > 0) {
1729
+ writer.writeString(
1730
+ 6,
1731
+ f
1732
+ );
1733
+ }
1734
+ f = message.getOrganizationReferencesId();
1735
+ if (f.length > 0) {
1736
+ writer.writeString(
1737
+ 7,
1738
+ f
1739
+ );
1740
+ }
1741
+ f = message.getWorkLocationReferencesId();
1742
+ if (f.length > 0) {
1743
+ writer.writeString(
1744
+ 8,
1745
+ f
1746
+ );
1747
+ }
1748
+ f = message.getDescription();
1749
+ if (f.length > 0) {
1750
+ writer.writeString(
1751
+ 9,
1752
+ f
1753
+ );
1754
+ }
1755
+ f = message.getCompaniesReferencesId();
1756
+ if (f.length > 0) {
1757
+ writer.writeString(
1758
+ 10,
1759
+ f
1760
+ );
1761
+ }
1762
+ f = message.getUsersRoleReferencesId();
1763
+ if (f.length > 0) {
1764
+ writer.writeString(
1765
+ 11,
1766
+ f
1767
+ );
1768
+ }
1769
+ };
1770
+
1771
+
1772
+ /**
1773
+ * optional string references_id = 1;
1774
+ * @return {string}
1775
+ */
1776
+ proto.JobPosition.prototype.getReferencesId = function() {
1777
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1778
+ };
1779
+
1780
+
1781
+ /**
1782
+ * @param {string} value
1783
+ * @return {!proto.JobPosition} returns this
1784
+ */
1785
+ proto.JobPosition.prototype.setReferencesId = function(value) {
1786
+ return jspb.Message.setProto3StringField(this, 1, value);
1787
+ };
1788
+
1789
+
1790
+ /**
1791
+ * optional string code = 2;
1792
+ * @return {string}
1793
+ */
1794
+ proto.JobPosition.prototype.getCode = function() {
1795
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1796
+ };
1797
+
1798
+
1799
+ /**
1800
+ * @param {string} value
1801
+ * @return {!proto.JobPosition} returns this
1802
+ */
1803
+ proto.JobPosition.prototype.setCode = function(value) {
1804
+ return jspb.Message.setProto3StringField(this, 2, value);
1805
+ };
1806
+
1807
+
1808
+ /**
1809
+ * optional string name = 3;
1810
+ * @return {string}
1811
+ */
1812
+ proto.JobPosition.prototype.getName = function() {
1813
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1814
+ };
1815
+
1816
+
1817
+ /**
1818
+ * @param {string} value
1819
+ * @return {!proto.JobPosition} returns this
1820
+ */
1821
+ proto.JobPosition.prototype.setName = function(value) {
1822
+ return jspb.Message.setProto3StringField(this, 3, value);
1823
+ };
1824
+
1825
+
1826
+ /**
1827
+ * optional string alias = 4;
1828
+ * @return {string}
1829
+ */
1830
+ proto.JobPosition.prototype.getAlias = function() {
1831
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1832
+ };
1833
+
1834
+
1835
+ /**
1836
+ * @param {string} value
1837
+ * @return {!proto.JobPosition} returns this
1838
+ */
1839
+ proto.JobPosition.prototype.setAlias = function(value) {
1840
+ return jspb.Message.setProto3StringField(this, 4, value);
1841
+ };
1842
+
1843
+
1844
+ /**
1845
+ * optional string cost_center_code = 5;
1846
+ * @return {string}
1847
+ */
1848
+ proto.JobPosition.prototype.getCostCenterCode = function() {
1849
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1850
+ };
1851
+
1852
+
1853
+ /**
1854
+ * @param {string} value
1855
+ * @return {!proto.JobPosition} returns this
1856
+ */
1857
+ proto.JobPosition.prototype.setCostCenterCode = function(value) {
1858
+ return jspb.Message.setProto3StringField(this, 5, value);
1859
+ };
1860
+
1861
+
1862
+ /**
1863
+ * optional string parent_references_id = 6;
1864
+ * @return {string}
1865
+ */
1866
+ proto.JobPosition.prototype.getParentReferencesId = function() {
1867
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1868
+ };
1869
+
1870
+
1871
+ /**
1872
+ * @param {string} value
1873
+ * @return {!proto.JobPosition} returns this
1874
+ */
1875
+ proto.JobPosition.prototype.setParentReferencesId = function(value) {
1876
+ return jspb.Message.setProto3StringField(this, 6, value);
1877
+ };
1878
+
1879
+
1880
+ /**
1881
+ * optional string organization_references_id = 7;
1882
+ * @return {string}
1883
+ */
1884
+ proto.JobPosition.prototype.getOrganizationReferencesId = function() {
1885
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1886
+ };
1887
+
1888
+
1889
+ /**
1890
+ * @param {string} value
1891
+ * @return {!proto.JobPosition} returns this
1892
+ */
1893
+ proto.JobPosition.prototype.setOrganizationReferencesId = function(value) {
1894
+ return jspb.Message.setProto3StringField(this, 7, value);
1895
+ };
1896
+
1897
+
1898
+ /**
1899
+ * optional string work_location_references_id = 8;
1900
+ * @return {string}
1901
+ */
1902
+ proto.JobPosition.prototype.getWorkLocationReferencesId = function() {
1903
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1904
+ };
1905
+
1906
+
1907
+ /**
1908
+ * @param {string} value
1909
+ * @return {!proto.JobPosition} returns this
1910
+ */
1911
+ proto.JobPosition.prototype.setWorkLocationReferencesId = function(value) {
1912
+ return jspb.Message.setProto3StringField(this, 8, value);
1913
+ };
1914
+
1915
+
1916
+ /**
1917
+ * optional string description = 9;
1918
+ * @return {string}
1919
+ */
1920
+ proto.JobPosition.prototype.getDescription = function() {
1921
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1922
+ };
1923
+
1924
+
1925
+ /**
1926
+ * @param {string} value
1927
+ * @return {!proto.JobPosition} returns this
1928
+ */
1929
+ proto.JobPosition.prototype.setDescription = function(value) {
1930
+ return jspb.Message.setProto3StringField(this, 9, value);
1931
+ };
1932
+
1933
+
1934
+ /**
1935
+ * optional string companies_references_id = 10;
1936
+ * @return {string}
1937
+ */
1938
+ proto.JobPosition.prototype.getCompaniesReferencesId = function() {
1939
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1940
+ };
1941
+
1942
+
1943
+ /**
1944
+ * @param {string} value
1945
+ * @return {!proto.JobPosition} returns this
1946
+ */
1947
+ proto.JobPosition.prototype.setCompaniesReferencesId = function(value) {
1948
+ return jspb.Message.setProto3StringField(this, 10, value);
1949
+ };
1950
+
1951
+
1952
+ /**
1953
+ * optional string users_role_references_id = 11;
1954
+ * @return {string}
1955
+ */
1956
+ proto.JobPosition.prototype.getUsersRoleReferencesId = function() {
1957
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1958
+ };
1959
+
1960
+
1961
+ /**
1962
+ * @param {string} value
1963
+ * @return {!proto.JobPosition} returns this
1964
+ */
1965
+ proto.JobPosition.prototype.setUsersRoleReferencesId = function(value) {
1966
+ return jspb.Message.setProto3StringField(this, 11, value);
1967
+ };
1968
+
1969
+
1970
+
1971
+
1972
+
1973
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1974
+ /**
1975
+ * Creates an object representation of this proto.
1976
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1977
+ * Optional fields that are not set will be set to undefined.
1978
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1979
+ * For the list of reserved names please see:
1980
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1981
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1982
+ * JSPB instance for transitional soy proto support:
1983
+ * http://goto/soy-param-migration
1984
+ * @return {!Object}
1985
+ */
1986
+ proto.JobPositionGetByIdRequest.prototype.toObject = function(opt_includeInstance) {
1987
+ return proto.JobPositionGetByIdRequest.toObject(opt_includeInstance, this);
1988
+ };
1989
+
1990
+
1991
+ /**
1992
+ * Static version of the {@see toObject} method.
1993
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1994
+ * the JSPB instance for transitional soy proto support:
1995
+ * http://goto/soy-param-migration
1996
+ * @param {!proto.JobPositionGetByIdRequest} msg The msg instance to transform.
1997
+ * @return {!Object}
1998
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1999
+ */
2000
+ proto.JobPositionGetByIdRequest.toObject = function(includeInstance, msg) {
2001
+ var f, obj = {
2002
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2003
+ };
2004
+
2005
+ if (includeInstance) {
2006
+ obj.$jspbMessageInstance = msg;
2007
+ }
2008
+ return obj;
2009
+ };
2010
+ }
2011
+
2012
+
2013
+ /**
2014
+ * Deserializes binary data (in protobuf wire format).
2015
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2016
+ * @return {!proto.JobPositionGetByIdRequest}
2017
+ */
2018
+ proto.JobPositionGetByIdRequest.deserializeBinary = function(bytes) {
2019
+ var reader = new jspb.BinaryReader(bytes);
2020
+ var msg = new proto.JobPositionGetByIdRequest;
2021
+ return proto.JobPositionGetByIdRequest.deserializeBinaryFromReader(msg, reader);
2022
+ };
2023
+
2024
+
2025
+ /**
2026
+ * Deserializes binary data (in protobuf wire format) from the
2027
+ * given reader into the given message object.
2028
+ * @param {!proto.JobPositionGetByIdRequest} msg The message object to deserialize into.
2029
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2030
+ * @return {!proto.JobPositionGetByIdRequest}
2031
+ */
2032
+ proto.JobPositionGetByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
2033
+ while (reader.nextField()) {
2034
+ if (reader.isEndGroup()) {
2035
+ break;
2036
+ }
2037
+ var field = reader.getFieldNumber();
2038
+ switch (field) {
2039
+ case 1:
2040
+ var value = /** @type {string} */ (reader.readString());
2041
+ msg.setReferencesId(value);
2042
+ break;
2043
+ default:
2044
+ reader.skipField();
2045
+ break;
2046
+ }
2047
+ }
2048
+ return msg;
2049
+ };
2050
+
2051
+
2052
+ /**
2053
+ * Serializes the message to binary data (in protobuf wire format).
2054
+ * @return {!Uint8Array}
2055
+ */
2056
+ proto.JobPositionGetByIdRequest.prototype.serializeBinary = function() {
2057
+ var writer = new jspb.BinaryWriter();
2058
+ proto.JobPositionGetByIdRequest.serializeBinaryToWriter(this, writer);
2059
+ return writer.getResultBuffer();
2060
+ };
2061
+
2062
+
2063
+ /**
2064
+ * Serializes the given message to binary data (in protobuf wire
2065
+ * format), writing to the given BinaryWriter.
2066
+ * @param {!proto.JobPositionGetByIdRequest} message
2067
+ * @param {!jspb.BinaryWriter} writer
2068
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2069
+ */
2070
+ proto.JobPositionGetByIdRequest.serializeBinaryToWriter = function(message, writer) {
2071
+ var f = undefined;
2072
+ f = message.getReferencesId();
2073
+ if (f.length > 0) {
2074
+ writer.writeString(
2075
+ 1,
2076
+ f
2077
+ );
2078
+ }
2079
+ };
2080
+
2081
+
2082
+ /**
2083
+ * optional string references_id = 1;
2084
+ * @return {string}
2085
+ */
2086
+ proto.JobPositionGetByIdRequest.prototype.getReferencesId = function() {
2087
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2088
+ };
2089
+
2090
+
2091
+ /**
2092
+ * @param {string} value
2093
+ * @return {!proto.JobPositionGetByIdRequest} returns this
2094
+ */
2095
+ proto.JobPositionGetByIdRequest.prototype.setReferencesId = function(value) {
2096
+ return jspb.Message.setProto3StringField(this, 1, value);
2097
+ };
2098
+
2099
+
2100
+
2101
+
2102
+
2103
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2104
+ /**
2105
+ * Creates an object representation of this proto.
2106
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2107
+ * Optional fields that are not set will be set to undefined.
2108
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2109
+ * For the list of reserved names please see:
2110
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2111
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2112
+ * JSPB instance for transitional soy proto support:
2113
+ * http://goto/soy-param-migration
2114
+ * @return {!Object}
2115
+ */
2116
+ proto.CreateJobPositionRequest.prototype.toObject = function(opt_includeInstance) {
2117
+ return proto.CreateJobPositionRequest.toObject(opt_includeInstance, this);
2118
+ };
2119
+
2120
+
2121
+ /**
2122
+ * Static version of the {@see toObject} method.
2123
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2124
+ * the JSPB instance for transitional soy proto support:
2125
+ * http://goto/soy-param-migration
2126
+ * @param {!proto.CreateJobPositionRequest} msg The msg instance to transform.
2127
+ * @return {!Object}
2128
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2129
+ */
2130
+ proto.CreateJobPositionRequest.toObject = function(includeInstance, msg) {
2131
+ var f, obj = {
2132
+ jobPosition: (f = msg.getJobPosition()) && proto.JobPosition.toObject(includeInstance, f)
2133
+ };
2134
+
2135
+ if (includeInstance) {
2136
+ obj.$jspbMessageInstance = msg;
2137
+ }
2138
+ return obj;
2139
+ };
2140
+ }
2141
+
2142
+
2143
+ /**
2144
+ * Deserializes binary data (in protobuf wire format).
2145
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2146
+ * @return {!proto.CreateJobPositionRequest}
2147
+ */
2148
+ proto.CreateJobPositionRequest.deserializeBinary = function(bytes) {
2149
+ var reader = new jspb.BinaryReader(bytes);
2150
+ var msg = new proto.CreateJobPositionRequest;
2151
+ return proto.CreateJobPositionRequest.deserializeBinaryFromReader(msg, reader);
2152
+ };
2153
+
2154
+
2155
+ /**
2156
+ * Deserializes binary data (in protobuf wire format) from the
2157
+ * given reader into the given message object.
2158
+ * @param {!proto.CreateJobPositionRequest} msg The message object to deserialize into.
2159
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2160
+ * @return {!proto.CreateJobPositionRequest}
2161
+ */
2162
+ proto.CreateJobPositionRequest.deserializeBinaryFromReader = function(msg, reader) {
2163
+ while (reader.nextField()) {
2164
+ if (reader.isEndGroup()) {
2165
+ break;
2166
+ }
2167
+ var field = reader.getFieldNumber();
2168
+ switch (field) {
2169
+ case 1:
2170
+ var value = new proto.JobPosition;
2171
+ reader.readMessage(value,proto.JobPosition.deserializeBinaryFromReader);
2172
+ msg.setJobPosition(value);
2173
+ break;
2174
+ default:
2175
+ reader.skipField();
2176
+ break;
2177
+ }
2178
+ }
2179
+ return msg;
2180
+ };
2181
+
2182
+
2183
+ /**
2184
+ * Serializes the message to binary data (in protobuf wire format).
2185
+ * @return {!Uint8Array}
2186
+ */
2187
+ proto.CreateJobPositionRequest.prototype.serializeBinary = function() {
2188
+ var writer = new jspb.BinaryWriter();
2189
+ proto.CreateJobPositionRequest.serializeBinaryToWriter(this, writer);
2190
+ return writer.getResultBuffer();
2191
+ };
2192
+
2193
+
2194
+ /**
2195
+ * Serializes the given message to binary data (in protobuf wire
2196
+ * format), writing to the given BinaryWriter.
2197
+ * @param {!proto.CreateJobPositionRequest} message
2198
+ * @param {!jspb.BinaryWriter} writer
2199
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2200
+ */
2201
+ proto.CreateJobPositionRequest.serializeBinaryToWriter = function(message, writer) {
2202
+ var f = undefined;
2203
+ f = message.getJobPosition();
2204
+ if (f != null) {
2205
+ writer.writeMessage(
2206
+ 1,
2207
+ f,
2208
+ proto.JobPosition.serializeBinaryToWriter
2209
+ );
2210
+ }
2211
+ };
2212
+
2213
+
2214
+ /**
2215
+ * optional JobPosition job_position = 1;
2216
+ * @return {?proto.JobPosition}
2217
+ */
2218
+ proto.CreateJobPositionRequest.prototype.getJobPosition = function() {
2219
+ return /** @type{?proto.JobPosition} */ (
2220
+ jspb.Message.getWrapperField(this, proto.JobPosition, 1));
2221
+ };
2222
+
2223
+
2224
+ /**
2225
+ * @param {?proto.JobPosition|undefined} value
2226
+ * @return {!proto.CreateJobPositionRequest} returns this
2227
+ */
2228
+ proto.CreateJobPositionRequest.prototype.setJobPosition = function(value) {
2229
+ return jspb.Message.setWrapperField(this, 1, value);
2230
+ };
2231
+
2232
+
2233
+ /**
2234
+ * Clears the message field making it undefined.
2235
+ * @return {!proto.CreateJobPositionRequest} returns this
2236
+ */
2237
+ proto.CreateJobPositionRequest.prototype.clearJobPosition = function() {
2238
+ return this.setJobPosition(undefined);
2239
+ };
2240
+
2241
+
2242
+ /**
2243
+ * Returns whether this field is set.
2244
+ * @return {boolean}
2245
+ */
2246
+ proto.CreateJobPositionRequest.prototype.hasJobPosition = function() {
2247
+ return jspb.Message.getField(this, 1) != null;
2248
+ };
2249
+
2250
+
2251
+
2252
+
2253
+
2254
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2255
+ /**
2256
+ * Creates an object representation of this proto.
2257
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2258
+ * Optional fields that are not set will be set to undefined.
2259
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2260
+ * For the list of reserved names please see:
2261
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2262
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2263
+ * JSPB instance for transitional soy proto support:
2264
+ * http://goto/soy-param-migration
2265
+ * @return {!Object}
2266
+ */
2267
+ proto.UpdateJobPositionRequest.prototype.toObject = function(opt_includeInstance) {
2268
+ return proto.UpdateJobPositionRequest.toObject(opt_includeInstance, this);
2269
+ };
2270
+
2271
+
2272
+ /**
2273
+ * Static version of the {@see toObject} method.
2274
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2275
+ * the JSPB instance for transitional soy proto support:
2276
+ * http://goto/soy-param-migration
2277
+ * @param {!proto.UpdateJobPositionRequest} msg The msg instance to transform.
2278
+ * @return {!Object}
2279
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2280
+ */
2281
+ proto.UpdateJobPositionRequest.toObject = function(includeInstance, msg) {
2282
+ var f, obj = {
2283
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2284
+ jobPosition: (f = msg.getJobPosition()) && proto.JobPosition.toObject(includeInstance, f)
2285
+ };
2286
+
2287
+ if (includeInstance) {
2288
+ obj.$jspbMessageInstance = msg;
2289
+ }
2290
+ return obj;
2291
+ };
2292
+ }
2293
+
2294
+
2295
+ /**
2296
+ * Deserializes binary data (in protobuf wire format).
2297
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2298
+ * @return {!proto.UpdateJobPositionRequest}
2299
+ */
2300
+ proto.UpdateJobPositionRequest.deserializeBinary = function(bytes) {
2301
+ var reader = new jspb.BinaryReader(bytes);
2302
+ var msg = new proto.UpdateJobPositionRequest;
2303
+ return proto.UpdateJobPositionRequest.deserializeBinaryFromReader(msg, reader);
2304
+ };
2305
+
2306
+
2307
+ /**
2308
+ * Deserializes binary data (in protobuf wire format) from the
2309
+ * given reader into the given message object.
2310
+ * @param {!proto.UpdateJobPositionRequest} msg The message object to deserialize into.
2311
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2312
+ * @return {!proto.UpdateJobPositionRequest}
2313
+ */
2314
+ proto.UpdateJobPositionRequest.deserializeBinaryFromReader = function(msg, reader) {
2315
+ while (reader.nextField()) {
2316
+ if (reader.isEndGroup()) {
2317
+ break;
2318
+ }
2319
+ var field = reader.getFieldNumber();
2320
+ switch (field) {
2321
+ case 1:
2322
+ var value = /** @type {string} */ (reader.readString());
2323
+ msg.setReferencesId(value);
2324
+ break;
2325
+ case 2:
2326
+ var value = new proto.JobPosition;
2327
+ reader.readMessage(value,proto.JobPosition.deserializeBinaryFromReader);
2328
+ msg.setJobPosition(value);
2329
+ break;
2330
+ default:
2331
+ reader.skipField();
2332
+ break;
2333
+ }
2334
+ }
2335
+ return msg;
2336
+ };
2337
+
2338
+
2339
+ /**
2340
+ * Serializes the message to binary data (in protobuf wire format).
2341
+ * @return {!Uint8Array}
2342
+ */
2343
+ proto.UpdateJobPositionRequest.prototype.serializeBinary = function() {
2344
+ var writer = new jspb.BinaryWriter();
2345
+ proto.UpdateJobPositionRequest.serializeBinaryToWriter(this, writer);
2346
+ return writer.getResultBuffer();
2347
+ };
2348
+
2349
+
2350
+ /**
2351
+ * Serializes the given message to binary data (in protobuf wire
2352
+ * format), writing to the given BinaryWriter.
2353
+ * @param {!proto.UpdateJobPositionRequest} message
2354
+ * @param {!jspb.BinaryWriter} writer
2355
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2356
+ */
2357
+ proto.UpdateJobPositionRequest.serializeBinaryToWriter = function(message, writer) {
2358
+ var f = undefined;
2359
+ f = message.getReferencesId();
2360
+ if (f.length > 0) {
2361
+ writer.writeString(
2362
+ 1,
2363
+ f
2364
+ );
2365
+ }
2366
+ f = message.getJobPosition();
2367
+ if (f != null) {
2368
+ writer.writeMessage(
2369
+ 2,
2370
+ f,
2371
+ proto.JobPosition.serializeBinaryToWriter
2372
+ );
2373
+ }
2374
+ };
2375
+
2376
+
2377
+ /**
2378
+ * optional string references_id = 1;
2379
+ * @return {string}
2380
+ */
2381
+ proto.UpdateJobPositionRequest.prototype.getReferencesId = function() {
2382
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2383
+ };
2384
+
2385
+
2386
+ /**
2387
+ * @param {string} value
2388
+ * @return {!proto.UpdateJobPositionRequest} returns this
2389
+ */
2390
+ proto.UpdateJobPositionRequest.prototype.setReferencesId = function(value) {
2391
+ return jspb.Message.setProto3StringField(this, 1, value);
2392
+ };
2393
+
2394
+
2395
+ /**
2396
+ * optional JobPosition job_position = 2;
2397
+ * @return {?proto.JobPosition}
2398
+ */
2399
+ proto.UpdateJobPositionRequest.prototype.getJobPosition = function() {
2400
+ return /** @type{?proto.JobPosition} */ (
2401
+ jspb.Message.getWrapperField(this, proto.JobPosition, 2));
2402
+ };
2403
+
2404
+
2405
+ /**
2406
+ * @param {?proto.JobPosition|undefined} value
2407
+ * @return {!proto.UpdateJobPositionRequest} returns this
2408
+ */
2409
+ proto.UpdateJobPositionRequest.prototype.setJobPosition = function(value) {
2410
+ return jspb.Message.setWrapperField(this, 2, value);
2411
+ };
2412
+
2413
+
2414
+ /**
2415
+ * Clears the message field making it undefined.
2416
+ * @return {!proto.UpdateJobPositionRequest} returns this
2417
+ */
2418
+ proto.UpdateJobPositionRequest.prototype.clearJobPosition = function() {
2419
+ return this.setJobPosition(undefined);
2420
+ };
2421
+
2422
+
2423
+ /**
2424
+ * Returns whether this field is set.
2425
+ * @return {boolean}
2426
+ */
2427
+ proto.UpdateJobPositionRequest.prototype.hasJobPosition = function() {
2428
+ return jspb.Message.getField(this, 2) != null;
2429
+ };
2430
+
2431
+
2432
+
2433
+
2434
+
2435
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2436
+ /**
2437
+ * Creates an object representation of this proto.
2438
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2439
+ * Optional fields that are not set will be set to undefined.
2440
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2441
+ * For the list of reserved names please see:
2442
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2443
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2444
+ * JSPB instance for transitional soy proto support:
2445
+ * http://goto/soy-param-migration
2446
+ * @return {!Object}
2447
+ */
2448
+ proto.DeleteJobPositionRequest.prototype.toObject = function(opt_includeInstance) {
2449
+ return proto.DeleteJobPositionRequest.toObject(opt_includeInstance, this);
2450
+ };
2451
+
2452
+
2453
+ /**
2454
+ * Static version of the {@see toObject} method.
2455
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2456
+ * the JSPB instance for transitional soy proto support:
2457
+ * http://goto/soy-param-migration
2458
+ * @param {!proto.DeleteJobPositionRequest} msg The msg instance to transform.
2459
+ * @return {!Object}
2460
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2461
+ */
2462
+ proto.DeleteJobPositionRequest.toObject = function(includeInstance, msg) {
2463
+ var f, obj = {
2464
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2465
+ };
2466
+
2467
+ if (includeInstance) {
2468
+ obj.$jspbMessageInstance = msg;
2469
+ }
2470
+ return obj;
2471
+ };
2472
+ }
2473
+
2474
+
2475
+ /**
2476
+ * Deserializes binary data (in protobuf wire format).
2477
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2478
+ * @return {!proto.DeleteJobPositionRequest}
2479
+ */
2480
+ proto.DeleteJobPositionRequest.deserializeBinary = function(bytes) {
2481
+ var reader = new jspb.BinaryReader(bytes);
2482
+ var msg = new proto.DeleteJobPositionRequest;
2483
+ return proto.DeleteJobPositionRequest.deserializeBinaryFromReader(msg, reader);
2484
+ };
2485
+
2486
+
2487
+ /**
2488
+ * Deserializes binary data (in protobuf wire format) from the
2489
+ * given reader into the given message object.
2490
+ * @param {!proto.DeleteJobPositionRequest} msg The message object to deserialize into.
2491
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2492
+ * @return {!proto.DeleteJobPositionRequest}
2493
+ */
2494
+ proto.DeleteJobPositionRequest.deserializeBinaryFromReader = function(msg, reader) {
2495
+ while (reader.nextField()) {
2496
+ if (reader.isEndGroup()) {
2497
+ break;
2498
+ }
2499
+ var field = reader.getFieldNumber();
2500
+ switch (field) {
2501
+ case 1:
2502
+ var value = /** @type {string} */ (reader.readString());
2503
+ msg.setReferencesId(value);
2504
+ break;
2505
+ default:
2506
+ reader.skipField();
2507
+ break;
2508
+ }
2509
+ }
2510
+ return msg;
2511
+ };
2512
+
2513
+
2514
+ /**
2515
+ * Serializes the message to binary data (in protobuf wire format).
2516
+ * @return {!Uint8Array}
2517
+ */
2518
+ proto.DeleteJobPositionRequest.prototype.serializeBinary = function() {
2519
+ var writer = new jspb.BinaryWriter();
2520
+ proto.DeleteJobPositionRequest.serializeBinaryToWriter(this, writer);
2521
+ return writer.getResultBuffer();
2522
+ };
2523
+
2524
+
2525
+ /**
2526
+ * Serializes the given message to binary data (in protobuf wire
2527
+ * format), writing to the given BinaryWriter.
2528
+ * @param {!proto.DeleteJobPositionRequest} message
2529
+ * @param {!jspb.BinaryWriter} writer
2530
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2531
+ */
2532
+ proto.DeleteJobPositionRequest.serializeBinaryToWriter = function(message, writer) {
2533
+ var f = undefined;
2534
+ f = message.getReferencesId();
2535
+ if (f.length > 0) {
2536
+ writer.writeString(
2537
+ 1,
2538
+ f
2539
+ );
2540
+ }
2541
+ };
2542
+
2543
+
2544
+ /**
2545
+ * optional string references_id = 1;
2546
+ * @return {string}
2547
+ */
2548
+ proto.DeleteJobPositionRequest.prototype.getReferencesId = function() {
2549
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2550
+ };
2551
+
2552
+
2553
+ /**
2554
+ * @param {string} value
2555
+ * @return {!proto.DeleteJobPositionRequest} returns this
2556
+ */
2557
+ proto.DeleteJobPositionRequest.prototype.setReferencesId = function(value) {
2558
+ return jspb.Message.setProto3StringField(this, 1, value);
2559
+ };
2560
+
2561
+
2562
+
2563
+
2564
+
2565
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2566
+ /**
2567
+ * Creates an object representation of this proto.
2568
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2569
+ * Optional fields that are not set will be set to undefined.
2570
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2571
+ * For the list of reserved names please see:
2572
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2573
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2574
+ * JSPB instance for transitional soy proto support:
2575
+ * http://goto/soy-param-migration
2576
+ * @return {!Object}
2577
+ */
2578
+ proto.DeleteJobPositionResponse.prototype.toObject = function(opt_includeInstance) {
2579
+ return proto.DeleteJobPositionResponse.toObject(opt_includeInstance, this);
2580
+ };
2581
+
2582
+
2583
+ /**
2584
+ * Static version of the {@see toObject} method.
2585
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2586
+ * the JSPB instance for transitional soy proto support:
2587
+ * http://goto/soy-param-migration
2588
+ * @param {!proto.DeleteJobPositionResponse} msg The msg instance to transform.
2589
+ * @return {!Object}
2590
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2591
+ */
2592
+ proto.DeleteJobPositionResponse.toObject = function(includeInstance, msg) {
2593
+ var f, obj = {
2594
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2595
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2596
+ };
2597
+
2598
+ if (includeInstance) {
2599
+ obj.$jspbMessageInstance = msg;
2600
+ }
2601
+ return obj;
2602
+ };
2603
+ }
2604
+
2605
+
2606
+ /**
2607
+ * Deserializes binary data (in protobuf wire format).
2608
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2609
+ * @return {!proto.DeleteJobPositionResponse}
2610
+ */
2611
+ proto.DeleteJobPositionResponse.deserializeBinary = function(bytes) {
2612
+ var reader = new jspb.BinaryReader(bytes);
2613
+ var msg = new proto.DeleteJobPositionResponse;
2614
+ return proto.DeleteJobPositionResponse.deserializeBinaryFromReader(msg, reader);
2615
+ };
2616
+
2617
+
2618
+ /**
2619
+ * Deserializes binary data (in protobuf wire format) from the
2620
+ * given reader into the given message object.
2621
+ * @param {!proto.DeleteJobPositionResponse} msg The message object to deserialize into.
2622
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2623
+ * @return {!proto.DeleteJobPositionResponse}
2624
+ */
2625
+ proto.DeleteJobPositionResponse.deserializeBinaryFromReader = function(msg, reader) {
2626
+ while (reader.nextField()) {
2627
+ if (reader.isEndGroup()) {
2628
+ break;
2629
+ }
2630
+ var field = reader.getFieldNumber();
2631
+ switch (field) {
2632
+ case 1:
2633
+ var value = /** @type {string} */ (reader.readString());
2634
+ msg.setReferencesId(value);
2635
+ break;
2636
+ case 2:
2637
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2638
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2639
+ msg.setMeta(value);
2640
+ break;
2641
+ default:
2642
+ reader.skipField();
2643
+ break;
2644
+ }
2645
+ }
2646
+ return msg;
2647
+ };
2648
+
2649
+
2650
+ /**
2651
+ * Serializes the message to binary data (in protobuf wire format).
2652
+ * @return {!Uint8Array}
2653
+ */
2654
+ proto.DeleteJobPositionResponse.prototype.serializeBinary = function() {
2655
+ var writer = new jspb.BinaryWriter();
2656
+ proto.DeleteJobPositionResponse.serializeBinaryToWriter(this, writer);
2657
+ return writer.getResultBuffer();
2658
+ };
2659
+
2660
+
2661
+ /**
2662
+ * Serializes the given message to binary data (in protobuf wire
2663
+ * format), writing to the given BinaryWriter.
2664
+ * @param {!proto.DeleteJobPositionResponse} message
2665
+ * @param {!jspb.BinaryWriter} writer
2666
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2667
+ */
2668
+ proto.DeleteJobPositionResponse.serializeBinaryToWriter = function(message, writer) {
2669
+ var f = undefined;
2670
+ f = message.getReferencesId();
2671
+ if (f.length > 0) {
2672
+ writer.writeString(
2673
+ 1,
2674
+ f
2675
+ );
2676
+ }
2677
+ f = message.getMeta();
2678
+ if (f != null) {
2679
+ writer.writeMessage(
2680
+ 2,
2681
+ f,
2682
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2683
+ );
2684
+ }
2685
+ };
2686
+
2687
+
2688
+ /**
2689
+ * optional string references_id = 1;
2690
+ * @return {string}
2691
+ */
2692
+ proto.DeleteJobPositionResponse.prototype.getReferencesId = function() {
2693
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2694
+ };
2695
+
2696
+
2697
+ /**
2698
+ * @param {string} value
2699
+ * @return {!proto.DeleteJobPositionResponse} returns this
2700
+ */
2701
+ proto.DeleteJobPositionResponse.prototype.setReferencesId = function(value) {
2702
+ return jspb.Message.setProto3StringField(this, 1, value);
2703
+ };
2704
+
2705
+
2706
+ /**
2707
+ * optional prisca.v1.global.meta.Meta meta = 2;
2708
+ * @return {?proto.prisca.v1.global.meta.Meta}
2709
+ */
2710
+ proto.DeleteJobPositionResponse.prototype.getMeta = function() {
2711
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2712
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2713
+ };
2714
+
2715
+
2716
+ /**
2717
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2718
+ * @return {!proto.DeleteJobPositionResponse} returns this
2719
+ */
2720
+ proto.DeleteJobPositionResponse.prototype.setMeta = function(value) {
2721
+ return jspb.Message.setWrapperField(this, 2, value);
2722
+ };
2723
+
2724
+
2725
+ /**
2726
+ * Clears the message field making it undefined.
2727
+ * @return {!proto.DeleteJobPositionResponse} returns this
2728
+ */
2729
+ proto.DeleteJobPositionResponse.prototype.clearMeta = function() {
2730
+ return this.setMeta(undefined);
2731
+ };
2732
+
2733
+
2734
+ /**
2735
+ * Returns whether this field is set.
2736
+ * @return {boolean}
2737
+ */
2738
+ proto.DeleteJobPositionResponse.prototype.hasMeta = function() {
2739
+ return jspb.Message.getField(this, 2) != null;
2740
+ };
2741
+
2742
+
2743
+
2744
+
2745
+
2746
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2747
+ /**
2748
+ * Creates an object representation of this proto.
2749
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2750
+ * Optional fields that are not set will be set to undefined.
2751
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2752
+ * For the list of reserved names please see:
2753
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2754
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2755
+ * JSPB instance for transitional soy proto support:
2756
+ * http://goto/soy-param-migration
2757
+ * @return {!Object}
2758
+ */
2759
+ proto.GetListJobPositionRequest.prototype.toObject = function(opt_includeInstance) {
2760
+ return proto.GetListJobPositionRequest.toObject(opt_includeInstance, this);
2761
+ };
2762
+
2763
+
2764
+ /**
2765
+ * Static version of the {@see toObject} method.
2766
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2767
+ * the JSPB instance for transitional soy proto support:
2768
+ * http://goto/soy-param-migration
2769
+ * @param {!proto.GetListJobPositionRequest} msg The msg instance to transform.
2770
+ * @return {!Object}
2771
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2772
+ */
2773
+ proto.GetListJobPositionRequest.toObject = function(includeInstance, msg) {
2774
+ var f, obj = {
2775
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
2776
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
2777
+ };
2778
+
2779
+ if (includeInstance) {
2780
+ obj.$jspbMessageInstance = msg;
2781
+ }
2782
+ return obj;
2783
+ };
2784
+ }
2785
+
2786
+
2787
+ /**
2788
+ * Deserializes binary data (in protobuf wire format).
2789
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2790
+ * @return {!proto.GetListJobPositionRequest}
2791
+ */
2792
+ proto.GetListJobPositionRequest.deserializeBinary = function(bytes) {
2793
+ var reader = new jspb.BinaryReader(bytes);
2794
+ var msg = new proto.GetListJobPositionRequest;
2795
+ return proto.GetListJobPositionRequest.deserializeBinaryFromReader(msg, reader);
2796
+ };
2797
+
2798
+
2799
+ /**
2800
+ * Deserializes binary data (in protobuf wire format) from the
2801
+ * given reader into the given message object.
2802
+ * @param {!proto.GetListJobPositionRequest} msg The message object to deserialize into.
2803
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2804
+ * @return {!proto.GetListJobPositionRequest}
2805
+ */
2806
+ proto.GetListJobPositionRequest.deserializeBinaryFromReader = function(msg, reader) {
2807
+ while (reader.nextField()) {
2808
+ if (reader.isEndGroup()) {
2809
+ break;
2810
+ }
2811
+ var field = reader.getFieldNumber();
2812
+ switch (field) {
2813
+ case 1:
2814
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
2815
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
2816
+ msg.setPagination(value);
2817
+ break;
2818
+ case 2:
2819
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
2820
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
2821
+ msg.setQuery(value);
2822
+ break;
2823
+ default:
2824
+ reader.skipField();
2825
+ break;
2826
+ }
2827
+ }
2828
+ return msg;
2829
+ };
2830
+
2831
+
2832
+ /**
2833
+ * Serializes the message to binary data (in protobuf wire format).
2834
+ * @return {!Uint8Array}
2835
+ */
2836
+ proto.GetListJobPositionRequest.prototype.serializeBinary = function() {
2837
+ var writer = new jspb.BinaryWriter();
2838
+ proto.GetListJobPositionRequest.serializeBinaryToWriter(this, writer);
2839
+ return writer.getResultBuffer();
2840
+ };
2841
+
2842
+
2843
+ /**
2844
+ * Serializes the given message to binary data (in protobuf wire
2845
+ * format), writing to the given BinaryWriter.
2846
+ * @param {!proto.GetListJobPositionRequest} message
2847
+ * @param {!jspb.BinaryWriter} writer
2848
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2849
+ */
2850
+ proto.GetListJobPositionRequest.serializeBinaryToWriter = function(message, writer) {
2851
+ var f = undefined;
2852
+ f = message.getPagination();
2853
+ if (f != null) {
2854
+ writer.writeMessage(
2855
+ 1,
2856
+ f,
2857
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
2858
+ );
2859
+ }
2860
+ f = message.getQuery();
2861
+ if (f != null) {
2862
+ writer.writeMessage(
2863
+ 2,
2864
+ f,
2865
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
2866
+ );
2867
+ }
2868
+ };
2869
+
2870
+
2871
+ /**
2872
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
2873
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
2874
+ */
2875
+ proto.GetListJobPositionRequest.prototype.getPagination = function() {
2876
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
2877
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
2878
+ };
2879
+
2880
+
2881
+ /**
2882
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
2883
+ * @return {!proto.GetListJobPositionRequest} returns this
2884
+ */
2885
+ proto.GetListJobPositionRequest.prototype.setPagination = function(value) {
2886
+ return jspb.Message.setWrapperField(this, 1, value);
2887
+ };
2888
+
2889
+
2890
+ /**
2891
+ * Clears the message field making it undefined.
2892
+ * @return {!proto.GetListJobPositionRequest} returns this
2893
+ */
2894
+ proto.GetListJobPositionRequest.prototype.clearPagination = function() {
2895
+ return this.setPagination(undefined);
2896
+ };
2897
+
2898
+
2899
+ /**
2900
+ * Returns whether this field is set.
2901
+ * @return {boolean}
2902
+ */
2903
+ proto.GetListJobPositionRequest.prototype.hasPagination = function() {
2904
+ return jspb.Message.getField(this, 1) != null;
2905
+ };
2906
+
2907
+
2908
+ /**
2909
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
2910
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
2911
+ */
2912
+ proto.GetListJobPositionRequest.prototype.getQuery = function() {
2913
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
2914
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
2915
+ };
2916
+
2917
+
2918
+ /**
2919
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
2920
+ * @return {!proto.GetListJobPositionRequest} returns this
2921
+ */
2922
+ proto.GetListJobPositionRequest.prototype.setQuery = function(value) {
2923
+ return jspb.Message.setWrapperField(this, 2, value);
2924
+ };
2925
+
2926
+
2927
+ /**
2928
+ * Clears the message field making it undefined.
2929
+ * @return {!proto.GetListJobPositionRequest} returns this
2930
+ */
2931
+ proto.GetListJobPositionRequest.prototype.clearQuery = function() {
2932
+ return this.setQuery(undefined);
2933
+ };
2934
+
2935
+
2936
+ /**
2937
+ * Returns whether this field is set.
2938
+ * @return {boolean}
2939
+ */
2940
+ proto.GetListJobPositionRequest.prototype.hasQuery = function() {
2941
+ return jspb.Message.getField(this, 2) != null;
2942
+ };
2943
+
2944
+
2945
+
2946
+
2947
+
2948
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2949
+ /**
2950
+ * Creates an object representation of this proto.
2951
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2952
+ * Optional fields that are not set will be set to undefined.
2953
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2954
+ * For the list of reserved names please see:
2955
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2956
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2957
+ * JSPB instance for transitional soy proto support:
2958
+ * http://goto/soy-param-migration
2959
+ * @return {!Object}
2960
+ */
2961
+ proto.CreateJobPositionResponse.prototype.toObject = function(opt_includeInstance) {
2962
+ return proto.CreateJobPositionResponse.toObject(opt_includeInstance, this);
2963
+ };
2964
+
2965
+
2966
+ /**
2967
+ * Static version of the {@see toObject} method.
2968
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2969
+ * the JSPB instance for transitional soy proto support:
2970
+ * http://goto/soy-param-migration
2971
+ * @param {!proto.CreateJobPositionResponse} msg The msg instance to transform.
2972
+ * @return {!Object}
2973
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2974
+ */
2975
+ proto.CreateJobPositionResponse.toObject = function(includeInstance, msg) {
2976
+ var f, obj = {
2977
+ jobPosition: (f = msg.getJobPosition()) && proto.JobPosition.toObject(includeInstance, f),
2978
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2979
+ };
2980
+
2981
+ if (includeInstance) {
2982
+ obj.$jspbMessageInstance = msg;
2983
+ }
2984
+ return obj;
2985
+ };
2986
+ }
2987
+
2988
+
2989
+ /**
2990
+ * Deserializes binary data (in protobuf wire format).
2991
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2992
+ * @return {!proto.CreateJobPositionResponse}
2993
+ */
2994
+ proto.CreateJobPositionResponse.deserializeBinary = function(bytes) {
2995
+ var reader = new jspb.BinaryReader(bytes);
2996
+ var msg = new proto.CreateJobPositionResponse;
2997
+ return proto.CreateJobPositionResponse.deserializeBinaryFromReader(msg, reader);
2998
+ };
2999
+
3000
+
3001
+ /**
3002
+ * Deserializes binary data (in protobuf wire format) from the
3003
+ * given reader into the given message object.
3004
+ * @param {!proto.CreateJobPositionResponse} msg The message object to deserialize into.
3005
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3006
+ * @return {!proto.CreateJobPositionResponse}
3007
+ */
3008
+ proto.CreateJobPositionResponse.deserializeBinaryFromReader = function(msg, reader) {
3009
+ while (reader.nextField()) {
3010
+ if (reader.isEndGroup()) {
3011
+ break;
3012
+ }
3013
+ var field = reader.getFieldNumber();
3014
+ switch (field) {
3015
+ case 1:
3016
+ var value = new proto.JobPosition;
3017
+ reader.readMessage(value,proto.JobPosition.deserializeBinaryFromReader);
3018
+ msg.setJobPosition(value);
3019
+ break;
3020
+ case 2:
3021
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3022
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3023
+ msg.setMeta(value);
3024
+ break;
3025
+ default:
3026
+ reader.skipField();
3027
+ break;
3028
+ }
3029
+ }
3030
+ return msg;
3031
+ };
3032
+
3033
+
3034
+ /**
3035
+ * Serializes the message to binary data (in protobuf wire format).
3036
+ * @return {!Uint8Array}
3037
+ */
3038
+ proto.CreateJobPositionResponse.prototype.serializeBinary = function() {
3039
+ var writer = new jspb.BinaryWriter();
3040
+ proto.CreateJobPositionResponse.serializeBinaryToWriter(this, writer);
3041
+ return writer.getResultBuffer();
3042
+ };
3043
+
3044
+
3045
+ /**
3046
+ * Serializes the given message to binary data (in protobuf wire
3047
+ * format), writing to the given BinaryWriter.
3048
+ * @param {!proto.CreateJobPositionResponse} message
3049
+ * @param {!jspb.BinaryWriter} writer
3050
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3051
+ */
3052
+ proto.CreateJobPositionResponse.serializeBinaryToWriter = function(message, writer) {
3053
+ var f = undefined;
3054
+ f = message.getJobPosition();
3055
+ if (f != null) {
3056
+ writer.writeMessage(
3057
+ 1,
3058
+ f,
3059
+ proto.JobPosition.serializeBinaryToWriter
3060
+ );
3061
+ }
3062
+ f = message.getMeta();
3063
+ if (f != null) {
3064
+ writer.writeMessage(
3065
+ 2,
3066
+ f,
3067
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3068
+ );
3069
+ }
3070
+ };
3071
+
3072
+
3073
+ /**
3074
+ * optional JobPosition job_position = 1;
3075
+ * @return {?proto.JobPosition}
3076
+ */
3077
+ proto.CreateJobPositionResponse.prototype.getJobPosition = function() {
3078
+ return /** @type{?proto.JobPosition} */ (
3079
+ jspb.Message.getWrapperField(this, proto.JobPosition, 1));
3080
+ };
3081
+
3082
+
3083
+ /**
3084
+ * @param {?proto.JobPosition|undefined} value
3085
+ * @return {!proto.CreateJobPositionResponse} returns this
3086
+ */
3087
+ proto.CreateJobPositionResponse.prototype.setJobPosition = function(value) {
3088
+ return jspb.Message.setWrapperField(this, 1, value);
3089
+ };
3090
+
3091
+
3092
+ /**
3093
+ * Clears the message field making it undefined.
3094
+ * @return {!proto.CreateJobPositionResponse} returns this
3095
+ */
3096
+ proto.CreateJobPositionResponse.prototype.clearJobPosition = function() {
3097
+ return this.setJobPosition(undefined);
3098
+ };
3099
+
3100
+
3101
+ /**
3102
+ * Returns whether this field is set.
3103
+ * @return {boolean}
3104
+ */
3105
+ proto.CreateJobPositionResponse.prototype.hasJobPosition = function() {
3106
+ return jspb.Message.getField(this, 1) != null;
3107
+ };
3108
+
3109
+
3110
+ /**
3111
+ * optional prisca.v1.global.meta.Meta meta = 2;
3112
+ * @return {?proto.prisca.v1.global.meta.Meta}
3113
+ */
3114
+ proto.CreateJobPositionResponse.prototype.getMeta = function() {
3115
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3116
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3117
+ };
3118
+
3119
+
3120
+ /**
3121
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3122
+ * @return {!proto.CreateJobPositionResponse} returns this
3123
+ */
3124
+ proto.CreateJobPositionResponse.prototype.setMeta = function(value) {
3125
+ return jspb.Message.setWrapperField(this, 2, value);
3126
+ };
3127
+
3128
+
3129
+ /**
3130
+ * Clears the message field making it undefined.
3131
+ * @return {!proto.CreateJobPositionResponse} returns this
3132
+ */
3133
+ proto.CreateJobPositionResponse.prototype.clearMeta = function() {
3134
+ return this.setMeta(undefined);
3135
+ };
3136
+
3137
+
3138
+ /**
3139
+ * Returns whether this field is set.
3140
+ * @return {boolean}
3141
+ */
3142
+ proto.CreateJobPositionResponse.prototype.hasMeta = function() {
3143
+ return jspb.Message.getField(this, 2) != null;
3144
+ };
3145
+
3146
+
3147
+
3148
+ /**
3149
+ * List of repeated fields within this message type.
3150
+ * @private {!Array<number>}
3151
+ * @const
3152
+ */
3153
+ proto.GetListJobPositionResponse.repeatedFields_ = [1];
3154
+
3155
+
3156
+
3157
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3158
+ /**
3159
+ * Creates an object representation of this proto.
3160
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3161
+ * Optional fields that are not set will be set to undefined.
3162
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3163
+ * For the list of reserved names please see:
3164
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3165
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3166
+ * JSPB instance for transitional soy proto support:
3167
+ * http://goto/soy-param-migration
3168
+ * @return {!Object}
3169
+ */
3170
+ proto.GetListJobPositionResponse.prototype.toObject = function(opt_includeInstance) {
3171
+ return proto.GetListJobPositionResponse.toObject(opt_includeInstance, this);
3172
+ };
3173
+
3174
+
3175
+ /**
3176
+ * Static version of the {@see toObject} method.
3177
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3178
+ * the JSPB instance for transitional soy proto support:
3179
+ * http://goto/soy-param-migration
3180
+ * @param {!proto.GetListJobPositionResponse} msg The msg instance to transform.
3181
+ * @return {!Object}
3182
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3183
+ */
3184
+ proto.GetListJobPositionResponse.toObject = function(includeInstance, msg) {
3185
+ var f, obj = {
3186
+ jobPositionList: jspb.Message.toObjectList(msg.getJobPositionList(),
3187
+ proto.BaseJobPosition.toObject, includeInstance),
3188
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3189
+ };
3190
+
3191
+ if (includeInstance) {
3192
+ obj.$jspbMessageInstance = msg;
3193
+ }
3194
+ return obj;
3195
+ };
3196
+ }
3197
+
3198
+
3199
+ /**
3200
+ * Deserializes binary data (in protobuf wire format).
3201
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3202
+ * @return {!proto.GetListJobPositionResponse}
3203
+ */
3204
+ proto.GetListJobPositionResponse.deserializeBinary = function(bytes) {
3205
+ var reader = new jspb.BinaryReader(bytes);
3206
+ var msg = new proto.GetListJobPositionResponse;
3207
+ return proto.GetListJobPositionResponse.deserializeBinaryFromReader(msg, reader);
3208
+ };
3209
+
3210
+
3211
+ /**
3212
+ * Deserializes binary data (in protobuf wire format) from the
3213
+ * given reader into the given message object.
3214
+ * @param {!proto.GetListJobPositionResponse} msg The message object to deserialize into.
3215
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3216
+ * @return {!proto.GetListJobPositionResponse}
3217
+ */
3218
+ proto.GetListJobPositionResponse.deserializeBinaryFromReader = function(msg, reader) {
3219
+ while (reader.nextField()) {
3220
+ if (reader.isEndGroup()) {
3221
+ break;
3222
+ }
3223
+ var field = reader.getFieldNumber();
3224
+ switch (field) {
3225
+ case 1:
3226
+ var value = new proto.BaseJobPosition;
3227
+ reader.readMessage(value,proto.BaseJobPosition.deserializeBinaryFromReader);
3228
+ msg.addJobPosition(value);
3229
+ break;
3230
+ case 2:
3231
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3232
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3233
+ msg.setMeta(value);
3234
+ break;
3235
+ default:
3236
+ reader.skipField();
3237
+ break;
3238
+ }
3239
+ }
3240
+ return msg;
3241
+ };
3242
+
3243
+
3244
+ /**
3245
+ * Serializes the message to binary data (in protobuf wire format).
3246
+ * @return {!Uint8Array}
3247
+ */
3248
+ proto.GetListJobPositionResponse.prototype.serializeBinary = function() {
3249
+ var writer = new jspb.BinaryWriter();
3250
+ proto.GetListJobPositionResponse.serializeBinaryToWriter(this, writer);
3251
+ return writer.getResultBuffer();
3252
+ };
3253
+
3254
+
3255
+ /**
3256
+ * Serializes the given message to binary data (in protobuf wire
3257
+ * format), writing to the given BinaryWriter.
3258
+ * @param {!proto.GetListJobPositionResponse} message
3259
+ * @param {!jspb.BinaryWriter} writer
3260
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3261
+ */
3262
+ proto.GetListJobPositionResponse.serializeBinaryToWriter = function(message, writer) {
3263
+ var f = undefined;
3264
+ f = message.getJobPositionList();
3265
+ if (f.length > 0) {
3266
+ writer.writeRepeatedMessage(
3267
+ 1,
3268
+ f,
3269
+ proto.BaseJobPosition.serializeBinaryToWriter
3270
+ );
3271
+ }
3272
+ f = message.getMeta();
3273
+ if (f != null) {
3274
+ writer.writeMessage(
3275
+ 2,
3276
+ f,
3277
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3278
+ );
3279
+ }
3280
+ };
3281
+
3282
+
3283
+ /**
3284
+ * repeated BaseJobPosition job_position = 1;
3285
+ * @return {!Array<!proto.BaseJobPosition>}
3286
+ */
3287
+ proto.GetListJobPositionResponse.prototype.getJobPositionList = function() {
3288
+ return /** @type{!Array<!proto.BaseJobPosition>} */ (
3289
+ jspb.Message.getRepeatedWrapperField(this, proto.BaseJobPosition, 1));
3290
+ };
3291
+
3292
+
3293
+ /**
3294
+ * @param {!Array<!proto.BaseJobPosition>} value
3295
+ * @return {!proto.GetListJobPositionResponse} returns this
3296
+ */
3297
+ proto.GetListJobPositionResponse.prototype.setJobPositionList = function(value) {
3298
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3299
+ };
3300
+
3301
+
3302
+ /**
3303
+ * @param {!proto.BaseJobPosition=} opt_value
3304
+ * @param {number=} opt_index
3305
+ * @return {!proto.BaseJobPosition}
3306
+ */
3307
+ proto.GetListJobPositionResponse.prototype.addJobPosition = function(opt_value, opt_index) {
3308
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.BaseJobPosition, opt_index);
3309
+ };
3310
+
3311
+
3312
+ /**
3313
+ * Clears the list making it empty but non-null.
3314
+ * @return {!proto.GetListJobPositionResponse} returns this
3315
+ */
3316
+ proto.GetListJobPositionResponse.prototype.clearJobPositionList = function() {
3317
+ return this.setJobPositionList([]);
3318
+ };
3319
+
3320
+
3321
+ /**
3322
+ * optional prisca.v1.global.meta.Meta meta = 2;
3323
+ * @return {?proto.prisca.v1.global.meta.Meta}
3324
+ */
3325
+ proto.GetListJobPositionResponse.prototype.getMeta = function() {
3326
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3327
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3328
+ };
3329
+
3330
+
3331
+ /**
3332
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3333
+ * @return {!proto.GetListJobPositionResponse} returns this
3334
+ */
3335
+ proto.GetListJobPositionResponse.prototype.setMeta = function(value) {
3336
+ return jspb.Message.setWrapperField(this, 2, value);
3337
+ };
3338
+
3339
+
3340
+ /**
3341
+ * Clears the message field making it undefined.
3342
+ * @return {!proto.GetListJobPositionResponse} returns this
3343
+ */
3344
+ proto.GetListJobPositionResponse.prototype.clearMeta = function() {
3345
+ return this.setMeta(undefined);
3346
+ };
3347
+
3348
+
3349
+ /**
3350
+ * Returns whether this field is set.
3351
+ * @return {boolean}
3352
+ */
3353
+ proto.GetListJobPositionResponse.prototype.hasMeta = function() {
3354
+ return jspb.Message.getField(this, 2) != null;
3355
+ };
3356
+
3357
+
3358
+
3359
+
3360
+
3361
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3362
+ /**
3363
+ * Creates an object representation of this proto.
3364
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3365
+ * Optional fields that are not set will be set to undefined.
3366
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3367
+ * For the list of reserved names please see:
3368
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3369
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3370
+ * JSPB instance for transitional soy proto support:
3371
+ * http://goto/soy-param-migration
3372
+ * @return {!Object}
3373
+ */
3374
+ proto.UpdateJobPositionResponse.prototype.toObject = function(opt_includeInstance) {
3375
+ return proto.UpdateJobPositionResponse.toObject(opt_includeInstance, this);
3376
+ };
3377
+
3378
+
3379
+ /**
3380
+ * Static version of the {@see toObject} method.
3381
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3382
+ * the JSPB instance for transitional soy proto support:
3383
+ * http://goto/soy-param-migration
3384
+ * @param {!proto.UpdateJobPositionResponse} msg The msg instance to transform.
3385
+ * @return {!Object}
3386
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3387
+ */
3388
+ proto.UpdateJobPositionResponse.toObject = function(includeInstance, msg) {
3389
+ var f, obj = {
3390
+ jobPosition: (f = msg.getJobPosition()) && proto.JobPosition.toObject(includeInstance, f),
3391
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3392
+ };
3393
+
3394
+ if (includeInstance) {
3395
+ obj.$jspbMessageInstance = msg;
3396
+ }
3397
+ return obj;
3398
+ };
3399
+ }
3400
+
3401
+
3402
+ /**
3403
+ * Deserializes binary data (in protobuf wire format).
3404
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3405
+ * @return {!proto.UpdateJobPositionResponse}
3406
+ */
3407
+ proto.UpdateJobPositionResponse.deserializeBinary = function(bytes) {
3408
+ var reader = new jspb.BinaryReader(bytes);
3409
+ var msg = new proto.UpdateJobPositionResponse;
3410
+ return proto.UpdateJobPositionResponse.deserializeBinaryFromReader(msg, reader);
3411
+ };
3412
+
3413
+
3414
+ /**
3415
+ * Deserializes binary data (in protobuf wire format) from the
3416
+ * given reader into the given message object.
3417
+ * @param {!proto.UpdateJobPositionResponse} msg The message object to deserialize into.
3418
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3419
+ * @return {!proto.UpdateJobPositionResponse}
3420
+ */
3421
+ proto.UpdateJobPositionResponse.deserializeBinaryFromReader = function(msg, reader) {
3422
+ while (reader.nextField()) {
3423
+ if (reader.isEndGroup()) {
3424
+ break;
3425
+ }
3426
+ var field = reader.getFieldNumber();
3427
+ switch (field) {
3428
+ case 1:
3429
+ var value = new proto.JobPosition;
3430
+ reader.readMessage(value,proto.JobPosition.deserializeBinaryFromReader);
3431
+ msg.setJobPosition(value);
3432
+ break;
3433
+ case 2:
3434
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3435
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3436
+ msg.setMeta(value);
3437
+ break;
3438
+ default:
3439
+ reader.skipField();
3440
+ break;
3441
+ }
3442
+ }
3443
+ return msg;
3444
+ };
3445
+
3446
+
3447
+ /**
3448
+ * Serializes the message to binary data (in protobuf wire format).
3449
+ * @return {!Uint8Array}
3450
+ */
3451
+ proto.UpdateJobPositionResponse.prototype.serializeBinary = function() {
3452
+ var writer = new jspb.BinaryWriter();
3453
+ proto.UpdateJobPositionResponse.serializeBinaryToWriter(this, writer);
3454
+ return writer.getResultBuffer();
3455
+ };
3456
+
3457
+
3458
+ /**
3459
+ * Serializes the given message to binary data (in protobuf wire
3460
+ * format), writing to the given BinaryWriter.
3461
+ * @param {!proto.UpdateJobPositionResponse} message
3462
+ * @param {!jspb.BinaryWriter} writer
3463
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3464
+ */
3465
+ proto.UpdateJobPositionResponse.serializeBinaryToWriter = function(message, writer) {
3466
+ var f = undefined;
3467
+ f = message.getJobPosition();
3468
+ if (f != null) {
3469
+ writer.writeMessage(
3470
+ 1,
3471
+ f,
3472
+ proto.JobPosition.serializeBinaryToWriter
3473
+ );
3474
+ }
3475
+ f = message.getMeta();
3476
+ if (f != null) {
3477
+ writer.writeMessage(
3478
+ 2,
3479
+ f,
3480
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3481
+ );
3482
+ }
3483
+ };
3484
+
3485
+
3486
+ /**
3487
+ * optional JobPosition job_position = 1;
3488
+ * @return {?proto.JobPosition}
3489
+ */
3490
+ proto.UpdateJobPositionResponse.prototype.getJobPosition = function() {
3491
+ return /** @type{?proto.JobPosition} */ (
3492
+ jspb.Message.getWrapperField(this, proto.JobPosition, 1));
3493
+ };
3494
+
3495
+
3496
+ /**
3497
+ * @param {?proto.JobPosition|undefined} value
3498
+ * @return {!proto.UpdateJobPositionResponse} returns this
3499
+ */
3500
+ proto.UpdateJobPositionResponse.prototype.setJobPosition = function(value) {
3501
+ return jspb.Message.setWrapperField(this, 1, value);
3502
+ };
3503
+
3504
+
3505
+ /**
3506
+ * Clears the message field making it undefined.
3507
+ * @return {!proto.UpdateJobPositionResponse} returns this
3508
+ */
3509
+ proto.UpdateJobPositionResponse.prototype.clearJobPosition = function() {
3510
+ return this.setJobPosition(undefined);
3511
+ };
3512
+
3513
+
3514
+ /**
3515
+ * Returns whether this field is set.
3516
+ * @return {boolean}
3517
+ */
3518
+ proto.UpdateJobPositionResponse.prototype.hasJobPosition = function() {
3519
+ return jspb.Message.getField(this, 1) != null;
3520
+ };
3521
+
3522
+
3523
+ /**
3524
+ * optional prisca.v1.global.meta.Meta meta = 2;
3525
+ * @return {?proto.prisca.v1.global.meta.Meta}
3526
+ */
3527
+ proto.UpdateJobPositionResponse.prototype.getMeta = function() {
3528
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3529
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3530
+ };
3531
+
3532
+
3533
+ /**
3534
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3535
+ * @return {!proto.UpdateJobPositionResponse} returns this
3536
+ */
3537
+ proto.UpdateJobPositionResponse.prototype.setMeta = function(value) {
3538
+ return jspb.Message.setWrapperField(this, 2, value);
3539
+ };
3540
+
3541
+
3542
+ /**
3543
+ * Clears the message field making it undefined.
3544
+ * @return {!proto.UpdateJobPositionResponse} returns this
3545
+ */
3546
+ proto.UpdateJobPositionResponse.prototype.clearMeta = function() {
3547
+ return this.setMeta(undefined);
3548
+ };
3549
+
3550
+
3551
+ /**
3552
+ * Returns whether this field is set.
3553
+ * @return {boolean}
3554
+ */
3555
+ proto.UpdateJobPositionResponse.prototype.hasMeta = function() {
3556
+ return jspb.Message.getField(this, 2) != null;
3557
+ };
3558
+
3559
+
3560
+
3561
+
3562
+
3563
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3564
+ /**
3565
+ * Creates an object representation of this proto.
3566
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3567
+ * Optional fields that are not set will be set to undefined.
3568
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3569
+ * For the list of reserved names please see:
3570
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3571
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3572
+ * JSPB instance for transitional soy proto support:
3573
+ * http://goto/soy-param-migration
3574
+ * @return {!Object}
3575
+ */
3576
+ proto.JobPositionGetByIdResponse.prototype.toObject = function(opt_includeInstance) {
3577
+ return proto.JobPositionGetByIdResponse.toObject(opt_includeInstance, this);
3578
+ };
3579
+
3580
+
3581
+ /**
3582
+ * Static version of the {@see toObject} method.
3583
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3584
+ * the JSPB instance for transitional soy proto support:
3585
+ * http://goto/soy-param-migration
3586
+ * @param {!proto.JobPositionGetByIdResponse} msg The msg instance to transform.
3587
+ * @return {!Object}
3588
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3589
+ */
3590
+ proto.JobPositionGetByIdResponse.toObject = function(includeInstance, msg) {
3591
+ var f, obj = {
3592
+ jobPosition: (f = msg.getJobPosition()) && proto.BaseJobPosition.toObject(includeInstance, f),
3593
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3594
+ };
3595
+
3596
+ if (includeInstance) {
3597
+ obj.$jspbMessageInstance = msg;
3598
+ }
3599
+ return obj;
3600
+ };
3601
+ }
3602
+
3603
+
3604
+ /**
3605
+ * Deserializes binary data (in protobuf wire format).
3606
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3607
+ * @return {!proto.JobPositionGetByIdResponse}
3608
+ */
3609
+ proto.JobPositionGetByIdResponse.deserializeBinary = function(bytes) {
3610
+ var reader = new jspb.BinaryReader(bytes);
3611
+ var msg = new proto.JobPositionGetByIdResponse;
3612
+ return proto.JobPositionGetByIdResponse.deserializeBinaryFromReader(msg, reader);
3613
+ };
3614
+
3615
+
3616
+ /**
3617
+ * Deserializes binary data (in protobuf wire format) from the
3618
+ * given reader into the given message object.
3619
+ * @param {!proto.JobPositionGetByIdResponse} msg The message object to deserialize into.
3620
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3621
+ * @return {!proto.JobPositionGetByIdResponse}
3622
+ */
3623
+ proto.JobPositionGetByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
3624
+ while (reader.nextField()) {
3625
+ if (reader.isEndGroup()) {
3626
+ break;
3627
+ }
3628
+ var field = reader.getFieldNumber();
3629
+ switch (field) {
3630
+ case 1:
3631
+ var value = new proto.BaseJobPosition;
3632
+ reader.readMessage(value,proto.BaseJobPosition.deserializeBinaryFromReader);
3633
+ msg.setJobPosition(value);
3634
+ break;
3635
+ case 2:
3636
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3637
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3638
+ msg.setMeta(value);
3639
+ break;
3640
+ default:
3641
+ reader.skipField();
3642
+ break;
3643
+ }
3644
+ }
3645
+ return msg;
3646
+ };
3647
+
3648
+
3649
+ /**
3650
+ * Serializes the message to binary data (in protobuf wire format).
3651
+ * @return {!Uint8Array}
3652
+ */
3653
+ proto.JobPositionGetByIdResponse.prototype.serializeBinary = function() {
3654
+ var writer = new jspb.BinaryWriter();
3655
+ proto.JobPositionGetByIdResponse.serializeBinaryToWriter(this, writer);
3656
+ return writer.getResultBuffer();
3657
+ };
3658
+
3659
+
3660
+ /**
3661
+ * Serializes the given message to binary data (in protobuf wire
3662
+ * format), writing to the given BinaryWriter.
3663
+ * @param {!proto.JobPositionGetByIdResponse} message
3664
+ * @param {!jspb.BinaryWriter} writer
3665
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3666
+ */
3667
+ proto.JobPositionGetByIdResponse.serializeBinaryToWriter = function(message, writer) {
3668
+ var f = undefined;
3669
+ f = message.getJobPosition();
3670
+ if (f != null) {
3671
+ writer.writeMessage(
3672
+ 1,
3673
+ f,
3674
+ proto.BaseJobPosition.serializeBinaryToWriter
3675
+ );
3676
+ }
3677
+ f = message.getMeta();
3678
+ if (f != null) {
3679
+ writer.writeMessage(
3680
+ 2,
3681
+ f,
3682
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3683
+ );
3684
+ }
3685
+ };
3686
+
3687
+
3688
+ /**
3689
+ * optional BaseJobPosition job_position = 1;
3690
+ * @return {?proto.BaseJobPosition}
3691
+ */
3692
+ proto.JobPositionGetByIdResponse.prototype.getJobPosition = function() {
3693
+ return /** @type{?proto.BaseJobPosition} */ (
3694
+ jspb.Message.getWrapperField(this, proto.BaseJobPosition, 1));
3695
+ };
3696
+
3697
+
3698
+ /**
3699
+ * @param {?proto.BaseJobPosition|undefined} value
3700
+ * @return {!proto.JobPositionGetByIdResponse} returns this
3701
+ */
3702
+ proto.JobPositionGetByIdResponse.prototype.setJobPosition = function(value) {
3703
+ return jspb.Message.setWrapperField(this, 1, value);
3704
+ };
3705
+
3706
+
3707
+ /**
3708
+ * Clears the message field making it undefined.
3709
+ * @return {!proto.JobPositionGetByIdResponse} returns this
3710
+ */
3711
+ proto.JobPositionGetByIdResponse.prototype.clearJobPosition = function() {
3712
+ return this.setJobPosition(undefined);
3713
+ };
3714
+
3715
+
3716
+ /**
3717
+ * Returns whether this field is set.
3718
+ * @return {boolean}
3719
+ */
3720
+ proto.JobPositionGetByIdResponse.prototype.hasJobPosition = function() {
3721
+ return jspb.Message.getField(this, 1) != null;
3722
+ };
3723
+
3724
+
3725
+ /**
3726
+ * optional prisca.v1.global.meta.Meta meta = 2;
3727
+ * @return {?proto.prisca.v1.global.meta.Meta}
3728
+ */
3729
+ proto.JobPositionGetByIdResponse.prototype.getMeta = function() {
3730
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3731
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3732
+ };
3733
+
3734
+
3735
+ /**
3736
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3737
+ * @return {!proto.JobPositionGetByIdResponse} returns this
3738
+ */
3739
+ proto.JobPositionGetByIdResponse.prototype.setMeta = function(value) {
3740
+ return jspb.Message.setWrapperField(this, 2, value);
3741
+ };
3742
+
3743
+
3744
+ /**
3745
+ * Clears the message field making it undefined.
3746
+ * @return {!proto.JobPositionGetByIdResponse} returns this
3747
+ */
3748
+ proto.JobPositionGetByIdResponse.prototype.clearMeta = function() {
3749
+ return this.setMeta(undefined);
3750
+ };
3751
+
3752
+
3753
+ /**
3754
+ * Returns whether this field is set.
3755
+ * @return {boolean}
3756
+ */
3757
+ proto.JobPositionGetByIdResponse.prototype.hasMeta = function() {
3758
+ return jspb.Message.getField(this, 2) != null;
3759
+ };
3760
+
3761
+
3762
+ goog.object.extend(exports, proto);