@aldiokta/protocgen 1.1.19 → 1.1.21

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