@aldiokta/protocgen 1.1.19 → 1.1.20

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