@aldiokta/protocgen 1.1.19 → 1.1.21

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