@aldiokta/protocgen 1.1.8 → 1.1.19

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