@aldiokta/protocgen 1.0.89 → 1.0.91

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