@aldiokta/protocgen 1.0.17 → 1.0.19

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