@aldiokta/protocgen 1.1.23 → 1.1.25

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