@aldiokta/protocgen 1.1.23 → 1.1.24

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 (169) 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 +2726 -0
  4. package/prisca/v1/account_group/account_group_grpc_pb.js +200 -0
  5. package/prisca/v1/account_group/account_group_pb.js +2989 -0
  6. package/prisca/v1/bidding/bidding_grpc_pb.js +294 -0
  7. package/prisca/v1/bidding/bidding_pb.js +7488 -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 +2959 -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 +3100 -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 +4335 -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 +1052 -0
  26. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +177 -0
  27. package/prisca/v1/core/incoterm/incoterm_pb.js +2904 -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 +4270 -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 +2657 -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 +3814 -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 +3010 -0
  36. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +78 -0
  37. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +2087 -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 +3251 -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 +4232 -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 +2828 -0
  48. package/prisca/v1/core/material_type/material_type_grpc_pb.js +182 -0
  49. package/prisca/v1/core/material_type/material_type_pb.js +3104 -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 +2978 -0
  56. package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
  57. package/prisca/v1/core/organization/organization_pb.js +3084 -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 +2597 -0
  60. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +179 -0
  61. package/prisca/v1/core/price_condition/price_condition_pb.js +3061 -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 +2784 -0
  72. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +177 -0
  73. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +2512 -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 +2850 -0
  78. package/prisca/v1/core/users/users_grpc_pb.js +78 -0
  79. package/prisca/v1/core/users/users_pb.js +1653 -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 +4024 -0
  82. package/prisca/v1/core/workflow/workflow_grpc_pb.js +203 -0
  83. package/prisca/v1/core/workflow/workflow_pb.js +7577 -0
  84. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +229 -0
  85. package/prisca/v1/delivery_order/delivery_order_pb.js +4661 -0
  86. package/prisca/v1/document_type/document_type_grpc_pb.js +178 -0
  87. package/prisca/v1/document_type/document_type_pb.js +2798 -0
  88. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +181 -0
  89. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +3328 -0
  90. package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
  91. package/prisca/v1/global/meta/meta_pb.js +1179 -0
  92. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +1 -0
  93. package/prisca/v1/good_receipt/good_receipt_pb.js +35 -0
  94. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +228 -0
  95. package/prisca/v1/purchase_order/purchase_order_pb.js +5049 -0
  96. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +523 -0
  97. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +9917 -0
  98. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +178 -0
  99. package/prisca/v1/purchasing_group/purchasing_group_pb.js +2927 -0
  100. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +178 -0
  101. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +2546 -0
  102. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +179 -0
  103. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +2590 -0
  104. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +145 -0
  105. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +2543 -0
  106. package/prisca/v1/quotation/quotation_grpc_pb.js +207 -0
  107. package/prisca/v1/quotation/quotation_pb.js +3582 -0
  108. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +193 -0
  109. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +5961 -0
  110. package/prisca/v1/valuation/valuation_grpc_pb.js +366 -0
  111. package/prisca/v1/valuation/valuation_pb.js +7812 -0
  112. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +224 -0
  113. package/prisca/v1/vendor_domain/vendor_domain_pb.js +6363 -0
  114. package/prisca/v1/account_assignment/account_assignment.proto +0 -81
  115. package/prisca/v1/account_group/account_group.proto +0 -88
  116. package/prisca/v1/bidding/bidding.proto +0 -221
  117. package/prisca/v1/chart_of_account/chart_of_account.proto +0 -89
  118. package/prisca/v1/core/access_manager/access_manager.proto +0 -281
  119. package/prisca/v1/core/auth/auth.proto +0 -150
  120. package/prisca/v1/core/chat_messaging/chat_messaging.proto +0 -55
  121. package/prisca/v1/core/company/company.proto +0 -92
  122. package/prisca/v1/core/currency/currency.proto +0 -76
  123. package/prisca/v1/core/department_material/department_material.proto +0 -69
  124. package/prisca/v1/core/employee/employee.proto +0 -129
  125. package/prisca/v1/core/file_upload/file_upload.proto +0 -37
  126. package/prisca/v1/core/incoterm/incoterm.proto +0 -85
  127. package/prisca/v1/core/item_transaction/item_transaction.proto +0 -134
  128. package/prisca/v1/core/job_grade/job_grade.proto +0 -79
  129. package/prisca/v1/core/job_position/job_position.proto +0 -113
  130. package/prisca/v1/core/job_title/job_title.proto +0 -89
  131. package/prisca/v1/core/line_of_activity/line_of_activity.proto +0 -66
  132. package/prisca/v1/core/line_of_approval/line_of_approval.proto +0 -96
  133. package/prisca/v1/core/link_data_source/link_data_source.proto +0 -78
  134. package/prisca/v1/core/location/location.proto +0 -289
  135. package/prisca/v1/core/material/material.proto +0 -131
  136. package/prisca/v1/core/material_group/material_group.proto +0 -85
  137. package/prisca/v1/core/material_type/material_type.proto +0 -95
  138. package/prisca/v1/core/messaging/email_template.proto +0 -75
  139. package/prisca/v1/core/messaging/messaging.proto +0 -29
  140. package/prisca/v1/core/number_range/number_range.proto +0 -89
  141. package/prisca/v1/core/organization/organization.proto +0 -94
  142. package/prisca/v1/core/organization_level/organization_level.proto +0 -77
  143. package/prisca/v1/core/price_condition/price_condition.proto +0 -93
  144. package/prisca/v1/core/procurement/procurement.proto +0 -54
  145. package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
  146. package/prisca/v1/core/report/report.proto +0 -90
  147. package/prisca/v1/core/report/user_report.proto +0 -74
  148. package/prisca/v1/core/tax_code/tax_code.proto +0 -82
  149. package/prisca/v1/core/term_of_payment/term_of_payment.proto +0 -74
  150. package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -325
  151. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
  152. package/prisca/v1/core/users/users.proto +0 -55
  153. package/prisca/v1/core/work_location/work_location.proto +0 -122
  154. package/prisca/v1/core/workflow/workflow.proto +0 -218
  155. package/prisca/v1/delivery_order/delivery_order.proto +0 -147
  156. package/prisca/v1/document_type/document_type.proto +0 -82
  157. package/prisca/v1/general_ledger_account/general_ledger_account.proto +0 -100
  158. package/prisca/v1/global/meta/meta.proto +0 -57
  159. package/prisca/v1/good_receipt/good_receipt.proto +0 -11
  160. package/prisca/v1/purchase_order/purchase_order.proto +0 -157
  161. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +0 -306
  162. package/prisca/v1/purchasing_group/purchasing_group.proto +0 -89
  163. package/prisca/v1/purchasing_organization/purchasing_organization.proto +0 -79
  164. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +0 -81
  165. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +0 -80
  166. package/prisca/v1/quotation/quotation.proto +0 -118
  167. package/prisca/v1/request_for_quotation/request_for_quotation.proto +0 -174
  168. package/prisca/v1/valuation/valuation.proto +0 -223
  169. package/prisca/v1/vendor_domain/vendor_domain.proto +0 -226
@@ -0,0 +1,3814 @@
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, proto.DeleteJobPositionRequest.repeatedFields_, 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, proto.DeleteJobPositionResponse.repeatedFields_, 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
+ * List of repeated fields within this message type.
2435
+ * @private {!Array<number>}
2436
+ * @const
2437
+ */
2438
+ proto.DeleteJobPositionRequest.repeatedFields_ = [1];
2439
+
2440
+
2441
+
2442
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2443
+ /**
2444
+ * Creates an object representation of this proto.
2445
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2446
+ * Optional fields that are not set will be set to undefined.
2447
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2448
+ * For the list of reserved names please see:
2449
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2450
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2451
+ * JSPB instance for transitional soy proto support:
2452
+ * http://goto/soy-param-migration
2453
+ * @return {!Object}
2454
+ */
2455
+ proto.DeleteJobPositionRequest.prototype.toObject = function(opt_includeInstance) {
2456
+ return proto.DeleteJobPositionRequest.toObject(opt_includeInstance, this);
2457
+ };
2458
+
2459
+
2460
+ /**
2461
+ * Static version of the {@see toObject} method.
2462
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2463
+ * the JSPB instance for transitional soy proto support:
2464
+ * http://goto/soy-param-migration
2465
+ * @param {!proto.DeleteJobPositionRequest} msg The msg instance to transform.
2466
+ * @return {!Object}
2467
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2468
+ */
2469
+ proto.DeleteJobPositionRequest.toObject = function(includeInstance, msg) {
2470
+ var f, obj = {
2471
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
2472
+ };
2473
+
2474
+ if (includeInstance) {
2475
+ obj.$jspbMessageInstance = msg;
2476
+ }
2477
+ return obj;
2478
+ };
2479
+ }
2480
+
2481
+
2482
+ /**
2483
+ * Deserializes binary data (in protobuf wire format).
2484
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2485
+ * @return {!proto.DeleteJobPositionRequest}
2486
+ */
2487
+ proto.DeleteJobPositionRequest.deserializeBinary = function(bytes) {
2488
+ var reader = new jspb.BinaryReader(bytes);
2489
+ var msg = new proto.DeleteJobPositionRequest;
2490
+ return proto.DeleteJobPositionRequest.deserializeBinaryFromReader(msg, reader);
2491
+ };
2492
+
2493
+
2494
+ /**
2495
+ * Deserializes binary data (in protobuf wire format) from the
2496
+ * given reader into the given message object.
2497
+ * @param {!proto.DeleteJobPositionRequest} msg The message object to deserialize into.
2498
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2499
+ * @return {!proto.DeleteJobPositionRequest}
2500
+ */
2501
+ proto.DeleteJobPositionRequest.deserializeBinaryFromReader = function(msg, reader) {
2502
+ while (reader.nextField()) {
2503
+ if (reader.isEndGroup()) {
2504
+ break;
2505
+ }
2506
+ var field = reader.getFieldNumber();
2507
+ switch (field) {
2508
+ case 1:
2509
+ var value = /** @type {string} */ (reader.readString());
2510
+ msg.addReferenceIds(value);
2511
+ break;
2512
+ default:
2513
+ reader.skipField();
2514
+ break;
2515
+ }
2516
+ }
2517
+ return msg;
2518
+ };
2519
+
2520
+
2521
+ /**
2522
+ * Serializes the message to binary data (in protobuf wire format).
2523
+ * @return {!Uint8Array}
2524
+ */
2525
+ proto.DeleteJobPositionRequest.prototype.serializeBinary = function() {
2526
+ var writer = new jspb.BinaryWriter();
2527
+ proto.DeleteJobPositionRequest.serializeBinaryToWriter(this, writer);
2528
+ return writer.getResultBuffer();
2529
+ };
2530
+
2531
+
2532
+ /**
2533
+ * Serializes the given message to binary data (in protobuf wire
2534
+ * format), writing to the given BinaryWriter.
2535
+ * @param {!proto.DeleteJobPositionRequest} message
2536
+ * @param {!jspb.BinaryWriter} writer
2537
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2538
+ */
2539
+ proto.DeleteJobPositionRequest.serializeBinaryToWriter = function(message, writer) {
2540
+ var f = undefined;
2541
+ f = message.getReferenceIdsList();
2542
+ if (f.length > 0) {
2543
+ writer.writeRepeatedString(
2544
+ 1,
2545
+ f
2546
+ );
2547
+ }
2548
+ };
2549
+
2550
+
2551
+ /**
2552
+ * repeated string reference_ids = 1;
2553
+ * @return {!Array<string>}
2554
+ */
2555
+ proto.DeleteJobPositionRequest.prototype.getReferenceIdsList = function() {
2556
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2557
+ };
2558
+
2559
+
2560
+ /**
2561
+ * @param {!Array<string>} value
2562
+ * @return {!proto.DeleteJobPositionRequest} returns this
2563
+ */
2564
+ proto.DeleteJobPositionRequest.prototype.setReferenceIdsList = function(value) {
2565
+ return jspb.Message.setField(this, 1, value || []);
2566
+ };
2567
+
2568
+
2569
+ /**
2570
+ * @param {string} value
2571
+ * @param {number=} opt_index
2572
+ * @return {!proto.DeleteJobPositionRequest} returns this
2573
+ */
2574
+ proto.DeleteJobPositionRequest.prototype.addReferenceIds = function(value, opt_index) {
2575
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2576
+ };
2577
+
2578
+
2579
+ /**
2580
+ * Clears the list making it empty but non-null.
2581
+ * @return {!proto.DeleteJobPositionRequest} returns this
2582
+ */
2583
+ proto.DeleteJobPositionRequest.prototype.clearReferenceIdsList = function() {
2584
+ return this.setReferenceIdsList([]);
2585
+ };
2586
+
2587
+
2588
+
2589
+ /**
2590
+ * List of repeated fields within this message type.
2591
+ * @private {!Array<number>}
2592
+ * @const
2593
+ */
2594
+ proto.DeleteJobPositionResponse.repeatedFields_ = [1];
2595
+
2596
+
2597
+
2598
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2599
+ /**
2600
+ * Creates an object representation of this proto.
2601
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2602
+ * Optional fields that are not set will be set to undefined.
2603
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2604
+ * For the list of reserved names please see:
2605
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2606
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2607
+ * JSPB instance for transitional soy proto support:
2608
+ * http://goto/soy-param-migration
2609
+ * @return {!Object}
2610
+ */
2611
+ proto.DeleteJobPositionResponse.prototype.toObject = function(opt_includeInstance) {
2612
+ return proto.DeleteJobPositionResponse.toObject(opt_includeInstance, this);
2613
+ };
2614
+
2615
+
2616
+ /**
2617
+ * Static version of the {@see toObject} method.
2618
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2619
+ * the JSPB instance for transitional soy proto support:
2620
+ * http://goto/soy-param-migration
2621
+ * @param {!proto.DeleteJobPositionResponse} msg The msg instance to transform.
2622
+ * @return {!Object}
2623
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2624
+ */
2625
+ proto.DeleteJobPositionResponse.toObject = function(includeInstance, msg) {
2626
+ var f, obj = {
2627
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2628
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2629
+ };
2630
+
2631
+ if (includeInstance) {
2632
+ obj.$jspbMessageInstance = msg;
2633
+ }
2634
+ return obj;
2635
+ };
2636
+ }
2637
+
2638
+
2639
+ /**
2640
+ * Deserializes binary data (in protobuf wire format).
2641
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2642
+ * @return {!proto.DeleteJobPositionResponse}
2643
+ */
2644
+ proto.DeleteJobPositionResponse.deserializeBinary = function(bytes) {
2645
+ var reader = new jspb.BinaryReader(bytes);
2646
+ var msg = new proto.DeleteJobPositionResponse;
2647
+ return proto.DeleteJobPositionResponse.deserializeBinaryFromReader(msg, reader);
2648
+ };
2649
+
2650
+
2651
+ /**
2652
+ * Deserializes binary data (in protobuf wire format) from the
2653
+ * given reader into the given message object.
2654
+ * @param {!proto.DeleteJobPositionResponse} msg The message object to deserialize into.
2655
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2656
+ * @return {!proto.DeleteJobPositionResponse}
2657
+ */
2658
+ proto.DeleteJobPositionResponse.deserializeBinaryFromReader = function(msg, reader) {
2659
+ while (reader.nextField()) {
2660
+ if (reader.isEndGroup()) {
2661
+ break;
2662
+ }
2663
+ var field = reader.getFieldNumber();
2664
+ switch (field) {
2665
+ case 1:
2666
+ var value = /** @type {string} */ (reader.readString());
2667
+ msg.addReferenceIds(value);
2668
+ break;
2669
+ case 2:
2670
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2671
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2672
+ msg.setMeta(value);
2673
+ break;
2674
+ default:
2675
+ reader.skipField();
2676
+ break;
2677
+ }
2678
+ }
2679
+ return msg;
2680
+ };
2681
+
2682
+
2683
+ /**
2684
+ * Serializes the message to binary data (in protobuf wire format).
2685
+ * @return {!Uint8Array}
2686
+ */
2687
+ proto.DeleteJobPositionResponse.prototype.serializeBinary = function() {
2688
+ var writer = new jspb.BinaryWriter();
2689
+ proto.DeleteJobPositionResponse.serializeBinaryToWriter(this, writer);
2690
+ return writer.getResultBuffer();
2691
+ };
2692
+
2693
+
2694
+ /**
2695
+ * Serializes the given message to binary data (in protobuf wire
2696
+ * format), writing to the given BinaryWriter.
2697
+ * @param {!proto.DeleteJobPositionResponse} message
2698
+ * @param {!jspb.BinaryWriter} writer
2699
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2700
+ */
2701
+ proto.DeleteJobPositionResponse.serializeBinaryToWriter = function(message, writer) {
2702
+ var f = undefined;
2703
+ f = message.getReferenceIdsList();
2704
+ if (f.length > 0) {
2705
+ writer.writeRepeatedString(
2706
+ 1,
2707
+ f
2708
+ );
2709
+ }
2710
+ f = message.getMeta();
2711
+ if (f != null) {
2712
+ writer.writeMessage(
2713
+ 2,
2714
+ f,
2715
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2716
+ );
2717
+ }
2718
+ };
2719
+
2720
+
2721
+ /**
2722
+ * repeated string reference_ids = 1;
2723
+ * @return {!Array<string>}
2724
+ */
2725
+ proto.DeleteJobPositionResponse.prototype.getReferenceIdsList = function() {
2726
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2727
+ };
2728
+
2729
+
2730
+ /**
2731
+ * @param {!Array<string>} value
2732
+ * @return {!proto.DeleteJobPositionResponse} returns this
2733
+ */
2734
+ proto.DeleteJobPositionResponse.prototype.setReferenceIdsList = function(value) {
2735
+ return jspb.Message.setField(this, 1, value || []);
2736
+ };
2737
+
2738
+
2739
+ /**
2740
+ * @param {string} value
2741
+ * @param {number=} opt_index
2742
+ * @return {!proto.DeleteJobPositionResponse} returns this
2743
+ */
2744
+ proto.DeleteJobPositionResponse.prototype.addReferenceIds = function(value, opt_index) {
2745
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2746
+ };
2747
+
2748
+
2749
+ /**
2750
+ * Clears the list making it empty but non-null.
2751
+ * @return {!proto.DeleteJobPositionResponse} returns this
2752
+ */
2753
+ proto.DeleteJobPositionResponse.prototype.clearReferenceIdsList = function() {
2754
+ return this.setReferenceIdsList([]);
2755
+ };
2756
+
2757
+
2758
+ /**
2759
+ * optional prisca.v1.global.meta.Meta meta = 2;
2760
+ * @return {?proto.prisca.v1.global.meta.Meta}
2761
+ */
2762
+ proto.DeleteJobPositionResponse.prototype.getMeta = function() {
2763
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2764
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2765
+ };
2766
+
2767
+
2768
+ /**
2769
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2770
+ * @return {!proto.DeleteJobPositionResponse} returns this
2771
+ */
2772
+ proto.DeleteJobPositionResponse.prototype.setMeta = function(value) {
2773
+ return jspb.Message.setWrapperField(this, 2, value);
2774
+ };
2775
+
2776
+
2777
+ /**
2778
+ * Clears the message field making it undefined.
2779
+ * @return {!proto.DeleteJobPositionResponse} returns this
2780
+ */
2781
+ proto.DeleteJobPositionResponse.prototype.clearMeta = function() {
2782
+ return this.setMeta(undefined);
2783
+ };
2784
+
2785
+
2786
+ /**
2787
+ * Returns whether this field is set.
2788
+ * @return {boolean}
2789
+ */
2790
+ proto.DeleteJobPositionResponse.prototype.hasMeta = function() {
2791
+ return jspb.Message.getField(this, 2) != null;
2792
+ };
2793
+
2794
+
2795
+
2796
+
2797
+
2798
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2799
+ /**
2800
+ * Creates an object representation of this proto.
2801
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2802
+ * Optional fields that are not set will be set to undefined.
2803
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2804
+ * For the list of reserved names please see:
2805
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2806
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2807
+ * JSPB instance for transitional soy proto support:
2808
+ * http://goto/soy-param-migration
2809
+ * @return {!Object}
2810
+ */
2811
+ proto.GetListJobPositionRequest.prototype.toObject = function(opt_includeInstance) {
2812
+ return proto.GetListJobPositionRequest.toObject(opt_includeInstance, this);
2813
+ };
2814
+
2815
+
2816
+ /**
2817
+ * Static version of the {@see toObject} method.
2818
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2819
+ * the JSPB instance for transitional soy proto support:
2820
+ * http://goto/soy-param-migration
2821
+ * @param {!proto.GetListJobPositionRequest} msg The msg instance to transform.
2822
+ * @return {!Object}
2823
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2824
+ */
2825
+ proto.GetListJobPositionRequest.toObject = function(includeInstance, msg) {
2826
+ var f, obj = {
2827
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
2828
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
2829
+ };
2830
+
2831
+ if (includeInstance) {
2832
+ obj.$jspbMessageInstance = msg;
2833
+ }
2834
+ return obj;
2835
+ };
2836
+ }
2837
+
2838
+
2839
+ /**
2840
+ * Deserializes binary data (in protobuf wire format).
2841
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2842
+ * @return {!proto.GetListJobPositionRequest}
2843
+ */
2844
+ proto.GetListJobPositionRequest.deserializeBinary = function(bytes) {
2845
+ var reader = new jspb.BinaryReader(bytes);
2846
+ var msg = new proto.GetListJobPositionRequest;
2847
+ return proto.GetListJobPositionRequest.deserializeBinaryFromReader(msg, reader);
2848
+ };
2849
+
2850
+
2851
+ /**
2852
+ * Deserializes binary data (in protobuf wire format) from the
2853
+ * given reader into the given message object.
2854
+ * @param {!proto.GetListJobPositionRequest} msg The message object to deserialize into.
2855
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2856
+ * @return {!proto.GetListJobPositionRequest}
2857
+ */
2858
+ proto.GetListJobPositionRequest.deserializeBinaryFromReader = function(msg, reader) {
2859
+ while (reader.nextField()) {
2860
+ if (reader.isEndGroup()) {
2861
+ break;
2862
+ }
2863
+ var field = reader.getFieldNumber();
2864
+ switch (field) {
2865
+ case 1:
2866
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
2867
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
2868
+ msg.setPagination(value);
2869
+ break;
2870
+ case 2:
2871
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
2872
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
2873
+ msg.setQuery(value);
2874
+ break;
2875
+ default:
2876
+ reader.skipField();
2877
+ break;
2878
+ }
2879
+ }
2880
+ return msg;
2881
+ };
2882
+
2883
+
2884
+ /**
2885
+ * Serializes the message to binary data (in protobuf wire format).
2886
+ * @return {!Uint8Array}
2887
+ */
2888
+ proto.GetListJobPositionRequest.prototype.serializeBinary = function() {
2889
+ var writer = new jspb.BinaryWriter();
2890
+ proto.GetListJobPositionRequest.serializeBinaryToWriter(this, writer);
2891
+ return writer.getResultBuffer();
2892
+ };
2893
+
2894
+
2895
+ /**
2896
+ * Serializes the given message to binary data (in protobuf wire
2897
+ * format), writing to the given BinaryWriter.
2898
+ * @param {!proto.GetListJobPositionRequest} message
2899
+ * @param {!jspb.BinaryWriter} writer
2900
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2901
+ */
2902
+ proto.GetListJobPositionRequest.serializeBinaryToWriter = function(message, writer) {
2903
+ var f = undefined;
2904
+ f = message.getPagination();
2905
+ if (f != null) {
2906
+ writer.writeMessage(
2907
+ 1,
2908
+ f,
2909
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
2910
+ );
2911
+ }
2912
+ f = message.getQuery();
2913
+ if (f != null) {
2914
+ writer.writeMessage(
2915
+ 2,
2916
+ f,
2917
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
2918
+ );
2919
+ }
2920
+ };
2921
+
2922
+
2923
+ /**
2924
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
2925
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
2926
+ */
2927
+ proto.GetListJobPositionRequest.prototype.getPagination = function() {
2928
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
2929
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
2930
+ };
2931
+
2932
+
2933
+ /**
2934
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
2935
+ * @return {!proto.GetListJobPositionRequest} returns this
2936
+ */
2937
+ proto.GetListJobPositionRequest.prototype.setPagination = function(value) {
2938
+ return jspb.Message.setWrapperField(this, 1, value);
2939
+ };
2940
+
2941
+
2942
+ /**
2943
+ * Clears the message field making it undefined.
2944
+ * @return {!proto.GetListJobPositionRequest} returns this
2945
+ */
2946
+ proto.GetListJobPositionRequest.prototype.clearPagination = function() {
2947
+ return this.setPagination(undefined);
2948
+ };
2949
+
2950
+
2951
+ /**
2952
+ * Returns whether this field is set.
2953
+ * @return {boolean}
2954
+ */
2955
+ proto.GetListJobPositionRequest.prototype.hasPagination = function() {
2956
+ return jspb.Message.getField(this, 1) != null;
2957
+ };
2958
+
2959
+
2960
+ /**
2961
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
2962
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
2963
+ */
2964
+ proto.GetListJobPositionRequest.prototype.getQuery = function() {
2965
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
2966
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
2967
+ };
2968
+
2969
+
2970
+ /**
2971
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
2972
+ * @return {!proto.GetListJobPositionRequest} returns this
2973
+ */
2974
+ proto.GetListJobPositionRequest.prototype.setQuery = function(value) {
2975
+ return jspb.Message.setWrapperField(this, 2, value);
2976
+ };
2977
+
2978
+
2979
+ /**
2980
+ * Clears the message field making it undefined.
2981
+ * @return {!proto.GetListJobPositionRequest} returns this
2982
+ */
2983
+ proto.GetListJobPositionRequest.prototype.clearQuery = function() {
2984
+ return this.setQuery(undefined);
2985
+ };
2986
+
2987
+
2988
+ /**
2989
+ * Returns whether this field is set.
2990
+ * @return {boolean}
2991
+ */
2992
+ proto.GetListJobPositionRequest.prototype.hasQuery = function() {
2993
+ return jspb.Message.getField(this, 2) != null;
2994
+ };
2995
+
2996
+
2997
+
2998
+
2999
+
3000
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3001
+ /**
3002
+ * Creates an object representation of this proto.
3003
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3004
+ * Optional fields that are not set will be set to undefined.
3005
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3006
+ * For the list of reserved names please see:
3007
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3008
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3009
+ * JSPB instance for transitional soy proto support:
3010
+ * http://goto/soy-param-migration
3011
+ * @return {!Object}
3012
+ */
3013
+ proto.CreateJobPositionResponse.prototype.toObject = function(opt_includeInstance) {
3014
+ return proto.CreateJobPositionResponse.toObject(opt_includeInstance, this);
3015
+ };
3016
+
3017
+
3018
+ /**
3019
+ * Static version of the {@see toObject} method.
3020
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3021
+ * the JSPB instance for transitional soy proto support:
3022
+ * http://goto/soy-param-migration
3023
+ * @param {!proto.CreateJobPositionResponse} msg The msg instance to transform.
3024
+ * @return {!Object}
3025
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3026
+ */
3027
+ proto.CreateJobPositionResponse.toObject = function(includeInstance, msg) {
3028
+ var f, obj = {
3029
+ jobPosition: (f = msg.getJobPosition()) && proto.JobPosition.toObject(includeInstance, f),
3030
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3031
+ };
3032
+
3033
+ if (includeInstance) {
3034
+ obj.$jspbMessageInstance = msg;
3035
+ }
3036
+ return obj;
3037
+ };
3038
+ }
3039
+
3040
+
3041
+ /**
3042
+ * Deserializes binary data (in protobuf wire format).
3043
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3044
+ * @return {!proto.CreateJobPositionResponse}
3045
+ */
3046
+ proto.CreateJobPositionResponse.deserializeBinary = function(bytes) {
3047
+ var reader = new jspb.BinaryReader(bytes);
3048
+ var msg = new proto.CreateJobPositionResponse;
3049
+ return proto.CreateJobPositionResponse.deserializeBinaryFromReader(msg, reader);
3050
+ };
3051
+
3052
+
3053
+ /**
3054
+ * Deserializes binary data (in protobuf wire format) from the
3055
+ * given reader into the given message object.
3056
+ * @param {!proto.CreateJobPositionResponse} msg The message object to deserialize into.
3057
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3058
+ * @return {!proto.CreateJobPositionResponse}
3059
+ */
3060
+ proto.CreateJobPositionResponse.deserializeBinaryFromReader = function(msg, reader) {
3061
+ while (reader.nextField()) {
3062
+ if (reader.isEndGroup()) {
3063
+ break;
3064
+ }
3065
+ var field = reader.getFieldNumber();
3066
+ switch (field) {
3067
+ case 1:
3068
+ var value = new proto.JobPosition;
3069
+ reader.readMessage(value,proto.JobPosition.deserializeBinaryFromReader);
3070
+ msg.setJobPosition(value);
3071
+ break;
3072
+ case 2:
3073
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3074
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3075
+ msg.setMeta(value);
3076
+ break;
3077
+ default:
3078
+ reader.skipField();
3079
+ break;
3080
+ }
3081
+ }
3082
+ return msg;
3083
+ };
3084
+
3085
+
3086
+ /**
3087
+ * Serializes the message to binary data (in protobuf wire format).
3088
+ * @return {!Uint8Array}
3089
+ */
3090
+ proto.CreateJobPositionResponse.prototype.serializeBinary = function() {
3091
+ var writer = new jspb.BinaryWriter();
3092
+ proto.CreateJobPositionResponse.serializeBinaryToWriter(this, writer);
3093
+ return writer.getResultBuffer();
3094
+ };
3095
+
3096
+
3097
+ /**
3098
+ * Serializes the given message to binary data (in protobuf wire
3099
+ * format), writing to the given BinaryWriter.
3100
+ * @param {!proto.CreateJobPositionResponse} message
3101
+ * @param {!jspb.BinaryWriter} writer
3102
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3103
+ */
3104
+ proto.CreateJobPositionResponse.serializeBinaryToWriter = function(message, writer) {
3105
+ var f = undefined;
3106
+ f = message.getJobPosition();
3107
+ if (f != null) {
3108
+ writer.writeMessage(
3109
+ 1,
3110
+ f,
3111
+ proto.JobPosition.serializeBinaryToWriter
3112
+ );
3113
+ }
3114
+ f = message.getMeta();
3115
+ if (f != null) {
3116
+ writer.writeMessage(
3117
+ 2,
3118
+ f,
3119
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3120
+ );
3121
+ }
3122
+ };
3123
+
3124
+
3125
+ /**
3126
+ * optional JobPosition job_position = 1;
3127
+ * @return {?proto.JobPosition}
3128
+ */
3129
+ proto.CreateJobPositionResponse.prototype.getJobPosition = function() {
3130
+ return /** @type{?proto.JobPosition} */ (
3131
+ jspb.Message.getWrapperField(this, proto.JobPosition, 1));
3132
+ };
3133
+
3134
+
3135
+ /**
3136
+ * @param {?proto.JobPosition|undefined} value
3137
+ * @return {!proto.CreateJobPositionResponse} returns this
3138
+ */
3139
+ proto.CreateJobPositionResponse.prototype.setJobPosition = function(value) {
3140
+ return jspb.Message.setWrapperField(this, 1, value);
3141
+ };
3142
+
3143
+
3144
+ /**
3145
+ * Clears the message field making it undefined.
3146
+ * @return {!proto.CreateJobPositionResponse} returns this
3147
+ */
3148
+ proto.CreateJobPositionResponse.prototype.clearJobPosition = function() {
3149
+ return this.setJobPosition(undefined);
3150
+ };
3151
+
3152
+
3153
+ /**
3154
+ * Returns whether this field is set.
3155
+ * @return {boolean}
3156
+ */
3157
+ proto.CreateJobPositionResponse.prototype.hasJobPosition = function() {
3158
+ return jspb.Message.getField(this, 1) != null;
3159
+ };
3160
+
3161
+
3162
+ /**
3163
+ * optional prisca.v1.global.meta.Meta meta = 2;
3164
+ * @return {?proto.prisca.v1.global.meta.Meta}
3165
+ */
3166
+ proto.CreateJobPositionResponse.prototype.getMeta = function() {
3167
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3168
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3169
+ };
3170
+
3171
+
3172
+ /**
3173
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3174
+ * @return {!proto.CreateJobPositionResponse} returns this
3175
+ */
3176
+ proto.CreateJobPositionResponse.prototype.setMeta = function(value) {
3177
+ return jspb.Message.setWrapperField(this, 2, value);
3178
+ };
3179
+
3180
+
3181
+ /**
3182
+ * Clears the message field making it undefined.
3183
+ * @return {!proto.CreateJobPositionResponse} returns this
3184
+ */
3185
+ proto.CreateJobPositionResponse.prototype.clearMeta = function() {
3186
+ return this.setMeta(undefined);
3187
+ };
3188
+
3189
+
3190
+ /**
3191
+ * Returns whether this field is set.
3192
+ * @return {boolean}
3193
+ */
3194
+ proto.CreateJobPositionResponse.prototype.hasMeta = function() {
3195
+ return jspb.Message.getField(this, 2) != null;
3196
+ };
3197
+
3198
+
3199
+
3200
+ /**
3201
+ * List of repeated fields within this message type.
3202
+ * @private {!Array<number>}
3203
+ * @const
3204
+ */
3205
+ proto.GetListJobPositionResponse.repeatedFields_ = [1];
3206
+
3207
+
3208
+
3209
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3210
+ /**
3211
+ * Creates an object representation of this proto.
3212
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3213
+ * Optional fields that are not set will be set to undefined.
3214
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3215
+ * For the list of reserved names please see:
3216
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3217
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3218
+ * JSPB instance for transitional soy proto support:
3219
+ * http://goto/soy-param-migration
3220
+ * @return {!Object}
3221
+ */
3222
+ proto.GetListJobPositionResponse.prototype.toObject = function(opt_includeInstance) {
3223
+ return proto.GetListJobPositionResponse.toObject(opt_includeInstance, this);
3224
+ };
3225
+
3226
+
3227
+ /**
3228
+ * Static version of the {@see toObject} method.
3229
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3230
+ * the JSPB instance for transitional soy proto support:
3231
+ * http://goto/soy-param-migration
3232
+ * @param {!proto.GetListJobPositionResponse} msg The msg instance to transform.
3233
+ * @return {!Object}
3234
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3235
+ */
3236
+ proto.GetListJobPositionResponse.toObject = function(includeInstance, msg) {
3237
+ var f, obj = {
3238
+ jobPositionList: jspb.Message.toObjectList(msg.getJobPositionList(),
3239
+ proto.BaseJobPosition.toObject, includeInstance),
3240
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3241
+ };
3242
+
3243
+ if (includeInstance) {
3244
+ obj.$jspbMessageInstance = msg;
3245
+ }
3246
+ return obj;
3247
+ };
3248
+ }
3249
+
3250
+
3251
+ /**
3252
+ * Deserializes binary data (in protobuf wire format).
3253
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3254
+ * @return {!proto.GetListJobPositionResponse}
3255
+ */
3256
+ proto.GetListJobPositionResponse.deserializeBinary = function(bytes) {
3257
+ var reader = new jspb.BinaryReader(bytes);
3258
+ var msg = new proto.GetListJobPositionResponse;
3259
+ return proto.GetListJobPositionResponse.deserializeBinaryFromReader(msg, reader);
3260
+ };
3261
+
3262
+
3263
+ /**
3264
+ * Deserializes binary data (in protobuf wire format) from the
3265
+ * given reader into the given message object.
3266
+ * @param {!proto.GetListJobPositionResponse} msg The message object to deserialize into.
3267
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3268
+ * @return {!proto.GetListJobPositionResponse}
3269
+ */
3270
+ proto.GetListJobPositionResponse.deserializeBinaryFromReader = function(msg, reader) {
3271
+ while (reader.nextField()) {
3272
+ if (reader.isEndGroup()) {
3273
+ break;
3274
+ }
3275
+ var field = reader.getFieldNumber();
3276
+ switch (field) {
3277
+ case 1:
3278
+ var value = new proto.BaseJobPosition;
3279
+ reader.readMessage(value,proto.BaseJobPosition.deserializeBinaryFromReader);
3280
+ msg.addJobPosition(value);
3281
+ break;
3282
+ case 2:
3283
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3284
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3285
+ msg.setMeta(value);
3286
+ break;
3287
+ default:
3288
+ reader.skipField();
3289
+ break;
3290
+ }
3291
+ }
3292
+ return msg;
3293
+ };
3294
+
3295
+
3296
+ /**
3297
+ * Serializes the message to binary data (in protobuf wire format).
3298
+ * @return {!Uint8Array}
3299
+ */
3300
+ proto.GetListJobPositionResponse.prototype.serializeBinary = function() {
3301
+ var writer = new jspb.BinaryWriter();
3302
+ proto.GetListJobPositionResponse.serializeBinaryToWriter(this, writer);
3303
+ return writer.getResultBuffer();
3304
+ };
3305
+
3306
+
3307
+ /**
3308
+ * Serializes the given message to binary data (in protobuf wire
3309
+ * format), writing to the given BinaryWriter.
3310
+ * @param {!proto.GetListJobPositionResponse} message
3311
+ * @param {!jspb.BinaryWriter} writer
3312
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3313
+ */
3314
+ proto.GetListJobPositionResponse.serializeBinaryToWriter = function(message, writer) {
3315
+ var f = undefined;
3316
+ f = message.getJobPositionList();
3317
+ if (f.length > 0) {
3318
+ writer.writeRepeatedMessage(
3319
+ 1,
3320
+ f,
3321
+ proto.BaseJobPosition.serializeBinaryToWriter
3322
+ );
3323
+ }
3324
+ f = message.getMeta();
3325
+ if (f != null) {
3326
+ writer.writeMessage(
3327
+ 2,
3328
+ f,
3329
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3330
+ );
3331
+ }
3332
+ };
3333
+
3334
+
3335
+ /**
3336
+ * repeated BaseJobPosition job_position = 1;
3337
+ * @return {!Array<!proto.BaseJobPosition>}
3338
+ */
3339
+ proto.GetListJobPositionResponse.prototype.getJobPositionList = function() {
3340
+ return /** @type{!Array<!proto.BaseJobPosition>} */ (
3341
+ jspb.Message.getRepeatedWrapperField(this, proto.BaseJobPosition, 1));
3342
+ };
3343
+
3344
+
3345
+ /**
3346
+ * @param {!Array<!proto.BaseJobPosition>} value
3347
+ * @return {!proto.GetListJobPositionResponse} returns this
3348
+ */
3349
+ proto.GetListJobPositionResponse.prototype.setJobPositionList = function(value) {
3350
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3351
+ };
3352
+
3353
+
3354
+ /**
3355
+ * @param {!proto.BaseJobPosition=} opt_value
3356
+ * @param {number=} opt_index
3357
+ * @return {!proto.BaseJobPosition}
3358
+ */
3359
+ proto.GetListJobPositionResponse.prototype.addJobPosition = function(opt_value, opt_index) {
3360
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.BaseJobPosition, opt_index);
3361
+ };
3362
+
3363
+
3364
+ /**
3365
+ * Clears the list making it empty but non-null.
3366
+ * @return {!proto.GetListJobPositionResponse} returns this
3367
+ */
3368
+ proto.GetListJobPositionResponse.prototype.clearJobPositionList = function() {
3369
+ return this.setJobPositionList([]);
3370
+ };
3371
+
3372
+
3373
+ /**
3374
+ * optional prisca.v1.global.meta.Meta meta = 2;
3375
+ * @return {?proto.prisca.v1.global.meta.Meta}
3376
+ */
3377
+ proto.GetListJobPositionResponse.prototype.getMeta = function() {
3378
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3379
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3380
+ };
3381
+
3382
+
3383
+ /**
3384
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3385
+ * @return {!proto.GetListJobPositionResponse} returns this
3386
+ */
3387
+ proto.GetListJobPositionResponse.prototype.setMeta = function(value) {
3388
+ return jspb.Message.setWrapperField(this, 2, value);
3389
+ };
3390
+
3391
+
3392
+ /**
3393
+ * Clears the message field making it undefined.
3394
+ * @return {!proto.GetListJobPositionResponse} returns this
3395
+ */
3396
+ proto.GetListJobPositionResponse.prototype.clearMeta = function() {
3397
+ return this.setMeta(undefined);
3398
+ };
3399
+
3400
+
3401
+ /**
3402
+ * Returns whether this field is set.
3403
+ * @return {boolean}
3404
+ */
3405
+ proto.GetListJobPositionResponse.prototype.hasMeta = function() {
3406
+ return jspb.Message.getField(this, 2) != null;
3407
+ };
3408
+
3409
+
3410
+
3411
+
3412
+
3413
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3414
+ /**
3415
+ * Creates an object representation of this proto.
3416
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3417
+ * Optional fields that are not set will be set to undefined.
3418
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3419
+ * For the list of reserved names please see:
3420
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3421
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3422
+ * JSPB instance for transitional soy proto support:
3423
+ * http://goto/soy-param-migration
3424
+ * @return {!Object}
3425
+ */
3426
+ proto.UpdateJobPositionResponse.prototype.toObject = function(opt_includeInstance) {
3427
+ return proto.UpdateJobPositionResponse.toObject(opt_includeInstance, this);
3428
+ };
3429
+
3430
+
3431
+ /**
3432
+ * Static version of the {@see toObject} method.
3433
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3434
+ * the JSPB instance for transitional soy proto support:
3435
+ * http://goto/soy-param-migration
3436
+ * @param {!proto.UpdateJobPositionResponse} msg The msg instance to transform.
3437
+ * @return {!Object}
3438
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3439
+ */
3440
+ proto.UpdateJobPositionResponse.toObject = function(includeInstance, msg) {
3441
+ var f, obj = {
3442
+ jobPosition: (f = msg.getJobPosition()) && proto.JobPosition.toObject(includeInstance, f),
3443
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3444
+ };
3445
+
3446
+ if (includeInstance) {
3447
+ obj.$jspbMessageInstance = msg;
3448
+ }
3449
+ return obj;
3450
+ };
3451
+ }
3452
+
3453
+
3454
+ /**
3455
+ * Deserializes binary data (in protobuf wire format).
3456
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3457
+ * @return {!proto.UpdateJobPositionResponse}
3458
+ */
3459
+ proto.UpdateJobPositionResponse.deserializeBinary = function(bytes) {
3460
+ var reader = new jspb.BinaryReader(bytes);
3461
+ var msg = new proto.UpdateJobPositionResponse;
3462
+ return proto.UpdateJobPositionResponse.deserializeBinaryFromReader(msg, reader);
3463
+ };
3464
+
3465
+
3466
+ /**
3467
+ * Deserializes binary data (in protobuf wire format) from the
3468
+ * given reader into the given message object.
3469
+ * @param {!proto.UpdateJobPositionResponse} msg The message object to deserialize into.
3470
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3471
+ * @return {!proto.UpdateJobPositionResponse}
3472
+ */
3473
+ proto.UpdateJobPositionResponse.deserializeBinaryFromReader = function(msg, reader) {
3474
+ while (reader.nextField()) {
3475
+ if (reader.isEndGroup()) {
3476
+ break;
3477
+ }
3478
+ var field = reader.getFieldNumber();
3479
+ switch (field) {
3480
+ case 1:
3481
+ var value = new proto.JobPosition;
3482
+ reader.readMessage(value,proto.JobPosition.deserializeBinaryFromReader);
3483
+ msg.setJobPosition(value);
3484
+ break;
3485
+ case 2:
3486
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3487
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3488
+ msg.setMeta(value);
3489
+ break;
3490
+ default:
3491
+ reader.skipField();
3492
+ break;
3493
+ }
3494
+ }
3495
+ return msg;
3496
+ };
3497
+
3498
+
3499
+ /**
3500
+ * Serializes the message to binary data (in protobuf wire format).
3501
+ * @return {!Uint8Array}
3502
+ */
3503
+ proto.UpdateJobPositionResponse.prototype.serializeBinary = function() {
3504
+ var writer = new jspb.BinaryWriter();
3505
+ proto.UpdateJobPositionResponse.serializeBinaryToWriter(this, writer);
3506
+ return writer.getResultBuffer();
3507
+ };
3508
+
3509
+
3510
+ /**
3511
+ * Serializes the given message to binary data (in protobuf wire
3512
+ * format), writing to the given BinaryWriter.
3513
+ * @param {!proto.UpdateJobPositionResponse} message
3514
+ * @param {!jspb.BinaryWriter} writer
3515
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3516
+ */
3517
+ proto.UpdateJobPositionResponse.serializeBinaryToWriter = function(message, writer) {
3518
+ var f = undefined;
3519
+ f = message.getJobPosition();
3520
+ if (f != null) {
3521
+ writer.writeMessage(
3522
+ 1,
3523
+ f,
3524
+ proto.JobPosition.serializeBinaryToWriter
3525
+ );
3526
+ }
3527
+ f = message.getMeta();
3528
+ if (f != null) {
3529
+ writer.writeMessage(
3530
+ 2,
3531
+ f,
3532
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3533
+ );
3534
+ }
3535
+ };
3536
+
3537
+
3538
+ /**
3539
+ * optional JobPosition job_position = 1;
3540
+ * @return {?proto.JobPosition}
3541
+ */
3542
+ proto.UpdateJobPositionResponse.prototype.getJobPosition = function() {
3543
+ return /** @type{?proto.JobPosition} */ (
3544
+ jspb.Message.getWrapperField(this, proto.JobPosition, 1));
3545
+ };
3546
+
3547
+
3548
+ /**
3549
+ * @param {?proto.JobPosition|undefined} value
3550
+ * @return {!proto.UpdateJobPositionResponse} returns this
3551
+ */
3552
+ proto.UpdateJobPositionResponse.prototype.setJobPosition = function(value) {
3553
+ return jspb.Message.setWrapperField(this, 1, value);
3554
+ };
3555
+
3556
+
3557
+ /**
3558
+ * Clears the message field making it undefined.
3559
+ * @return {!proto.UpdateJobPositionResponse} returns this
3560
+ */
3561
+ proto.UpdateJobPositionResponse.prototype.clearJobPosition = function() {
3562
+ return this.setJobPosition(undefined);
3563
+ };
3564
+
3565
+
3566
+ /**
3567
+ * Returns whether this field is set.
3568
+ * @return {boolean}
3569
+ */
3570
+ proto.UpdateJobPositionResponse.prototype.hasJobPosition = function() {
3571
+ return jspb.Message.getField(this, 1) != null;
3572
+ };
3573
+
3574
+
3575
+ /**
3576
+ * optional prisca.v1.global.meta.Meta meta = 2;
3577
+ * @return {?proto.prisca.v1.global.meta.Meta}
3578
+ */
3579
+ proto.UpdateJobPositionResponse.prototype.getMeta = function() {
3580
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3581
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3582
+ };
3583
+
3584
+
3585
+ /**
3586
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3587
+ * @return {!proto.UpdateJobPositionResponse} returns this
3588
+ */
3589
+ proto.UpdateJobPositionResponse.prototype.setMeta = function(value) {
3590
+ return jspb.Message.setWrapperField(this, 2, value);
3591
+ };
3592
+
3593
+
3594
+ /**
3595
+ * Clears the message field making it undefined.
3596
+ * @return {!proto.UpdateJobPositionResponse} returns this
3597
+ */
3598
+ proto.UpdateJobPositionResponse.prototype.clearMeta = function() {
3599
+ return this.setMeta(undefined);
3600
+ };
3601
+
3602
+
3603
+ /**
3604
+ * Returns whether this field is set.
3605
+ * @return {boolean}
3606
+ */
3607
+ proto.UpdateJobPositionResponse.prototype.hasMeta = function() {
3608
+ return jspb.Message.getField(this, 2) != null;
3609
+ };
3610
+
3611
+
3612
+
3613
+
3614
+
3615
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3616
+ /**
3617
+ * Creates an object representation of this proto.
3618
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3619
+ * Optional fields that are not set will be set to undefined.
3620
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3621
+ * For the list of reserved names please see:
3622
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3623
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3624
+ * JSPB instance for transitional soy proto support:
3625
+ * http://goto/soy-param-migration
3626
+ * @return {!Object}
3627
+ */
3628
+ proto.JobPositionGetByIdResponse.prototype.toObject = function(opt_includeInstance) {
3629
+ return proto.JobPositionGetByIdResponse.toObject(opt_includeInstance, this);
3630
+ };
3631
+
3632
+
3633
+ /**
3634
+ * Static version of the {@see toObject} method.
3635
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3636
+ * the JSPB instance for transitional soy proto support:
3637
+ * http://goto/soy-param-migration
3638
+ * @param {!proto.JobPositionGetByIdResponse} msg The msg instance to transform.
3639
+ * @return {!Object}
3640
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3641
+ */
3642
+ proto.JobPositionGetByIdResponse.toObject = function(includeInstance, msg) {
3643
+ var f, obj = {
3644
+ jobPosition: (f = msg.getJobPosition()) && proto.BaseJobPosition.toObject(includeInstance, f),
3645
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3646
+ };
3647
+
3648
+ if (includeInstance) {
3649
+ obj.$jspbMessageInstance = msg;
3650
+ }
3651
+ return obj;
3652
+ };
3653
+ }
3654
+
3655
+
3656
+ /**
3657
+ * Deserializes binary data (in protobuf wire format).
3658
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3659
+ * @return {!proto.JobPositionGetByIdResponse}
3660
+ */
3661
+ proto.JobPositionGetByIdResponse.deserializeBinary = function(bytes) {
3662
+ var reader = new jspb.BinaryReader(bytes);
3663
+ var msg = new proto.JobPositionGetByIdResponse;
3664
+ return proto.JobPositionGetByIdResponse.deserializeBinaryFromReader(msg, reader);
3665
+ };
3666
+
3667
+
3668
+ /**
3669
+ * Deserializes binary data (in protobuf wire format) from the
3670
+ * given reader into the given message object.
3671
+ * @param {!proto.JobPositionGetByIdResponse} msg The message object to deserialize into.
3672
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3673
+ * @return {!proto.JobPositionGetByIdResponse}
3674
+ */
3675
+ proto.JobPositionGetByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
3676
+ while (reader.nextField()) {
3677
+ if (reader.isEndGroup()) {
3678
+ break;
3679
+ }
3680
+ var field = reader.getFieldNumber();
3681
+ switch (field) {
3682
+ case 1:
3683
+ var value = new proto.BaseJobPosition;
3684
+ reader.readMessage(value,proto.BaseJobPosition.deserializeBinaryFromReader);
3685
+ msg.setJobPosition(value);
3686
+ break;
3687
+ case 2:
3688
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3689
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3690
+ msg.setMeta(value);
3691
+ break;
3692
+ default:
3693
+ reader.skipField();
3694
+ break;
3695
+ }
3696
+ }
3697
+ return msg;
3698
+ };
3699
+
3700
+
3701
+ /**
3702
+ * Serializes the message to binary data (in protobuf wire format).
3703
+ * @return {!Uint8Array}
3704
+ */
3705
+ proto.JobPositionGetByIdResponse.prototype.serializeBinary = function() {
3706
+ var writer = new jspb.BinaryWriter();
3707
+ proto.JobPositionGetByIdResponse.serializeBinaryToWriter(this, writer);
3708
+ return writer.getResultBuffer();
3709
+ };
3710
+
3711
+
3712
+ /**
3713
+ * Serializes the given message to binary data (in protobuf wire
3714
+ * format), writing to the given BinaryWriter.
3715
+ * @param {!proto.JobPositionGetByIdResponse} message
3716
+ * @param {!jspb.BinaryWriter} writer
3717
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3718
+ */
3719
+ proto.JobPositionGetByIdResponse.serializeBinaryToWriter = function(message, writer) {
3720
+ var f = undefined;
3721
+ f = message.getJobPosition();
3722
+ if (f != null) {
3723
+ writer.writeMessage(
3724
+ 1,
3725
+ f,
3726
+ proto.BaseJobPosition.serializeBinaryToWriter
3727
+ );
3728
+ }
3729
+ f = message.getMeta();
3730
+ if (f != null) {
3731
+ writer.writeMessage(
3732
+ 2,
3733
+ f,
3734
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3735
+ );
3736
+ }
3737
+ };
3738
+
3739
+
3740
+ /**
3741
+ * optional BaseJobPosition job_position = 1;
3742
+ * @return {?proto.BaseJobPosition}
3743
+ */
3744
+ proto.JobPositionGetByIdResponse.prototype.getJobPosition = function() {
3745
+ return /** @type{?proto.BaseJobPosition} */ (
3746
+ jspb.Message.getWrapperField(this, proto.BaseJobPosition, 1));
3747
+ };
3748
+
3749
+
3750
+ /**
3751
+ * @param {?proto.BaseJobPosition|undefined} value
3752
+ * @return {!proto.JobPositionGetByIdResponse} returns this
3753
+ */
3754
+ proto.JobPositionGetByIdResponse.prototype.setJobPosition = function(value) {
3755
+ return jspb.Message.setWrapperField(this, 1, value);
3756
+ };
3757
+
3758
+
3759
+ /**
3760
+ * Clears the message field making it undefined.
3761
+ * @return {!proto.JobPositionGetByIdResponse} returns this
3762
+ */
3763
+ proto.JobPositionGetByIdResponse.prototype.clearJobPosition = function() {
3764
+ return this.setJobPosition(undefined);
3765
+ };
3766
+
3767
+
3768
+ /**
3769
+ * Returns whether this field is set.
3770
+ * @return {boolean}
3771
+ */
3772
+ proto.JobPositionGetByIdResponse.prototype.hasJobPosition = function() {
3773
+ return jspb.Message.getField(this, 1) != null;
3774
+ };
3775
+
3776
+
3777
+ /**
3778
+ * optional prisca.v1.global.meta.Meta meta = 2;
3779
+ * @return {?proto.prisca.v1.global.meta.Meta}
3780
+ */
3781
+ proto.JobPositionGetByIdResponse.prototype.getMeta = function() {
3782
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3783
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3784
+ };
3785
+
3786
+
3787
+ /**
3788
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3789
+ * @return {!proto.JobPositionGetByIdResponse} returns this
3790
+ */
3791
+ proto.JobPositionGetByIdResponse.prototype.setMeta = function(value) {
3792
+ return jspb.Message.setWrapperField(this, 2, value);
3793
+ };
3794
+
3795
+
3796
+ /**
3797
+ * Clears the message field making it undefined.
3798
+ * @return {!proto.JobPositionGetByIdResponse} returns this
3799
+ */
3800
+ proto.JobPositionGetByIdResponse.prototype.clearMeta = function() {
3801
+ return this.setMeta(undefined);
3802
+ };
3803
+
3804
+
3805
+ /**
3806
+ * Returns whether this field is set.
3807
+ * @return {boolean}
3808
+ */
3809
+ proto.JobPositionGetByIdResponse.prototype.hasMeta = function() {
3810
+ return jspb.Message.getField(this, 2) != null;
3811
+ };
3812
+
3813
+
3814
+ goog.object.extend(exports, proto);