@aldiokta/protocgen 1.1.44 → 1.1.45

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