@aldiokta/protocgen 1.1.43 → 1.1.45

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