@aldiokta/protocgen 1.1.23 → 1.1.25

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