@aldiokta/protocgen 1.1.45 → 1.1.46

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