@aldiokta/protocgen 1.1.23 → 1.1.25

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