@aldiokta/protocgen 1.1.44 → 1.1.45

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