@aldiokta/protocgen 1.1.19 → 1.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +199 -0
  3. package/prisca/v1/account_assignment/account_assignment_pb.js +2674 -0
  4. package/prisca/v1/account_group/account_group_grpc_pb.js +200 -0
  5. package/prisca/v1/account_group/account_group_pb.js +2937 -0
  6. package/prisca/v1/bidding/bidding_grpc_pb.js +173 -0
  7. package/prisca/v1/bidding/bidding_pb.js +5616 -0
  8. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +199 -0
  9. package/prisca/v1/chart_of_account/chart_of_account_pb.js +2907 -0
  10. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +544 -0
  11. package/prisca/v1/core/access_manager/access_manager_pb.js +9383 -0
  12. package/prisca/v1/core/auth/auth_grpc_pb.js +423 -0
  13. package/prisca/v1/core/auth/auth_pb.js +4497 -0
  14. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +111 -0
  15. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +1531 -0
  16. package/prisca/v1/core/company/company_grpc_pb.js +178 -0
  17. package/prisca/v1/core/company/company_pb.js +3048 -0
  18. package/prisca/v1/core/currency/currency_grpc_pb.js +177 -0
  19. package/prisca/v1/core/currency/currency_pb.js +2522 -0
  20. package/prisca/v1/core/department_material/department_material_grpc_pb.js +144 -0
  21. package/prisca/v1/core/department_material/department_material_pb.js +2167 -0
  22. package/prisca/v1/core/employee/employee_grpc_pb.js +206 -0
  23. package/prisca/v1/core/employee/employee_pb.js +4283 -0
  24. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +44 -0
  25. package/prisca/v1/core/file_upload/file_upload_pb.js +872 -0
  26. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +144 -0
  27. package/prisca/v1/core/incoterm/incoterm_pb.js +2497 -0
  28. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +1 -0
  29. package/prisca/v1/core/item_transaction/item_transaction_pb.js +3880 -0
  30. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +178 -0
  31. package/prisca/v1/core/job_grade/job_grade_pb.js +2605 -0
  32. package/prisca/v1/core/job_position/job_position_grpc_pb.js +181 -0
  33. package/prisca/v1/core/job_position/job_position_pb.js +3762 -0
  34. package/prisca/v1/core/job_title/job_title_grpc_pb.js +178 -0
  35. package/prisca/v1/core/job_title/job_title_pb.js +2958 -0
  36. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +45 -0
  37. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +1188 -0
  38. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +200 -0
  39. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +3191 -0
  40. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +177 -0
  41. package/prisca/v1/core/link_data_source/link_data_source_pb.js +2612 -0
  42. package/prisca/v1/core/location/location_grpc_pb.js +837 -0
  43. package/prisca/v1/core/location/location_pb.js +10879 -0
  44. package/prisca/v1/core/material/material_grpc_pb.js +182 -0
  45. package/prisca/v1/core/material/material_pb.js +4180 -0
  46. package/prisca/v1/core/material_group/material_group_grpc_pb.js +178 -0
  47. package/prisca/v1/core/material_group/material_group_pb.js +2776 -0
  48. package/prisca/v1/core/material_type/material_type_grpc_pb.js +149 -0
  49. package/prisca/v1/core/material_type/material_type_pb.js +2697 -0
  50. package/prisca/v1/core/messaging/email_template_grpc_pb.js +177 -0
  51. package/prisca/v1/core/messaging/email_template_pb.js +2552 -0
  52. package/prisca/v1/core/messaging/messaging_grpc_pb.js +56 -0
  53. package/prisca/v1/core/messaging/messaging_pb.js +896 -0
  54. package/prisca/v1/core/number_range/number_range_grpc_pb.js +178 -0
  55. package/prisca/v1/core/number_range/number_range_pb.js +2926 -0
  56. package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
  57. package/prisca/v1/core/organization/organization_pb.js +3032 -0
  58. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +178 -0
  59. package/prisca/v1/core/organization_level/organization_level_pb.js +2545 -0
  60. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +146 -0
  61. package/prisca/v1/core/price_condition/price_condition_pb.js +2654 -0
  62. package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
  63. package/prisca/v1/core/procurement/procurement_pb.js +1681 -0
  64. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +1 -0
  65. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +206 -0
  66. package/prisca/v1/core/report/report_grpc_pb.js +200 -0
  67. package/prisca/v1/core/report/report_pb.js +2822 -0
  68. package/prisca/v1/core/report/user_report_grpc_pb.js +179 -0
  69. package/prisca/v1/core/report/user_report_pb.js +2452 -0
  70. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
  71. package/prisca/v1/core/tax_code/tax_code_pb.js +2582 -0
  72. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +144 -0
  73. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +2105 -0
  74. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +498 -0
  75. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +10976 -0
  76. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
  77. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2798 -0
  78. package/prisca/v1/core/users/users_grpc_pb.js +45 -0
  79. package/prisca/v1/core/users/users_pb.js +1246 -0
  80. package/prisca/v1/core/work_location/work_location_grpc_pb.js +179 -0
  81. package/prisca/v1/core/work_location/work_location_pb.js +3972 -0
  82. package/prisca/v1/core/workflow/workflow_grpc_pb.js +203 -0
  83. package/prisca/v1/core/workflow/workflow_pb.js +7525 -0
  84. package/prisca/v1/document_type/document_type_grpc_pb.js +178 -0
  85. package/prisca/v1/document_type/document_type_pb.js +2746 -0
  86. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +181 -0
  87. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +3276 -0
  88. package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
  89. package/prisca/v1/global/meta/meta_pb.js +1179 -0
  90. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +228 -0
  91. package/prisca/v1/purchase_order/purchase_order_pb.js +4989 -0
  92. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +512 -0
  93. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +9917 -0
  94. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +178 -0
  95. package/prisca/v1/purchasing_group/purchasing_group_pb.js +2875 -0
  96. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +145 -0
  97. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +2139 -0
  98. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +146 -0
  99. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +2183 -0
  100. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +145 -0
  101. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +2543 -0
  102. package/prisca/v1/quotation/quotation_grpc_pb.js +152 -0
  103. package/prisca/v1/quotation/quotation_pb.js +2319 -0
  104. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +192 -0
  105. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +5703 -0
  106. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +224 -0
  107. package/prisca/v1/vendor_domain/vendor_domain_pb.js +6333 -0
  108. package/prisca/v1/account_assignment/account_assignment.proto +0 -79
  109. package/prisca/v1/account_group/account_group.proto +0 -86
  110. package/prisca/v1/bidding/bidding.proto +0 -159
  111. package/prisca/v1/chart_of_account/chart_of_account.proto +0 -87
  112. package/prisca/v1/core/access_manager/access_manager.proto +0 -281
  113. package/prisca/v1/core/auth/auth.proto +0 -150
  114. package/prisca/v1/core/chat_messaging/chat_messaging.proto +0 -55
  115. package/prisca/v1/core/company/company.proto +0 -92
  116. package/prisca/v1/core/currency/currency.proto +0 -76
  117. package/prisca/v1/core/department_material/department_material.proto +0 -69
  118. package/prisca/v1/core/employee/employee.proto +0 -129
  119. package/prisca/v1/core/file_upload/file_upload.proto +0 -31
  120. package/prisca/v1/core/incoterm/incoterm.proto +0 -76
  121. package/prisca/v1/core/item_transaction/item_transaction.proto +0 -120
  122. package/prisca/v1/core/job_grade/job_grade.proto +0 -79
  123. package/prisca/v1/core/job_position/job_position.proto +0 -113
  124. package/prisca/v1/core/job_title/job_title.proto +0 -89
  125. package/prisca/v1/core/line_of_activity/line_of_activity.proto +0 -42
  126. package/prisca/v1/core/line_of_approval/line_of_approval.proto +0 -94
  127. package/prisca/v1/core/link_data_source/link_data_source.proto +0 -78
  128. package/prisca/v1/core/location/location.proto +0 -289
  129. package/prisca/v1/core/material/material.proto +0 -131
  130. package/prisca/v1/core/material_group/material_group.proto +0 -85
  131. package/prisca/v1/core/material_type/material_type.proto +0 -86
  132. package/prisca/v1/core/messaging/email_template.proto +0 -75
  133. package/prisca/v1/core/messaging/messaging.proto +0 -29
  134. package/prisca/v1/core/number_range/number_range.proto +0 -89
  135. package/prisca/v1/core/organization/organization.proto +0 -94
  136. package/prisca/v1/core/organization_level/organization_level.proto +0 -77
  137. package/prisca/v1/core/price_condition/price_condition.proto +0 -83
  138. package/prisca/v1/core/procurement/procurement.proto +0 -54
  139. package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
  140. package/prisca/v1/core/report/report.proto +0 -90
  141. package/prisca/v1/core/report/user_report.proto +0 -74
  142. package/prisca/v1/core/tax_code/tax_code.proto +0 -77
  143. package/prisca/v1/core/term_of_payment/term_of_payment.proto +0 -64
  144. package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -325
  145. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
  146. package/prisca/v1/core/users/users.proto +0 -45
  147. package/prisca/v1/core/work_location/work_location.proto +0 -122
  148. package/prisca/v1/core/workflow/workflow.proto +0 -216
  149. package/prisca/v1/document_type/document_type.proto +0 -80
  150. package/prisca/v1/general_ledger_account/general_ledger_account.proto +0 -98
  151. package/prisca/v1/global/meta/meta.proto +0 -57
  152. package/prisca/v1/purchase_order/purchase_order.proto +0 -155
  153. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +0 -304
  154. package/prisca/v1/purchasing_group/purchasing_group.proto +0 -87
  155. package/prisca/v1/purchasing_organization/purchasing_organization.proto +0 -68
  156. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +0 -70
  157. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +0 -80
  158. package/prisca/v1/quotation/quotation.proto +0 -82
  159. package/prisca/v1/request_for_quotation/request_for_quotation.proto +0 -166
  160. package/prisca/v1/vendor_domain/vendor_domain.proto +0 -225
@@ -0,0 +1,4283 @@
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, null, 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, null, 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
+
2956
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2957
+ /**
2958
+ * Creates an object representation of this proto.
2959
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2960
+ * Optional fields that are not set will be set to undefined.
2961
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2962
+ * For the list of reserved names please see:
2963
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2964
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2965
+ * JSPB instance for transitional soy proto support:
2966
+ * http://goto/soy-param-migration
2967
+ * @return {!Object}
2968
+ */
2969
+ proto.DeleteEmployeeRequest.prototype.toObject = function(opt_includeInstance) {
2970
+ return proto.DeleteEmployeeRequest.toObject(opt_includeInstance, this);
2971
+ };
2972
+
2973
+
2974
+ /**
2975
+ * Static version of the {@see toObject} method.
2976
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2977
+ * the JSPB instance for transitional soy proto support:
2978
+ * http://goto/soy-param-migration
2979
+ * @param {!proto.DeleteEmployeeRequest} msg The msg instance to transform.
2980
+ * @return {!Object}
2981
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2982
+ */
2983
+ proto.DeleteEmployeeRequest.toObject = function(includeInstance, msg) {
2984
+ var f, obj = {
2985
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2986
+ };
2987
+
2988
+ if (includeInstance) {
2989
+ obj.$jspbMessageInstance = msg;
2990
+ }
2991
+ return obj;
2992
+ };
2993
+ }
2994
+
2995
+
2996
+ /**
2997
+ * Deserializes binary data (in protobuf wire format).
2998
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2999
+ * @return {!proto.DeleteEmployeeRequest}
3000
+ */
3001
+ proto.DeleteEmployeeRequest.deserializeBinary = function(bytes) {
3002
+ var reader = new jspb.BinaryReader(bytes);
3003
+ var msg = new proto.DeleteEmployeeRequest;
3004
+ return proto.DeleteEmployeeRequest.deserializeBinaryFromReader(msg, reader);
3005
+ };
3006
+
3007
+
3008
+ /**
3009
+ * Deserializes binary data (in protobuf wire format) from the
3010
+ * given reader into the given message object.
3011
+ * @param {!proto.DeleteEmployeeRequest} msg The message object to deserialize into.
3012
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3013
+ * @return {!proto.DeleteEmployeeRequest}
3014
+ */
3015
+ proto.DeleteEmployeeRequest.deserializeBinaryFromReader = function(msg, reader) {
3016
+ while (reader.nextField()) {
3017
+ if (reader.isEndGroup()) {
3018
+ break;
3019
+ }
3020
+ var field = reader.getFieldNumber();
3021
+ switch (field) {
3022
+ case 1:
3023
+ var value = /** @type {string} */ (reader.readString());
3024
+ msg.setReferencesId(value);
3025
+ break;
3026
+ default:
3027
+ reader.skipField();
3028
+ break;
3029
+ }
3030
+ }
3031
+ return msg;
3032
+ };
3033
+
3034
+
3035
+ /**
3036
+ * Serializes the message to binary data (in protobuf wire format).
3037
+ * @return {!Uint8Array}
3038
+ */
3039
+ proto.DeleteEmployeeRequest.prototype.serializeBinary = function() {
3040
+ var writer = new jspb.BinaryWriter();
3041
+ proto.DeleteEmployeeRequest.serializeBinaryToWriter(this, writer);
3042
+ return writer.getResultBuffer();
3043
+ };
3044
+
3045
+
3046
+ /**
3047
+ * Serializes the given message to binary data (in protobuf wire
3048
+ * format), writing to the given BinaryWriter.
3049
+ * @param {!proto.DeleteEmployeeRequest} message
3050
+ * @param {!jspb.BinaryWriter} writer
3051
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3052
+ */
3053
+ proto.DeleteEmployeeRequest.serializeBinaryToWriter = function(message, writer) {
3054
+ var f = undefined;
3055
+ f = message.getReferencesId();
3056
+ if (f.length > 0) {
3057
+ writer.writeString(
3058
+ 1,
3059
+ f
3060
+ );
3061
+ }
3062
+ };
3063
+
3064
+
3065
+ /**
3066
+ * optional string references_id = 1;
3067
+ * @return {string}
3068
+ */
3069
+ proto.DeleteEmployeeRequest.prototype.getReferencesId = function() {
3070
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3071
+ };
3072
+
3073
+
3074
+ /**
3075
+ * @param {string} value
3076
+ * @return {!proto.DeleteEmployeeRequest} returns this
3077
+ */
3078
+ proto.DeleteEmployeeRequest.prototype.setReferencesId = function(value) {
3079
+ return jspb.Message.setProto3StringField(this, 1, value);
3080
+ };
3081
+
3082
+
3083
+
3084
+
3085
+
3086
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3087
+ /**
3088
+ * Creates an object representation of this proto.
3089
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3090
+ * Optional fields that are not set will be set to undefined.
3091
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3092
+ * For the list of reserved names please see:
3093
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3094
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3095
+ * JSPB instance for transitional soy proto support:
3096
+ * http://goto/soy-param-migration
3097
+ * @return {!Object}
3098
+ */
3099
+ proto.GetListEmployeeRequest.prototype.toObject = function(opt_includeInstance) {
3100
+ return proto.GetListEmployeeRequest.toObject(opt_includeInstance, this);
3101
+ };
3102
+
3103
+
3104
+ /**
3105
+ * Static version of the {@see toObject} method.
3106
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3107
+ * the JSPB instance for transitional soy proto support:
3108
+ * http://goto/soy-param-migration
3109
+ * @param {!proto.GetListEmployeeRequest} msg The msg instance to transform.
3110
+ * @return {!Object}
3111
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3112
+ */
3113
+ proto.GetListEmployeeRequest.toObject = function(includeInstance, msg) {
3114
+ var f, obj = {
3115
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
3116
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
3117
+ };
3118
+
3119
+ if (includeInstance) {
3120
+ obj.$jspbMessageInstance = msg;
3121
+ }
3122
+ return obj;
3123
+ };
3124
+ }
3125
+
3126
+
3127
+ /**
3128
+ * Deserializes binary data (in protobuf wire format).
3129
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3130
+ * @return {!proto.GetListEmployeeRequest}
3131
+ */
3132
+ proto.GetListEmployeeRequest.deserializeBinary = function(bytes) {
3133
+ var reader = new jspb.BinaryReader(bytes);
3134
+ var msg = new proto.GetListEmployeeRequest;
3135
+ return proto.GetListEmployeeRequest.deserializeBinaryFromReader(msg, reader);
3136
+ };
3137
+
3138
+
3139
+ /**
3140
+ * Deserializes binary data (in protobuf wire format) from the
3141
+ * given reader into the given message object.
3142
+ * @param {!proto.GetListEmployeeRequest} msg The message object to deserialize into.
3143
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3144
+ * @return {!proto.GetListEmployeeRequest}
3145
+ */
3146
+ proto.GetListEmployeeRequest.deserializeBinaryFromReader = function(msg, reader) {
3147
+ while (reader.nextField()) {
3148
+ if (reader.isEndGroup()) {
3149
+ break;
3150
+ }
3151
+ var field = reader.getFieldNumber();
3152
+ switch (field) {
3153
+ case 1:
3154
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
3155
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
3156
+ msg.setPagination(value);
3157
+ break;
3158
+ case 2:
3159
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
3160
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
3161
+ msg.setQuery(value);
3162
+ break;
3163
+ default:
3164
+ reader.skipField();
3165
+ break;
3166
+ }
3167
+ }
3168
+ return msg;
3169
+ };
3170
+
3171
+
3172
+ /**
3173
+ * Serializes the message to binary data (in protobuf wire format).
3174
+ * @return {!Uint8Array}
3175
+ */
3176
+ proto.GetListEmployeeRequest.prototype.serializeBinary = function() {
3177
+ var writer = new jspb.BinaryWriter();
3178
+ proto.GetListEmployeeRequest.serializeBinaryToWriter(this, writer);
3179
+ return writer.getResultBuffer();
3180
+ };
3181
+
3182
+
3183
+ /**
3184
+ * Serializes the given message to binary data (in protobuf wire
3185
+ * format), writing to the given BinaryWriter.
3186
+ * @param {!proto.GetListEmployeeRequest} message
3187
+ * @param {!jspb.BinaryWriter} writer
3188
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3189
+ */
3190
+ proto.GetListEmployeeRequest.serializeBinaryToWriter = function(message, writer) {
3191
+ var f = undefined;
3192
+ f = message.getPagination();
3193
+ if (f != null) {
3194
+ writer.writeMessage(
3195
+ 1,
3196
+ f,
3197
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
3198
+ );
3199
+ }
3200
+ f = message.getQuery();
3201
+ if (f != null) {
3202
+ writer.writeMessage(
3203
+ 2,
3204
+ f,
3205
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
3206
+ );
3207
+ }
3208
+ };
3209
+
3210
+
3211
+ /**
3212
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
3213
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
3214
+ */
3215
+ proto.GetListEmployeeRequest.prototype.getPagination = function() {
3216
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
3217
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
3218
+ };
3219
+
3220
+
3221
+ /**
3222
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
3223
+ * @return {!proto.GetListEmployeeRequest} returns this
3224
+ */
3225
+ proto.GetListEmployeeRequest.prototype.setPagination = function(value) {
3226
+ return jspb.Message.setWrapperField(this, 1, value);
3227
+ };
3228
+
3229
+
3230
+ /**
3231
+ * Clears the message field making it undefined.
3232
+ * @return {!proto.GetListEmployeeRequest} returns this
3233
+ */
3234
+ proto.GetListEmployeeRequest.prototype.clearPagination = function() {
3235
+ return this.setPagination(undefined);
3236
+ };
3237
+
3238
+
3239
+ /**
3240
+ * Returns whether this field is set.
3241
+ * @return {boolean}
3242
+ */
3243
+ proto.GetListEmployeeRequest.prototype.hasPagination = function() {
3244
+ return jspb.Message.getField(this, 1) != null;
3245
+ };
3246
+
3247
+
3248
+ /**
3249
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
3250
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
3251
+ */
3252
+ proto.GetListEmployeeRequest.prototype.getQuery = function() {
3253
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
3254
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
3255
+ };
3256
+
3257
+
3258
+ /**
3259
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
3260
+ * @return {!proto.GetListEmployeeRequest} returns this
3261
+ */
3262
+ proto.GetListEmployeeRequest.prototype.setQuery = function(value) {
3263
+ return jspb.Message.setWrapperField(this, 2, value);
3264
+ };
3265
+
3266
+
3267
+ /**
3268
+ * Clears the message field making it undefined.
3269
+ * @return {!proto.GetListEmployeeRequest} returns this
3270
+ */
3271
+ proto.GetListEmployeeRequest.prototype.clearQuery = function() {
3272
+ return this.setQuery(undefined);
3273
+ };
3274
+
3275
+
3276
+ /**
3277
+ * Returns whether this field is set.
3278
+ * @return {boolean}
3279
+ */
3280
+ proto.GetListEmployeeRequest.prototype.hasQuery = function() {
3281
+ return jspb.Message.getField(this, 2) != null;
3282
+ };
3283
+
3284
+
3285
+
3286
+
3287
+
3288
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3289
+ /**
3290
+ * Creates an object representation of this proto.
3291
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3292
+ * Optional fields that are not set will be set to undefined.
3293
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3294
+ * For the list of reserved names please see:
3295
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3296
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3297
+ * JSPB instance for transitional soy proto support:
3298
+ * http://goto/soy-param-migration
3299
+ * @return {!Object}
3300
+ */
3301
+ proto.CreateEmployeeResponse.prototype.toObject = function(opt_includeInstance) {
3302
+ return proto.CreateEmployeeResponse.toObject(opt_includeInstance, this);
3303
+ };
3304
+
3305
+
3306
+ /**
3307
+ * Static version of the {@see toObject} method.
3308
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3309
+ * the JSPB instance for transitional soy proto support:
3310
+ * http://goto/soy-param-migration
3311
+ * @param {!proto.CreateEmployeeResponse} msg The msg instance to transform.
3312
+ * @return {!Object}
3313
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3314
+ */
3315
+ proto.CreateEmployeeResponse.toObject = function(includeInstance, msg) {
3316
+ var f, obj = {
3317
+ employee: (f = msg.getEmployee()) && proto.BaseEmployee.toObject(includeInstance, f),
3318
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3319
+ };
3320
+
3321
+ if (includeInstance) {
3322
+ obj.$jspbMessageInstance = msg;
3323
+ }
3324
+ return obj;
3325
+ };
3326
+ }
3327
+
3328
+
3329
+ /**
3330
+ * Deserializes binary data (in protobuf wire format).
3331
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3332
+ * @return {!proto.CreateEmployeeResponse}
3333
+ */
3334
+ proto.CreateEmployeeResponse.deserializeBinary = function(bytes) {
3335
+ var reader = new jspb.BinaryReader(bytes);
3336
+ var msg = new proto.CreateEmployeeResponse;
3337
+ return proto.CreateEmployeeResponse.deserializeBinaryFromReader(msg, reader);
3338
+ };
3339
+
3340
+
3341
+ /**
3342
+ * Deserializes binary data (in protobuf wire format) from the
3343
+ * given reader into the given message object.
3344
+ * @param {!proto.CreateEmployeeResponse} msg The message object to deserialize into.
3345
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3346
+ * @return {!proto.CreateEmployeeResponse}
3347
+ */
3348
+ proto.CreateEmployeeResponse.deserializeBinaryFromReader = function(msg, reader) {
3349
+ while (reader.nextField()) {
3350
+ if (reader.isEndGroup()) {
3351
+ break;
3352
+ }
3353
+ var field = reader.getFieldNumber();
3354
+ switch (field) {
3355
+ case 1:
3356
+ var value = new proto.BaseEmployee;
3357
+ reader.readMessage(value,proto.BaseEmployee.deserializeBinaryFromReader);
3358
+ msg.setEmployee(value);
3359
+ break;
3360
+ case 2:
3361
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3362
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3363
+ msg.setMeta(value);
3364
+ break;
3365
+ default:
3366
+ reader.skipField();
3367
+ break;
3368
+ }
3369
+ }
3370
+ return msg;
3371
+ };
3372
+
3373
+
3374
+ /**
3375
+ * Serializes the message to binary data (in protobuf wire format).
3376
+ * @return {!Uint8Array}
3377
+ */
3378
+ proto.CreateEmployeeResponse.prototype.serializeBinary = function() {
3379
+ var writer = new jspb.BinaryWriter();
3380
+ proto.CreateEmployeeResponse.serializeBinaryToWriter(this, writer);
3381
+ return writer.getResultBuffer();
3382
+ };
3383
+
3384
+
3385
+ /**
3386
+ * Serializes the given message to binary data (in protobuf wire
3387
+ * format), writing to the given BinaryWriter.
3388
+ * @param {!proto.CreateEmployeeResponse} message
3389
+ * @param {!jspb.BinaryWriter} writer
3390
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3391
+ */
3392
+ proto.CreateEmployeeResponse.serializeBinaryToWriter = function(message, writer) {
3393
+ var f = undefined;
3394
+ f = message.getEmployee();
3395
+ if (f != null) {
3396
+ writer.writeMessage(
3397
+ 1,
3398
+ f,
3399
+ proto.BaseEmployee.serializeBinaryToWriter
3400
+ );
3401
+ }
3402
+ f = message.getMeta();
3403
+ if (f != null) {
3404
+ writer.writeMessage(
3405
+ 2,
3406
+ f,
3407
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3408
+ );
3409
+ }
3410
+ };
3411
+
3412
+
3413
+ /**
3414
+ * optional BaseEmployee employee = 1;
3415
+ * @return {?proto.BaseEmployee}
3416
+ */
3417
+ proto.CreateEmployeeResponse.prototype.getEmployee = function() {
3418
+ return /** @type{?proto.BaseEmployee} */ (
3419
+ jspb.Message.getWrapperField(this, proto.BaseEmployee, 1));
3420
+ };
3421
+
3422
+
3423
+ /**
3424
+ * @param {?proto.BaseEmployee|undefined} value
3425
+ * @return {!proto.CreateEmployeeResponse} returns this
3426
+ */
3427
+ proto.CreateEmployeeResponse.prototype.setEmployee = function(value) {
3428
+ return jspb.Message.setWrapperField(this, 1, value);
3429
+ };
3430
+
3431
+
3432
+ /**
3433
+ * Clears the message field making it undefined.
3434
+ * @return {!proto.CreateEmployeeResponse} returns this
3435
+ */
3436
+ proto.CreateEmployeeResponse.prototype.clearEmployee = function() {
3437
+ return this.setEmployee(undefined);
3438
+ };
3439
+
3440
+
3441
+ /**
3442
+ * Returns whether this field is set.
3443
+ * @return {boolean}
3444
+ */
3445
+ proto.CreateEmployeeResponse.prototype.hasEmployee = function() {
3446
+ return jspb.Message.getField(this, 1) != null;
3447
+ };
3448
+
3449
+
3450
+ /**
3451
+ * optional prisca.v1.global.meta.Meta meta = 2;
3452
+ * @return {?proto.prisca.v1.global.meta.Meta}
3453
+ */
3454
+ proto.CreateEmployeeResponse.prototype.getMeta = function() {
3455
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3456
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3457
+ };
3458
+
3459
+
3460
+ /**
3461
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3462
+ * @return {!proto.CreateEmployeeResponse} returns this
3463
+ */
3464
+ proto.CreateEmployeeResponse.prototype.setMeta = function(value) {
3465
+ return jspb.Message.setWrapperField(this, 2, value);
3466
+ };
3467
+
3468
+
3469
+ /**
3470
+ * Clears the message field making it undefined.
3471
+ * @return {!proto.CreateEmployeeResponse} returns this
3472
+ */
3473
+ proto.CreateEmployeeResponse.prototype.clearMeta = function() {
3474
+ return this.setMeta(undefined);
3475
+ };
3476
+
3477
+
3478
+ /**
3479
+ * Returns whether this field is set.
3480
+ * @return {boolean}
3481
+ */
3482
+ proto.CreateEmployeeResponse.prototype.hasMeta = function() {
3483
+ return jspb.Message.getField(this, 2) != null;
3484
+ };
3485
+
3486
+
3487
+
3488
+ /**
3489
+ * List of repeated fields within this message type.
3490
+ * @private {!Array<number>}
3491
+ * @const
3492
+ */
3493
+ proto.GetListEmployeeResponse.repeatedFields_ = [1];
3494
+
3495
+
3496
+
3497
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3498
+ /**
3499
+ * Creates an object representation of this proto.
3500
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3501
+ * Optional fields that are not set will be set to undefined.
3502
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3503
+ * For the list of reserved names please see:
3504
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3505
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3506
+ * JSPB instance for transitional soy proto support:
3507
+ * http://goto/soy-param-migration
3508
+ * @return {!Object}
3509
+ */
3510
+ proto.GetListEmployeeResponse.prototype.toObject = function(opt_includeInstance) {
3511
+ return proto.GetListEmployeeResponse.toObject(opt_includeInstance, this);
3512
+ };
3513
+
3514
+
3515
+ /**
3516
+ * Static version of the {@see toObject} method.
3517
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3518
+ * the JSPB instance for transitional soy proto support:
3519
+ * http://goto/soy-param-migration
3520
+ * @param {!proto.GetListEmployeeResponse} msg The msg instance to transform.
3521
+ * @return {!Object}
3522
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3523
+ */
3524
+ proto.GetListEmployeeResponse.toObject = function(includeInstance, msg) {
3525
+ var f, obj = {
3526
+ employeeList: jspb.Message.toObjectList(msg.getEmployeeList(),
3527
+ proto.Employee.toObject, includeInstance),
3528
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3529
+ };
3530
+
3531
+ if (includeInstance) {
3532
+ obj.$jspbMessageInstance = msg;
3533
+ }
3534
+ return obj;
3535
+ };
3536
+ }
3537
+
3538
+
3539
+ /**
3540
+ * Deserializes binary data (in protobuf wire format).
3541
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3542
+ * @return {!proto.GetListEmployeeResponse}
3543
+ */
3544
+ proto.GetListEmployeeResponse.deserializeBinary = function(bytes) {
3545
+ var reader = new jspb.BinaryReader(bytes);
3546
+ var msg = new proto.GetListEmployeeResponse;
3547
+ return proto.GetListEmployeeResponse.deserializeBinaryFromReader(msg, reader);
3548
+ };
3549
+
3550
+
3551
+ /**
3552
+ * Deserializes binary data (in protobuf wire format) from the
3553
+ * given reader into the given message object.
3554
+ * @param {!proto.GetListEmployeeResponse} msg The message object to deserialize into.
3555
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3556
+ * @return {!proto.GetListEmployeeResponse}
3557
+ */
3558
+ proto.GetListEmployeeResponse.deserializeBinaryFromReader = function(msg, reader) {
3559
+ while (reader.nextField()) {
3560
+ if (reader.isEndGroup()) {
3561
+ break;
3562
+ }
3563
+ var field = reader.getFieldNumber();
3564
+ switch (field) {
3565
+ case 1:
3566
+ var value = new proto.Employee;
3567
+ reader.readMessage(value,proto.Employee.deserializeBinaryFromReader);
3568
+ msg.addEmployee(value);
3569
+ break;
3570
+ case 2:
3571
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3572
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3573
+ msg.setMeta(value);
3574
+ break;
3575
+ default:
3576
+ reader.skipField();
3577
+ break;
3578
+ }
3579
+ }
3580
+ return msg;
3581
+ };
3582
+
3583
+
3584
+ /**
3585
+ * Serializes the message to binary data (in protobuf wire format).
3586
+ * @return {!Uint8Array}
3587
+ */
3588
+ proto.GetListEmployeeResponse.prototype.serializeBinary = function() {
3589
+ var writer = new jspb.BinaryWriter();
3590
+ proto.GetListEmployeeResponse.serializeBinaryToWriter(this, writer);
3591
+ return writer.getResultBuffer();
3592
+ };
3593
+
3594
+
3595
+ /**
3596
+ * Serializes the given message to binary data (in protobuf wire
3597
+ * format), writing to the given BinaryWriter.
3598
+ * @param {!proto.GetListEmployeeResponse} message
3599
+ * @param {!jspb.BinaryWriter} writer
3600
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3601
+ */
3602
+ proto.GetListEmployeeResponse.serializeBinaryToWriter = function(message, writer) {
3603
+ var f = undefined;
3604
+ f = message.getEmployeeList();
3605
+ if (f.length > 0) {
3606
+ writer.writeRepeatedMessage(
3607
+ 1,
3608
+ f,
3609
+ proto.Employee.serializeBinaryToWriter
3610
+ );
3611
+ }
3612
+ f = message.getMeta();
3613
+ if (f != null) {
3614
+ writer.writeMessage(
3615
+ 2,
3616
+ f,
3617
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3618
+ );
3619
+ }
3620
+ };
3621
+
3622
+
3623
+ /**
3624
+ * repeated Employee employee = 1;
3625
+ * @return {!Array<!proto.Employee>}
3626
+ */
3627
+ proto.GetListEmployeeResponse.prototype.getEmployeeList = function() {
3628
+ return /** @type{!Array<!proto.Employee>} */ (
3629
+ jspb.Message.getRepeatedWrapperField(this, proto.Employee, 1));
3630
+ };
3631
+
3632
+
3633
+ /**
3634
+ * @param {!Array<!proto.Employee>} value
3635
+ * @return {!proto.GetListEmployeeResponse} returns this
3636
+ */
3637
+ proto.GetListEmployeeResponse.prototype.setEmployeeList = function(value) {
3638
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3639
+ };
3640
+
3641
+
3642
+ /**
3643
+ * @param {!proto.Employee=} opt_value
3644
+ * @param {number=} opt_index
3645
+ * @return {!proto.Employee}
3646
+ */
3647
+ proto.GetListEmployeeResponse.prototype.addEmployee = function(opt_value, opt_index) {
3648
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Employee, opt_index);
3649
+ };
3650
+
3651
+
3652
+ /**
3653
+ * Clears the list making it empty but non-null.
3654
+ * @return {!proto.GetListEmployeeResponse} returns this
3655
+ */
3656
+ proto.GetListEmployeeResponse.prototype.clearEmployeeList = function() {
3657
+ return this.setEmployeeList([]);
3658
+ };
3659
+
3660
+
3661
+ /**
3662
+ * optional prisca.v1.global.meta.Meta meta = 2;
3663
+ * @return {?proto.prisca.v1.global.meta.Meta}
3664
+ */
3665
+ proto.GetListEmployeeResponse.prototype.getMeta = function() {
3666
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3667
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3668
+ };
3669
+
3670
+
3671
+ /**
3672
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3673
+ * @return {!proto.GetListEmployeeResponse} returns this
3674
+ */
3675
+ proto.GetListEmployeeResponse.prototype.setMeta = function(value) {
3676
+ return jspb.Message.setWrapperField(this, 2, value);
3677
+ };
3678
+
3679
+
3680
+ /**
3681
+ * Clears the message field making it undefined.
3682
+ * @return {!proto.GetListEmployeeResponse} returns this
3683
+ */
3684
+ proto.GetListEmployeeResponse.prototype.clearMeta = function() {
3685
+ return this.setMeta(undefined);
3686
+ };
3687
+
3688
+
3689
+ /**
3690
+ * Returns whether this field is set.
3691
+ * @return {boolean}
3692
+ */
3693
+ proto.GetListEmployeeResponse.prototype.hasMeta = function() {
3694
+ return jspb.Message.getField(this, 2) != null;
3695
+ };
3696
+
3697
+
3698
+
3699
+
3700
+
3701
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3702
+ /**
3703
+ * Creates an object representation of this proto.
3704
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3705
+ * Optional fields that are not set will be set to undefined.
3706
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3707
+ * For the list of reserved names please see:
3708
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3709
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3710
+ * JSPB instance for transitional soy proto support:
3711
+ * http://goto/soy-param-migration
3712
+ * @return {!Object}
3713
+ */
3714
+ proto.UpdateEmployeeResponse.prototype.toObject = function(opt_includeInstance) {
3715
+ return proto.UpdateEmployeeResponse.toObject(opt_includeInstance, this);
3716
+ };
3717
+
3718
+
3719
+ /**
3720
+ * Static version of the {@see toObject} method.
3721
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3722
+ * the JSPB instance for transitional soy proto support:
3723
+ * http://goto/soy-param-migration
3724
+ * @param {!proto.UpdateEmployeeResponse} msg The msg instance to transform.
3725
+ * @return {!Object}
3726
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3727
+ */
3728
+ proto.UpdateEmployeeResponse.toObject = function(includeInstance, msg) {
3729
+ var f, obj = {
3730
+ employee: (f = msg.getEmployee()) && proto.BaseEmployee.toObject(includeInstance, f),
3731
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3732
+ };
3733
+
3734
+ if (includeInstance) {
3735
+ obj.$jspbMessageInstance = msg;
3736
+ }
3737
+ return obj;
3738
+ };
3739
+ }
3740
+
3741
+
3742
+ /**
3743
+ * Deserializes binary data (in protobuf wire format).
3744
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3745
+ * @return {!proto.UpdateEmployeeResponse}
3746
+ */
3747
+ proto.UpdateEmployeeResponse.deserializeBinary = function(bytes) {
3748
+ var reader = new jspb.BinaryReader(bytes);
3749
+ var msg = new proto.UpdateEmployeeResponse;
3750
+ return proto.UpdateEmployeeResponse.deserializeBinaryFromReader(msg, reader);
3751
+ };
3752
+
3753
+
3754
+ /**
3755
+ * Deserializes binary data (in protobuf wire format) from the
3756
+ * given reader into the given message object.
3757
+ * @param {!proto.UpdateEmployeeResponse} msg The message object to deserialize into.
3758
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3759
+ * @return {!proto.UpdateEmployeeResponse}
3760
+ */
3761
+ proto.UpdateEmployeeResponse.deserializeBinaryFromReader = function(msg, reader) {
3762
+ while (reader.nextField()) {
3763
+ if (reader.isEndGroup()) {
3764
+ break;
3765
+ }
3766
+ var field = reader.getFieldNumber();
3767
+ switch (field) {
3768
+ case 1:
3769
+ var value = new proto.BaseEmployee;
3770
+ reader.readMessage(value,proto.BaseEmployee.deserializeBinaryFromReader);
3771
+ msg.setEmployee(value);
3772
+ break;
3773
+ case 2:
3774
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3775
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3776
+ msg.setMeta(value);
3777
+ break;
3778
+ default:
3779
+ reader.skipField();
3780
+ break;
3781
+ }
3782
+ }
3783
+ return msg;
3784
+ };
3785
+
3786
+
3787
+ /**
3788
+ * Serializes the message to binary data (in protobuf wire format).
3789
+ * @return {!Uint8Array}
3790
+ */
3791
+ proto.UpdateEmployeeResponse.prototype.serializeBinary = function() {
3792
+ var writer = new jspb.BinaryWriter();
3793
+ proto.UpdateEmployeeResponse.serializeBinaryToWriter(this, writer);
3794
+ return writer.getResultBuffer();
3795
+ };
3796
+
3797
+
3798
+ /**
3799
+ * Serializes the given message to binary data (in protobuf wire
3800
+ * format), writing to the given BinaryWriter.
3801
+ * @param {!proto.UpdateEmployeeResponse} message
3802
+ * @param {!jspb.BinaryWriter} writer
3803
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3804
+ */
3805
+ proto.UpdateEmployeeResponse.serializeBinaryToWriter = function(message, writer) {
3806
+ var f = undefined;
3807
+ f = message.getEmployee();
3808
+ if (f != null) {
3809
+ writer.writeMessage(
3810
+ 1,
3811
+ f,
3812
+ proto.BaseEmployee.serializeBinaryToWriter
3813
+ );
3814
+ }
3815
+ f = message.getMeta();
3816
+ if (f != null) {
3817
+ writer.writeMessage(
3818
+ 2,
3819
+ f,
3820
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3821
+ );
3822
+ }
3823
+ };
3824
+
3825
+
3826
+ /**
3827
+ * optional BaseEmployee employee = 1;
3828
+ * @return {?proto.BaseEmployee}
3829
+ */
3830
+ proto.UpdateEmployeeResponse.prototype.getEmployee = function() {
3831
+ return /** @type{?proto.BaseEmployee} */ (
3832
+ jspb.Message.getWrapperField(this, proto.BaseEmployee, 1));
3833
+ };
3834
+
3835
+
3836
+ /**
3837
+ * @param {?proto.BaseEmployee|undefined} value
3838
+ * @return {!proto.UpdateEmployeeResponse} returns this
3839
+ */
3840
+ proto.UpdateEmployeeResponse.prototype.setEmployee = function(value) {
3841
+ return jspb.Message.setWrapperField(this, 1, value);
3842
+ };
3843
+
3844
+
3845
+ /**
3846
+ * Clears the message field making it undefined.
3847
+ * @return {!proto.UpdateEmployeeResponse} returns this
3848
+ */
3849
+ proto.UpdateEmployeeResponse.prototype.clearEmployee = function() {
3850
+ return this.setEmployee(undefined);
3851
+ };
3852
+
3853
+
3854
+ /**
3855
+ * Returns whether this field is set.
3856
+ * @return {boolean}
3857
+ */
3858
+ proto.UpdateEmployeeResponse.prototype.hasEmployee = function() {
3859
+ return jspb.Message.getField(this, 1) != null;
3860
+ };
3861
+
3862
+
3863
+ /**
3864
+ * optional prisca.v1.global.meta.Meta meta = 2;
3865
+ * @return {?proto.prisca.v1.global.meta.Meta}
3866
+ */
3867
+ proto.UpdateEmployeeResponse.prototype.getMeta = function() {
3868
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3869
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3870
+ };
3871
+
3872
+
3873
+ /**
3874
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3875
+ * @return {!proto.UpdateEmployeeResponse} returns this
3876
+ */
3877
+ proto.UpdateEmployeeResponse.prototype.setMeta = function(value) {
3878
+ return jspb.Message.setWrapperField(this, 2, value);
3879
+ };
3880
+
3881
+
3882
+ /**
3883
+ * Clears the message field making it undefined.
3884
+ * @return {!proto.UpdateEmployeeResponse} returns this
3885
+ */
3886
+ proto.UpdateEmployeeResponse.prototype.clearMeta = function() {
3887
+ return this.setMeta(undefined);
3888
+ };
3889
+
3890
+
3891
+ /**
3892
+ * Returns whether this field is set.
3893
+ * @return {boolean}
3894
+ */
3895
+ proto.UpdateEmployeeResponse.prototype.hasMeta = function() {
3896
+ return jspb.Message.getField(this, 2) != null;
3897
+ };
3898
+
3899
+
3900
+
3901
+
3902
+
3903
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3904
+ /**
3905
+ * Creates an object representation of this proto.
3906
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3907
+ * Optional fields that are not set will be set to undefined.
3908
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3909
+ * For the list of reserved names please see:
3910
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3911
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3912
+ * JSPB instance for transitional soy proto support:
3913
+ * http://goto/soy-param-migration
3914
+ * @return {!Object}
3915
+ */
3916
+ proto.EmployeeGetByIdResponse.prototype.toObject = function(opt_includeInstance) {
3917
+ return proto.EmployeeGetByIdResponse.toObject(opt_includeInstance, this);
3918
+ };
3919
+
3920
+
3921
+ /**
3922
+ * Static version of the {@see toObject} method.
3923
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3924
+ * the JSPB instance for transitional soy proto support:
3925
+ * http://goto/soy-param-migration
3926
+ * @param {!proto.EmployeeGetByIdResponse} msg The msg instance to transform.
3927
+ * @return {!Object}
3928
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3929
+ */
3930
+ proto.EmployeeGetByIdResponse.toObject = function(includeInstance, msg) {
3931
+ var f, obj = {
3932
+ employee: (f = msg.getEmployee()) && proto.Employee.toObject(includeInstance, f),
3933
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3934
+ };
3935
+
3936
+ if (includeInstance) {
3937
+ obj.$jspbMessageInstance = msg;
3938
+ }
3939
+ return obj;
3940
+ };
3941
+ }
3942
+
3943
+
3944
+ /**
3945
+ * Deserializes binary data (in protobuf wire format).
3946
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3947
+ * @return {!proto.EmployeeGetByIdResponse}
3948
+ */
3949
+ proto.EmployeeGetByIdResponse.deserializeBinary = function(bytes) {
3950
+ var reader = new jspb.BinaryReader(bytes);
3951
+ var msg = new proto.EmployeeGetByIdResponse;
3952
+ return proto.EmployeeGetByIdResponse.deserializeBinaryFromReader(msg, reader);
3953
+ };
3954
+
3955
+
3956
+ /**
3957
+ * Deserializes binary data (in protobuf wire format) from the
3958
+ * given reader into the given message object.
3959
+ * @param {!proto.EmployeeGetByIdResponse} msg The message object to deserialize into.
3960
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3961
+ * @return {!proto.EmployeeGetByIdResponse}
3962
+ */
3963
+ proto.EmployeeGetByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
3964
+ while (reader.nextField()) {
3965
+ if (reader.isEndGroup()) {
3966
+ break;
3967
+ }
3968
+ var field = reader.getFieldNumber();
3969
+ switch (field) {
3970
+ case 1:
3971
+ var value = new proto.Employee;
3972
+ reader.readMessage(value,proto.Employee.deserializeBinaryFromReader);
3973
+ msg.setEmployee(value);
3974
+ break;
3975
+ case 2:
3976
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3977
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3978
+ msg.setMeta(value);
3979
+ break;
3980
+ default:
3981
+ reader.skipField();
3982
+ break;
3983
+ }
3984
+ }
3985
+ return msg;
3986
+ };
3987
+
3988
+
3989
+ /**
3990
+ * Serializes the message to binary data (in protobuf wire format).
3991
+ * @return {!Uint8Array}
3992
+ */
3993
+ proto.EmployeeGetByIdResponse.prototype.serializeBinary = function() {
3994
+ var writer = new jspb.BinaryWriter();
3995
+ proto.EmployeeGetByIdResponse.serializeBinaryToWriter(this, writer);
3996
+ return writer.getResultBuffer();
3997
+ };
3998
+
3999
+
4000
+ /**
4001
+ * Serializes the given message to binary data (in protobuf wire
4002
+ * format), writing to the given BinaryWriter.
4003
+ * @param {!proto.EmployeeGetByIdResponse} message
4004
+ * @param {!jspb.BinaryWriter} writer
4005
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4006
+ */
4007
+ proto.EmployeeGetByIdResponse.serializeBinaryToWriter = function(message, writer) {
4008
+ var f = undefined;
4009
+ f = message.getEmployee();
4010
+ if (f != null) {
4011
+ writer.writeMessage(
4012
+ 1,
4013
+ f,
4014
+ proto.Employee.serializeBinaryToWriter
4015
+ );
4016
+ }
4017
+ f = message.getMeta();
4018
+ if (f != null) {
4019
+ writer.writeMessage(
4020
+ 2,
4021
+ f,
4022
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
4023
+ );
4024
+ }
4025
+ };
4026
+
4027
+
4028
+ /**
4029
+ * optional Employee employee = 1;
4030
+ * @return {?proto.Employee}
4031
+ */
4032
+ proto.EmployeeGetByIdResponse.prototype.getEmployee = function() {
4033
+ return /** @type{?proto.Employee} */ (
4034
+ jspb.Message.getWrapperField(this, proto.Employee, 1));
4035
+ };
4036
+
4037
+
4038
+ /**
4039
+ * @param {?proto.Employee|undefined} value
4040
+ * @return {!proto.EmployeeGetByIdResponse} returns this
4041
+ */
4042
+ proto.EmployeeGetByIdResponse.prototype.setEmployee = function(value) {
4043
+ return jspb.Message.setWrapperField(this, 1, value);
4044
+ };
4045
+
4046
+
4047
+ /**
4048
+ * Clears the message field making it undefined.
4049
+ * @return {!proto.EmployeeGetByIdResponse} returns this
4050
+ */
4051
+ proto.EmployeeGetByIdResponse.prototype.clearEmployee = function() {
4052
+ return this.setEmployee(undefined);
4053
+ };
4054
+
4055
+
4056
+ /**
4057
+ * Returns whether this field is set.
4058
+ * @return {boolean}
4059
+ */
4060
+ proto.EmployeeGetByIdResponse.prototype.hasEmployee = function() {
4061
+ return jspb.Message.getField(this, 1) != null;
4062
+ };
4063
+
4064
+
4065
+ /**
4066
+ * optional prisca.v1.global.meta.Meta meta = 2;
4067
+ * @return {?proto.prisca.v1.global.meta.Meta}
4068
+ */
4069
+ proto.EmployeeGetByIdResponse.prototype.getMeta = function() {
4070
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
4071
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
4072
+ };
4073
+
4074
+
4075
+ /**
4076
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
4077
+ * @return {!proto.EmployeeGetByIdResponse} returns this
4078
+ */
4079
+ proto.EmployeeGetByIdResponse.prototype.setMeta = function(value) {
4080
+ return jspb.Message.setWrapperField(this, 2, value);
4081
+ };
4082
+
4083
+
4084
+ /**
4085
+ * Clears the message field making it undefined.
4086
+ * @return {!proto.EmployeeGetByIdResponse} returns this
4087
+ */
4088
+ proto.EmployeeGetByIdResponse.prototype.clearMeta = function() {
4089
+ return this.setMeta(undefined);
4090
+ };
4091
+
4092
+
4093
+ /**
4094
+ * Returns whether this field is set.
4095
+ * @return {boolean}
4096
+ */
4097
+ proto.EmployeeGetByIdResponse.prototype.hasMeta = function() {
4098
+ return jspb.Message.getField(this, 2) != null;
4099
+ };
4100
+
4101
+
4102
+
4103
+
4104
+
4105
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4106
+ /**
4107
+ * Creates an object representation of this proto.
4108
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4109
+ * Optional fields that are not set will be set to undefined.
4110
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4111
+ * For the list of reserved names please see:
4112
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4113
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4114
+ * JSPB instance for transitional soy proto support:
4115
+ * http://goto/soy-param-migration
4116
+ * @return {!Object}
4117
+ */
4118
+ proto.DeleteEmployeeResponse.prototype.toObject = function(opt_includeInstance) {
4119
+ return proto.DeleteEmployeeResponse.toObject(opt_includeInstance, this);
4120
+ };
4121
+
4122
+
4123
+ /**
4124
+ * Static version of the {@see toObject} method.
4125
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4126
+ * the JSPB instance for transitional soy proto support:
4127
+ * http://goto/soy-param-migration
4128
+ * @param {!proto.DeleteEmployeeResponse} msg The msg instance to transform.
4129
+ * @return {!Object}
4130
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4131
+ */
4132
+ proto.DeleteEmployeeResponse.toObject = function(includeInstance, msg) {
4133
+ var f, obj = {
4134
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
4135
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
4136
+ };
4137
+
4138
+ if (includeInstance) {
4139
+ obj.$jspbMessageInstance = msg;
4140
+ }
4141
+ return obj;
4142
+ };
4143
+ }
4144
+
4145
+
4146
+ /**
4147
+ * Deserializes binary data (in protobuf wire format).
4148
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4149
+ * @return {!proto.DeleteEmployeeResponse}
4150
+ */
4151
+ proto.DeleteEmployeeResponse.deserializeBinary = function(bytes) {
4152
+ var reader = new jspb.BinaryReader(bytes);
4153
+ var msg = new proto.DeleteEmployeeResponse;
4154
+ return proto.DeleteEmployeeResponse.deserializeBinaryFromReader(msg, reader);
4155
+ };
4156
+
4157
+
4158
+ /**
4159
+ * Deserializes binary data (in protobuf wire format) from the
4160
+ * given reader into the given message object.
4161
+ * @param {!proto.DeleteEmployeeResponse} msg The message object to deserialize into.
4162
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4163
+ * @return {!proto.DeleteEmployeeResponse}
4164
+ */
4165
+ proto.DeleteEmployeeResponse.deserializeBinaryFromReader = function(msg, reader) {
4166
+ while (reader.nextField()) {
4167
+ if (reader.isEndGroup()) {
4168
+ break;
4169
+ }
4170
+ var field = reader.getFieldNumber();
4171
+ switch (field) {
4172
+ case 1:
4173
+ var value = /** @type {string} */ (reader.readString());
4174
+ msg.setReferencesId(value);
4175
+ break;
4176
+ case 2:
4177
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
4178
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
4179
+ msg.setMeta(value);
4180
+ break;
4181
+ default:
4182
+ reader.skipField();
4183
+ break;
4184
+ }
4185
+ }
4186
+ return msg;
4187
+ };
4188
+
4189
+
4190
+ /**
4191
+ * Serializes the message to binary data (in protobuf wire format).
4192
+ * @return {!Uint8Array}
4193
+ */
4194
+ proto.DeleteEmployeeResponse.prototype.serializeBinary = function() {
4195
+ var writer = new jspb.BinaryWriter();
4196
+ proto.DeleteEmployeeResponse.serializeBinaryToWriter(this, writer);
4197
+ return writer.getResultBuffer();
4198
+ };
4199
+
4200
+
4201
+ /**
4202
+ * Serializes the given message to binary data (in protobuf wire
4203
+ * format), writing to the given BinaryWriter.
4204
+ * @param {!proto.DeleteEmployeeResponse} message
4205
+ * @param {!jspb.BinaryWriter} writer
4206
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4207
+ */
4208
+ proto.DeleteEmployeeResponse.serializeBinaryToWriter = function(message, writer) {
4209
+ var f = undefined;
4210
+ f = message.getReferencesId();
4211
+ if (f.length > 0) {
4212
+ writer.writeString(
4213
+ 1,
4214
+ f
4215
+ );
4216
+ }
4217
+ f = message.getMeta();
4218
+ if (f != null) {
4219
+ writer.writeMessage(
4220
+ 2,
4221
+ f,
4222
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
4223
+ );
4224
+ }
4225
+ };
4226
+
4227
+
4228
+ /**
4229
+ * optional string references_id = 1;
4230
+ * @return {string}
4231
+ */
4232
+ proto.DeleteEmployeeResponse.prototype.getReferencesId = function() {
4233
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4234
+ };
4235
+
4236
+
4237
+ /**
4238
+ * @param {string} value
4239
+ * @return {!proto.DeleteEmployeeResponse} returns this
4240
+ */
4241
+ proto.DeleteEmployeeResponse.prototype.setReferencesId = function(value) {
4242
+ return jspb.Message.setProto3StringField(this, 1, value);
4243
+ };
4244
+
4245
+
4246
+ /**
4247
+ * optional prisca.v1.global.meta.Meta meta = 2;
4248
+ * @return {?proto.prisca.v1.global.meta.Meta}
4249
+ */
4250
+ proto.DeleteEmployeeResponse.prototype.getMeta = function() {
4251
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
4252
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
4253
+ };
4254
+
4255
+
4256
+ /**
4257
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
4258
+ * @return {!proto.DeleteEmployeeResponse} returns this
4259
+ */
4260
+ proto.DeleteEmployeeResponse.prototype.setMeta = function(value) {
4261
+ return jspb.Message.setWrapperField(this, 2, value);
4262
+ };
4263
+
4264
+
4265
+ /**
4266
+ * Clears the message field making it undefined.
4267
+ * @return {!proto.DeleteEmployeeResponse} returns this
4268
+ */
4269
+ proto.DeleteEmployeeResponse.prototype.clearMeta = function() {
4270
+ return this.setMeta(undefined);
4271
+ };
4272
+
4273
+
4274
+ /**
4275
+ * Returns whether this field is set.
4276
+ * @return {boolean}
4277
+ */
4278
+ proto.DeleteEmployeeResponse.prototype.hasMeta = function() {
4279
+ return jspb.Message.getField(this, 2) != null;
4280
+ };
4281
+
4282
+
4283
+ goog.object.extend(exports, proto);