@aldiokta/protocgen 1.1.21 → 1.1.23

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 (165) 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 +221 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +89 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +281 -0
  7. package/prisca/v1/core/auth/auth.proto +150 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +55 -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 +37 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +85 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +134 -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 +66 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +96 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +289 -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 +75 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/number_range/number_range.proto +89 -0
  29. package/prisca/v1/core/organization/organization.proto +94 -0
  30. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  31. package/prisca/v1/core/price_condition/price_condition.proto +93 -0
  32. package/prisca/v1/core/procurement/procurement.proto +54 -0
  33. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  34. package/prisca/v1/core/report/report.proto +90 -0
  35. package/prisca/v1/core/report/user_report.proto +74 -0
  36. package/prisca/v1/core/tax_code/tax_code.proto +82 -0
  37. package/prisca/v1/core/term_of_payment/term_of_payment.proto +74 -0
  38. package/prisca/v1/core/transaction_builder/transaction_builder.proto +325 -0
  39. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
  40. package/prisca/v1/core/users/users.proto +55 -0
  41. package/prisca/v1/core/work_location/work_location.proto +122 -0
  42. package/prisca/v1/core/workflow/workflow.proto +218 -0
  43. package/prisca/v1/delivery_order/delivery_order.proto +147 -0
  44. package/prisca/v1/document_type/document_type.proto +82 -0
  45. package/prisca/v1/general_ledger_account/general_ledger_account.proto +100 -0
  46. package/prisca/v1/global/meta/meta.proto +57 -0
  47. package/prisca/v1/good_receipt/good_receipt.proto +11 -0
  48. package/prisca/v1/purchase_order/purchase_order.proto +157 -0
  49. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +306 -0
  50. package/prisca/v1/purchasing_group/purchasing_group.proto +89 -0
  51. package/prisca/v1/purchasing_organization/purchasing_organization.proto +79 -0
  52. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +81 -0
  53. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  54. package/prisca/v1/quotation/quotation.proto +118 -0
  55. package/prisca/v1/request_for_quotation/request_for_quotation.proto +174 -0
  56. package/prisca/v1/valuation/valuation.proto +223 -0
  57. package/prisca/v1/vendor_domain/vendor_domain.proto +226 -0
  58. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  59. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2674
  60. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  61. package/prisca/v1/account_group/account_group_pb.js +0 -2937
  62. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -229
  63. package/prisca/v1/bidding/bidding_pb.js +0 -6335
  64. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  65. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2907
  66. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -544
  67. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -9383
  68. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -423
  69. package/prisca/v1/core/auth/auth_pb.js +0 -4497
  70. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  71. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1531
  72. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  73. package/prisca/v1/core/company/company_pb.js +0 -3048
  74. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  75. package/prisca/v1/core/currency/currency_pb.js +0 -2522
  76. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  77. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  78. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  79. package/prisca/v1/core/employee/employee_pb.js +0 -4283
  80. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -44
  81. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -1052
  82. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -144
  83. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2497
  84. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  85. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -3910
  86. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  87. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2605
  88. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  89. package/prisca/v1/core/job_position/job_position_pb.js +0 -3762
  90. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  91. package/prisca/v1/core/job_title/job_title_pb.js +0 -2958
  92. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -45
  93. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -1188
  94. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -200
  95. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3191
  96. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  97. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
  98. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  99. package/prisca/v1/core/location/location_pb.js +0 -10879
  100. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  101. package/prisca/v1/core/material/material_pb.js +0 -4180
  102. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  103. package/prisca/v1/core/material_group/material_group_pb.js +0 -2776
  104. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -149
  105. package/prisca/v1/core/material_type/material_type_pb.js +0 -2697
  106. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  107. package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
  108. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  109. package/prisca/v1/core/messaging/messaging_pb.js +0 -896
  110. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  111. package/prisca/v1/core/number_range/number_range_pb.js +0 -2926
  112. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  113. package/prisca/v1/core/organization/organization_pb.js +0 -3032
  114. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  115. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2545
  116. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -146
  117. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -2654
  118. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  119. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  120. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  121. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  122. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  123. package/prisca/v1/core/report/report_pb.js +0 -2822
  124. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  125. package/prisca/v1/core/report/user_report_pb.js +0 -2452
  126. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  127. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2582
  128. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -144
  129. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2105
  130. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -498
  131. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -10976
  132. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  133. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  134. package/prisca/v1/core/users/users_grpc_pb.js +0 -45
  135. package/prisca/v1/core/users/users_pb.js +0 -1246
  136. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  137. package/prisca/v1/core/work_location/work_location_pb.js +0 -3972
  138. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  139. package/prisca/v1/core/workflow/workflow_pb.js +0 -7525
  140. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
  141. package/prisca/v1/document_type/document_type_pb.js +0 -2746
  142. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  143. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
  144. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  145. package/prisca/v1/global/meta/meta_pb.js +0 -1179
  146. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -228
  147. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -4959
  148. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -523
  149. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -9917
  150. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  151. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2875
  152. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -145
  153. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2139
  154. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -146
  155. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2183
  156. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  157. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2543
  158. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -152
  159. package/prisca/v1/quotation/quotation_pb.js +0 -2319
  160. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -192
  161. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -5703
  162. package/prisca/v1/valuation/valuation_grpc_pb.js +0 -365
  163. package/prisca/v1/valuation/valuation_pb.js +0 -7729
  164. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -224
  165. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -6333
@@ -1,2543 +0,0 @@
1
- // source: prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto
2
- /**
3
- * @fileoverview
4
- * @enhanceable
5
- * @suppress {missingRequire} reports error on implicit type usages.
6
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
- * field starts with 'MSG_' and isn't a translatable message.
8
- * @public
9
- */
10
- // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
- // @ts-nocheck
13
-
14
- var jspb = require('google-protobuf');
15
- var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
23
-
24
- var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
25
- goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
- var prisca_v1_purchasing_organization_purchasing_organization_pb = require('../../../prisca/v1/purchasing_organization/purchasing_organization_pb.js');
27
- goog.object.extend(proto, prisca_v1_purchasing_organization_purchasing_organization_pb);
28
- goog.exportSymbol('proto.BasePlantPOrganization', null, global);
29
- goog.exportSymbol('proto.CreatePlantPOrganizationRequest', null, global);
30
- goog.exportSymbol('proto.CreatePlantPOrganizationResponse', null, global);
31
- goog.exportSymbol('proto.GetListPlantPOrganizationRequest', null, global);
32
- goog.exportSymbol('proto.GetListPlantPOrganizationResponse', null, global);
33
- goog.exportSymbol('proto.POWorkLocation', null, global);
34
- goog.exportSymbol('proto.PlantPOrganization', null, global);
35
- goog.exportSymbol('proto.PlantPOrganizationGetByIdRequest', null, global);
36
- goog.exportSymbol('proto.PlantPOrganizationGetByIdResponse', null, global);
37
- goog.exportSymbol('proto.UpdatePlantPOrganizationRequest', null, global);
38
- goog.exportSymbol('proto.UpdatePlantPOrganizationResponse', null, global);
39
- /**
40
- * Generated by JsPbCodeGenerator.
41
- * @param {Array=} opt_data Optional initial data array, typically from a
42
- * server response, or constructed directly in Javascript. The array is used
43
- * in place and becomes part of the constructed object. It is not cloned.
44
- * If no data is provided, the constructed object will be empty, but still
45
- * valid.
46
- * @extends {jspb.Message}
47
- * @constructor
48
- */
49
- proto.PlantPOrganization = function(opt_data) {
50
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
51
- };
52
- goog.inherits(proto.PlantPOrganization, jspb.Message);
53
- if (goog.DEBUG && !COMPILED) {
54
- /**
55
- * @public
56
- * @override
57
- */
58
- proto.PlantPOrganization.displayName = 'proto.PlantPOrganization';
59
- }
60
- /**
61
- * Generated by JsPbCodeGenerator.
62
- * @param {Array=} opt_data Optional initial data array, typically from a
63
- * server response, or constructed directly in Javascript. The array is used
64
- * in place and becomes part of the constructed object. It is not cloned.
65
- * If no data is provided, the constructed object will be empty, but still
66
- * valid.
67
- * @extends {jspb.Message}
68
- * @constructor
69
- */
70
- proto.BasePlantPOrganization = function(opt_data) {
71
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
72
- };
73
- goog.inherits(proto.BasePlantPOrganization, jspb.Message);
74
- if (goog.DEBUG && !COMPILED) {
75
- /**
76
- * @public
77
- * @override
78
- */
79
- proto.BasePlantPOrganization.displayName = 'proto.BasePlantPOrganization';
80
- }
81
- /**
82
- * Generated by JsPbCodeGenerator.
83
- * @param {Array=} opt_data Optional initial data array, typically from a
84
- * server response, or constructed directly in Javascript. The array is used
85
- * in place and becomes part of the constructed object. It is not cloned.
86
- * If no data is provided, the constructed object will be empty, but still
87
- * valid.
88
- * @extends {jspb.Message}
89
- * @constructor
90
- */
91
- proto.POWorkLocation = function(opt_data) {
92
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
93
- };
94
- goog.inherits(proto.POWorkLocation, jspb.Message);
95
- if (goog.DEBUG && !COMPILED) {
96
- /**
97
- * @public
98
- * @override
99
- */
100
- proto.POWorkLocation.displayName = 'proto.POWorkLocation';
101
- }
102
- /**
103
- * Generated by JsPbCodeGenerator.
104
- * @param {Array=} opt_data Optional initial data array, typically from a
105
- * server response, or constructed directly in Javascript. The array is used
106
- * in place and becomes part of the constructed object. It is not cloned.
107
- * If no data is provided, the constructed object will be empty, but still
108
- * valid.
109
- * @extends {jspb.Message}
110
- * @constructor
111
- */
112
- proto.CreatePlantPOrganizationRequest = function(opt_data) {
113
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
114
- };
115
- goog.inherits(proto.CreatePlantPOrganizationRequest, jspb.Message);
116
- if (goog.DEBUG && !COMPILED) {
117
- /**
118
- * @public
119
- * @override
120
- */
121
- proto.CreatePlantPOrganizationRequest.displayName = 'proto.CreatePlantPOrganizationRequest';
122
- }
123
- /**
124
- * Generated by JsPbCodeGenerator.
125
- * @param {Array=} opt_data Optional initial data array, typically from a
126
- * server response, or constructed directly in Javascript. The array is used
127
- * in place and becomes part of the constructed object. It is not cloned.
128
- * If no data is provided, the constructed object will be empty, but still
129
- * valid.
130
- * @extends {jspb.Message}
131
- * @constructor
132
- */
133
- proto.UpdatePlantPOrganizationRequest = function(opt_data) {
134
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
135
- };
136
- goog.inherits(proto.UpdatePlantPOrganizationRequest, jspb.Message);
137
- if (goog.DEBUG && !COMPILED) {
138
- /**
139
- * @public
140
- * @override
141
- */
142
- proto.UpdatePlantPOrganizationRequest.displayName = 'proto.UpdatePlantPOrganizationRequest';
143
- }
144
- /**
145
- * Generated by JsPbCodeGenerator.
146
- * @param {Array=} opt_data Optional initial data array, typically from a
147
- * server response, or constructed directly in Javascript. The array is used
148
- * in place and becomes part of the constructed object. It is not cloned.
149
- * If no data is provided, the constructed object will be empty, but still
150
- * valid.
151
- * @extends {jspb.Message}
152
- * @constructor
153
- */
154
- proto.GetListPlantPOrganizationRequest = function(opt_data) {
155
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
156
- };
157
- goog.inherits(proto.GetListPlantPOrganizationRequest, jspb.Message);
158
- if (goog.DEBUG && !COMPILED) {
159
- /**
160
- * @public
161
- * @override
162
- */
163
- proto.GetListPlantPOrganizationRequest.displayName = 'proto.GetListPlantPOrganizationRequest';
164
- }
165
- /**
166
- * Generated by JsPbCodeGenerator.
167
- * @param {Array=} opt_data Optional initial data array, typically from a
168
- * server response, or constructed directly in Javascript. The array is used
169
- * in place and becomes part of the constructed object. It is not cloned.
170
- * If no data is provided, the constructed object will be empty, but still
171
- * valid.
172
- * @extends {jspb.Message}
173
- * @constructor
174
- */
175
- proto.PlantPOrganizationGetByIdRequest = function(opt_data) {
176
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
177
- };
178
- goog.inherits(proto.PlantPOrganizationGetByIdRequest, jspb.Message);
179
- if (goog.DEBUG && !COMPILED) {
180
- /**
181
- * @public
182
- * @override
183
- */
184
- proto.PlantPOrganizationGetByIdRequest.displayName = 'proto.PlantPOrganizationGetByIdRequest';
185
- }
186
- /**
187
- * Generated by JsPbCodeGenerator.
188
- * @param {Array=} opt_data Optional initial data array, typically from a
189
- * server response, or constructed directly in Javascript. The array is used
190
- * in place and becomes part of the constructed object. It is not cloned.
191
- * If no data is provided, the constructed object will be empty, but still
192
- * valid.
193
- * @extends {jspb.Message}
194
- * @constructor
195
- */
196
- proto.CreatePlantPOrganizationResponse = function(opt_data) {
197
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
198
- };
199
- goog.inherits(proto.CreatePlantPOrganizationResponse, jspb.Message);
200
- if (goog.DEBUG && !COMPILED) {
201
- /**
202
- * @public
203
- * @override
204
- */
205
- proto.CreatePlantPOrganizationResponse.displayName = 'proto.CreatePlantPOrganizationResponse';
206
- }
207
- /**
208
- * Generated by JsPbCodeGenerator.
209
- * @param {Array=} opt_data Optional initial data array, typically from a
210
- * server response, or constructed directly in Javascript. The array is used
211
- * in place and becomes part of the constructed object. It is not cloned.
212
- * If no data is provided, the constructed object will be empty, but still
213
- * valid.
214
- * @extends {jspb.Message}
215
- * @constructor
216
- */
217
- proto.GetListPlantPOrganizationResponse = function(opt_data) {
218
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListPlantPOrganizationResponse.repeatedFields_, null);
219
- };
220
- goog.inherits(proto.GetListPlantPOrganizationResponse, jspb.Message);
221
- if (goog.DEBUG && !COMPILED) {
222
- /**
223
- * @public
224
- * @override
225
- */
226
- proto.GetListPlantPOrganizationResponse.displayName = 'proto.GetListPlantPOrganizationResponse';
227
- }
228
- /**
229
- * Generated by JsPbCodeGenerator.
230
- * @param {Array=} opt_data Optional initial data array, typically from a
231
- * server response, or constructed directly in Javascript. The array is used
232
- * in place and becomes part of the constructed object. It is not cloned.
233
- * If no data is provided, the constructed object will be empty, but still
234
- * valid.
235
- * @extends {jspb.Message}
236
- * @constructor
237
- */
238
- proto.UpdatePlantPOrganizationResponse = function(opt_data) {
239
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
240
- };
241
- goog.inherits(proto.UpdatePlantPOrganizationResponse, jspb.Message);
242
- if (goog.DEBUG && !COMPILED) {
243
- /**
244
- * @public
245
- * @override
246
- */
247
- proto.UpdatePlantPOrganizationResponse.displayName = 'proto.UpdatePlantPOrganizationResponse';
248
- }
249
- /**
250
- * Generated by JsPbCodeGenerator.
251
- * @param {Array=} opt_data Optional initial data array, typically from a
252
- * server response, or constructed directly in Javascript. The array is used
253
- * in place and becomes part of the constructed object. It is not cloned.
254
- * If no data is provided, the constructed object will be empty, but still
255
- * valid.
256
- * @extends {jspb.Message}
257
- * @constructor
258
- */
259
- proto.PlantPOrganizationGetByIdResponse = function(opt_data) {
260
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
261
- };
262
- goog.inherits(proto.PlantPOrganizationGetByIdResponse, jspb.Message);
263
- if (goog.DEBUG && !COMPILED) {
264
- /**
265
- * @public
266
- * @override
267
- */
268
- proto.PlantPOrganizationGetByIdResponse.displayName = 'proto.PlantPOrganizationGetByIdResponse';
269
- }
270
-
271
-
272
-
273
- if (jspb.Message.GENERATE_TO_OBJECT) {
274
- /**
275
- * Creates an object representation of this proto.
276
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
277
- * Optional fields that are not set will be set to undefined.
278
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
279
- * For the list of reserved names please see:
280
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
281
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
282
- * JSPB instance for transitional soy proto support:
283
- * http://goto/soy-param-migration
284
- * @return {!Object}
285
- */
286
- proto.PlantPOrganization.prototype.toObject = function(opt_includeInstance) {
287
- return proto.PlantPOrganization.toObject(opt_includeInstance, this);
288
- };
289
-
290
-
291
- /**
292
- * Static version of the {@see toObject} method.
293
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
294
- * the JSPB instance for transitional soy proto support:
295
- * http://goto/soy-param-migration
296
- * @param {!proto.PlantPOrganization} msg The msg instance to transform.
297
- * @return {!Object}
298
- * @suppress {unusedLocalVariables} f is only used for nested messages
299
- */
300
- proto.PlantPOrganization.toObject = function(includeInstance, msg) {
301
- var f, obj = {
302
- purchasingOrganizationReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
303
- plantReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
304
- code: jspb.Message.getFieldWithDefault(msg, 3, ""),
305
- description: jspb.Message.getFieldWithDefault(msg, 4, ""),
306
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 5, "")
307
- };
308
-
309
- if (includeInstance) {
310
- obj.$jspbMessageInstance = msg;
311
- }
312
- return obj;
313
- };
314
- }
315
-
316
-
317
- /**
318
- * Deserializes binary data (in protobuf wire format).
319
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
320
- * @return {!proto.PlantPOrganization}
321
- */
322
- proto.PlantPOrganization.deserializeBinary = function(bytes) {
323
- var reader = new jspb.BinaryReader(bytes);
324
- var msg = new proto.PlantPOrganization;
325
- return proto.PlantPOrganization.deserializeBinaryFromReader(msg, reader);
326
- };
327
-
328
-
329
- /**
330
- * Deserializes binary data (in protobuf wire format) from the
331
- * given reader into the given message object.
332
- * @param {!proto.PlantPOrganization} msg The message object to deserialize into.
333
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
334
- * @return {!proto.PlantPOrganization}
335
- */
336
- proto.PlantPOrganization.deserializeBinaryFromReader = function(msg, reader) {
337
- while (reader.nextField()) {
338
- if (reader.isEndGroup()) {
339
- break;
340
- }
341
- var field = reader.getFieldNumber();
342
- switch (field) {
343
- case 1:
344
- var value = /** @type {string} */ (reader.readString());
345
- msg.setPurchasingOrganizationReferencesId(value);
346
- break;
347
- case 2:
348
- var value = /** @type {string} */ (reader.readString());
349
- msg.setPlantReferencesId(value);
350
- break;
351
- case 3:
352
- var value = /** @type {string} */ (reader.readString());
353
- msg.setCode(value);
354
- break;
355
- case 4:
356
- var value = /** @type {string} */ (reader.readString());
357
- msg.setDescription(value);
358
- break;
359
- case 5:
360
- var value = /** @type {string} */ (reader.readString());
361
- msg.setCompaniesReferencesId(value);
362
- break;
363
- default:
364
- reader.skipField();
365
- break;
366
- }
367
- }
368
- return msg;
369
- };
370
-
371
-
372
- /**
373
- * Serializes the message to binary data (in protobuf wire format).
374
- * @return {!Uint8Array}
375
- */
376
- proto.PlantPOrganization.prototype.serializeBinary = function() {
377
- var writer = new jspb.BinaryWriter();
378
- proto.PlantPOrganization.serializeBinaryToWriter(this, writer);
379
- return writer.getResultBuffer();
380
- };
381
-
382
-
383
- /**
384
- * Serializes the given message to binary data (in protobuf wire
385
- * format), writing to the given BinaryWriter.
386
- * @param {!proto.PlantPOrganization} message
387
- * @param {!jspb.BinaryWriter} writer
388
- * @suppress {unusedLocalVariables} f is only used for nested messages
389
- */
390
- proto.PlantPOrganization.serializeBinaryToWriter = function(message, writer) {
391
- var f = undefined;
392
- f = message.getPurchasingOrganizationReferencesId();
393
- if (f.length > 0) {
394
- writer.writeString(
395
- 1,
396
- f
397
- );
398
- }
399
- f = message.getPlantReferencesId();
400
- if (f.length > 0) {
401
- writer.writeString(
402
- 2,
403
- f
404
- );
405
- }
406
- f = message.getCode();
407
- if (f.length > 0) {
408
- writer.writeString(
409
- 3,
410
- f
411
- );
412
- }
413
- f = message.getDescription();
414
- if (f.length > 0) {
415
- writer.writeString(
416
- 4,
417
- f
418
- );
419
- }
420
- f = message.getCompaniesReferencesId();
421
- if (f.length > 0) {
422
- writer.writeString(
423
- 5,
424
- f
425
- );
426
- }
427
- };
428
-
429
-
430
- /**
431
- * optional string purchasing_organization_references_id = 1;
432
- * @return {string}
433
- */
434
- proto.PlantPOrganization.prototype.getPurchasingOrganizationReferencesId = function() {
435
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
436
- };
437
-
438
-
439
- /**
440
- * @param {string} value
441
- * @return {!proto.PlantPOrganization} returns this
442
- */
443
- proto.PlantPOrganization.prototype.setPurchasingOrganizationReferencesId = function(value) {
444
- return jspb.Message.setProto3StringField(this, 1, value);
445
- };
446
-
447
-
448
- /**
449
- * optional string plant_references_id = 2;
450
- * @return {string}
451
- */
452
- proto.PlantPOrganization.prototype.getPlantReferencesId = function() {
453
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
454
- };
455
-
456
-
457
- /**
458
- * @param {string} value
459
- * @return {!proto.PlantPOrganization} returns this
460
- */
461
- proto.PlantPOrganization.prototype.setPlantReferencesId = function(value) {
462
- return jspb.Message.setProto3StringField(this, 2, value);
463
- };
464
-
465
-
466
- /**
467
- * optional string code = 3;
468
- * @return {string}
469
- */
470
- proto.PlantPOrganization.prototype.getCode = function() {
471
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
472
- };
473
-
474
-
475
- /**
476
- * @param {string} value
477
- * @return {!proto.PlantPOrganization} returns this
478
- */
479
- proto.PlantPOrganization.prototype.setCode = function(value) {
480
- return jspb.Message.setProto3StringField(this, 3, value);
481
- };
482
-
483
-
484
- /**
485
- * optional string description = 4;
486
- * @return {string}
487
- */
488
- proto.PlantPOrganization.prototype.getDescription = function() {
489
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
490
- };
491
-
492
-
493
- /**
494
- * @param {string} value
495
- * @return {!proto.PlantPOrganization} returns this
496
- */
497
- proto.PlantPOrganization.prototype.setDescription = function(value) {
498
- return jspb.Message.setProto3StringField(this, 4, value);
499
- };
500
-
501
-
502
- /**
503
- * optional string companies_references_id = 5;
504
- * @return {string}
505
- */
506
- proto.PlantPOrganization.prototype.getCompaniesReferencesId = function() {
507
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
508
- };
509
-
510
-
511
- /**
512
- * @param {string} value
513
- * @return {!proto.PlantPOrganization} returns this
514
- */
515
- proto.PlantPOrganization.prototype.setCompaniesReferencesId = function(value) {
516
- return jspb.Message.setProto3StringField(this, 5, value);
517
- };
518
-
519
-
520
-
521
-
522
-
523
- if (jspb.Message.GENERATE_TO_OBJECT) {
524
- /**
525
- * Creates an object representation of this proto.
526
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
527
- * Optional fields that are not set will be set to undefined.
528
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
529
- * For the list of reserved names please see:
530
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
531
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
532
- * JSPB instance for transitional soy proto support:
533
- * http://goto/soy-param-migration
534
- * @return {!Object}
535
- */
536
- proto.BasePlantPOrganization.prototype.toObject = function(opt_includeInstance) {
537
- return proto.BasePlantPOrganization.toObject(opt_includeInstance, this);
538
- };
539
-
540
-
541
- /**
542
- * Static version of the {@see toObject} method.
543
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
544
- * the JSPB instance for transitional soy proto support:
545
- * http://goto/soy-param-migration
546
- * @param {!proto.BasePlantPOrganization} msg The msg instance to transform.
547
- * @return {!Object}
548
- * @suppress {unusedLocalVariables} f is only used for nested messages
549
- */
550
- proto.BasePlantPOrganization.toObject = function(includeInstance, msg) {
551
- var f, obj = {
552
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
553
- plant: (f = msg.getPlant()) && proto.POWorkLocation.toObject(includeInstance, f),
554
- code: jspb.Message.getFieldWithDefault(msg, 3, ""),
555
- description: jspb.Message.getFieldWithDefault(msg, 4, ""),
556
- purchasingOrganizationReferencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
557
- purchasingOrganizations: (f = msg.getPurchasingOrganizations()) && prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.toObject(includeInstance, f),
558
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 7, "")
559
- };
560
-
561
- if (includeInstance) {
562
- obj.$jspbMessageInstance = msg;
563
- }
564
- return obj;
565
- };
566
- }
567
-
568
-
569
- /**
570
- * Deserializes binary data (in protobuf wire format).
571
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
572
- * @return {!proto.BasePlantPOrganization}
573
- */
574
- proto.BasePlantPOrganization.deserializeBinary = function(bytes) {
575
- var reader = new jspb.BinaryReader(bytes);
576
- var msg = new proto.BasePlantPOrganization;
577
- return proto.BasePlantPOrganization.deserializeBinaryFromReader(msg, reader);
578
- };
579
-
580
-
581
- /**
582
- * Deserializes binary data (in protobuf wire format) from the
583
- * given reader into the given message object.
584
- * @param {!proto.BasePlantPOrganization} msg The message object to deserialize into.
585
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
586
- * @return {!proto.BasePlantPOrganization}
587
- */
588
- proto.BasePlantPOrganization.deserializeBinaryFromReader = function(msg, reader) {
589
- while (reader.nextField()) {
590
- if (reader.isEndGroup()) {
591
- break;
592
- }
593
- var field = reader.getFieldNumber();
594
- switch (field) {
595
- case 1:
596
- var value = /** @type {string} */ (reader.readString());
597
- msg.setReferencesId(value);
598
- break;
599
- case 2:
600
- var value = new proto.POWorkLocation;
601
- reader.readMessage(value,proto.POWorkLocation.deserializeBinaryFromReader);
602
- msg.setPlant(value);
603
- break;
604
- case 3:
605
- var value = /** @type {string} */ (reader.readString());
606
- msg.setCode(value);
607
- break;
608
- case 4:
609
- var value = /** @type {string} */ (reader.readString());
610
- msg.setDescription(value);
611
- break;
612
- case 5:
613
- var value = /** @type {string} */ (reader.readString());
614
- msg.setPurchasingOrganizationReferencesId(value);
615
- break;
616
- case 6:
617
- var value = new prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization;
618
- reader.readMessage(value,prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.deserializeBinaryFromReader);
619
- msg.setPurchasingOrganizations(value);
620
- break;
621
- case 7:
622
- var value = /** @type {string} */ (reader.readString());
623
- msg.setCompaniesReferencesId(value);
624
- break;
625
- default:
626
- reader.skipField();
627
- break;
628
- }
629
- }
630
- return msg;
631
- };
632
-
633
-
634
- /**
635
- * Serializes the message to binary data (in protobuf wire format).
636
- * @return {!Uint8Array}
637
- */
638
- proto.BasePlantPOrganization.prototype.serializeBinary = function() {
639
- var writer = new jspb.BinaryWriter();
640
- proto.BasePlantPOrganization.serializeBinaryToWriter(this, writer);
641
- return writer.getResultBuffer();
642
- };
643
-
644
-
645
- /**
646
- * Serializes the given message to binary data (in protobuf wire
647
- * format), writing to the given BinaryWriter.
648
- * @param {!proto.BasePlantPOrganization} message
649
- * @param {!jspb.BinaryWriter} writer
650
- * @suppress {unusedLocalVariables} f is only used for nested messages
651
- */
652
- proto.BasePlantPOrganization.serializeBinaryToWriter = function(message, writer) {
653
- var f = undefined;
654
- f = message.getReferencesId();
655
- if (f.length > 0) {
656
- writer.writeString(
657
- 1,
658
- f
659
- );
660
- }
661
- f = message.getPlant();
662
- if (f != null) {
663
- writer.writeMessage(
664
- 2,
665
- f,
666
- proto.POWorkLocation.serializeBinaryToWriter
667
- );
668
- }
669
- f = message.getCode();
670
- if (f.length > 0) {
671
- writer.writeString(
672
- 3,
673
- f
674
- );
675
- }
676
- f = message.getDescription();
677
- if (f.length > 0) {
678
- writer.writeString(
679
- 4,
680
- f
681
- );
682
- }
683
- f = message.getPurchasingOrganizationReferencesId();
684
- if (f.length > 0) {
685
- writer.writeString(
686
- 5,
687
- f
688
- );
689
- }
690
- f = message.getPurchasingOrganizations();
691
- if (f != null) {
692
- writer.writeMessage(
693
- 6,
694
- f,
695
- prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.serializeBinaryToWriter
696
- );
697
- }
698
- f = message.getCompaniesReferencesId();
699
- if (f.length > 0) {
700
- writer.writeString(
701
- 7,
702
- f
703
- );
704
- }
705
- };
706
-
707
-
708
- /**
709
- * optional string references_id = 1;
710
- * @return {string}
711
- */
712
- proto.BasePlantPOrganization.prototype.getReferencesId = function() {
713
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
714
- };
715
-
716
-
717
- /**
718
- * @param {string} value
719
- * @return {!proto.BasePlantPOrganization} returns this
720
- */
721
- proto.BasePlantPOrganization.prototype.setReferencesId = function(value) {
722
- return jspb.Message.setProto3StringField(this, 1, value);
723
- };
724
-
725
-
726
- /**
727
- * optional POWorkLocation plant = 2;
728
- * @return {?proto.POWorkLocation}
729
- */
730
- proto.BasePlantPOrganization.prototype.getPlant = function() {
731
- return /** @type{?proto.POWorkLocation} */ (
732
- jspb.Message.getWrapperField(this, proto.POWorkLocation, 2));
733
- };
734
-
735
-
736
- /**
737
- * @param {?proto.POWorkLocation|undefined} value
738
- * @return {!proto.BasePlantPOrganization} returns this
739
- */
740
- proto.BasePlantPOrganization.prototype.setPlant = function(value) {
741
- return jspb.Message.setWrapperField(this, 2, value);
742
- };
743
-
744
-
745
- /**
746
- * Clears the message field making it undefined.
747
- * @return {!proto.BasePlantPOrganization} returns this
748
- */
749
- proto.BasePlantPOrganization.prototype.clearPlant = function() {
750
- return this.setPlant(undefined);
751
- };
752
-
753
-
754
- /**
755
- * Returns whether this field is set.
756
- * @return {boolean}
757
- */
758
- proto.BasePlantPOrganization.prototype.hasPlant = function() {
759
- return jspb.Message.getField(this, 2) != null;
760
- };
761
-
762
-
763
- /**
764
- * optional string code = 3;
765
- * @return {string}
766
- */
767
- proto.BasePlantPOrganization.prototype.getCode = function() {
768
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
769
- };
770
-
771
-
772
- /**
773
- * @param {string} value
774
- * @return {!proto.BasePlantPOrganization} returns this
775
- */
776
- proto.BasePlantPOrganization.prototype.setCode = function(value) {
777
- return jspb.Message.setProto3StringField(this, 3, value);
778
- };
779
-
780
-
781
- /**
782
- * optional string description = 4;
783
- * @return {string}
784
- */
785
- proto.BasePlantPOrganization.prototype.getDescription = function() {
786
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
787
- };
788
-
789
-
790
- /**
791
- * @param {string} value
792
- * @return {!proto.BasePlantPOrganization} returns this
793
- */
794
- proto.BasePlantPOrganization.prototype.setDescription = function(value) {
795
- return jspb.Message.setProto3StringField(this, 4, value);
796
- };
797
-
798
-
799
- /**
800
- * optional string purchasing_organization_references_id = 5;
801
- * @return {string}
802
- */
803
- proto.BasePlantPOrganization.prototype.getPurchasingOrganizationReferencesId = function() {
804
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
805
- };
806
-
807
-
808
- /**
809
- * @param {string} value
810
- * @return {!proto.BasePlantPOrganization} returns this
811
- */
812
- proto.BasePlantPOrganization.prototype.setPurchasingOrganizationReferencesId = function(value) {
813
- return jspb.Message.setProto3StringField(this, 5, value);
814
- };
815
-
816
-
817
- /**
818
- * optional PurchasingOrganization purchasing_organizations = 6;
819
- * @return {?proto.PurchasingOrganization}
820
- */
821
- proto.BasePlantPOrganization.prototype.getPurchasingOrganizations = function() {
822
- return /** @type{?proto.PurchasingOrganization} */ (
823
- jspb.Message.getWrapperField(this, prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization, 6));
824
- };
825
-
826
-
827
- /**
828
- * @param {?proto.PurchasingOrganization|undefined} value
829
- * @return {!proto.BasePlantPOrganization} returns this
830
- */
831
- proto.BasePlantPOrganization.prototype.setPurchasingOrganizations = function(value) {
832
- return jspb.Message.setWrapperField(this, 6, value);
833
- };
834
-
835
-
836
- /**
837
- * Clears the message field making it undefined.
838
- * @return {!proto.BasePlantPOrganization} returns this
839
- */
840
- proto.BasePlantPOrganization.prototype.clearPurchasingOrganizations = function() {
841
- return this.setPurchasingOrganizations(undefined);
842
- };
843
-
844
-
845
- /**
846
- * Returns whether this field is set.
847
- * @return {boolean}
848
- */
849
- proto.BasePlantPOrganization.prototype.hasPurchasingOrganizations = function() {
850
- return jspb.Message.getField(this, 6) != null;
851
- };
852
-
853
-
854
- /**
855
- * optional string companies_references_id = 7;
856
- * @return {string}
857
- */
858
- proto.BasePlantPOrganization.prototype.getCompaniesReferencesId = function() {
859
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
860
- };
861
-
862
-
863
- /**
864
- * @param {string} value
865
- * @return {!proto.BasePlantPOrganization} returns this
866
- */
867
- proto.BasePlantPOrganization.prototype.setCompaniesReferencesId = function(value) {
868
- return jspb.Message.setProto3StringField(this, 7, value);
869
- };
870
-
871
-
872
-
873
-
874
-
875
- if (jspb.Message.GENERATE_TO_OBJECT) {
876
- /**
877
- * Creates an object representation of this proto.
878
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
879
- * Optional fields that are not set will be set to undefined.
880
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
881
- * For the list of reserved names please see:
882
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
883
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
884
- * JSPB instance for transitional soy proto support:
885
- * http://goto/soy-param-migration
886
- * @return {!Object}
887
- */
888
- proto.POWorkLocation.prototype.toObject = function(opt_includeInstance) {
889
- return proto.POWorkLocation.toObject(opt_includeInstance, this);
890
- };
891
-
892
-
893
- /**
894
- * Static version of the {@see toObject} method.
895
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
896
- * the JSPB instance for transitional soy proto support:
897
- * http://goto/soy-param-migration
898
- * @param {!proto.POWorkLocation} msg The msg instance to transform.
899
- * @return {!Object}
900
- * @suppress {unusedLocalVariables} f is only used for nested messages
901
- */
902
- proto.POWorkLocation.toObject = function(includeInstance, msg) {
903
- var f, obj = {
904
- code: jspb.Message.getFieldWithDefault(msg, 1, ""),
905
- locationName: jspb.Message.getFieldWithDefault(msg, 2, ""),
906
- referencesId: jspb.Message.getFieldWithDefault(msg, 3, "")
907
- };
908
-
909
- if (includeInstance) {
910
- obj.$jspbMessageInstance = msg;
911
- }
912
- return obj;
913
- };
914
- }
915
-
916
-
917
- /**
918
- * Deserializes binary data (in protobuf wire format).
919
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
920
- * @return {!proto.POWorkLocation}
921
- */
922
- proto.POWorkLocation.deserializeBinary = function(bytes) {
923
- var reader = new jspb.BinaryReader(bytes);
924
- var msg = new proto.POWorkLocation;
925
- return proto.POWorkLocation.deserializeBinaryFromReader(msg, reader);
926
- };
927
-
928
-
929
- /**
930
- * Deserializes binary data (in protobuf wire format) from the
931
- * given reader into the given message object.
932
- * @param {!proto.POWorkLocation} msg The message object to deserialize into.
933
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
934
- * @return {!proto.POWorkLocation}
935
- */
936
- proto.POWorkLocation.deserializeBinaryFromReader = function(msg, reader) {
937
- while (reader.nextField()) {
938
- if (reader.isEndGroup()) {
939
- break;
940
- }
941
- var field = reader.getFieldNumber();
942
- switch (field) {
943
- case 1:
944
- var value = /** @type {string} */ (reader.readString());
945
- msg.setCode(value);
946
- break;
947
- case 2:
948
- var value = /** @type {string} */ (reader.readString());
949
- msg.setLocationName(value);
950
- break;
951
- case 3:
952
- var value = /** @type {string} */ (reader.readString());
953
- msg.setReferencesId(value);
954
- break;
955
- default:
956
- reader.skipField();
957
- break;
958
- }
959
- }
960
- return msg;
961
- };
962
-
963
-
964
- /**
965
- * Serializes the message to binary data (in protobuf wire format).
966
- * @return {!Uint8Array}
967
- */
968
- proto.POWorkLocation.prototype.serializeBinary = function() {
969
- var writer = new jspb.BinaryWriter();
970
- proto.POWorkLocation.serializeBinaryToWriter(this, writer);
971
- return writer.getResultBuffer();
972
- };
973
-
974
-
975
- /**
976
- * Serializes the given message to binary data (in protobuf wire
977
- * format), writing to the given BinaryWriter.
978
- * @param {!proto.POWorkLocation} message
979
- * @param {!jspb.BinaryWriter} writer
980
- * @suppress {unusedLocalVariables} f is only used for nested messages
981
- */
982
- proto.POWorkLocation.serializeBinaryToWriter = function(message, writer) {
983
- var f = undefined;
984
- f = message.getCode();
985
- if (f.length > 0) {
986
- writer.writeString(
987
- 1,
988
- f
989
- );
990
- }
991
- f = message.getLocationName();
992
- if (f.length > 0) {
993
- writer.writeString(
994
- 2,
995
- f
996
- );
997
- }
998
- f = message.getReferencesId();
999
- if (f.length > 0) {
1000
- writer.writeString(
1001
- 3,
1002
- f
1003
- );
1004
- }
1005
- };
1006
-
1007
-
1008
- /**
1009
- * optional string code = 1;
1010
- * @return {string}
1011
- */
1012
- proto.POWorkLocation.prototype.getCode = function() {
1013
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1014
- };
1015
-
1016
-
1017
- /**
1018
- * @param {string} value
1019
- * @return {!proto.POWorkLocation} returns this
1020
- */
1021
- proto.POWorkLocation.prototype.setCode = function(value) {
1022
- return jspb.Message.setProto3StringField(this, 1, value);
1023
- };
1024
-
1025
-
1026
- /**
1027
- * optional string location_name = 2;
1028
- * @return {string}
1029
- */
1030
- proto.POWorkLocation.prototype.getLocationName = function() {
1031
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1032
- };
1033
-
1034
-
1035
- /**
1036
- * @param {string} value
1037
- * @return {!proto.POWorkLocation} returns this
1038
- */
1039
- proto.POWorkLocation.prototype.setLocationName = function(value) {
1040
- return jspb.Message.setProto3StringField(this, 2, value);
1041
- };
1042
-
1043
-
1044
- /**
1045
- * optional string references_id = 3;
1046
- * @return {string}
1047
- */
1048
- proto.POWorkLocation.prototype.getReferencesId = function() {
1049
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1050
- };
1051
-
1052
-
1053
- /**
1054
- * @param {string} value
1055
- * @return {!proto.POWorkLocation} returns this
1056
- */
1057
- proto.POWorkLocation.prototype.setReferencesId = function(value) {
1058
- return jspb.Message.setProto3StringField(this, 3, value);
1059
- };
1060
-
1061
-
1062
-
1063
-
1064
-
1065
- if (jspb.Message.GENERATE_TO_OBJECT) {
1066
- /**
1067
- * Creates an object representation of this proto.
1068
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1069
- * Optional fields that are not set will be set to undefined.
1070
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1071
- * For the list of reserved names please see:
1072
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1073
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1074
- * JSPB instance for transitional soy proto support:
1075
- * http://goto/soy-param-migration
1076
- * @return {!Object}
1077
- */
1078
- proto.CreatePlantPOrganizationRequest.prototype.toObject = function(opt_includeInstance) {
1079
- return proto.CreatePlantPOrganizationRequest.toObject(opt_includeInstance, this);
1080
- };
1081
-
1082
-
1083
- /**
1084
- * Static version of the {@see toObject} method.
1085
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1086
- * the JSPB instance for transitional soy proto support:
1087
- * http://goto/soy-param-migration
1088
- * @param {!proto.CreatePlantPOrganizationRequest} msg The msg instance to transform.
1089
- * @return {!Object}
1090
- * @suppress {unusedLocalVariables} f is only used for nested messages
1091
- */
1092
- proto.CreatePlantPOrganizationRequest.toObject = function(includeInstance, msg) {
1093
- var f, obj = {
1094
- plantPurchasingOrganization: (f = msg.getPlantPurchasingOrganization()) && proto.PlantPOrganization.toObject(includeInstance, f)
1095
- };
1096
-
1097
- if (includeInstance) {
1098
- obj.$jspbMessageInstance = msg;
1099
- }
1100
- return obj;
1101
- };
1102
- }
1103
-
1104
-
1105
- /**
1106
- * Deserializes binary data (in protobuf wire format).
1107
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1108
- * @return {!proto.CreatePlantPOrganizationRequest}
1109
- */
1110
- proto.CreatePlantPOrganizationRequest.deserializeBinary = function(bytes) {
1111
- var reader = new jspb.BinaryReader(bytes);
1112
- var msg = new proto.CreatePlantPOrganizationRequest;
1113
- return proto.CreatePlantPOrganizationRequest.deserializeBinaryFromReader(msg, reader);
1114
- };
1115
-
1116
-
1117
- /**
1118
- * Deserializes binary data (in protobuf wire format) from the
1119
- * given reader into the given message object.
1120
- * @param {!proto.CreatePlantPOrganizationRequest} msg The message object to deserialize into.
1121
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1122
- * @return {!proto.CreatePlantPOrganizationRequest}
1123
- */
1124
- proto.CreatePlantPOrganizationRequest.deserializeBinaryFromReader = function(msg, reader) {
1125
- while (reader.nextField()) {
1126
- if (reader.isEndGroup()) {
1127
- break;
1128
- }
1129
- var field = reader.getFieldNumber();
1130
- switch (field) {
1131
- case 1:
1132
- var value = new proto.PlantPOrganization;
1133
- reader.readMessage(value,proto.PlantPOrganization.deserializeBinaryFromReader);
1134
- msg.setPlantPurchasingOrganization(value);
1135
- break;
1136
- default:
1137
- reader.skipField();
1138
- break;
1139
- }
1140
- }
1141
- return msg;
1142
- };
1143
-
1144
-
1145
- /**
1146
- * Serializes the message to binary data (in protobuf wire format).
1147
- * @return {!Uint8Array}
1148
- */
1149
- proto.CreatePlantPOrganizationRequest.prototype.serializeBinary = function() {
1150
- var writer = new jspb.BinaryWriter();
1151
- proto.CreatePlantPOrganizationRequest.serializeBinaryToWriter(this, writer);
1152
- return writer.getResultBuffer();
1153
- };
1154
-
1155
-
1156
- /**
1157
- * Serializes the given message to binary data (in protobuf wire
1158
- * format), writing to the given BinaryWriter.
1159
- * @param {!proto.CreatePlantPOrganizationRequest} message
1160
- * @param {!jspb.BinaryWriter} writer
1161
- * @suppress {unusedLocalVariables} f is only used for nested messages
1162
- */
1163
- proto.CreatePlantPOrganizationRequest.serializeBinaryToWriter = function(message, writer) {
1164
- var f = undefined;
1165
- f = message.getPlantPurchasingOrganization();
1166
- if (f != null) {
1167
- writer.writeMessage(
1168
- 1,
1169
- f,
1170
- proto.PlantPOrganization.serializeBinaryToWriter
1171
- );
1172
- }
1173
- };
1174
-
1175
-
1176
- /**
1177
- * optional PlantPOrganization plant_purchasing_organization = 1;
1178
- * @return {?proto.PlantPOrganization}
1179
- */
1180
- proto.CreatePlantPOrganizationRequest.prototype.getPlantPurchasingOrganization = function() {
1181
- return /** @type{?proto.PlantPOrganization} */ (
1182
- jspb.Message.getWrapperField(this, proto.PlantPOrganization, 1));
1183
- };
1184
-
1185
-
1186
- /**
1187
- * @param {?proto.PlantPOrganization|undefined} value
1188
- * @return {!proto.CreatePlantPOrganizationRequest} returns this
1189
- */
1190
- proto.CreatePlantPOrganizationRequest.prototype.setPlantPurchasingOrganization = function(value) {
1191
- return jspb.Message.setWrapperField(this, 1, value);
1192
- };
1193
-
1194
-
1195
- /**
1196
- * Clears the message field making it undefined.
1197
- * @return {!proto.CreatePlantPOrganizationRequest} returns this
1198
- */
1199
- proto.CreatePlantPOrganizationRequest.prototype.clearPlantPurchasingOrganization = function() {
1200
- return this.setPlantPurchasingOrganization(undefined);
1201
- };
1202
-
1203
-
1204
- /**
1205
- * Returns whether this field is set.
1206
- * @return {boolean}
1207
- */
1208
- proto.CreatePlantPOrganizationRequest.prototype.hasPlantPurchasingOrganization = function() {
1209
- return jspb.Message.getField(this, 1) != null;
1210
- };
1211
-
1212
-
1213
-
1214
-
1215
-
1216
- if (jspb.Message.GENERATE_TO_OBJECT) {
1217
- /**
1218
- * Creates an object representation of this proto.
1219
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1220
- * Optional fields that are not set will be set to undefined.
1221
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1222
- * For the list of reserved names please see:
1223
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1224
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1225
- * JSPB instance for transitional soy proto support:
1226
- * http://goto/soy-param-migration
1227
- * @return {!Object}
1228
- */
1229
- proto.UpdatePlantPOrganizationRequest.prototype.toObject = function(opt_includeInstance) {
1230
- return proto.UpdatePlantPOrganizationRequest.toObject(opt_includeInstance, this);
1231
- };
1232
-
1233
-
1234
- /**
1235
- * Static version of the {@see toObject} method.
1236
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1237
- * the JSPB instance for transitional soy proto support:
1238
- * http://goto/soy-param-migration
1239
- * @param {!proto.UpdatePlantPOrganizationRequest} msg The msg instance to transform.
1240
- * @return {!Object}
1241
- * @suppress {unusedLocalVariables} f is only used for nested messages
1242
- */
1243
- proto.UpdatePlantPOrganizationRequest.toObject = function(includeInstance, msg) {
1244
- var f, obj = {
1245
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1246
- plantPurchasingOrganization: (f = msg.getPlantPurchasingOrganization()) && proto.PlantPOrganization.toObject(includeInstance, f)
1247
- };
1248
-
1249
- if (includeInstance) {
1250
- obj.$jspbMessageInstance = msg;
1251
- }
1252
- return obj;
1253
- };
1254
- }
1255
-
1256
-
1257
- /**
1258
- * Deserializes binary data (in protobuf wire format).
1259
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1260
- * @return {!proto.UpdatePlantPOrganizationRequest}
1261
- */
1262
- proto.UpdatePlantPOrganizationRequest.deserializeBinary = function(bytes) {
1263
- var reader = new jspb.BinaryReader(bytes);
1264
- var msg = new proto.UpdatePlantPOrganizationRequest;
1265
- return proto.UpdatePlantPOrganizationRequest.deserializeBinaryFromReader(msg, reader);
1266
- };
1267
-
1268
-
1269
- /**
1270
- * Deserializes binary data (in protobuf wire format) from the
1271
- * given reader into the given message object.
1272
- * @param {!proto.UpdatePlantPOrganizationRequest} msg The message object to deserialize into.
1273
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1274
- * @return {!proto.UpdatePlantPOrganizationRequest}
1275
- */
1276
- proto.UpdatePlantPOrganizationRequest.deserializeBinaryFromReader = function(msg, reader) {
1277
- while (reader.nextField()) {
1278
- if (reader.isEndGroup()) {
1279
- break;
1280
- }
1281
- var field = reader.getFieldNumber();
1282
- switch (field) {
1283
- case 1:
1284
- var value = /** @type {string} */ (reader.readString());
1285
- msg.setReferencesId(value);
1286
- break;
1287
- case 2:
1288
- var value = new proto.PlantPOrganization;
1289
- reader.readMessage(value,proto.PlantPOrganization.deserializeBinaryFromReader);
1290
- msg.setPlantPurchasingOrganization(value);
1291
- break;
1292
- default:
1293
- reader.skipField();
1294
- break;
1295
- }
1296
- }
1297
- return msg;
1298
- };
1299
-
1300
-
1301
- /**
1302
- * Serializes the message to binary data (in protobuf wire format).
1303
- * @return {!Uint8Array}
1304
- */
1305
- proto.UpdatePlantPOrganizationRequest.prototype.serializeBinary = function() {
1306
- var writer = new jspb.BinaryWriter();
1307
- proto.UpdatePlantPOrganizationRequest.serializeBinaryToWriter(this, writer);
1308
- return writer.getResultBuffer();
1309
- };
1310
-
1311
-
1312
- /**
1313
- * Serializes the given message to binary data (in protobuf wire
1314
- * format), writing to the given BinaryWriter.
1315
- * @param {!proto.UpdatePlantPOrganizationRequest} message
1316
- * @param {!jspb.BinaryWriter} writer
1317
- * @suppress {unusedLocalVariables} f is only used for nested messages
1318
- */
1319
- proto.UpdatePlantPOrganizationRequest.serializeBinaryToWriter = function(message, writer) {
1320
- var f = undefined;
1321
- f = message.getReferencesId();
1322
- if (f.length > 0) {
1323
- writer.writeString(
1324
- 1,
1325
- f
1326
- );
1327
- }
1328
- f = message.getPlantPurchasingOrganization();
1329
- if (f != null) {
1330
- writer.writeMessage(
1331
- 2,
1332
- f,
1333
- proto.PlantPOrganization.serializeBinaryToWriter
1334
- );
1335
- }
1336
- };
1337
-
1338
-
1339
- /**
1340
- * optional string references_id = 1;
1341
- * @return {string}
1342
- */
1343
- proto.UpdatePlantPOrganizationRequest.prototype.getReferencesId = function() {
1344
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1345
- };
1346
-
1347
-
1348
- /**
1349
- * @param {string} value
1350
- * @return {!proto.UpdatePlantPOrganizationRequest} returns this
1351
- */
1352
- proto.UpdatePlantPOrganizationRequest.prototype.setReferencesId = function(value) {
1353
- return jspb.Message.setProto3StringField(this, 1, value);
1354
- };
1355
-
1356
-
1357
- /**
1358
- * optional PlantPOrganization plant_purchasing_organization = 2;
1359
- * @return {?proto.PlantPOrganization}
1360
- */
1361
- proto.UpdatePlantPOrganizationRequest.prototype.getPlantPurchasingOrganization = function() {
1362
- return /** @type{?proto.PlantPOrganization} */ (
1363
- jspb.Message.getWrapperField(this, proto.PlantPOrganization, 2));
1364
- };
1365
-
1366
-
1367
- /**
1368
- * @param {?proto.PlantPOrganization|undefined} value
1369
- * @return {!proto.UpdatePlantPOrganizationRequest} returns this
1370
- */
1371
- proto.UpdatePlantPOrganizationRequest.prototype.setPlantPurchasingOrganization = function(value) {
1372
- return jspb.Message.setWrapperField(this, 2, value);
1373
- };
1374
-
1375
-
1376
- /**
1377
- * Clears the message field making it undefined.
1378
- * @return {!proto.UpdatePlantPOrganizationRequest} returns this
1379
- */
1380
- proto.UpdatePlantPOrganizationRequest.prototype.clearPlantPurchasingOrganization = function() {
1381
- return this.setPlantPurchasingOrganization(undefined);
1382
- };
1383
-
1384
-
1385
- /**
1386
- * Returns whether this field is set.
1387
- * @return {boolean}
1388
- */
1389
- proto.UpdatePlantPOrganizationRequest.prototype.hasPlantPurchasingOrganization = function() {
1390
- return jspb.Message.getField(this, 2) != null;
1391
- };
1392
-
1393
-
1394
-
1395
-
1396
-
1397
- if (jspb.Message.GENERATE_TO_OBJECT) {
1398
- /**
1399
- * Creates an object representation of this proto.
1400
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1401
- * Optional fields that are not set will be set to undefined.
1402
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1403
- * For the list of reserved names please see:
1404
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1405
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1406
- * JSPB instance for transitional soy proto support:
1407
- * http://goto/soy-param-migration
1408
- * @return {!Object}
1409
- */
1410
- proto.GetListPlantPOrganizationRequest.prototype.toObject = function(opt_includeInstance) {
1411
- return proto.GetListPlantPOrganizationRequest.toObject(opt_includeInstance, this);
1412
- };
1413
-
1414
-
1415
- /**
1416
- * Static version of the {@see toObject} method.
1417
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1418
- * the JSPB instance for transitional soy proto support:
1419
- * http://goto/soy-param-migration
1420
- * @param {!proto.GetListPlantPOrganizationRequest} msg The msg instance to transform.
1421
- * @return {!Object}
1422
- * @suppress {unusedLocalVariables} f is only used for nested messages
1423
- */
1424
- proto.GetListPlantPOrganizationRequest.toObject = function(includeInstance, msg) {
1425
- var f, obj = {
1426
- pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1427
- query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
1428
- };
1429
-
1430
- if (includeInstance) {
1431
- obj.$jspbMessageInstance = msg;
1432
- }
1433
- return obj;
1434
- };
1435
- }
1436
-
1437
-
1438
- /**
1439
- * Deserializes binary data (in protobuf wire format).
1440
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1441
- * @return {!proto.GetListPlantPOrganizationRequest}
1442
- */
1443
- proto.GetListPlantPOrganizationRequest.deserializeBinary = function(bytes) {
1444
- var reader = new jspb.BinaryReader(bytes);
1445
- var msg = new proto.GetListPlantPOrganizationRequest;
1446
- return proto.GetListPlantPOrganizationRequest.deserializeBinaryFromReader(msg, reader);
1447
- };
1448
-
1449
-
1450
- /**
1451
- * Deserializes binary data (in protobuf wire format) from the
1452
- * given reader into the given message object.
1453
- * @param {!proto.GetListPlantPOrganizationRequest} msg The message object to deserialize into.
1454
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1455
- * @return {!proto.GetListPlantPOrganizationRequest}
1456
- */
1457
- proto.GetListPlantPOrganizationRequest.deserializeBinaryFromReader = function(msg, reader) {
1458
- while (reader.nextField()) {
1459
- if (reader.isEndGroup()) {
1460
- break;
1461
- }
1462
- var field = reader.getFieldNumber();
1463
- switch (field) {
1464
- case 1:
1465
- var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1466
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1467
- msg.setPagination(value);
1468
- break;
1469
- case 2:
1470
- var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1471
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1472
- msg.setQuery(value);
1473
- break;
1474
- default:
1475
- reader.skipField();
1476
- break;
1477
- }
1478
- }
1479
- return msg;
1480
- };
1481
-
1482
-
1483
- /**
1484
- * Serializes the message to binary data (in protobuf wire format).
1485
- * @return {!Uint8Array}
1486
- */
1487
- proto.GetListPlantPOrganizationRequest.prototype.serializeBinary = function() {
1488
- var writer = new jspb.BinaryWriter();
1489
- proto.GetListPlantPOrganizationRequest.serializeBinaryToWriter(this, writer);
1490
- return writer.getResultBuffer();
1491
- };
1492
-
1493
-
1494
- /**
1495
- * Serializes the given message to binary data (in protobuf wire
1496
- * format), writing to the given BinaryWriter.
1497
- * @param {!proto.GetListPlantPOrganizationRequest} message
1498
- * @param {!jspb.BinaryWriter} writer
1499
- * @suppress {unusedLocalVariables} f is only used for nested messages
1500
- */
1501
- proto.GetListPlantPOrganizationRequest.serializeBinaryToWriter = function(message, writer) {
1502
- var f = undefined;
1503
- f = message.getPagination();
1504
- if (f != null) {
1505
- writer.writeMessage(
1506
- 1,
1507
- f,
1508
- prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1509
- );
1510
- }
1511
- f = message.getQuery();
1512
- if (f != null) {
1513
- writer.writeMessage(
1514
- 2,
1515
- f,
1516
- prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1517
- );
1518
- }
1519
- };
1520
-
1521
-
1522
- /**
1523
- * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1524
- * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1525
- */
1526
- proto.GetListPlantPOrganizationRequest.prototype.getPagination = function() {
1527
- return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1528
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1529
- };
1530
-
1531
-
1532
- /**
1533
- * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1534
- * @return {!proto.GetListPlantPOrganizationRequest} returns this
1535
- */
1536
- proto.GetListPlantPOrganizationRequest.prototype.setPagination = function(value) {
1537
- return jspb.Message.setWrapperField(this, 1, value);
1538
- };
1539
-
1540
-
1541
- /**
1542
- * Clears the message field making it undefined.
1543
- * @return {!proto.GetListPlantPOrganizationRequest} returns this
1544
- */
1545
- proto.GetListPlantPOrganizationRequest.prototype.clearPagination = function() {
1546
- return this.setPagination(undefined);
1547
- };
1548
-
1549
-
1550
- /**
1551
- * Returns whether this field is set.
1552
- * @return {boolean}
1553
- */
1554
- proto.GetListPlantPOrganizationRequest.prototype.hasPagination = function() {
1555
- return jspb.Message.getField(this, 1) != null;
1556
- };
1557
-
1558
-
1559
- /**
1560
- * optional prisca.v1.global.meta.FilterRequest query = 2;
1561
- * @return {?proto.prisca.v1.global.meta.FilterRequest}
1562
- */
1563
- proto.GetListPlantPOrganizationRequest.prototype.getQuery = function() {
1564
- return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1565
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1566
- };
1567
-
1568
-
1569
- /**
1570
- * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1571
- * @return {!proto.GetListPlantPOrganizationRequest} returns this
1572
- */
1573
- proto.GetListPlantPOrganizationRequest.prototype.setQuery = function(value) {
1574
- return jspb.Message.setWrapperField(this, 2, value);
1575
- };
1576
-
1577
-
1578
- /**
1579
- * Clears the message field making it undefined.
1580
- * @return {!proto.GetListPlantPOrganizationRequest} returns this
1581
- */
1582
- proto.GetListPlantPOrganizationRequest.prototype.clearQuery = function() {
1583
- return this.setQuery(undefined);
1584
- };
1585
-
1586
-
1587
- /**
1588
- * Returns whether this field is set.
1589
- * @return {boolean}
1590
- */
1591
- proto.GetListPlantPOrganizationRequest.prototype.hasQuery = function() {
1592
- return jspb.Message.getField(this, 2) != null;
1593
- };
1594
-
1595
-
1596
-
1597
-
1598
-
1599
- if (jspb.Message.GENERATE_TO_OBJECT) {
1600
- /**
1601
- * Creates an object representation of this proto.
1602
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1603
- * Optional fields that are not set will be set to undefined.
1604
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1605
- * For the list of reserved names please see:
1606
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1607
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1608
- * JSPB instance for transitional soy proto support:
1609
- * http://goto/soy-param-migration
1610
- * @return {!Object}
1611
- */
1612
- proto.PlantPOrganizationGetByIdRequest.prototype.toObject = function(opt_includeInstance) {
1613
- return proto.PlantPOrganizationGetByIdRequest.toObject(opt_includeInstance, this);
1614
- };
1615
-
1616
-
1617
- /**
1618
- * Static version of the {@see toObject} method.
1619
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1620
- * the JSPB instance for transitional soy proto support:
1621
- * http://goto/soy-param-migration
1622
- * @param {!proto.PlantPOrganizationGetByIdRequest} msg The msg instance to transform.
1623
- * @return {!Object}
1624
- * @suppress {unusedLocalVariables} f is only used for nested messages
1625
- */
1626
- proto.PlantPOrganizationGetByIdRequest.toObject = function(includeInstance, msg) {
1627
- var f, obj = {
1628
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1629
- };
1630
-
1631
- if (includeInstance) {
1632
- obj.$jspbMessageInstance = msg;
1633
- }
1634
- return obj;
1635
- };
1636
- }
1637
-
1638
-
1639
- /**
1640
- * Deserializes binary data (in protobuf wire format).
1641
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1642
- * @return {!proto.PlantPOrganizationGetByIdRequest}
1643
- */
1644
- proto.PlantPOrganizationGetByIdRequest.deserializeBinary = function(bytes) {
1645
- var reader = new jspb.BinaryReader(bytes);
1646
- var msg = new proto.PlantPOrganizationGetByIdRequest;
1647
- return proto.PlantPOrganizationGetByIdRequest.deserializeBinaryFromReader(msg, reader);
1648
- };
1649
-
1650
-
1651
- /**
1652
- * Deserializes binary data (in protobuf wire format) from the
1653
- * given reader into the given message object.
1654
- * @param {!proto.PlantPOrganizationGetByIdRequest} msg The message object to deserialize into.
1655
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1656
- * @return {!proto.PlantPOrganizationGetByIdRequest}
1657
- */
1658
- proto.PlantPOrganizationGetByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
1659
- while (reader.nextField()) {
1660
- if (reader.isEndGroup()) {
1661
- break;
1662
- }
1663
- var field = reader.getFieldNumber();
1664
- switch (field) {
1665
- case 1:
1666
- var value = /** @type {string} */ (reader.readString());
1667
- msg.setReferencesId(value);
1668
- break;
1669
- default:
1670
- reader.skipField();
1671
- break;
1672
- }
1673
- }
1674
- return msg;
1675
- };
1676
-
1677
-
1678
- /**
1679
- * Serializes the message to binary data (in protobuf wire format).
1680
- * @return {!Uint8Array}
1681
- */
1682
- proto.PlantPOrganizationGetByIdRequest.prototype.serializeBinary = function() {
1683
- var writer = new jspb.BinaryWriter();
1684
- proto.PlantPOrganizationGetByIdRequest.serializeBinaryToWriter(this, writer);
1685
- return writer.getResultBuffer();
1686
- };
1687
-
1688
-
1689
- /**
1690
- * Serializes the given message to binary data (in protobuf wire
1691
- * format), writing to the given BinaryWriter.
1692
- * @param {!proto.PlantPOrganizationGetByIdRequest} message
1693
- * @param {!jspb.BinaryWriter} writer
1694
- * @suppress {unusedLocalVariables} f is only used for nested messages
1695
- */
1696
- proto.PlantPOrganizationGetByIdRequest.serializeBinaryToWriter = function(message, writer) {
1697
- var f = undefined;
1698
- f = message.getReferencesId();
1699
- if (f.length > 0) {
1700
- writer.writeString(
1701
- 1,
1702
- f
1703
- );
1704
- }
1705
- };
1706
-
1707
-
1708
- /**
1709
- * optional string references_id = 1;
1710
- * @return {string}
1711
- */
1712
- proto.PlantPOrganizationGetByIdRequest.prototype.getReferencesId = function() {
1713
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1714
- };
1715
-
1716
-
1717
- /**
1718
- * @param {string} value
1719
- * @return {!proto.PlantPOrganizationGetByIdRequest} returns this
1720
- */
1721
- proto.PlantPOrganizationGetByIdRequest.prototype.setReferencesId = function(value) {
1722
- return jspb.Message.setProto3StringField(this, 1, value);
1723
- };
1724
-
1725
-
1726
-
1727
-
1728
-
1729
- if (jspb.Message.GENERATE_TO_OBJECT) {
1730
- /**
1731
- * Creates an object representation of this proto.
1732
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1733
- * Optional fields that are not set will be set to undefined.
1734
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1735
- * For the list of reserved names please see:
1736
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1737
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1738
- * JSPB instance for transitional soy proto support:
1739
- * http://goto/soy-param-migration
1740
- * @return {!Object}
1741
- */
1742
- proto.CreatePlantPOrganizationResponse.prototype.toObject = function(opt_includeInstance) {
1743
- return proto.CreatePlantPOrganizationResponse.toObject(opt_includeInstance, this);
1744
- };
1745
-
1746
-
1747
- /**
1748
- * Static version of the {@see toObject} method.
1749
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1750
- * the JSPB instance for transitional soy proto support:
1751
- * http://goto/soy-param-migration
1752
- * @param {!proto.CreatePlantPOrganizationResponse} msg The msg instance to transform.
1753
- * @return {!Object}
1754
- * @suppress {unusedLocalVariables} f is only used for nested messages
1755
- */
1756
- proto.CreatePlantPOrganizationResponse.toObject = function(includeInstance, msg) {
1757
- var f, obj = {
1758
- plantPurchasingOrganization: (f = msg.getPlantPurchasingOrganization()) && proto.PlantPOrganization.toObject(includeInstance, f),
1759
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1760
- };
1761
-
1762
- if (includeInstance) {
1763
- obj.$jspbMessageInstance = msg;
1764
- }
1765
- return obj;
1766
- };
1767
- }
1768
-
1769
-
1770
- /**
1771
- * Deserializes binary data (in protobuf wire format).
1772
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1773
- * @return {!proto.CreatePlantPOrganizationResponse}
1774
- */
1775
- proto.CreatePlantPOrganizationResponse.deserializeBinary = function(bytes) {
1776
- var reader = new jspb.BinaryReader(bytes);
1777
- var msg = new proto.CreatePlantPOrganizationResponse;
1778
- return proto.CreatePlantPOrganizationResponse.deserializeBinaryFromReader(msg, reader);
1779
- };
1780
-
1781
-
1782
- /**
1783
- * Deserializes binary data (in protobuf wire format) from the
1784
- * given reader into the given message object.
1785
- * @param {!proto.CreatePlantPOrganizationResponse} msg The message object to deserialize into.
1786
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1787
- * @return {!proto.CreatePlantPOrganizationResponse}
1788
- */
1789
- proto.CreatePlantPOrganizationResponse.deserializeBinaryFromReader = function(msg, reader) {
1790
- while (reader.nextField()) {
1791
- if (reader.isEndGroup()) {
1792
- break;
1793
- }
1794
- var field = reader.getFieldNumber();
1795
- switch (field) {
1796
- case 1:
1797
- var value = new proto.PlantPOrganization;
1798
- reader.readMessage(value,proto.PlantPOrganization.deserializeBinaryFromReader);
1799
- msg.setPlantPurchasingOrganization(value);
1800
- break;
1801
- case 2:
1802
- var value = new prisca_v1_global_meta_meta_pb.Meta;
1803
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1804
- msg.setMeta(value);
1805
- break;
1806
- default:
1807
- reader.skipField();
1808
- break;
1809
- }
1810
- }
1811
- return msg;
1812
- };
1813
-
1814
-
1815
- /**
1816
- * Serializes the message to binary data (in protobuf wire format).
1817
- * @return {!Uint8Array}
1818
- */
1819
- proto.CreatePlantPOrganizationResponse.prototype.serializeBinary = function() {
1820
- var writer = new jspb.BinaryWriter();
1821
- proto.CreatePlantPOrganizationResponse.serializeBinaryToWriter(this, writer);
1822
- return writer.getResultBuffer();
1823
- };
1824
-
1825
-
1826
- /**
1827
- * Serializes the given message to binary data (in protobuf wire
1828
- * format), writing to the given BinaryWriter.
1829
- * @param {!proto.CreatePlantPOrganizationResponse} message
1830
- * @param {!jspb.BinaryWriter} writer
1831
- * @suppress {unusedLocalVariables} f is only used for nested messages
1832
- */
1833
- proto.CreatePlantPOrganizationResponse.serializeBinaryToWriter = function(message, writer) {
1834
- var f = undefined;
1835
- f = message.getPlantPurchasingOrganization();
1836
- if (f != null) {
1837
- writer.writeMessage(
1838
- 1,
1839
- f,
1840
- proto.PlantPOrganization.serializeBinaryToWriter
1841
- );
1842
- }
1843
- f = message.getMeta();
1844
- if (f != null) {
1845
- writer.writeMessage(
1846
- 2,
1847
- f,
1848
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1849
- );
1850
- }
1851
- };
1852
-
1853
-
1854
- /**
1855
- * optional PlantPOrganization Plant_purchasing_organization = 1;
1856
- * @return {?proto.PlantPOrganization}
1857
- */
1858
- proto.CreatePlantPOrganizationResponse.prototype.getPlantPurchasingOrganization = function() {
1859
- return /** @type{?proto.PlantPOrganization} */ (
1860
- jspb.Message.getWrapperField(this, proto.PlantPOrganization, 1));
1861
- };
1862
-
1863
-
1864
- /**
1865
- * @param {?proto.PlantPOrganization|undefined} value
1866
- * @return {!proto.CreatePlantPOrganizationResponse} returns this
1867
- */
1868
- proto.CreatePlantPOrganizationResponse.prototype.setPlantPurchasingOrganization = function(value) {
1869
- return jspb.Message.setWrapperField(this, 1, value);
1870
- };
1871
-
1872
-
1873
- /**
1874
- * Clears the message field making it undefined.
1875
- * @return {!proto.CreatePlantPOrganizationResponse} returns this
1876
- */
1877
- proto.CreatePlantPOrganizationResponse.prototype.clearPlantPurchasingOrganization = function() {
1878
- return this.setPlantPurchasingOrganization(undefined);
1879
- };
1880
-
1881
-
1882
- /**
1883
- * Returns whether this field is set.
1884
- * @return {boolean}
1885
- */
1886
- proto.CreatePlantPOrganizationResponse.prototype.hasPlantPurchasingOrganization = function() {
1887
- return jspb.Message.getField(this, 1) != null;
1888
- };
1889
-
1890
-
1891
- /**
1892
- * optional prisca.v1.global.meta.Meta meta = 2;
1893
- * @return {?proto.prisca.v1.global.meta.Meta}
1894
- */
1895
- proto.CreatePlantPOrganizationResponse.prototype.getMeta = function() {
1896
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1897
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1898
- };
1899
-
1900
-
1901
- /**
1902
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1903
- * @return {!proto.CreatePlantPOrganizationResponse} returns this
1904
- */
1905
- proto.CreatePlantPOrganizationResponse.prototype.setMeta = function(value) {
1906
- return jspb.Message.setWrapperField(this, 2, value);
1907
- };
1908
-
1909
-
1910
- /**
1911
- * Clears the message field making it undefined.
1912
- * @return {!proto.CreatePlantPOrganizationResponse} returns this
1913
- */
1914
- proto.CreatePlantPOrganizationResponse.prototype.clearMeta = function() {
1915
- return this.setMeta(undefined);
1916
- };
1917
-
1918
-
1919
- /**
1920
- * Returns whether this field is set.
1921
- * @return {boolean}
1922
- */
1923
- proto.CreatePlantPOrganizationResponse.prototype.hasMeta = function() {
1924
- return jspb.Message.getField(this, 2) != null;
1925
- };
1926
-
1927
-
1928
-
1929
- /**
1930
- * List of repeated fields within this message type.
1931
- * @private {!Array<number>}
1932
- * @const
1933
- */
1934
- proto.GetListPlantPOrganizationResponse.repeatedFields_ = [1];
1935
-
1936
-
1937
-
1938
- if (jspb.Message.GENERATE_TO_OBJECT) {
1939
- /**
1940
- * Creates an object representation of this proto.
1941
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1942
- * Optional fields that are not set will be set to undefined.
1943
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1944
- * For the list of reserved names please see:
1945
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1946
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1947
- * JSPB instance for transitional soy proto support:
1948
- * http://goto/soy-param-migration
1949
- * @return {!Object}
1950
- */
1951
- proto.GetListPlantPOrganizationResponse.prototype.toObject = function(opt_includeInstance) {
1952
- return proto.GetListPlantPOrganizationResponse.toObject(opt_includeInstance, this);
1953
- };
1954
-
1955
-
1956
- /**
1957
- * Static version of the {@see toObject} method.
1958
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1959
- * the JSPB instance for transitional soy proto support:
1960
- * http://goto/soy-param-migration
1961
- * @param {!proto.GetListPlantPOrganizationResponse} msg The msg instance to transform.
1962
- * @return {!Object}
1963
- * @suppress {unusedLocalVariables} f is only used for nested messages
1964
- */
1965
- proto.GetListPlantPOrganizationResponse.toObject = function(includeInstance, msg) {
1966
- var f, obj = {
1967
- plantPurchasingOrganizationList: jspb.Message.toObjectList(msg.getPlantPurchasingOrganizationList(),
1968
- proto.BasePlantPOrganization.toObject, includeInstance),
1969
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1970
- };
1971
-
1972
- if (includeInstance) {
1973
- obj.$jspbMessageInstance = msg;
1974
- }
1975
- return obj;
1976
- };
1977
- }
1978
-
1979
-
1980
- /**
1981
- * Deserializes binary data (in protobuf wire format).
1982
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1983
- * @return {!proto.GetListPlantPOrganizationResponse}
1984
- */
1985
- proto.GetListPlantPOrganizationResponse.deserializeBinary = function(bytes) {
1986
- var reader = new jspb.BinaryReader(bytes);
1987
- var msg = new proto.GetListPlantPOrganizationResponse;
1988
- return proto.GetListPlantPOrganizationResponse.deserializeBinaryFromReader(msg, reader);
1989
- };
1990
-
1991
-
1992
- /**
1993
- * Deserializes binary data (in protobuf wire format) from the
1994
- * given reader into the given message object.
1995
- * @param {!proto.GetListPlantPOrganizationResponse} msg The message object to deserialize into.
1996
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1997
- * @return {!proto.GetListPlantPOrganizationResponse}
1998
- */
1999
- proto.GetListPlantPOrganizationResponse.deserializeBinaryFromReader = function(msg, reader) {
2000
- while (reader.nextField()) {
2001
- if (reader.isEndGroup()) {
2002
- break;
2003
- }
2004
- var field = reader.getFieldNumber();
2005
- switch (field) {
2006
- case 1:
2007
- var value = new proto.BasePlantPOrganization;
2008
- reader.readMessage(value,proto.BasePlantPOrganization.deserializeBinaryFromReader);
2009
- msg.addPlantPurchasingOrganization(value);
2010
- break;
2011
- case 2:
2012
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2013
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2014
- msg.setMeta(value);
2015
- break;
2016
- default:
2017
- reader.skipField();
2018
- break;
2019
- }
2020
- }
2021
- return msg;
2022
- };
2023
-
2024
-
2025
- /**
2026
- * Serializes the message to binary data (in protobuf wire format).
2027
- * @return {!Uint8Array}
2028
- */
2029
- proto.GetListPlantPOrganizationResponse.prototype.serializeBinary = function() {
2030
- var writer = new jspb.BinaryWriter();
2031
- proto.GetListPlantPOrganizationResponse.serializeBinaryToWriter(this, writer);
2032
- return writer.getResultBuffer();
2033
- };
2034
-
2035
-
2036
- /**
2037
- * Serializes the given message to binary data (in protobuf wire
2038
- * format), writing to the given BinaryWriter.
2039
- * @param {!proto.GetListPlantPOrganizationResponse} message
2040
- * @param {!jspb.BinaryWriter} writer
2041
- * @suppress {unusedLocalVariables} f is only used for nested messages
2042
- */
2043
- proto.GetListPlantPOrganizationResponse.serializeBinaryToWriter = function(message, writer) {
2044
- var f = undefined;
2045
- f = message.getPlantPurchasingOrganizationList();
2046
- if (f.length > 0) {
2047
- writer.writeRepeatedMessage(
2048
- 1,
2049
- f,
2050
- proto.BasePlantPOrganization.serializeBinaryToWriter
2051
- );
2052
- }
2053
- f = message.getMeta();
2054
- if (f != null) {
2055
- writer.writeMessage(
2056
- 2,
2057
- f,
2058
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2059
- );
2060
- }
2061
- };
2062
-
2063
-
2064
- /**
2065
- * repeated BasePlantPOrganization plant_purchasing_organization = 1;
2066
- * @return {!Array<!proto.BasePlantPOrganization>}
2067
- */
2068
- proto.GetListPlantPOrganizationResponse.prototype.getPlantPurchasingOrganizationList = function() {
2069
- return /** @type{!Array<!proto.BasePlantPOrganization>} */ (
2070
- jspb.Message.getRepeatedWrapperField(this, proto.BasePlantPOrganization, 1));
2071
- };
2072
-
2073
-
2074
- /**
2075
- * @param {!Array<!proto.BasePlantPOrganization>} value
2076
- * @return {!proto.GetListPlantPOrganizationResponse} returns this
2077
- */
2078
- proto.GetListPlantPOrganizationResponse.prototype.setPlantPurchasingOrganizationList = function(value) {
2079
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
2080
- };
2081
-
2082
-
2083
- /**
2084
- * @param {!proto.BasePlantPOrganization=} opt_value
2085
- * @param {number=} opt_index
2086
- * @return {!proto.BasePlantPOrganization}
2087
- */
2088
- proto.GetListPlantPOrganizationResponse.prototype.addPlantPurchasingOrganization = function(opt_value, opt_index) {
2089
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.BasePlantPOrganization, opt_index);
2090
- };
2091
-
2092
-
2093
- /**
2094
- * Clears the list making it empty but non-null.
2095
- * @return {!proto.GetListPlantPOrganizationResponse} returns this
2096
- */
2097
- proto.GetListPlantPOrganizationResponse.prototype.clearPlantPurchasingOrganizationList = function() {
2098
- return this.setPlantPurchasingOrganizationList([]);
2099
- };
2100
-
2101
-
2102
- /**
2103
- * optional prisca.v1.global.meta.Meta meta = 2;
2104
- * @return {?proto.prisca.v1.global.meta.Meta}
2105
- */
2106
- proto.GetListPlantPOrganizationResponse.prototype.getMeta = function() {
2107
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2108
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2109
- };
2110
-
2111
-
2112
- /**
2113
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2114
- * @return {!proto.GetListPlantPOrganizationResponse} returns this
2115
- */
2116
- proto.GetListPlantPOrganizationResponse.prototype.setMeta = function(value) {
2117
- return jspb.Message.setWrapperField(this, 2, value);
2118
- };
2119
-
2120
-
2121
- /**
2122
- * Clears the message field making it undefined.
2123
- * @return {!proto.GetListPlantPOrganizationResponse} returns this
2124
- */
2125
- proto.GetListPlantPOrganizationResponse.prototype.clearMeta = function() {
2126
- return this.setMeta(undefined);
2127
- };
2128
-
2129
-
2130
- /**
2131
- * Returns whether this field is set.
2132
- * @return {boolean}
2133
- */
2134
- proto.GetListPlantPOrganizationResponse.prototype.hasMeta = function() {
2135
- return jspb.Message.getField(this, 2) != null;
2136
- };
2137
-
2138
-
2139
-
2140
-
2141
-
2142
- if (jspb.Message.GENERATE_TO_OBJECT) {
2143
- /**
2144
- * Creates an object representation of this proto.
2145
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2146
- * Optional fields that are not set will be set to undefined.
2147
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2148
- * For the list of reserved names please see:
2149
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2150
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2151
- * JSPB instance for transitional soy proto support:
2152
- * http://goto/soy-param-migration
2153
- * @return {!Object}
2154
- */
2155
- proto.UpdatePlantPOrganizationResponse.prototype.toObject = function(opt_includeInstance) {
2156
- return proto.UpdatePlantPOrganizationResponse.toObject(opt_includeInstance, this);
2157
- };
2158
-
2159
-
2160
- /**
2161
- * Static version of the {@see toObject} method.
2162
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2163
- * the JSPB instance for transitional soy proto support:
2164
- * http://goto/soy-param-migration
2165
- * @param {!proto.UpdatePlantPOrganizationResponse} msg The msg instance to transform.
2166
- * @return {!Object}
2167
- * @suppress {unusedLocalVariables} f is only used for nested messages
2168
- */
2169
- proto.UpdatePlantPOrganizationResponse.toObject = function(includeInstance, msg) {
2170
- var f, obj = {
2171
- plantPurchasingOrganization: (f = msg.getPlantPurchasingOrganization()) && proto.PlantPOrganization.toObject(includeInstance, f),
2172
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2173
- };
2174
-
2175
- if (includeInstance) {
2176
- obj.$jspbMessageInstance = msg;
2177
- }
2178
- return obj;
2179
- };
2180
- }
2181
-
2182
-
2183
- /**
2184
- * Deserializes binary data (in protobuf wire format).
2185
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2186
- * @return {!proto.UpdatePlantPOrganizationResponse}
2187
- */
2188
- proto.UpdatePlantPOrganizationResponse.deserializeBinary = function(bytes) {
2189
- var reader = new jspb.BinaryReader(bytes);
2190
- var msg = new proto.UpdatePlantPOrganizationResponse;
2191
- return proto.UpdatePlantPOrganizationResponse.deserializeBinaryFromReader(msg, reader);
2192
- };
2193
-
2194
-
2195
- /**
2196
- * Deserializes binary data (in protobuf wire format) from the
2197
- * given reader into the given message object.
2198
- * @param {!proto.UpdatePlantPOrganizationResponse} msg The message object to deserialize into.
2199
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2200
- * @return {!proto.UpdatePlantPOrganizationResponse}
2201
- */
2202
- proto.UpdatePlantPOrganizationResponse.deserializeBinaryFromReader = function(msg, reader) {
2203
- while (reader.nextField()) {
2204
- if (reader.isEndGroup()) {
2205
- break;
2206
- }
2207
- var field = reader.getFieldNumber();
2208
- switch (field) {
2209
- case 1:
2210
- var value = new proto.PlantPOrganization;
2211
- reader.readMessage(value,proto.PlantPOrganization.deserializeBinaryFromReader);
2212
- msg.setPlantPurchasingOrganization(value);
2213
- break;
2214
- case 2:
2215
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2216
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2217
- msg.setMeta(value);
2218
- break;
2219
- default:
2220
- reader.skipField();
2221
- break;
2222
- }
2223
- }
2224
- return msg;
2225
- };
2226
-
2227
-
2228
- /**
2229
- * Serializes the message to binary data (in protobuf wire format).
2230
- * @return {!Uint8Array}
2231
- */
2232
- proto.UpdatePlantPOrganizationResponse.prototype.serializeBinary = function() {
2233
- var writer = new jspb.BinaryWriter();
2234
- proto.UpdatePlantPOrganizationResponse.serializeBinaryToWriter(this, writer);
2235
- return writer.getResultBuffer();
2236
- };
2237
-
2238
-
2239
- /**
2240
- * Serializes the given message to binary data (in protobuf wire
2241
- * format), writing to the given BinaryWriter.
2242
- * @param {!proto.UpdatePlantPOrganizationResponse} message
2243
- * @param {!jspb.BinaryWriter} writer
2244
- * @suppress {unusedLocalVariables} f is only used for nested messages
2245
- */
2246
- proto.UpdatePlantPOrganizationResponse.serializeBinaryToWriter = function(message, writer) {
2247
- var f = undefined;
2248
- f = message.getPlantPurchasingOrganization();
2249
- if (f != null) {
2250
- writer.writeMessage(
2251
- 1,
2252
- f,
2253
- proto.PlantPOrganization.serializeBinaryToWriter
2254
- );
2255
- }
2256
- f = message.getMeta();
2257
- if (f != null) {
2258
- writer.writeMessage(
2259
- 2,
2260
- f,
2261
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2262
- );
2263
- }
2264
- };
2265
-
2266
-
2267
- /**
2268
- * optional PlantPOrganization plant_purchasing_organization = 1;
2269
- * @return {?proto.PlantPOrganization}
2270
- */
2271
- proto.UpdatePlantPOrganizationResponse.prototype.getPlantPurchasingOrganization = function() {
2272
- return /** @type{?proto.PlantPOrganization} */ (
2273
- jspb.Message.getWrapperField(this, proto.PlantPOrganization, 1));
2274
- };
2275
-
2276
-
2277
- /**
2278
- * @param {?proto.PlantPOrganization|undefined} value
2279
- * @return {!proto.UpdatePlantPOrganizationResponse} returns this
2280
- */
2281
- proto.UpdatePlantPOrganizationResponse.prototype.setPlantPurchasingOrganization = function(value) {
2282
- return jspb.Message.setWrapperField(this, 1, value);
2283
- };
2284
-
2285
-
2286
- /**
2287
- * Clears the message field making it undefined.
2288
- * @return {!proto.UpdatePlantPOrganizationResponse} returns this
2289
- */
2290
- proto.UpdatePlantPOrganizationResponse.prototype.clearPlantPurchasingOrganization = function() {
2291
- return this.setPlantPurchasingOrganization(undefined);
2292
- };
2293
-
2294
-
2295
- /**
2296
- * Returns whether this field is set.
2297
- * @return {boolean}
2298
- */
2299
- proto.UpdatePlantPOrganizationResponse.prototype.hasPlantPurchasingOrganization = function() {
2300
- return jspb.Message.getField(this, 1) != null;
2301
- };
2302
-
2303
-
2304
- /**
2305
- * optional prisca.v1.global.meta.Meta meta = 2;
2306
- * @return {?proto.prisca.v1.global.meta.Meta}
2307
- */
2308
- proto.UpdatePlantPOrganizationResponse.prototype.getMeta = function() {
2309
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2310
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2311
- };
2312
-
2313
-
2314
- /**
2315
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2316
- * @return {!proto.UpdatePlantPOrganizationResponse} returns this
2317
- */
2318
- proto.UpdatePlantPOrganizationResponse.prototype.setMeta = function(value) {
2319
- return jspb.Message.setWrapperField(this, 2, value);
2320
- };
2321
-
2322
-
2323
- /**
2324
- * Clears the message field making it undefined.
2325
- * @return {!proto.UpdatePlantPOrganizationResponse} returns this
2326
- */
2327
- proto.UpdatePlantPOrganizationResponse.prototype.clearMeta = function() {
2328
- return this.setMeta(undefined);
2329
- };
2330
-
2331
-
2332
- /**
2333
- * Returns whether this field is set.
2334
- * @return {boolean}
2335
- */
2336
- proto.UpdatePlantPOrganizationResponse.prototype.hasMeta = function() {
2337
- return jspb.Message.getField(this, 2) != null;
2338
- };
2339
-
2340
-
2341
-
2342
-
2343
-
2344
- if (jspb.Message.GENERATE_TO_OBJECT) {
2345
- /**
2346
- * Creates an object representation of this proto.
2347
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2348
- * Optional fields that are not set will be set to undefined.
2349
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2350
- * For the list of reserved names please see:
2351
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2352
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2353
- * JSPB instance for transitional soy proto support:
2354
- * http://goto/soy-param-migration
2355
- * @return {!Object}
2356
- */
2357
- proto.PlantPOrganizationGetByIdResponse.prototype.toObject = function(opt_includeInstance) {
2358
- return proto.PlantPOrganizationGetByIdResponse.toObject(opt_includeInstance, this);
2359
- };
2360
-
2361
-
2362
- /**
2363
- * Static version of the {@see toObject} method.
2364
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2365
- * the JSPB instance for transitional soy proto support:
2366
- * http://goto/soy-param-migration
2367
- * @param {!proto.PlantPOrganizationGetByIdResponse} msg The msg instance to transform.
2368
- * @return {!Object}
2369
- * @suppress {unusedLocalVariables} f is only used for nested messages
2370
- */
2371
- proto.PlantPOrganizationGetByIdResponse.toObject = function(includeInstance, msg) {
2372
- var f, obj = {
2373
- plantPurchasingOrganization: (f = msg.getPlantPurchasingOrganization()) && proto.BasePlantPOrganization.toObject(includeInstance, f),
2374
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2375
- };
2376
-
2377
- if (includeInstance) {
2378
- obj.$jspbMessageInstance = msg;
2379
- }
2380
- return obj;
2381
- };
2382
- }
2383
-
2384
-
2385
- /**
2386
- * Deserializes binary data (in protobuf wire format).
2387
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2388
- * @return {!proto.PlantPOrganizationGetByIdResponse}
2389
- */
2390
- proto.PlantPOrganizationGetByIdResponse.deserializeBinary = function(bytes) {
2391
- var reader = new jspb.BinaryReader(bytes);
2392
- var msg = new proto.PlantPOrganizationGetByIdResponse;
2393
- return proto.PlantPOrganizationGetByIdResponse.deserializeBinaryFromReader(msg, reader);
2394
- };
2395
-
2396
-
2397
- /**
2398
- * Deserializes binary data (in protobuf wire format) from the
2399
- * given reader into the given message object.
2400
- * @param {!proto.PlantPOrganizationGetByIdResponse} msg The message object to deserialize into.
2401
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2402
- * @return {!proto.PlantPOrganizationGetByIdResponse}
2403
- */
2404
- proto.PlantPOrganizationGetByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2405
- while (reader.nextField()) {
2406
- if (reader.isEndGroup()) {
2407
- break;
2408
- }
2409
- var field = reader.getFieldNumber();
2410
- switch (field) {
2411
- case 1:
2412
- var value = new proto.BasePlantPOrganization;
2413
- reader.readMessage(value,proto.BasePlantPOrganization.deserializeBinaryFromReader);
2414
- msg.setPlantPurchasingOrganization(value);
2415
- break;
2416
- case 2:
2417
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2418
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2419
- msg.setMeta(value);
2420
- break;
2421
- default:
2422
- reader.skipField();
2423
- break;
2424
- }
2425
- }
2426
- return msg;
2427
- };
2428
-
2429
-
2430
- /**
2431
- * Serializes the message to binary data (in protobuf wire format).
2432
- * @return {!Uint8Array}
2433
- */
2434
- proto.PlantPOrganizationGetByIdResponse.prototype.serializeBinary = function() {
2435
- var writer = new jspb.BinaryWriter();
2436
- proto.PlantPOrganizationGetByIdResponse.serializeBinaryToWriter(this, writer);
2437
- return writer.getResultBuffer();
2438
- };
2439
-
2440
-
2441
- /**
2442
- * Serializes the given message to binary data (in protobuf wire
2443
- * format), writing to the given BinaryWriter.
2444
- * @param {!proto.PlantPOrganizationGetByIdResponse} message
2445
- * @param {!jspb.BinaryWriter} writer
2446
- * @suppress {unusedLocalVariables} f is only used for nested messages
2447
- */
2448
- proto.PlantPOrganizationGetByIdResponse.serializeBinaryToWriter = function(message, writer) {
2449
- var f = undefined;
2450
- f = message.getPlantPurchasingOrganization();
2451
- if (f != null) {
2452
- writer.writeMessage(
2453
- 1,
2454
- f,
2455
- proto.BasePlantPOrganization.serializeBinaryToWriter
2456
- );
2457
- }
2458
- f = message.getMeta();
2459
- if (f != null) {
2460
- writer.writeMessage(
2461
- 2,
2462
- f,
2463
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2464
- );
2465
- }
2466
- };
2467
-
2468
-
2469
- /**
2470
- * optional BasePlantPOrganization plant_purchasing_organization = 1;
2471
- * @return {?proto.BasePlantPOrganization}
2472
- */
2473
- proto.PlantPOrganizationGetByIdResponse.prototype.getPlantPurchasingOrganization = function() {
2474
- return /** @type{?proto.BasePlantPOrganization} */ (
2475
- jspb.Message.getWrapperField(this, proto.BasePlantPOrganization, 1));
2476
- };
2477
-
2478
-
2479
- /**
2480
- * @param {?proto.BasePlantPOrganization|undefined} value
2481
- * @return {!proto.PlantPOrganizationGetByIdResponse} returns this
2482
- */
2483
- proto.PlantPOrganizationGetByIdResponse.prototype.setPlantPurchasingOrganization = function(value) {
2484
- return jspb.Message.setWrapperField(this, 1, value);
2485
- };
2486
-
2487
-
2488
- /**
2489
- * Clears the message field making it undefined.
2490
- * @return {!proto.PlantPOrganizationGetByIdResponse} returns this
2491
- */
2492
- proto.PlantPOrganizationGetByIdResponse.prototype.clearPlantPurchasingOrganization = function() {
2493
- return this.setPlantPurchasingOrganization(undefined);
2494
- };
2495
-
2496
-
2497
- /**
2498
- * Returns whether this field is set.
2499
- * @return {boolean}
2500
- */
2501
- proto.PlantPOrganizationGetByIdResponse.prototype.hasPlantPurchasingOrganization = function() {
2502
- return jspb.Message.getField(this, 1) != null;
2503
- };
2504
-
2505
-
2506
- /**
2507
- * optional prisca.v1.global.meta.Meta meta = 2;
2508
- * @return {?proto.prisca.v1.global.meta.Meta}
2509
- */
2510
- proto.PlantPOrganizationGetByIdResponse.prototype.getMeta = function() {
2511
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2512
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2513
- };
2514
-
2515
-
2516
- /**
2517
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2518
- * @return {!proto.PlantPOrganizationGetByIdResponse} returns this
2519
- */
2520
- proto.PlantPOrganizationGetByIdResponse.prototype.setMeta = function(value) {
2521
- return jspb.Message.setWrapperField(this, 2, value);
2522
- };
2523
-
2524
-
2525
- /**
2526
- * Clears the message field making it undefined.
2527
- * @return {!proto.PlantPOrganizationGetByIdResponse} returns this
2528
- */
2529
- proto.PlantPOrganizationGetByIdResponse.prototype.clearMeta = function() {
2530
- return this.setMeta(undefined);
2531
- };
2532
-
2533
-
2534
- /**
2535
- * Returns whether this field is set.
2536
- * @return {boolean}
2537
- */
2538
- proto.PlantPOrganizationGetByIdResponse.prototype.hasMeta = function() {
2539
- return jspb.Message.getField(this, 2) != null;
2540
- };
2541
-
2542
-
2543
- goog.object.extend(exports, proto);