@aldiokta/protocgen 1.1.43 → 1.1.45

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