@aldiokta/protocgen 1.1.45 → 1.1.47

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