@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,2927 @@
1
+ // source: prisca/v1/purchasing_group/purchasing_group.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.BasePurchasingGroup', null, global);
29
+ goog.exportSymbol('proto.CreatePurchasingGroupRequest', null, global);
30
+ goog.exportSymbol('proto.CreatePurchasingGroupResponse', null, global);
31
+ goog.exportSymbol('proto.DeletePurchasingGroupRequest', null, global);
32
+ goog.exportSymbol('proto.DeletePurchasingGroupResponse', null, global);
33
+ goog.exportSymbol('proto.GetListPurchasingGroupRequest', null, global);
34
+ goog.exportSymbol('proto.GetListPurchasingGroupResponse', null, global);
35
+ goog.exportSymbol('proto.PurchasingGroup', null, global);
36
+ goog.exportSymbol('proto.PurchasingGroupGetByIdRequest', null, global);
37
+ goog.exportSymbol('proto.PurchasingGroupGetByIdResponse', null, global);
38
+ goog.exportSymbol('proto.UpdatePurchasingGroupRequest', null, global);
39
+ goog.exportSymbol('proto.UpdatePurchasingGroupResponse', 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.PurchasingGroup = function(opt_data) {
51
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
52
+ };
53
+ goog.inherits(proto.PurchasingGroup, jspb.Message);
54
+ if (goog.DEBUG && !COMPILED) {
55
+ /**
56
+ * @public
57
+ * @override
58
+ */
59
+ proto.PurchasingGroup.displayName = 'proto.PurchasingGroup';
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.BasePurchasingGroup = function(opt_data) {
72
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
73
+ };
74
+ goog.inherits(proto.BasePurchasingGroup, jspb.Message);
75
+ if (goog.DEBUG && !COMPILED) {
76
+ /**
77
+ * @public
78
+ * @override
79
+ */
80
+ proto.BasePurchasingGroup.displayName = 'proto.BasePurchasingGroup';
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.PurchasingGroupGetByIdRequest = function(opt_data) {
93
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
94
+ };
95
+ goog.inherits(proto.PurchasingGroupGetByIdRequest, jspb.Message);
96
+ if (goog.DEBUG && !COMPILED) {
97
+ /**
98
+ * @public
99
+ * @override
100
+ */
101
+ proto.PurchasingGroupGetByIdRequest.displayName = 'proto.PurchasingGroupGetByIdRequest';
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.CreatePurchasingGroupRequest = function(opt_data) {
114
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
115
+ };
116
+ goog.inherits(proto.CreatePurchasingGroupRequest, jspb.Message);
117
+ if (goog.DEBUG && !COMPILED) {
118
+ /**
119
+ * @public
120
+ * @override
121
+ */
122
+ proto.CreatePurchasingGroupRequest.displayName = 'proto.CreatePurchasingGroupRequest';
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.UpdatePurchasingGroupRequest = function(opt_data) {
135
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
136
+ };
137
+ goog.inherits(proto.UpdatePurchasingGroupRequest, jspb.Message);
138
+ if (goog.DEBUG && !COMPILED) {
139
+ /**
140
+ * @public
141
+ * @override
142
+ */
143
+ proto.UpdatePurchasingGroupRequest.displayName = 'proto.UpdatePurchasingGroupRequest';
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.DeletePurchasingGroupRequest = function(opt_data) {
156
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeletePurchasingGroupRequest.repeatedFields_, null);
157
+ };
158
+ goog.inherits(proto.DeletePurchasingGroupRequest, jspb.Message);
159
+ if (goog.DEBUG && !COMPILED) {
160
+ /**
161
+ * @public
162
+ * @override
163
+ */
164
+ proto.DeletePurchasingGroupRequest.displayName = 'proto.DeletePurchasingGroupRequest';
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.GetListPurchasingGroupRequest = function(opt_data) {
177
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
178
+ };
179
+ goog.inherits(proto.GetListPurchasingGroupRequest, jspb.Message);
180
+ if (goog.DEBUG && !COMPILED) {
181
+ /**
182
+ * @public
183
+ * @override
184
+ */
185
+ proto.GetListPurchasingGroupRequest.displayName = 'proto.GetListPurchasingGroupRequest';
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.CreatePurchasingGroupResponse = function(opt_data) {
198
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
199
+ };
200
+ goog.inherits(proto.CreatePurchasingGroupResponse, jspb.Message);
201
+ if (goog.DEBUG && !COMPILED) {
202
+ /**
203
+ * @public
204
+ * @override
205
+ */
206
+ proto.CreatePurchasingGroupResponse.displayName = 'proto.CreatePurchasingGroupResponse';
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.GetListPurchasingGroupResponse = function(opt_data) {
219
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListPurchasingGroupResponse.repeatedFields_, null);
220
+ };
221
+ goog.inherits(proto.GetListPurchasingGroupResponse, jspb.Message);
222
+ if (goog.DEBUG && !COMPILED) {
223
+ /**
224
+ * @public
225
+ * @override
226
+ */
227
+ proto.GetListPurchasingGroupResponse.displayName = 'proto.GetListPurchasingGroupResponse';
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.UpdatePurchasingGroupResponse = function(opt_data) {
240
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
241
+ };
242
+ goog.inherits(proto.UpdatePurchasingGroupResponse, jspb.Message);
243
+ if (goog.DEBUG && !COMPILED) {
244
+ /**
245
+ * @public
246
+ * @override
247
+ */
248
+ proto.UpdatePurchasingGroupResponse.displayName = 'proto.UpdatePurchasingGroupResponse';
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.PurchasingGroupGetByIdResponse = function(opt_data) {
261
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
262
+ };
263
+ goog.inherits(proto.PurchasingGroupGetByIdResponse, jspb.Message);
264
+ if (goog.DEBUG && !COMPILED) {
265
+ /**
266
+ * @public
267
+ * @override
268
+ */
269
+ proto.PurchasingGroupGetByIdResponse.displayName = 'proto.PurchasingGroupGetByIdResponse';
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.DeletePurchasingGroupResponse = function(opt_data) {
282
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeletePurchasingGroupResponse.repeatedFields_, null);
283
+ };
284
+ goog.inherits(proto.DeletePurchasingGroupResponse, jspb.Message);
285
+ if (goog.DEBUG && !COMPILED) {
286
+ /**
287
+ * @public
288
+ * @override
289
+ */
290
+ proto.DeletePurchasingGroupResponse.displayName = 'proto.DeletePurchasingGroupResponse';
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.PurchasingGroup.prototype.toObject = function(opt_includeInstance) {
309
+ return proto.PurchasingGroup.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.PurchasingGroup} msg The msg instance to transform.
319
+ * @return {!Object}
320
+ * @suppress {unusedLocalVariables} f is only used for nested messages
321
+ */
322
+ proto.PurchasingGroup.toObject = function(includeInstance, msg) {
323
+ var f, obj = {
324
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
325
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
326
+ telephone: jspb.Message.getFieldWithDefault(msg, 3, ""),
327
+ telephoneNoPurchasingGroup: jspb.Message.getFieldWithDefault(msg, 4, ""),
328
+ faxNumber: jspb.Message.getFieldWithDefault(msg, 5, ""),
329
+ extension: jspb.Message.getFieldWithDefault(msg, 6, 0),
330
+ emailAddress: jspb.Message.getFieldWithDefault(msg, 7, ""),
331
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 8, ""),
332
+ code: jspb.Message.getFieldWithDefault(msg, 9, "")
333
+ };
334
+
335
+ if (includeInstance) {
336
+ obj.$jspbMessageInstance = msg;
337
+ }
338
+ return obj;
339
+ };
340
+ }
341
+
342
+
343
+ /**
344
+ * Deserializes binary data (in protobuf wire format).
345
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
346
+ * @return {!proto.PurchasingGroup}
347
+ */
348
+ proto.PurchasingGroup.deserializeBinary = function(bytes) {
349
+ var reader = new jspb.BinaryReader(bytes);
350
+ var msg = new proto.PurchasingGroup;
351
+ return proto.PurchasingGroup.deserializeBinaryFromReader(msg, reader);
352
+ };
353
+
354
+
355
+ /**
356
+ * Deserializes binary data (in protobuf wire format) from the
357
+ * given reader into the given message object.
358
+ * @param {!proto.PurchasingGroup} msg The message object to deserialize into.
359
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
360
+ * @return {!proto.PurchasingGroup}
361
+ */
362
+ proto.PurchasingGroup.deserializeBinaryFromReader = function(msg, reader) {
363
+ while (reader.nextField()) {
364
+ if (reader.isEndGroup()) {
365
+ break;
366
+ }
367
+ var field = reader.getFieldNumber();
368
+ switch (field) {
369
+ case 1:
370
+ var value = /** @type {string} */ (reader.readString());
371
+ msg.setReferencesId(value);
372
+ break;
373
+ case 2:
374
+ var value = /** @type {string} */ (reader.readString());
375
+ msg.setDescription(value);
376
+ break;
377
+ case 3:
378
+ var value = /** @type {string} */ (reader.readString());
379
+ msg.setTelephone(value);
380
+ break;
381
+ case 4:
382
+ var value = /** @type {string} */ (reader.readString());
383
+ msg.setTelephoneNoPurchasingGroup(value);
384
+ break;
385
+ case 5:
386
+ var value = /** @type {string} */ (reader.readString());
387
+ msg.setFaxNumber(value);
388
+ break;
389
+ case 6:
390
+ var value = /** @type {number} */ (reader.readInt64());
391
+ msg.setExtension$(value);
392
+ break;
393
+ case 7:
394
+ var value = /** @type {string} */ (reader.readString());
395
+ msg.setEmailAddress(value);
396
+ break;
397
+ case 8:
398
+ var value = /** @type {string} */ (reader.readString());
399
+ msg.setCompaniesReferencesId(value);
400
+ break;
401
+ case 9:
402
+ var value = /** @type {string} */ (reader.readString());
403
+ msg.setCode(value);
404
+ break;
405
+ default:
406
+ reader.skipField();
407
+ break;
408
+ }
409
+ }
410
+ return msg;
411
+ };
412
+
413
+
414
+ /**
415
+ * Serializes the message to binary data (in protobuf wire format).
416
+ * @return {!Uint8Array}
417
+ */
418
+ proto.PurchasingGroup.prototype.serializeBinary = function() {
419
+ var writer = new jspb.BinaryWriter();
420
+ proto.PurchasingGroup.serializeBinaryToWriter(this, writer);
421
+ return writer.getResultBuffer();
422
+ };
423
+
424
+
425
+ /**
426
+ * Serializes the given message to binary data (in protobuf wire
427
+ * format), writing to the given BinaryWriter.
428
+ * @param {!proto.PurchasingGroup} message
429
+ * @param {!jspb.BinaryWriter} writer
430
+ * @suppress {unusedLocalVariables} f is only used for nested messages
431
+ */
432
+ proto.PurchasingGroup.serializeBinaryToWriter = function(message, writer) {
433
+ var f = undefined;
434
+ f = message.getReferencesId();
435
+ if (f.length > 0) {
436
+ writer.writeString(
437
+ 1,
438
+ f
439
+ );
440
+ }
441
+ f = message.getDescription();
442
+ if (f.length > 0) {
443
+ writer.writeString(
444
+ 2,
445
+ f
446
+ );
447
+ }
448
+ f = message.getTelephone();
449
+ if (f.length > 0) {
450
+ writer.writeString(
451
+ 3,
452
+ f
453
+ );
454
+ }
455
+ f = message.getTelephoneNoPurchasingGroup();
456
+ if (f.length > 0) {
457
+ writer.writeString(
458
+ 4,
459
+ f
460
+ );
461
+ }
462
+ f = message.getFaxNumber();
463
+ if (f.length > 0) {
464
+ writer.writeString(
465
+ 5,
466
+ f
467
+ );
468
+ }
469
+ f = message.getExtension$();
470
+ if (f !== 0) {
471
+ writer.writeInt64(
472
+ 6,
473
+ f
474
+ );
475
+ }
476
+ f = message.getEmailAddress();
477
+ if (f.length > 0) {
478
+ writer.writeString(
479
+ 7,
480
+ f
481
+ );
482
+ }
483
+ f = message.getCompaniesReferencesId();
484
+ if (f.length > 0) {
485
+ writer.writeString(
486
+ 8,
487
+ f
488
+ );
489
+ }
490
+ f = message.getCode();
491
+ if (f.length > 0) {
492
+ writer.writeString(
493
+ 9,
494
+ f
495
+ );
496
+ }
497
+ };
498
+
499
+
500
+ /**
501
+ * optional string references_id = 1;
502
+ * @return {string}
503
+ */
504
+ proto.PurchasingGroup.prototype.getReferencesId = function() {
505
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
506
+ };
507
+
508
+
509
+ /**
510
+ * @param {string} value
511
+ * @return {!proto.PurchasingGroup} returns this
512
+ */
513
+ proto.PurchasingGroup.prototype.setReferencesId = function(value) {
514
+ return jspb.Message.setProto3StringField(this, 1, value);
515
+ };
516
+
517
+
518
+ /**
519
+ * optional string description = 2;
520
+ * @return {string}
521
+ */
522
+ proto.PurchasingGroup.prototype.getDescription = function() {
523
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
524
+ };
525
+
526
+
527
+ /**
528
+ * @param {string} value
529
+ * @return {!proto.PurchasingGroup} returns this
530
+ */
531
+ proto.PurchasingGroup.prototype.setDescription = function(value) {
532
+ return jspb.Message.setProto3StringField(this, 2, value);
533
+ };
534
+
535
+
536
+ /**
537
+ * optional string telephone = 3;
538
+ * @return {string}
539
+ */
540
+ proto.PurchasingGroup.prototype.getTelephone = function() {
541
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
542
+ };
543
+
544
+
545
+ /**
546
+ * @param {string} value
547
+ * @return {!proto.PurchasingGroup} returns this
548
+ */
549
+ proto.PurchasingGroup.prototype.setTelephone = function(value) {
550
+ return jspb.Message.setProto3StringField(this, 3, value);
551
+ };
552
+
553
+
554
+ /**
555
+ * optional string telephone_no_purchasing_group = 4;
556
+ * @return {string}
557
+ */
558
+ proto.PurchasingGroup.prototype.getTelephoneNoPurchasingGroup = function() {
559
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
560
+ };
561
+
562
+
563
+ /**
564
+ * @param {string} value
565
+ * @return {!proto.PurchasingGroup} returns this
566
+ */
567
+ proto.PurchasingGroup.prototype.setTelephoneNoPurchasingGroup = function(value) {
568
+ return jspb.Message.setProto3StringField(this, 4, value);
569
+ };
570
+
571
+
572
+ /**
573
+ * optional string fax_number = 5;
574
+ * @return {string}
575
+ */
576
+ proto.PurchasingGroup.prototype.getFaxNumber = function() {
577
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
578
+ };
579
+
580
+
581
+ /**
582
+ * @param {string} value
583
+ * @return {!proto.PurchasingGroup} returns this
584
+ */
585
+ proto.PurchasingGroup.prototype.setFaxNumber = function(value) {
586
+ return jspb.Message.setProto3StringField(this, 5, value);
587
+ };
588
+
589
+
590
+ /**
591
+ * optional int64 extension = 6;
592
+ * @return {number}
593
+ */
594
+ proto.PurchasingGroup.prototype.getExtension$ = function() {
595
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
596
+ };
597
+
598
+
599
+ /**
600
+ * @param {number} value
601
+ * @return {!proto.PurchasingGroup} returns this
602
+ */
603
+ proto.PurchasingGroup.prototype.setExtension$ = function(value) {
604
+ return jspb.Message.setProto3IntField(this, 6, value);
605
+ };
606
+
607
+
608
+ /**
609
+ * optional string email_address = 7;
610
+ * @return {string}
611
+ */
612
+ proto.PurchasingGroup.prototype.getEmailAddress = function() {
613
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
614
+ };
615
+
616
+
617
+ /**
618
+ * @param {string} value
619
+ * @return {!proto.PurchasingGroup} returns this
620
+ */
621
+ proto.PurchasingGroup.prototype.setEmailAddress = function(value) {
622
+ return jspb.Message.setProto3StringField(this, 7, value);
623
+ };
624
+
625
+
626
+ /**
627
+ * optional string companies_references_id = 8;
628
+ * @return {string}
629
+ */
630
+ proto.PurchasingGroup.prototype.getCompaniesReferencesId = function() {
631
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
632
+ };
633
+
634
+
635
+ /**
636
+ * @param {string} value
637
+ * @return {!proto.PurchasingGroup} returns this
638
+ */
639
+ proto.PurchasingGroup.prototype.setCompaniesReferencesId = function(value) {
640
+ return jspb.Message.setProto3StringField(this, 8, value);
641
+ };
642
+
643
+
644
+ /**
645
+ * optional string code = 9;
646
+ * @return {string}
647
+ */
648
+ proto.PurchasingGroup.prototype.getCode = function() {
649
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
650
+ };
651
+
652
+
653
+ /**
654
+ * @param {string} value
655
+ * @return {!proto.PurchasingGroup} returns this
656
+ */
657
+ proto.PurchasingGroup.prototype.setCode = function(value) {
658
+ return jspb.Message.setProto3StringField(this, 9, value);
659
+ };
660
+
661
+
662
+
663
+
664
+
665
+ if (jspb.Message.GENERATE_TO_OBJECT) {
666
+ /**
667
+ * Creates an object representation of this proto.
668
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
669
+ * Optional fields that are not set will be set to undefined.
670
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
671
+ * For the list of reserved names please see:
672
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
673
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
674
+ * JSPB instance for transitional soy proto support:
675
+ * http://goto/soy-param-migration
676
+ * @return {!Object}
677
+ */
678
+ proto.BasePurchasingGroup.prototype.toObject = function(opt_includeInstance) {
679
+ return proto.BasePurchasingGroup.toObject(opt_includeInstance, this);
680
+ };
681
+
682
+
683
+ /**
684
+ * Static version of the {@see toObject} method.
685
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
686
+ * the JSPB instance for transitional soy proto support:
687
+ * http://goto/soy-param-migration
688
+ * @param {!proto.BasePurchasingGroup} msg The msg instance to transform.
689
+ * @return {!Object}
690
+ * @suppress {unusedLocalVariables} f is only used for nested messages
691
+ */
692
+ proto.BasePurchasingGroup.toObject = function(includeInstance, msg) {
693
+ var f, obj = {
694
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
695
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
696
+ telephone: jspb.Message.getFieldWithDefault(msg, 3, ""),
697
+ telephoneNoPurchasingGroup: jspb.Message.getFieldWithDefault(msg, 4, ""),
698
+ faxNumber: jspb.Message.getFieldWithDefault(msg, 5, ""),
699
+ extension: jspb.Message.getFieldWithDefault(msg, 6, 0),
700
+ emailAddress: jspb.Message.getFieldWithDefault(msg, 7, ""),
701
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 8, ""),
702
+ company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f),
703
+ code: jspb.Message.getFieldWithDefault(msg, 10, "")
704
+ };
705
+
706
+ if (includeInstance) {
707
+ obj.$jspbMessageInstance = msg;
708
+ }
709
+ return obj;
710
+ };
711
+ }
712
+
713
+
714
+ /**
715
+ * Deserializes binary data (in protobuf wire format).
716
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
717
+ * @return {!proto.BasePurchasingGroup}
718
+ */
719
+ proto.BasePurchasingGroup.deserializeBinary = function(bytes) {
720
+ var reader = new jspb.BinaryReader(bytes);
721
+ var msg = new proto.BasePurchasingGroup;
722
+ return proto.BasePurchasingGroup.deserializeBinaryFromReader(msg, reader);
723
+ };
724
+
725
+
726
+ /**
727
+ * Deserializes binary data (in protobuf wire format) from the
728
+ * given reader into the given message object.
729
+ * @param {!proto.BasePurchasingGroup} msg The message object to deserialize into.
730
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
731
+ * @return {!proto.BasePurchasingGroup}
732
+ */
733
+ proto.BasePurchasingGroup.deserializeBinaryFromReader = function(msg, reader) {
734
+ while (reader.nextField()) {
735
+ if (reader.isEndGroup()) {
736
+ break;
737
+ }
738
+ var field = reader.getFieldNumber();
739
+ switch (field) {
740
+ case 1:
741
+ var value = /** @type {string} */ (reader.readString());
742
+ msg.setReferencesId(value);
743
+ break;
744
+ case 2:
745
+ var value = /** @type {string} */ (reader.readString());
746
+ msg.setDescription(value);
747
+ break;
748
+ case 3:
749
+ var value = /** @type {string} */ (reader.readString());
750
+ msg.setTelephone(value);
751
+ break;
752
+ case 4:
753
+ var value = /** @type {string} */ (reader.readString());
754
+ msg.setTelephoneNoPurchasingGroup(value);
755
+ break;
756
+ case 5:
757
+ var value = /** @type {string} */ (reader.readString());
758
+ msg.setFaxNumber(value);
759
+ break;
760
+ case 6:
761
+ var value = /** @type {number} */ (reader.readInt64());
762
+ msg.setExtension$(value);
763
+ break;
764
+ case 7:
765
+ var value = /** @type {string} */ (reader.readString());
766
+ msg.setEmailAddress(value);
767
+ break;
768
+ case 8:
769
+ var value = /** @type {string} */ (reader.readString());
770
+ msg.setCompaniesReferencesId(value);
771
+ break;
772
+ case 9:
773
+ var value = new prisca_v1_core_company_company_pb.Company;
774
+ reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
775
+ msg.setCompany(value);
776
+ break;
777
+ case 10:
778
+ var value = /** @type {string} */ (reader.readString());
779
+ msg.setCode(value);
780
+ break;
781
+ default:
782
+ reader.skipField();
783
+ break;
784
+ }
785
+ }
786
+ return msg;
787
+ };
788
+
789
+
790
+ /**
791
+ * Serializes the message to binary data (in protobuf wire format).
792
+ * @return {!Uint8Array}
793
+ */
794
+ proto.BasePurchasingGroup.prototype.serializeBinary = function() {
795
+ var writer = new jspb.BinaryWriter();
796
+ proto.BasePurchasingGroup.serializeBinaryToWriter(this, writer);
797
+ return writer.getResultBuffer();
798
+ };
799
+
800
+
801
+ /**
802
+ * Serializes the given message to binary data (in protobuf wire
803
+ * format), writing to the given BinaryWriter.
804
+ * @param {!proto.BasePurchasingGroup} message
805
+ * @param {!jspb.BinaryWriter} writer
806
+ * @suppress {unusedLocalVariables} f is only used for nested messages
807
+ */
808
+ proto.BasePurchasingGroup.serializeBinaryToWriter = function(message, writer) {
809
+ var f = undefined;
810
+ f = message.getReferencesId();
811
+ if (f.length > 0) {
812
+ writer.writeString(
813
+ 1,
814
+ f
815
+ );
816
+ }
817
+ f = message.getDescription();
818
+ if (f.length > 0) {
819
+ writer.writeString(
820
+ 2,
821
+ f
822
+ );
823
+ }
824
+ f = message.getTelephone();
825
+ if (f.length > 0) {
826
+ writer.writeString(
827
+ 3,
828
+ f
829
+ );
830
+ }
831
+ f = message.getTelephoneNoPurchasingGroup();
832
+ if (f.length > 0) {
833
+ writer.writeString(
834
+ 4,
835
+ f
836
+ );
837
+ }
838
+ f = message.getFaxNumber();
839
+ if (f.length > 0) {
840
+ writer.writeString(
841
+ 5,
842
+ f
843
+ );
844
+ }
845
+ f = message.getExtension$();
846
+ if (f !== 0) {
847
+ writer.writeInt64(
848
+ 6,
849
+ f
850
+ );
851
+ }
852
+ f = message.getEmailAddress();
853
+ if (f.length > 0) {
854
+ writer.writeString(
855
+ 7,
856
+ f
857
+ );
858
+ }
859
+ f = message.getCompaniesReferencesId();
860
+ if (f.length > 0) {
861
+ writer.writeString(
862
+ 8,
863
+ f
864
+ );
865
+ }
866
+ f = message.getCompany();
867
+ if (f != null) {
868
+ writer.writeMessage(
869
+ 9,
870
+ f,
871
+ prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
872
+ );
873
+ }
874
+ f = message.getCode();
875
+ if (f.length > 0) {
876
+ writer.writeString(
877
+ 10,
878
+ f
879
+ );
880
+ }
881
+ };
882
+
883
+
884
+ /**
885
+ * optional string references_id = 1;
886
+ * @return {string}
887
+ */
888
+ proto.BasePurchasingGroup.prototype.getReferencesId = function() {
889
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
890
+ };
891
+
892
+
893
+ /**
894
+ * @param {string} value
895
+ * @return {!proto.BasePurchasingGroup} returns this
896
+ */
897
+ proto.BasePurchasingGroup.prototype.setReferencesId = function(value) {
898
+ return jspb.Message.setProto3StringField(this, 1, value);
899
+ };
900
+
901
+
902
+ /**
903
+ * optional string description = 2;
904
+ * @return {string}
905
+ */
906
+ proto.BasePurchasingGroup.prototype.getDescription = function() {
907
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
908
+ };
909
+
910
+
911
+ /**
912
+ * @param {string} value
913
+ * @return {!proto.BasePurchasingGroup} returns this
914
+ */
915
+ proto.BasePurchasingGroup.prototype.setDescription = function(value) {
916
+ return jspb.Message.setProto3StringField(this, 2, value);
917
+ };
918
+
919
+
920
+ /**
921
+ * optional string telephone = 3;
922
+ * @return {string}
923
+ */
924
+ proto.BasePurchasingGroup.prototype.getTelephone = function() {
925
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
926
+ };
927
+
928
+
929
+ /**
930
+ * @param {string} value
931
+ * @return {!proto.BasePurchasingGroup} returns this
932
+ */
933
+ proto.BasePurchasingGroup.prototype.setTelephone = function(value) {
934
+ return jspb.Message.setProto3StringField(this, 3, value);
935
+ };
936
+
937
+
938
+ /**
939
+ * optional string telephone_no_purchasing_group = 4;
940
+ * @return {string}
941
+ */
942
+ proto.BasePurchasingGroup.prototype.getTelephoneNoPurchasingGroup = function() {
943
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
944
+ };
945
+
946
+
947
+ /**
948
+ * @param {string} value
949
+ * @return {!proto.BasePurchasingGroup} returns this
950
+ */
951
+ proto.BasePurchasingGroup.prototype.setTelephoneNoPurchasingGroup = function(value) {
952
+ return jspb.Message.setProto3StringField(this, 4, value);
953
+ };
954
+
955
+
956
+ /**
957
+ * optional string fax_number = 5;
958
+ * @return {string}
959
+ */
960
+ proto.BasePurchasingGroup.prototype.getFaxNumber = function() {
961
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
962
+ };
963
+
964
+
965
+ /**
966
+ * @param {string} value
967
+ * @return {!proto.BasePurchasingGroup} returns this
968
+ */
969
+ proto.BasePurchasingGroup.prototype.setFaxNumber = function(value) {
970
+ return jspb.Message.setProto3StringField(this, 5, value);
971
+ };
972
+
973
+
974
+ /**
975
+ * optional int64 extension = 6;
976
+ * @return {number}
977
+ */
978
+ proto.BasePurchasingGroup.prototype.getExtension$ = function() {
979
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
980
+ };
981
+
982
+
983
+ /**
984
+ * @param {number} value
985
+ * @return {!proto.BasePurchasingGroup} returns this
986
+ */
987
+ proto.BasePurchasingGroup.prototype.setExtension$ = function(value) {
988
+ return jspb.Message.setProto3IntField(this, 6, value);
989
+ };
990
+
991
+
992
+ /**
993
+ * optional string email_address = 7;
994
+ * @return {string}
995
+ */
996
+ proto.BasePurchasingGroup.prototype.getEmailAddress = function() {
997
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
998
+ };
999
+
1000
+
1001
+ /**
1002
+ * @param {string} value
1003
+ * @return {!proto.BasePurchasingGroup} returns this
1004
+ */
1005
+ proto.BasePurchasingGroup.prototype.setEmailAddress = function(value) {
1006
+ return jspb.Message.setProto3StringField(this, 7, value);
1007
+ };
1008
+
1009
+
1010
+ /**
1011
+ * optional string companies_references_id = 8;
1012
+ * @return {string}
1013
+ */
1014
+ proto.BasePurchasingGroup.prototype.getCompaniesReferencesId = function() {
1015
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1016
+ };
1017
+
1018
+
1019
+ /**
1020
+ * @param {string} value
1021
+ * @return {!proto.BasePurchasingGroup} returns this
1022
+ */
1023
+ proto.BasePurchasingGroup.prototype.setCompaniesReferencesId = function(value) {
1024
+ return jspb.Message.setProto3StringField(this, 8, value);
1025
+ };
1026
+
1027
+
1028
+ /**
1029
+ * optional Company company = 9;
1030
+ * @return {?proto.Company}
1031
+ */
1032
+ proto.BasePurchasingGroup.prototype.getCompany = function() {
1033
+ return /** @type{?proto.Company} */ (
1034
+ jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 9));
1035
+ };
1036
+
1037
+
1038
+ /**
1039
+ * @param {?proto.Company|undefined} value
1040
+ * @return {!proto.BasePurchasingGroup} returns this
1041
+ */
1042
+ proto.BasePurchasingGroup.prototype.setCompany = function(value) {
1043
+ return jspb.Message.setWrapperField(this, 9, value);
1044
+ };
1045
+
1046
+
1047
+ /**
1048
+ * Clears the message field making it undefined.
1049
+ * @return {!proto.BasePurchasingGroup} returns this
1050
+ */
1051
+ proto.BasePurchasingGroup.prototype.clearCompany = function() {
1052
+ return this.setCompany(undefined);
1053
+ };
1054
+
1055
+
1056
+ /**
1057
+ * Returns whether this field is set.
1058
+ * @return {boolean}
1059
+ */
1060
+ proto.BasePurchasingGroup.prototype.hasCompany = function() {
1061
+ return jspb.Message.getField(this, 9) != null;
1062
+ };
1063
+
1064
+
1065
+ /**
1066
+ * optional string code = 10;
1067
+ * @return {string}
1068
+ */
1069
+ proto.BasePurchasingGroup.prototype.getCode = function() {
1070
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1071
+ };
1072
+
1073
+
1074
+ /**
1075
+ * @param {string} value
1076
+ * @return {!proto.BasePurchasingGroup} returns this
1077
+ */
1078
+ proto.BasePurchasingGroup.prototype.setCode = function(value) {
1079
+ return jspb.Message.setProto3StringField(this, 10, value);
1080
+ };
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1087
+ /**
1088
+ * Creates an object representation of this proto.
1089
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1090
+ * Optional fields that are not set will be set to undefined.
1091
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1092
+ * For the list of reserved names please see:
1093
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1094
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1095
+ * JSPB instance for transitional soy proto support:
1096
+ * http://goto/soy-param-migration
1097
+ * @return {!Object}
1098
+ */
1099
+ proto.PurchasingGroupGetByIdRequest.prototype.toObject = function(opt_includeInstance) {
1100
+ return proto.PurchasingGroupGetByIdRequest.toObject(opt_includeInstance, this);
1101
+ };
1102
+
1103
+
1104
+ /**
1105
+ * Static version of the {@see toObject} method.
1106
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1107
+ * the JSPB instance for transitional soy proto support:
1108
+ * http://goto/soy-param-migration
1109
+ * @param {!proto.PurchasingGroupGetByIdRequest} msg The msg instance to transform.
1110
+ * @return {!Object}
1111
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1112
+ */
1113
+ proto.PurchasingGroupGetByIdRequest.toObject = function(includeInstance, msg) {
1114
+ var f, obj = {
1115
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1116
+ };
1117
+
1118
+ if (includeInstance) {
1119
+ obj.$jspbMessageInstance = msg;
1120
+ }
1121
+ return obj;
1122
+ };
1123
+ }
1124
+
1125
+
1126
+ /**
1127
+ * Deserializes binary data (in protobuf wire format).
1128
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1129
+ * @return {!proto.PurchasingGroupGetByIdRequest}
1130
+ */
1131
+ proto.PurchasingGroupGetByIdRequest.deserializeBinary = function(bytes) {
1132
+ var reader = new jspb.BinaryReader(bytes);
1133
+ var msg = new proto.PurchasingGroupGetByIdRequest;
1134
+ return proto.PurchasingGroupGetByIdRequest.deserializeBinaryFromReader(msg, reader);
1135
+ };
1136
+
1137
+
1138
+ /**
1139
+ * Deserializes binary data (in protobuf wire format) from the
1140
+ * given reader into the given message object.
1141
+ * @param {!proto.PurchasingGroupGetByIdRequest} msg The message object to deserialize into.
1142
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1143
+ * @return {!proto.PurchasingGroupGetByIdRequest}
1144
+ */
1145
+ proto.PurchasingGroupGetByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
1146
+ while (reader.nextField()) {
1147
+ if (reader.isEndGroup()) {
1148
+ break;
1149
+ }
1150
+ var field = reader.getFieldNumber();
1151
+ switch (field) {
1152
+ case 1:
1153
+ var value = /** @type {string} */ (reader.readString());
1154
+ msg.setReferencesId(value);
1155
+ break;
1156
+ default:
1157
+ reader.skipField();
1158
+ break;
1159
+ }
1160
+ }
1161
+ return msg;
1162
+ };
1163
+
1164
+
1165
+ /**
1166
+ * Serializes the message to binary data (in protobuf wire format).
1167
+ * @return {!Uint8Array}
1168
+ */
1169
+ proto.PurchasingGroupGetByIdRequest.prototype.serializeBinary = function() {
1170
+ var writer = new jspb.BinaryWriter();
1171
+ proto.PurchasingGroupGetByIdRequest.serializeBinaryToWriter(this, writer);
1172
+ return writer.getResultBuffer();
1173
+ };
1174
+
1175
+
1176
+ /**
1177
+ * Serializes the given message to binary data (in protobuf wire
1178
+ * format), writing to the given BinaryWriter.
1179
+ * @param {!proto.PurchasingGroupGetByIdRequest} message
1180
+ * @param {!jspb.BinaryWriter} writer
1181
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1182
+ */
1183
+ proto.PurchasingGroupGetByIdRequest.serializeBinaryToWriter = function(message, writer) {
1184
+ var f = undefined;
1185
+ f = message.getReferencesId();
1186
+ if (f.length > 0) {
1187
+ writer.writeString(
1188
+ 1,
1189
+ f
1190
+ );
1191
+ }
1192
+ };
1193
+
1194
+
1195
+ /**
1196
+ * optional string references_id = 1;
1197
+ * @return {string}
1198
+ */
1199
+ proto.PurchasingGroupGetByIdRequest.prototype.getReferencesId = function() {
1200
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1201
+ };
1202
+
1203
+
1204
+ /**
1205
+ * @param {string} value
1206
+ * @return {!proto.PurchasingGroupGetByIdRequest} returns this
1207
+ */
1208
+ proto.PurchasingGroupGetByIdRequest.prototype.setReferencesId = function(value) {
1209
+ return jspb.Message.setProto3StringField(this, 1, value);
1210
+ };
1211
+
1212
+
1213
+
1214
+
1215
+
1216
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1217
+ /**
1218
+ * Creates an object representation of this proto.
1219
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1220
+ * Optional fields that are not set will be set to undefined.
1221
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1222
+ * For the list of reserved names please see:
1223
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1224
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1225
+ * JSPB instance for transitional soy proto support:
1226
+ * http://goto/soy-param-migration
1227
+ * @return {!Object}
1228
+ */
1229
+ proto.CreatePurchasingGroupRequest.prototype.toObject = function(opt_includeInstance) {
1230
+ return proto.CreatePurchasingGroupRequest.toObject(opt_includeInstance, this);
1231
+ };
1232
+
1233
+
1234
+ /**
1235
+ * Static version of the {@see toObject} method.
1236
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1237
+ * the JSPB instance for transitional soy proto support:
1238
+ * http://goto/soy-param-migration
1239
+ * @param {!proto.CreatePurchasingGroupRequest} msg The msg instance to transform.
1240
+ * @return {!Object}
1241
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1242
+ */
1243
+ proto.CreatePurchasingGroupRequest.toObject = function(includeInstance, msg) {
1244
+ var f, obj = {
1245
+ purchasingGroup: (f = msg.getPurchasingGroup()) && proto.PurchasingGroup.toObject(includeInstance, f)
1246
+ };
1247
+
1248
+ if (includeInstance) {
1249
+ obj.$jspbMessageInstance = msg;
1250
+ }
1251
+ return obj;
1252
+ };
1253
+ }
1254
+
1255
+
1256
+ /**
1257
+ * Deserializes binary data (in protobuf wire format).
1258
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1259
+ * @return {!proto.CreatePurchasingGroupRequest}
1260
+ */
1261
+ proto.CreatePurchasingGroupRequest.deserializeBinary = function(bytes) {
1262
+ var reader = new jspb.BinaryReader(bytes);
1263
+ var msg = new proto.CreatePurchasingGroupRequest;
1264
+ return proto.CreatePurchasingGroupRequest.deserializeBinaryFromReader(msg, reader);
1265
+ };
1266
+
1267
+
1268
+ /**
1269
+ * Deserializes binary data (in protobuf wire format) from the
1270
+ * given reader into the given message object.
1271
+ * @param {!proto.CreatePurchasingGroupRequest} msg The message object to deserialize into.
1272
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1273
+ * @return {!proto.CreatePurchasingGroupRequest}
1274
+ */
1275
+ proto.CreatePurchasingGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
1276
+ while (reader.nextField()) {
1277
+ if (reader.isEndGroup()) {
1278
+ break;
1279
+ }
1280
+ var field = reader.getFieldNumber();
1281
+ switch (field) {
1282
+ case 1:
1283
+ var value = new proto.PurchasingGroup;
1284
+ reader.readMessage(value,proto.PurchasingGroup.deserializeBinaryFromReader);
1285
+ msg.setPurchasingGroup(value);
1286
+ break;
1287
+ default:
1288
+ reader.skipField();
1289
+ break;
1290
+ }
1291
+ }
1292
+ return msg;
1293
+ };
1294
+
1295
+
1296
+ /**
1297
+ * Serializes the message to binary data (in protobuf wire format).
1298
+ * @return {!Uint8Array}
1299
+ */
1300
+ proto.CreatePurchasingGroupRequest.prototype.serializeBinary = function() {
1301
+ var writer = new jspb.BinaryWriter();
1302
+ proto.CreatePurchasingGroupRequest.serializeBinaryToWriter(this, writer);
1303
+ return writer.getResultBuffer();
1304
+ };
1305
+
1306
+
1307
+ /**
1308
+ * Serializes the given message to binary data (in protobuf wire
1309
+ * format), writing to the given BinaryWriter.
1310
+ * @param {!proto.CreatePurchasingGroupRequest} message
1311
+ * @param {!jspb.BinaryWriter} writer
1312
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1313
+ */
1314
+ proto.CreatePurchasingGroupRequest.serializeBinaryToWriter = function(message, writer) {
1315
+ var f = undefined;
1316
+ f = message.getPurchasingGroup();
1317
+ if (f != null) {
1318
+ writer.writeMessage(
1319
+ 1,
1320
+ f,
1321
+ proto.PurchasingGroup.serializeBinaryToWriter
1322
+ );
1323
+ }
1324
+ };
1325
+
1326
+
1327
+ /**
1328
+ * optional PurchasingGroup purchasing_group = 1;
1329
+ * @return {?proto.PurchasingGroup}
1330
+ */
1331
+ proto.CreatePurchasingGroupRequest.prototype.getPurchasingGroup = function() {
1332
+ return /** @type{?proto.PurchasingGroup} */ (
1333
+ jspb.Message.getWrapperField(this, proto.PurchasingGroup, 1));
1334
+ };
1335
+
1336
+
1337
+ /**
1338
+ * @param {?proto.PurchasingGroup|undefined} value
1339
+ * @return {!proto.CreatePurchasingGroupRequest} returns this
1340
+ */
1341
+ proto.CreatePurchasingGroupRequest.prototype.setPurchasingGroup = function(value) {
1342
+ return jspb.Message.setWrapperField(this, 1, value);
1343
+ };
1344
+
1345
+
1346
+ /**
1347
+ * Clears the message field making it undefined.
1348
+ * @return {!proto.CreatePurchasingGroupRequest} returns this
1349
+ */
1350
+ proto.CreatePurchasingGroupRequest.prototype.clearPurchasingGroup = function() {
1351
+ return this.setPurchasingGroup(undefined);
1352
+ };
1353
+
1354
+
1355
+ /**
1356
+ * Returns whether this field is set.
1357
+ * @return {boolean}
1358
+ */
1359
+ proto.CreatePurchasingGroupRequest.prototype.hasPurchasingGroup = function() {
1360
+ return jspb.Message.getField(this, 1) != null;
1361
+ };
1362
+
1363
+
1364
+
1365
+
1366
+
1367
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1368
+ /**
1369
+ * Creates an object representation of this proto.
1370
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1371
+ * Optional fields that are not set will be set to undefined.
1372
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1373
+ * For the list of reserved names please see:
1374
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1375
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1376
+ * JSPB instance for transitional soy proto support:
1377
+ * http://goto/soy-param-migration
1378
+ * @return {!Object}
1379
+ */
1380
+ proto.UpdatePurchasingGroupRequest.prototype.toObject = function(opt_includeInstance) {
1381
+ return proto.UpdatePurchasingGroupRequest.toObject(opt_includeInstance, this);
1382
+ };
1383
+
1384
+
1385
+ /**
1386
+ * Static version of the {@see toObject} method.
1387
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1388
+ * the JSPB instance for transitional soy proto support:
1389
+ * http://goto/soy-param-migration
1390
+ * @param {!proto.UpdatePurchasingGroupRequest} msg The msg instance to transform.
1391
+ * @return {!Object}
1392
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1393
+ */
1394
+ proto.UpdatePurchasingGroupRequest.toObject = function(includeInstance, msg) {
1395
+ var f, obj = {
1396
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1397
+ purchasingGroup: (f = msg.getPurchasingGroup()) && proto.PurchasingGroup.toObject(includeInstance, f)
1398
+ };
1399
+
1400
+ if (includeInstance) {
1401
+ obj.$jspbMessageInstance = msg;
1402
+ }
1403
+ return obj;
1404
+ };
1405
+ }
1406
+
1407
+
1408
+ /**
1409
+ * Deserializes binary data (in protobuf wire format).
1410
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1411
+ * @return {!proto.UpdatePurchasingGroupRequest}
1412
+ */
1413
+ proto.UpdatePurchasingGroupRequest.deserializeBinary = function(bytes) {
1414
+ var reader = new jspb.BinaryReader(bytes);
1415
+ var msg = new proto.UpdatePurchasingGroupRequest;
1416
+ return proto.UpdatePurchasingGroupRequest.deserializeBinaryFromReader(msg, reader);
1417
+ };
1418
+
1419
+
1420
+ /**
1421
+ * Deserializes binary data (in protobuf wire format) from the
1422
+ * given reader into the given message object.
1423
+ * @param {!proto.UpdatePurchasingGroupRequest} msg The message object to deserialize into.
1424
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1425
+ * @return {!proto.UpdatePurchasingGroupRequest}
1426
+ */
1427
+ proto.UpdatePurchasingGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
1428
+ while (reader.nextField()) {
1429
+ if (reader.isEndGroup()) {
1430
+ break;
1431
+ }
1432
+ var field = reader.getFieldNumber();
1433
+ switch (field) {
1434
+ case 1:
1435
+ var value = /** @type {string} */ (reader.readString());
1436
+ msg.setReferencesId(value);
1437
+ break;
1438
+ case 2:
1439
+ var value = new proto.PurchasingGroup;
1440
+ reader.readMessage(value,proto.PurchasingGroup.deserializeBinaryFromReader);
1441
+ msg.setPurchasingGroup(value);
1442
+ break;
1443
+ default:
1444
+ reader.skipField();
1445
+ break;
1446
+ }
1447
+ }
1448
+ return msg;
1449
+ };
1450
+
1451
+
1452
+ /**
1453
+ * Serializes the message to binary data (in protobuf wire format).
1454
+ * @return {!Uint8Array}
1455
+ */
1456
+ proto.UpdatePurchasingGroupRequest.prototype.serializeBinary = function() {
1457
+ var writer = new jspb.BinaryWriter();
1458
+ proto.UpdatePurchasingGroupRequest.serializeBinaryToWriter(this, writer);
1459
+ return writer.getResultBuffer();
1460
+ };
1461
+
1462
+
1463
+ /**
1464
+ * Serializes the given message to binary data (in protobuf wire
1465
+ * format), writing to the given BinaryWriter.
1466
+ * @param {!proto.UpdatePurchasingGroupRequest} message
1467
+ * @param {!jspb.BinaryWriter} writer
1468
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1469
+ */
1470
+ proto.UpdatePurchasingGroupRequest.serializeBinaryToWriter = function(message, writer) {
1471
+ var f = undefined;
1472
+ f = message.getReferencesId();
1473
+ if (f.length > 0) {
1474
+ writer.writeString(
1475
+ 1,
1476
+ f
1477
+ );
1478
+ }
1479
+ f = message.getPurchasingGroup();
1480
+ if (f != null) {
1481
+ writer.writeMessage(
1482
+ 2,
1483
+ f,
1484
+ proto.PurchasingGroup.serializeBinaryToWriter
1485
+ );
1486
+ }
1487
+ };
1488
+
1489
+
1490
+ /**
1491
+ * optional string references_id = 1;
1492
+ * @return {string}
1493
+ */
1494
+ proto.UpdatePurchasingGroupRequest.prototype.getReferencesId = function() {
1495
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1496
+ };
1497
+
1498
+
1499
+ /**
1500
+ * @param {string} value
1501
+ * @return {!proto.UpdatePurchasingGroupRequest} returns this
1502
+ */
1503
+ proto.UpdatePurchasingGroupRequest.prototype.setReferencesId = function(value) {
1504
+ return jspb.Message.setProto3StringField(this, 1, value);
1505
+ };
1506
+
1507
+
1508
+ /**
1509
+ * optional PurchasingGroup purchasing_group = 2;
1510
+ * @return {?proto.PurchasingGroup}
1511
+ */
1512
+ proto.UpdatePurchasingGroupRequest.prototype.getPurchasingGroup = function() {
1513
+ return /** @type{?proto.PurchasingGroup} */ (
1514
+ jspb.Message.getWrapperField(this, proto.PurchasingGroup, 2));
1515
+ };
1516
+
1517
+
1518
+ /**
1519
+ * @param {?proto.PurchasingGroup|undefined} value
1520
+ * @return {!proto.UpdatePurchasingGroupRequest} returns this
1521
+ */
1522
+ proto.UpdatePurchasingGroupRequest.prototype.setPurchasingGroup = function(value) {
1523
+ return jspb.Message.setWrapperField(this, 2, value);
1524
+ };
1525
+
1526
+
1527
+ /**
1528
+ * Clears the message field making it undefined.
1529
+ * @return {!proto.UpdatePurchasingGroupRequest} returns this
1530
+ */
1531
+ proto.UpdatePurchasingGroupRequest.prototype.clearPurchasingGroup = function() {
1532
+ return this.setPurchasingGroup(undefined);
1533
+ };
1534
+
1535
+
1536
+ /**
1537
+ * Returns whether this field is set.
1538
+ * @return {boolean}
1539
+ */
1540
+ proto.UpdatePurchasingGroupRequest.prototype.hasPurchasingGroup = function() {
1541
+ return jspb.Message.getField(this, 2) != null;
1542
+ };
1543
+
1544
+
1545
+
1546
+ /**
1547
+ * List of repeated fields within this message type.
1548
+ * @private {!Array<number>}
1549
+ * @const
1550
+ */
1551
+ proto.DeletePurchasingGroupRequest.repeatedFields_ = [1];
1552
+
1553
+
1554
+
1555
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1556
+ /**
1557
+ * Creates an object representation of this proto.
1558
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1559
+ * Optional fields that are not set will be set to undefined.
1560
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1561
+ * For the list of reserved names please see:
1562
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1563
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1564
+ * JSPB instance for transitional soy proto support:
1565
+ * http://goto/soy-param-migration
1566
+ * @return {!Object}
1567
+ */
1568
+ proto.DeletePurchasingGroupRequest.prototype.toObject = function(opt_includeInstance) {
1569
+ return proto.DeletePurchasingGroupRequest.toObject(opt_includeInstance, this);
1570
+ };
1571
+
1572
+
1573
+ /**
1574
+ * Static version of the {@see toObject} method.
1575
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1576
+ * the JSPB instance for transitional soy proto support:
1577
+ * http://goto/soy-param-migration
1578
+ * @param {!proto.DeletePurchasingGroupRequest} msg The msg instance to transform.
1579
+ * @return {!Object}
1580
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1581
+ */
1582
+ proto.DeletePurchasingGroupRequest.toObject = function(includeInstance, msg) {
1583
+ var f, obj = {
1584
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
1585
+ };
1586
+
1587
+ if (includeInstance) {
1588
+ obj.$jspbMessageInstance = msg;
1589
+ }
1590
+ return obj;
1591
+ };
1592
+ }
1593
+
1594
+
1595
+ /**
1596
+ * Deserializes binary data (in protobuf wire format).
1597
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1598
+ * @return {!proto.DeletePurchasingGroupRequest}
1599
+ */
1600
+ proto.DeletePurchasingGroupRequest.deserializeBinary = function(bytes) {
1601
+ var reader = new jspb.BinaryReader(bytes);
1602
+ var msg = new proto.DeletePurchasingGroupRequest;
1603
+ return proto.DeletePurchasingGroupRequest.deserializeBinaryFromReader(msg, reader);
1604
+ };
1605
+
1606
+
1607
+ /**
1608
+ * Deserializes binary data (in protobuf wire format) from the
1609
+ * given reader into the given message object.
1610
+ * @param {!proto.DeletePurchasingGroupRequest} msg The message object to deserialize into.
1611
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1612
+ * @return {!proto.DeletePurchasingGroupRequest}
1613
+ */
1614
+ proto.DeletePurchasingGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
1615
+ while (reader.nextField()) {
1616
+ if (reader.isEndGroup()) {
1617
+ break;
1618
+ }
1619
+ var field = reader.getFieldNumber();
1620
+ switch (field) {
1621
+ case 1:
1622
+ var value = /** @type {string} */ (reader.readString());
1623
+ msg.addReferenceIds(value);
1624
+ break;
1625
+ default:
1626
+ reader.skipField();
1627
+ break;
1628
+ }
1629
+ }
1630
+ return msg;
1631
+ };
1632
+
1633
+
1634
+ /**
1635
+ * Serializes the message to binary data (in protobuf wire format).
1636
+ * @return {!Uint8Array}
1637
+ */
1638
+ proto.DeletePurchasingGroupRequest.prototype.serializeBinary = function() {
1639
+ var writer = new jspb.BinaryWriter();
1640
+ proto.DeletePurchasingGroupRequest.serializeBinaryToWriter(this, writer);
1641
+ return writer.getResultBuffer();
1642
+ };
1643
+
1644
+
1645
+ /**
1646
+ * Serializes the given message to binary data (in protobuf wire
1647
+ * format), writing to the given BinaryWriter.
1648
+ * @param {!proto.DeletePurchasingGroupRequest} message
1649
+ * @param {!jspb.BinaryWriter} writer
1650
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1651
+ */
1652
+ proto.DeletePurchasingGroupRequest.serializeBinaryToWriter = function(message, writer) {
1653
+ var f = undefined;
1654
+ f = message.getReferenceIdsList();
1655
+ if (f.length > 0) {
1656
+ writer.writeRepeatedString(
1657
+ 1,
1658
+ f
1659
+ );
1660
+ }
1661
+ };
1662
+
1663
+
1664
+ /**
1665
+ * repeated string reference_ids = 1;
1666
+ * @return {!Array<string>}
1667
+ */
1668
+ proto.DeletePurchasingGroupRequest.prototype.getReferenceIdsList = function() {
1669
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
1670
+ };
1671
+
1672
+
1673
+ /**
1674
+ * @param {!Array<string>} value
1675
+ * @return {!proto.DeletePurchasingGroupRequest} returns this
1676
+ */
1677
+ proto.DeletePurchasingGroupRequest.prototype.setReferenceIdsList = function(value) {
1678
+ return jspb.Message.setField(this, 1, value || []);
1679
+ };
1680
+
1681
+
1682
+ /**
1683
+ * @param {string} value
1684
+ * @param {number=} opt_index
1685
+ * @return {!proto.DeletePurchasingGroupRequest} returns this
1686
+ */
1687
+ proto.DeletePurchasingGroupRequest.prototype.addReferenceIds = function(value, opt_index) {
1688
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1689
+ };
1690
+
1691
+
1692
+ /**
1693
+ * Clears the list making it empty but non-null.
1694
+ * @return {!proto.DeletePurchasingGroupRequest} returns this
1695
+ */
1696
+ proto.DeletePurchasingGroupRequest.prototype.clearReferenceIdsList = function() {
1697
+ return this.setReferenceIdsList([]);
1698
+ };
1699
+
1700
+
1701
+
1702
+
1703
+
1704
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1705
+ /**
1706
+ * Creates an object representation of this proto.
1707
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1708
+ * Optional fields that are not set will be set to undefined.
1709
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1710
+ * For the list of reserved names please see:
1711
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1712
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1713
+ * JSPB instance for transitional soy proto support:
1714
+ * http://goto/soy-param-migration
1715
+ * @return {!Object}
1716
+ */
1717
+ proto.GetListPurchasingGroupRequest.prototype.toObject = function(opt_includeInstance) {
1718
+ return proto.GetListPurchasingGroupRequest.toObject(opt_includeInstance, this);
1719
+ };
1720
+
1721
+
1722
+ /**
1723
+ * Static version of the {@see toObject} method.
1724
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1725
+ * the JSPB instance for transitional soy proto support:
1726
+ * http://goto/soy-param-migration
1727
+ * @param {!proto.GetListPurchasingGroupRequest} msg The msg instance to transform.
1728
+ * @return {!Object}
1729
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1730
+ */
1731
+ proto.GetListPurchasingGroupRequest.toObject = function(includeInstance, msg) {
1732
+ var f, obj = {
1733
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1734
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
1735
+ };
1736
+
1737
+ if (includeInstance) {
1738
+ obj.$jspbMessageInstance = msg;
1739
+ }
1740
+ return obj;
1741
+ };
1742
+ }
1743
+
1744
+
1745
+ /**
1746
+ * Deserializes binary data (in protobuf wire format).
1747
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1748
+ * @return {!proto.GetListPurchasingGroupRequest}
1749
+ */
1750
+ proto.GetListPurchasingGroupRequest.deserializeBinary = function(bytes) {
1751
+ var reader = new jspb.BinaryReader(bytes);
1752
+ var msg = new proto.GetListPurchasingGroupRequest;
1753
+ return proto.GetListPurchasingGroupRequest.deserializeBinaryFromReader(msg, reader);
1754
+ };
1755
+
1756
+
1757
+ /**
1758
+ * Deserializes binary data (in protobuf wire format) from the
1759
+ * given reader into the given message object.
1760
+ * @param {!proto.GetListPurchasingGroupRequest} msg The message object to deserialize into.
1761
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1762
+ * @return {!proto.GetListPurchasingGroupRequest}
1763
+ */
1764
+ proto.GetListPurchasingGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
1765
+ while (reader.nextField()) {
1766
+ if (reader.isEndGroup()) {
1767
+ break;
1768
+ }
1769
+ var field = reader.getFieldNumber();
1770
+ switch (field) {
1771
+ case 1:
1772
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1773
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1774
+ msg.setPagination(value);
1775
+ break;
1776
+ case 2:
1777
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1778
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1779
+ msg.setQuery(value);
1780
+ break;
1781
+ default:
1782
+ reader.skipField();
1783
+ break;
1784
+ }
1785
+ }
1786
+ return msg;
1787
+ };
1788
+
1789
+
1790
+ /**
1791
+ * Serializes the message to binary data (in protobuf wire format).
1792
+ * @return {!Uint8Array}
1793
+ */
1794
+ proto.GetListPurchasingGroupRequest.prototype.serializeBinary = function() {
1795
+ var writer = new jspb.BinaryWriter();
1796
+ proto.GetListPurchasingGroupRequest.serializeBinaryToWriter(this, writer);
1797
+ return writer.getResultBuffer();
1798
+ };
1799
+
1800
+
1801
+ /**
1802
+ * Serializes the given message to binary data (in protobuf wire
1803
+ * format), writing to the given BinaryWriter.
1804
+ * @param {!proto.GetListPurchasingGroupRequest} message
1805
+ * @param {!jspb.BinaryWriter} writer
1806
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1807
+ */
1808
+ proto.GetListPurchasingGroupRequest.serializeBinaryToWriter = function(message, writer) {
1809
+ var f = undefined;
1810
+ f = message.getPagination();
1811
+ if (f != null) {
1812
+ writer.writeMessage(
1813
+ 1,
1814
+ f,
1815
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1816
+ );
1817
+ }
1818
+ f = message.getQuery();
1819
+ if (f != null) {
1820
+ writer.writeMessage(
1821
+ 2,
1822
+ f,
1823
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1824
+ );
1825
+ }
1826
+ };
1827
+
1828
+
1829
+ /**
1830
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1831
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1832
+ */
1833
+ proto.GetListPurchasingGroupRequest.prototype.getPagination = function() {
1834
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1835
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1836
+ };
1837
+
1838
+
1839
+ /**
1840
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1841
+ * @return {!proto.GetListPurchasingGroupRequest} returns this
1842
+ */
1843
+ proto.GetListPurchasingGroupRequest.prototype.setPagination = function(value) {
1844
+ return jspb.Message.setWrapperField(this, 1, value);
1845
+ };
1846
+
1847
+
1848
+ /**
1849
+ * Clears the message field making it undefined.
1850
+ * @return {!proto.GetListPurchasingGroupRequest} returns this
1851
+ */
1852
+ proto.GetListPurchasingGroupRequest.prototype.clearPagination = function() {
1853
+ return this.setPagination(undefined);
1854
+ };
1855
+
1856
+
1857
+ /**
1858
+ * Returns whether this field is set.
1859
+ * @return {boolean}
1860
+ */
1861
+ proto.GetListPurchasingGroupRequest.prototype.hasPagination = function() {
1862
+ return jspb.Message.getField(this, 1) != null;
1863
+ };
1864
+
1865
+
1866
+ /**
1867
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
1868
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
1869
+ */
1870
+ proto.GetListPurchasingGroupRequest.prototype.getQuery = function() {
1871
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1872
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1873
+ };
1874
+
1875
+
1876
+ /**
1877
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1878
+ * @return {!proto.GetListPurchasingGroupRequest} returns this
1879
+ */
1880
+ proto.GetListPurchasingGroupRequest.prototype.setQuery = function(value) {
1881
+ return jspb.Message.setWrapperField(this, 2, value);
1882
+ };
1883
+
1884
+
1885
+ /**
1886
+ * Clears the message field making it undefined.
1887
+ * @return {!proto.GetListPurchasingGroupRequest} returns this
1888
+ */
1889
+ proto.GetListPurchasingGroupRequest.prototype.clearQuery = function() {
1890
+ return this.setQuery(undefined);
1891
+ };
1892
+
1893
+
1894
+ /**
1895
+ * Returns whether this field is set.
1896
+ * @return {boolean}
1897
+ */
1898
+ proto.GetListPurchasingGroupRequest.prototype.hasQuery = function() {
1899
+ return jspb.Message.getField(this, 2) != null;
1900
+ };
1901
+
1902
+
1903
+
1904
+
1905
+
1906
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1907
+ /**
1908
+ * Creates an object representation of this proto.
1909
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1910
+ * Optional fields that are not set will be set to undefined.
1911
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1912
+ * For the list of reserved names please see:
1913
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1914
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1915
+ * JSPB instance for transitional soy proto support:
1916
+ * http://goto/soy-param-migration
1917
+ * @return {!Object}
1918
+ */
1919
+ proto.CreatePurchasingGroupResponse.prototype.toObject = function(opt_includeInstance) {
1920
+ return proto.CreatePurchasingGroupResponse.toObject(opt_includeInstance, this);
1921
+ };
1922
+
1923
+
1924
+ /**
1925
+ * Static version of the {@see toObject} method.
1926
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1927
+ * the JSPB instance for transitional soy proto support:
1928
+ * http://goto/soy-param-migration
1929
+ * @param {!proto.CreatePurchasingGroupResponse} msg The msg instance to transform.
1930
+ * @return {!Object}
1931
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1932
+ */
1933
+ proto.CreatePurchasingGroupResponse.toObject = function(includeInstance, msg) {
1934
+ var f, obj = {
1935
+ purchasingGroup: (f = msg.getPurchasingGroup()) && proto.PurchasingGroup.toObject(includeInstance, f),
1936
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1937
+ };
1938
+
1939
+ if (includeInstance) {
1940
+ obj.$jspbMessageInstance = msg;
1941
+ }
1942
+ return obj;
1943
+ };
1944
+ }
1945
+
1946
+
1947
+ /**
1948
+ * Deserializes binary data (in protobuf wire format).
1949
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1950
+ * @return {!proto.CreatePurchasingGroupResponse}
1951
+ */
1952
+ proto.CreatePurchasingGroupResponse.deserializeBinary = function(bytes) {
1953
+ var reader = new jspb.BinaryReader(bytes);
1954
+ var msg = new proto.CreatePurchasingGroupResponse;
1955
+ return proto.CreatePurchasingGroupResponse.deserializeBinaryFromReader(msg, reader);
1956
+ };
1957
+
1958
+
1959
+ /**
1960
+ * Deserializes binary data (in protobuf wire format) from the
1961
+ * given reader into the given message object.
1962
+ * @param {!proto.CreatePurchasingGroupResponse} msg The message object to deserialize into.
1963
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1964
+ * @return {!proto.CreatePurchasingGroupResponse}
1965
+ */
1966
+ proto.CreatePurchasingGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
1967
+ while (reader.nextField()) {
1968
+ if (reader.isEndGroup()) {
1969
+ break;
1970
+ }
1971
+ var field = reader.getFieldNumber();
1972
+ switch (field) {
1973
+ case 1:
1974
+ var value = new proto.PurchasingGroup;
1975
+ reader.readMessage(value,proto.PurchasingGroup.deserializeBinaryFromReader);
1976
+ msg.setPurchasingGroup(value);
1977
+ break;
1978
+ case 2:
1979
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1980
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1981
+ msg.setMeta(value);
1982
+ break;
1983
+ default:
1984
+ reader.skipField();
1985
+ break;
1986
+ }
1987
+ }
1988
+ return msg;
1989
+ };
1990
+
1991
+
1992
+ /**
1993
+ * Serializes the message to binary data (in protobuf wire format).
1994
+ * @return {!Uint8Array}
1995
+ */
1996
+ proto.CreatePurchasingGroupResponse.prototype.serializeBinary = function() {
1997
+ var writer = new jspb.BinaryWriter();
1998
+ proto.CreatePurchasingGroupResponse.serializeBinaryToWriter(this, writer);
1999
+ return writer.getResultBuffer();
2000
+ };
2001
+
2002
+
2003
+ /**
2004
+ * Serializes the given message to binary data (in protobuf wire
2005
+ * format), writing to the given BinaryWriter.
2006
+ * @param {!proto.CreatePurchasingGroupResponse} message
2007
+ * @param {!jspb.BinaryWriter} writer
2008
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2009
+ */
2010
+ proto.CreatePurchasingGroupResponse.serializeBinaryToWriter = function(message, writer) {
2011
+ var f = undefined;
2012
+ f = message.getPurchasingGroup();
2013
+ if (f != null) {
2014
+ writer.writeMessage(
2015
+ 1,
2016
+ f,
2017
+ proto.PurchasingGroup.serializeBinaryToWriter
2018
+ );
2019
+ }
2020
+ f = message.getMeta();
2021
+ if (f != null) {
2022
+ writer.writeMessage(
2023
+ 2,
2024
+ f,
2025
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2026
+ );
2027
+ }
2028
+ };
2029
+
2030
+
2031
+ /**
2032
+ * optional PurchasingGroup purchasing_group = 1;
2033
+ * @return {?proto.PurchasingGroup}
2034
+ */
2035
+ proto.CreatePurchasingGroupResponse.prototype.getPurchasingGroup = function() {
2036
+ return /** @type{?proto.PurchasingGroup} */ (
2037
+ jspb.Message.getWrapperField(this, proto.PurchasingGroup, 1));
2038
+ };
2039
+
2040
+
2041
+ /**
2042
+ * @param {?proto.PurchasingGroup|undefined} value
2043
+ * @return {!proto.CreatePurchasingGroupResponse} returns this
2044
+ */
2045
+ proto.CreatePurchasingGroupResponse.prototype.setPurchasingGroup = function(value) {
2046
+ return jspb.Message.setWrapperField(this, 1, value);
2047
+ };
2048
+
2049
+
2050
+ /**
2051
+ * Clears the message field making it undefined.
2052
+ * @return {!proto.CreatePurchasingGroupResponse} returns this
2053
+ */
2054
+ proto.CreatePurchasingGroupResponse.prototype.clearPurchasingGroup = function() {
2055
+ return this.setPurchasingGroup(undefined);
2056
+ };
2057
+
2058
+
2059
+ /**
2060
+ * Returns whether this field is set.
2061
+ * @return {boolean}
2062
+ */
2063
+ proto.CreatePurchasingGroupResponse.prototype.hasPurchasingGroup = function() {
2064
+ return jspb.Message.getField(this, 1) != null;
2065
+ };
2066
+
2067
+
2068
+ /**
2069
+ * optional prisca.v1.global.meta.Meta meta = 2;
2070
+ * @return {?proto.prisca.v1.global.meta.Meta}
2071
+ */
2072
+ proto.CreatePurchasingGroupResponse.prototype.getMeta = function() {
2073
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2074
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2075
+ };
2076
+
2077
+
2078
+ /**
2079
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2080
+ * @return {!proto.CreatePurchasingGroupResponse} returns this
2081
+ */
2082
+ proto.CreatePurchasingGroupResponse.prototype.setMeta = function(value) {
2083
+ return jspb.Message.setWrapperField(this, 2, value);
2084
+ };
2085
+
2086
+
2087
+ /**
2088
+ * Clears the message field making it undefined.
2089
+ * @return {!proto.CreatePurchasingGroupResponse} returns this
2090
+ */
2091
+ proto.CreatePurchasingGroupResponse.prototype.clearMeta = function() {
2092
+ return this.setMeta(undefined);
2093
+ };
2094
+
2095
+
2096
+ /**
2097
+ * Returns whether this field is set.
2098
+ * @return {boolean}
2099
+ */
2100
+ proto.CreatePurchasingGroupResponse.prototype.hasMeta = function() {
2101
+ return jspb.Message.getField(this, 2) != null;
2102
+ };
2103
+
2104
+
2105
+
2106
+ /**
2107
+ * List of repeated fields within this message type.
2108
+ * @private {!Array<number>}
2109
+ * @const
2110
+ */
2111
+ proto.GetListPurchasingGroupResponse.repeatedFields_ = [1];
2112
+
2113
+
2114
+
2115
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2116
+ /**
2117
+ * Creates an object representation of this proto.
2118
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2119
+ * Optional fields that are not set will be set to undefined.
2120
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2121
+ * For the list of reserved names please see:
2122
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2123
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2124
+ * JSPB instance for transitional soy proto support:
2125
+ * http://goto/soy-param-migration
2126
+ * @return {!Object}
2127
+ */
2128
+ proto.GetListPurchasingGroupResponse.prototype.toObject = function(opt_includeInstance) {
2129
+ return proto.GetListPurchasingGroupResponse.toObject(opt_includeInstance, this);
2130
+ };
2131
+
2132
+
2133
+ /**
2134
+ * Static version of the {@see toObject} method.
2135
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2136
+ * the JSPB instance for transitional soy proto support:
2137
+ * http://goto/soy-param-migration
2138
+ * @param {!proto.GetListPurchasingGroupResponse} msg The msg instance to transform.
2139
+ * @return {!Object}
2140
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2141
+ */
2142
+ proto.GetListPurchasingGroupResponse.toObject = function(includeInstance, msg) {
2143
+ var f, obj = {
2144
+ purchasingGroupList: jspb.Message.toObjectList(msg.getPurchasingGroupList(),
2145
+ proto.BasePurchasingGroup.toObject, includeInstance),
2146
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2147
+ };
2148
+
2149
+ if (includeInstance) {
2150
+ obj.$jspbMessageInstance = msg;
2151
+ }
2152
+ return obj;
2153
+ };
2154
+ }
2155
+
2156
+
2157
+ /**
2158
+ * Deserializes binary data (in protobuf wire format).
2159
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2160
+ * @return {!proto.GetListPurchasingGroupResponse}
2161
+ */
2162
+ proto.GetListPurchasingGroupResponse.deserializeBinary = function(bytes) {
2163
+ var reader = new jspb.BinaryReader(bytes);
2164
+ var msg = new proto.GetListPurchasingGroupResponse;
2165
+ return proto.GetListPurchasingGroupResponse.deserializeBinaryFromReader(msg, reader);
2166
+ };
2167
+
2168
+
2169
+ /**
2170
+ * Deserializes binary data (in protobuf wire format) from the
2171
+ * given reader into the given message object.
2172
+ * @param {!proto.GetListPurchasingGroupResponse} msg The message object to deserialize into.
2173
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2174
+ * @return {!proto.GetListPurchasingGroupResponse}
2175
+ */
2176
+ proto.GetListPurchasingGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
2177
+ while (reader.nextField()) {
2178
+ if (reader.isEndGroup()) {
2179
+ break;
2180
+ }
2181
+ var field = reader.getFieldNumber();
2182
+ switch (field) {
2183
+ case 1:
2184
+ var value = new proto.BasePurchasingGroup;
2185
+ reader.readMessage(value,proto.BasePurchasingGroup.deserializeBinaryFromReader);
2186
+ msg.addPurchasingGroup(value);
2187
+ break;
2188
+ case 2:
2189
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2190
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2191
+ msg.setMeta(value);
2192
+ break;
2193
+ default:
2194
+ reader.skipField();
2195
+ break;
2196
+ }
2197
+ }
2198
+ return msg;
2199
+ };
2200
+
2201
+
2202
+ /**
2203
+ * Serializes the message to binary data (in protobuf wire format).
2204
+ * @return {!Uint8Array}
2205
+ */
2206
+ proto.GetListPurchasingGroupResponse.prototype.serializeBinary = function() {
2207
+ var writer = new jspb.BinaryWriter();
2208
+ proto.GetListPurchasingGroupResponse.serializeBinaryToWriter(this, writer);
2209
+ return writer.getResultBuffer();
2210
+ };
2211
+
2212
+
2213
+ /**
2214
+ * Serializes the given message to binary data (in protobuf wire
2215
+ * format), writing to the given BinaryWriter.
2216
+ * @param {!proto.GetListPurchasingGroupResponse} message
2217
+ * @param {!jspb.BinaryWriter} writer
2218
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2219
+ */
2220
+ proto.GetListPurchasingGroupResponse.serializeBinaryToWriter = function(message, writer) {
2221
+ var f = undefined;
2222
+ f = message.getPurchasingGroupList();
2223
+ if (f.length > 0) {
2224
+ writer.writeRepeatedMessage(
2225
+ 1,
2226
+ f,
2227
+ proto.BasePurchasingGroup.serializeBinaryToWriter
2228
+ );
2229
+ }
2230
+ f = message.getMeta();
2231
+ if (f != null) {
2232
+ writer.writeMessage(
2233
+ 2,
2234
+ f,
2235
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2236
+ );
2237
+ }
2238
+ };
2239
+
2240
+
2241
+ /**
2242
+ * repeated BasePurchasingGroup purchasing_group = 1;
2243
+ * @return {!Array<!proto.BasePurchasingGroup>}
2244
+ */
2245
+ proto.GetListPurchasingGroupResponse.prototype.getPurchasingGroupList = function() {
2246
+ return /** @type{!Array<!proto.BasePurchasingGroup>} */ (
2247
+ jspb.Message.getRepeatedWrapperField(this, proto.BasePurchasingGroup, 1));
2248
+ };
2249
+
2250
+
2251
+ /**
2252
+ * @param {!Array<!proto.BasePurchasingGroup>} value
2253
+ * @return {!proto.GetListPurchasingGroupResponse} returns this
2254
+ */
2255
+ proto.GetListPurchasingGroupResponse.prototype.setPurchasingGroupList = function(value) {
2256
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2257
+ };
2258
+
2259
+
2260
+ /**
2261
+ * @param {!proto.BasePurchasingGroup=} opt_value
2262
+ * @param {number=} opt_index
2263
+ * @return {!proto.BasePurchasingGroup}
2264
+ */
2265
+ proto.GetListPurchasingGroupResponse.prototype.addPurchasingGroup = function(opt_value, opt_index) {
2266
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.BasePurchasingGroup, opt_index);
2267
+ };
2268
+
2269
+
2270
+ /**
2271
+ * Clears the list making it empty but non-null.
2272
+ * @return {!proto.GetListPurchasingGroupResponse} returns this
2273
+ */
2274
+ proto.GetListPurchasingGroupResponse.prototype.clearPurchasingGroupList = function() {
2275
+ return this.setPurchasingGroupList([]);
2276
+ };
2277
+
2278
+
2279
+ /**
2280
+ * optional prisca.v1.global.meta.Meta meta = 2;
2281
+ * @return {?proto.prisca.v1.global.meta.Meta}
2282
+ */
2283
+ proto.GetListPurchasingGroupResponse.prototype.getMeta = function() {
2284
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2285
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2286
+ };
2287
+
2288
+
2289
+ /**
2290
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2291
+ * @return {!proto.GetListPurchasingGroupResponse} returns this
2292
+ */
2293
+ proto.GetListPurchasingGroupResponse.prototype.setMeta = function(value) {
2294
+ return jspb.Message.setWrapperField(this, 2, value);
2295
+ };
2296
+
2297
+
2298
+ /**
2299
+ * Clears the message field making it undefined.
2300
+ * @return {!proto.GetListPurchasingGroupResponse} returns this
2301
+ */
2302
+ proto.GetListPurchasingGroupResponse.prototype.clearMeta = function() {
2303
+ return this.setMeta(undefined);
2304
+ };
2305
+
2306
+
2307
+ /**
2308
+ * Returns whether this field is set.
2309
+ * @return {boolean}
2310
+ */
2311
+ proto.GetListPurchasingGroupResponse.prototype.hasMeta = function() {
2312
+ return jspb.Message.getField(this, 2) != null;
2313
+ };
2314
+
2315
+
2316
+
2317
+
2318
+
2319
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2320
+ /**
2321
+ * Creates an object representation of this proto.
2322
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2323
+ * Optional fields that are not set will be set to undefined.
2324
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2325
+ * For the list of reserved names please see:
2326
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2327
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2328
+ * JSPB instance for transitional soy proto support:
2329
+ * http://goto/soy-param-migration
2330
+ * @return {!Object}
2331
+ */
2332
+ proto.UpdatePurchasingGroupResponse.prototype.toObject = function(opt_includeInstance) {
2333
+ return proto.UpdatePurchasingGroupResponse.toObject(opt_includeInstance, this);
2334
+ };
2335
+
2336
+
2337
+ /**
2338
+ * Static version of the {@see toObject} method.
2339
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2340
+ * the JSPB instance for transitional soy proto support:
2341
+ * http://goto/soy-param-migration
2342
+ * @param {!proto.UpdatePurchasingGroupResponse} msg The msg instance to transform.
2343
+ * @return {!Object}
2344
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2345
+ */
2346
+ proto.UpdatePurchasingGroupResponse.toObject = function(includeInstance, msg) {
2347
+ var f, obj = {
2348
+ purchasingGroup: (f = msg.getPurchasingGroup()) && proto.PurchasingGroup.toObject(includeInstance, f),
2349
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2350
+ };
2351
+
2352
+ if (includeInstance) {
2353
+ obj.$jspbMessageInstance = msg;
2354
+ }
2355
+ return obj;
2356
+ };
2357
+ }
2358
+
2359
+
2360
+ /**
2361
+ * Deserializes binary data (in protobuf wire format).
2362
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2363
+ * @return {!proto.UpdatePurchasingGroupResponse}
2364
+ */
2365
+ proto.UpdatePurchasingGroupResponse.deserializeBinary = function(bytes) {
2366
+ var reader = new jspb.BinaryReader(bytes);
2367
+ var msg = new proto.UpdatePurchasingGroupResponse;
2368
+ return proto.UpdatePurchasingGroupResponse.deserializeBinaryFromReader(msg, reader);
2369
+ };
2370
+
2371
+
2372
+ /**
2373
+ * Deserializes binary data (in protobuf wire format) from the
2374
+ * given reader into the given message object.
2375
+ * @param {!proto.UpdatePurchasingGroupResponse} msg The message object to deserialize into.
2376
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2377
+ * @return {!proto.UpdatePurchasingGroupResponse}
2378
+ */
2379
+ proto.UpdatePurchasingGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
2380
+ while (reader.nextField()) {
2381
+ if (reader.isEndGroup()) {
2382
+ break;
2383
+ }
2384
+ var field = reader.getFieldNumber();
2385
+ switch (field) {
2386
+ case 1:
2387
+ var value = new proto.PurchasingGroup;
2388
+ reader.readMessage(value,proto.PurchasingGroup.deserializeBinaryFromReader);
2389
+ msg.setPurchasingGroup(value);
2390
+ break;
2391
+ case 2:
2392
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2393
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2394
+ msg.setMeta(value);
2395
+ break;
2396
+ default:
2397
+ reader.skipField();
2398
+ break;
2399
+ }
2400
+ }
2401
+ return msg;
2402
+ };
2403
+
2404
+
2405
+ /**
2406
+ * Serializes the message to binary data (in protobuf wire format).
2407
+ * @return {!Uint8Array}
2408
+ */
2409
+ proto.UpdatePurchasingGroupResponse.prototype.serializeBinary = function() {
2410
+ var writer = new jspb.BinaryWriter();
2411
+ proto.UpdatePurchasingGroupResponse.serializeBinaryToWriter(this, writer);
2412
+ return writer.getResultBuffer();
2413
+ };
2414
+
2415
+
2416
+ /**
2417
+ * Serializes the given message to binary data (in protobuf wire
2418
+ * format), writing to the given BinaryWriter.
2419
+ * @param {!proto.UpdatePurchasingGroupResponse} message
2420
+ * @param {!jspb.BinaryWriter} writer
2421
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2422
+ */
2423
+ proto.UpdatePurchasingGroupResponse.serializeBinaryToWriter = function(message, writer) {
2424
+ var f = undefined;
2425
+ f = message.getPurchasingGroup();
2426
+ if (f != null) {
2427
+ writer.writeMessage(
2428
+ 1,
2429
+ f,
2430
+ proto.PurchasingGroup.serializeBinaryToWriter
2431
+ );
2432
+ }
2433
+ f = message.getMeta();
2434
+ if (f != null) {
2435
+ writer.writeMessage(
2436
+ 2,
2437
+ f,
2438
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2439
+ );
2440
+ }
2441
+ };
2442
+
2443
+
2444
+ /**
2445
+ * optional PurchasingGroup purchasing_group = 1;
2446
+ * @return {?proto.PurchasingGroup}
2447
+ */
2448
+ proto.UpdatePurchasingGroupResponse.prototype.getPurchasingGroup = function() {
2449
+ return /** @type{?proto.PurchasingGroup} */ (
2450
+ jspb.Message.getWrapperField(this, proto.PurchasingGroup, 1));
2451
+ };
2452
+
2453
+
2454
+ /**
2455
+ * @param {?proto.PurchasingGroup|undefined} value
2456
+ * @return {!proto.UpdatePurchasingGroupResponse} returns this
2457
+ */
2458
+ proto.UpdatePurchasingGroupResponse.prototype.setPurchasingGroup = function(value) {
2459
+ return jspb.Message.setWrapperField(this, 1, value);
2460
+ };
2461
+
2462
+
2463
+ /**
2464
+ * Clears the message field making it undefined.
2465
+ * @return {!proto.UpdatePurchasingGroupResponse} returns this
2466
+ */
2467
+ proto.UpdatePurchasingGroupResponse.prototype.clearPurchasingGroup = function() {
2468
+ return this.setPurchasingGroup(undefined);
2469
+ };
2470
+
2471
+
2472
+ /**
2473
+ * Returns whether this field is set.
2474
+ * @return {boolean}
2475
+ */
2476
+ proto.UpdatePurchasingGroupResponse.prototype.hasPurchasingGroup = function() {
2477
+ return jspb.Message.getField(this, 1) != null;
2478
+ };
2479
+
2480
+
2481
+ /**
2482
+ * optional prisca.v1.global.meta.Meta meta = 2;
2483
+ * @return {?proto.prisca.v1.global.meta.Meta}
2484
+ */
2485
+ proto.UpdatePurchasingGroupResponse.prototype.getMeta = function() {
2486
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2487
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2488
+ };
2489
+
2490
+
2491
+ /**
2492
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2493
+ * @return {!proto.UpdatePurchasingGroupResponse} returns this
2494
+ */
2495
+ proto.UpdatePurchasingGroupResponse.prototype.setMeta = function(value) {
2496
+ return jspb.Message.setWrapperField(this, 2, value);
2497
+ };
2498
+
2499
+
2500
+ /**
2501
+ * Clears the message field making it undefined.
2502
+ * @return {!proto.UpdatePurchasingGroupResponse} returns this
2503
+ */
2504
+ proto.UpdatePurchasingGroupResponse.prototype.clearMeta = function() {
2505
+ return this.setMeta(undefined);
2506
+ };
2507
+
2508
+
2509
+ /**
2510
+ * Returns whether this field is set.
2511
+ * @return {boolean}
2512
+ */
2513
+ proto.UpdatePurchasingGroupResponse.prototype.hasMeta = function() {
2514
+ return jspb.Message.getField(this, 2) != null;
2515
+ };
2516
+
2517
+
2518
+
2519
+
2520
+
2521
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2522
+ /**
2523
+ * Creates an object representation of this proto.
2524
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2525
+ * Optional fields that are not set will be set to undefined.
2526
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2527
+ * For the list of reserved names please see:
2528
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2529
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2530
+ * JSPB instance for transitional soy proto support:
2531
+ * http://goto/soy-param-migration
2532
+ * @return {!Object}
2533
+ */
2534
+ proto.PurchasingGroupGetByIdResponse.prototype.toObject = function(opt_includeInstance) {
2535
+ return proto.PurchasingGroupGetByIdResponse.toObject(opt_includeInstance, this);
2536
+ };
2537
+
2538
+
2539
+ /**
2540
+ * Static version of the {@see toObject} method.
2541
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2542
+ * the JSPB instance for transitional soy proto support:
2543
+ * http://goto/soy-param-migration
2544
+ * @param {!proto.PurchasingGroupGetByIdResponse} msg The msg instance to transform.
2545
+ * @return {!Object}
2546
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2547
+ */
2548
+ proto.PurchasingGroupGetByIdResponse.toObject = function(includeInstance, msg) {
2549
+ var f, obj = {
2550
+ purchasingGroup: (f = msg.getPurchasingGroup()) && proto.BasePurchasingGroup.toObject(includeInstance, f),
2551
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2552
+ };
2553
+
2554
+ if (includeInstance) {
2555
+ obj.$jspbMessageInstance = msg;
2556
+ }
2557
+ return obj;
2558
+ };
2559
+ }
2560
+
2561
+
2562
+ /**
2563
+ * Deserializes binary data (in protobuf wire format).
2564
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2565
+ * @return {!proto.PurchasingGroupGetByIdResponse}
2566
+ */
2567
+ proto.PurchasingGroupGetByIdResponse.deserializeBinary = function(bytes) {
2568
+ var reader = new jspb.BinaryReader(bytes);
2569
+ var msg = new proto.PurchasingGroupGetByIdResponse;
2570
+ return proto.PurchasingGroupGetByIdResponse.deserializeBinaryFromReader(msg, reader);
2571
+ };
2572
+
2573
+
2574
+ /**
2575
+ * Deserializes binary data (in protobuf wire format) from the
2576
+ * given reader into the given message object.
2577
+ * @param {!proto.PurchasingGroupGetByIdResponse} msg The message object to deserialize into.
2578
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2579
+ * @return {!proto.PurchasingGroupGetByIdResponse}
2580
+ */
2581
+ proto.PurchasingGroupGetByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2582
+ while (reader.nextField()) {
2583
+ if (reader.isEndGroup()) {
2584
+ break;
2585
+ }
2586
+ var field = reader.getFieldNumber();
2587
+ switch (field) {
2588
+ case 1:
2589
+ var value = new proto.BasePurchasingGroup;
2590
+ reader.readMessage(value,proto.BasePurchasingGroup.deserializeBinaryFromReader);
2591
+ msg.setPurchasingGroup(value);
2592
+ break;
2593
+ case 2:
2594
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2595
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2596
+ msg.setMeta(value);
2597
+ break;
2598
+ default:
2599
+ reader.skipField();
2600
+ break;
2601
+ }
2602
+ }
2603
+ return msg;
2604
+ };
2605
+
2606
+
2607
+ /**
2608
+ * Serializes the message to binary data (in protobuf wire format).
2609
+ * @return {!Uint8Array}
2610
+ */
2611
+ proto.PurchasingGroupGetByIdResponse.prototype.serializeBinary = function() {
2612
+ var writer = new jspb.BinaryWriter();
2613
+ proto.PurchasingGroupGetByIdResponse.serializeBinaryToWriter(this, writer);
2614
+ return writer.getResultBuffer();
2615
+ };
2616
+
2617
+
2618
+ /**
2619
+ * Serializes the given message to binary data (in protobuf wire
2620
+ * format), writing to the given BinaryWriter.
2621
+ * @param {!proto.PurchasingGroupGetByIdResponse} message
2622
+ * @param {!jspb.BinaryWriter} writer
2623
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2624
+ */
2625
+ proto.PurchasingGroupGetByIdResponse.serializeBinaryToWriter = function(message, writer) {
2626
+ var f = undefined;
2627
+ f = message.getPurchasingGroup();
2628
+ if (f != null) {
2629
+ writer.writeMessage(
2630
+ 1,
2631
+ f,
2632
+ proto.BasePurchasingGroup.serializeBinaryToWriter
2633
+ );
2634
+ }
2635
+ f = message.getMeta();
2636
+ if (f != null) {
2637
+ writer.writeMessage(
2638
+ 2,
2639
+ f,
2640
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2641
+ );
2642
+ }
2643
+ };
2644
+
2645
+
2646
+ /**
2647
+ * optional BasePurchasingGroup purchasing_group = 1;
2648
+ * @return {?proto.BasePurchasingGroup}
2649
+ */
2650
+ proto.PurchasingGroupGetByIdResponse.prototype.getPurchasingGroup = function() {
2651
+ return /** @type{?proto.BasePurchasingGroup} */ (
2652
+ jspb.Message.getWrapperField(this, proto.BasePurchasingGroup, 1));
2653
+ };
2654
+
2655
+
2656
+ /**
2657
+ * @param {?proto.BasePurchasingGroup|undefined} value
2658
+ * @return {!proto.PurchasingGroupGetByIdResponse} returns this
2659
+ */
2660
+ proto.PurchasingGroupGetByIdResponse.prototype.setPurchasingGroup = function(value) {
2661
+ return jspb.Message.setWrapperField(this, 1, value);
2662
+ };
2663
+
2664
+
2665
+ /**
2666
+ * Clears the message field making it undefined.
2667
+ * @return {!proto.PurchasingGroupGetByIdResponse} returns this
2668
+ */
2669
+ proto.PurchasingGroupGetByIdResponse.prototype.clearPurchasingGroup = function() {
2670
+ return this.setPurchasingGroup(undefined);
2671
+ };
2672
+
2673
+
2674
+ /**
2675
+ * Returns whether this field is set.
2676
+ * @return {boolean}
2677
+ */
2678
+ proto.PurchasingGroupGetByIdResponse.prototype.hasPurchasingGroup = function() {
2679
+ return jspb.Message.getField(this, 1) != null;
2680
+ };
2681
+
2682
+
2683
+ /**
2684
+ * optional prisca.v1.global.meta.Meta meta = 2;
2685
+ * @return {?proto.prisca.v1.global.meta.Meta}
2686
+ */
2687
+ proto.PurchasingGroupGetByIdResponse.prototype.getMeta = function() {
2688
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2689
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2690
+ };
2691
+
2692
+
2693
+ /**
2694
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2695
+ * @return {!proto.PurchasingGroupGetByIdResponse} returns this
2696
+ */
2697
+ proto.PurchasingGroupGetByIdResponse.prototype.setMeta = function(value) {
2698
+ return jspb.Message.setWrapperField(this, 2, value);
2699
+ };
2700
+
2701
+
2702
+ /**
2703
+ * Clears the message field making it undefined.
2704
+ * @return {!proto.PurchasingGroupGetByIdResponse} returns this
2705
+ */
2706
+ proto.PurchasingGroupGetByIdResponse.prototype.clearMeta = function() {
2707
+ return this.setMeta(undefined);
2708
+ };
2709
+
2710
+
2711
+ /**
2712
+ * Returns whether this field is set.
2713
+ * @return {boolean}
2714
+ */
2715
+ proto.PurchasingGroupGetByIdResponse.prototype.hasMeta = function() {
2716
+ return jspb.Message.getField(this, 2) != null;
2717
+ };
2718
+
2719
+
2720
+
2721
+ /**
2722
+ * List of repeated fields within this message type.
2723
+ * @private {!Array<number>}
2724
+ * @const
2725
+ */
2726
+ proto.DeletePurchasingGroupResponse.repeatedFields_ = [1];
2727
+
2728
+
2729
+
2730
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2731
+ /**
2732
+ * Creates an object representation of this proto.
2733
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2734
+ * Optional fields that are not set will be set to undefined.
2735
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2736
+ * For the list of reserved names please see:
2737
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2738
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2739
+ * JSPB instance for transitional soy proto support:
2740
+ * http://goto/soy-param-migration
2741
+ * @return {!Object}
2742
+ */
2743
+ proto.DeletePurchasingGroupResponse.prototype.toObject = function(opt_includeInstance) {
2744
+ return proto.DeletePurchasingGroupResponse.toObject(opt_includeInstance, this);
2745
+ };
2746
+
2747
+
2748
+ /**
2749
+ * Static version of the {@see toObject} method.
2750
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2751
+ * the JSPB instance for transitional soy proto support:
2752
+ * http://goto/soy-param-migration
2753
+ * @param {!proto.DeletePurchasingGroupResponse} msg The msg instance to transform.
2754
+ * @return {!Object}
2755
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2756
+ */
2757
+ proto.DeletePurchasingGroupResponse.toObject = function(includeInstance, msg) {
2758
+ var f, obj = {
2759
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2760
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2761
+ };
2762
+
2763
+ if (includeInstance) {
2764
+ obj.$jspbMessageInstance = msg;
2765
+ }
2766
+ return obj;
2767
+ };
2768
+ }
2769
+
2770
+
2771
+ /**
2772
+ * Deserializes binary data (in protobuf wire format).
2773
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2774
+ * @return {!proto.DeletePurchasingGroupResponse}
2775
+ */
2776
+ proto.DeletePurchasingGroupResponse.deserializeBinary = function(bytes) {
2777
+ var reader = new jspb.BinaryReader(bytes);
2778
+ var msg = new proto.DeletePurchasingGroupResponse;
2779
+ return proto.DeletePurchasingGroupResponse.deserializeBinaryFromReader(msg, reader);
2780
+ };
2781
+
2782
+
2783
+ /**
2784
+ * Deserializes binary data (in protobuf wire format) from the
2785
+ * given reader into the given message object.
2786
+ * @param {!proto.DeletePurchasingGroupResponse} msg The message object to deserialize into.
2787
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2788
+ * @return {!proto.DeletePurchasingGroupResponse}
2789
+ */
2790
+ proto.DeletePurchasingGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
2791
+ while (reader.nextField()) {
2792
+ if (reader.isEndGroup()) {
2793
+ break;
2794
+ }
2795
+ var field = reader.getFieldNumber();
2796
+ switch (field) {
2797
+ case 1:
2798
+ var value = /** @type {string} */ (reader.readString());
2799
+ msg.addReferenceIds(value);
2800
+ break;
2801
+ case 2:
2802
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2803
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2804
+ msg.setMeta(value);
2805
+ break;
2806
+ default:
2807
+ reader.skipField();
2808
+ break;
2809
+ }
2810
+ }
2811
+ return msg;
2812
+ };
2813
+
2814
+
2815
+ /**
2816
+ * Serializes the message to binary data (in protobuf wire format).
2817
+ * @return {!Uint8Array}
2818
+ */
2819
+ proto.DeletePurchasingGroupResponse.prototype.serializeBinary = function() {
2820
+ var writer = new jspb.BinaryWriter();
2821
+ proto.DeletePurchasingGroupResponse.serializeBinaryToWriter(this, writer);
2822
+ return writer.getResultBuffer();
2823
+ };
2824
+
2825
+
2826
+ /**
2827
+ * Serializes the given message to binary data (in protobuf wire
2828
+ * format), writing to the given BinaryWriter.
2829
+ * @param {!proto.DeletePurchasingGroupResponse} message
2830
+ * @param {!jspb.BinaryWriter} writer
2831
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2832
+ */
2833
+ proto.DeletePurchasingGroupResponse.serializeBinaryToWriter = function(message, writer) {
2834
+ var f = undefined;
2835
+ f = message.getReferenceIdsList();
2836
+ if (f.length > 0) {
2837
+ writer.writeRepeatedString(
2838
+ 1,
2839
+ f
2840
+ );
2841
+ }
2842
+ f = message.getMeta();
2843
+ if (f != null) {
2844
+ writer.writeMessage(
2845
+ 2,
2846
+ f,
2847
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2848
+ );
2849
+ }
2850
+ };
2851
+
2852
+
2853
+ /**
2854
+ * repeated string reference_ids = 1;
2855
+ * @return {!Array<string>}
2856
+ */
2857
+ proto.DeletePurchasingGroupResponse.prototype.getReferenceIdsList = function() {
2858
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2859
+ };
2860
+
2861
+
2862
+ /**
2863
+ * @param {!Array<string>} value
2864
+ * @return {!proto.DeletePurchasingGroupResponse} returns this
2865
+ */
2866
+ proto.DeletePurchasingGroupResponse.prototype.setReferenceIdsList = function(value) {
2867
+ return jspb.Message.setField(this, 1, value || []);
2868
+ };
2869
+
2870
+
2871
+ /**
2872
+ * @param {string} value
2873
+ * @param {number=} opt_index
2874
+ * @return {!proto.DeletePurchasingGroupResponse} returns this
2875
+ */
2876
+ proto.DeletePurchasingGroupResponse.prototype.addReferenceIds = function(value, opt_index) {
2877
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2878
+ };
2879
+
2880
+
2881
+ /**
2882
+ * Clears the list making it empty but non-null.
2883
+ * @return {!proto.DeletePurchasingGroupResponse} returns this
2884
+ */
2885
+ proto.DeletePurchasingGroupResponse.prototype.clearReferenceIdsList = function() {
2886
+ return this.setReferenceIdsList([]);
2887
+ };
2888
+
2889
+
2890
+ /**
2891
+ * optional prisca.v1.global.meta.Meta meta = 2;
2892
+ * @return {?proto.prisca.v1.global.meta.Meta}
2893
+ */
2894
+ proto.DeletePurchasingGroupResponse.prototype.getMeta = function() {
2895
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2896
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2897
+ };
2898
+
2899
+
2900
+ /**
2901
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2902
+ * @return {!proto.DeletePurchasingGroupResponse} returns this
2903
+ */
2904
+ proto.DeletePurchasingGroupResponse.prototype.setMeta = function(value) {
2905
+ return jspb.Message.setWrapperField(this, 2, value);
2906
+ };
2907
+
2908
+
2909
+ /**
2910
+ * Clears the message field making it undefined.
2911
+ * @return {!proto.DeletePurchasingGroupResponse} returns this
2912
+ */
2913
+ proto.DeletePurchasingGroupResponse.prototype.clearMeta = function() {
2914
+ return this.setMeta(undefined);
2915
+ };
2916
+
2917
+
2918
+ /**
2919
+ * Returns whether this field is set.
2920
+ * @return {boolean}
2921
+ */
2922
+ proto.DeletePurchasingGroupResponse.prototype.hasMeta = function() {
2923
+ return jspb.Message.getField(this, 2) != null;
2924
+ };
2925
+
2926
+
2927
+ goog.object.extend(exports, proto);