@aldiokta/protocgen 1.0.56 → 1.0.58

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