@aldiokta/protocgen 1.1.43 → 1.1.45

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