@aldiokta/protocgen 1.1.23 → 1.1.25

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