@aldiokta/protocgen 1.0.55 → 1.0.56

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