@aldiokta/protocgen 1.1.23 → 1.1.25

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