@aldiokta/protocgen 1.1.45 → 1.1.47

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