@aldiokta/protocgen 1.1.44 → 1.1.45

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