@aldiokta/protocgen 1.1.45 → 1.1.47

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