@aldiokta/protocgen 1.1.45 → 1.1.46

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