@aldiokta/protocgen 1.1.8 → 1.1.19

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