@aldiokta/protocgen 1.1.49 → 1.1.51

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 (31) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/bidding/bidding_pb.js +62 -2
  3. package/prisca/v1/business_fields/business_fields_grpc_pb.js +180 -0
  4. package/prisca/v1/business_fields/business_fields_pb.js +4372 -0
  5. package/prisca/v1/core/bank/bank_grpc_pb.js +156 -0
  6. package/prisca/v1/core/bank/bank_pb.js +1988 -0
  7. package/prisca/v1/core/company/company_grpc_pb.js +11 -0
  8. package/prisca/v1/core/cron_monitor/cron_monitor_grpc_pb.js +221 -0
  9. package/prisca/v1/core/cron_monitor/cron_monitor_pb.js +2681 -0
  10. package/prisca/v1/core/employee/employee_grpc_pb.js +11 -0
  11. package/prisca/v1/core/file_upload/file_upload_pb.js +31 -1
  12. package/prisca/v1/core/item_transaction/item_transaction_pb.js +3400 -930
  13. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +12 -0
  14. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +102 -1
  15. package/prisca/v1/core/line_of_approval_delegation/line_of_approval_delegation_grpc_pb.js +180 -0
  16. package/prisca/v1/core/line_of_approval_delegation/line_of_approval_delegation_pb.js +3707 -0
  17. package/prisca/v1/core/plant/plant_grpc_pb.js +156 -0
  18. package/prisca/v1/core/plant/plant_pb.js +2078 -0
  19. package/prisca/v1/delivery_order/delivery_order_pb.js +31 -1
  20. package/prisca/v1/global/meta/meta_pb.js +452 -0
  21. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +11 -0
  22. package/prisca/v1/good_receipt/good_receipt_pb.js +268 -3
  23. package/prisca/v1/invoice/invoice_grpc_pb.js +11 -0
  24. package/prisca/v1/invoice/invoice_pb.js +292 -4
  25. package/prisca/v1/invoice_type/invoice_type_grpc_pb.js +202 -0
  26. package/prisca/v1/invoice_type/invoice_type_pb.js +3598 -0
  27. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +66 -0
  28. package/prisca/v1/purchase_order/purchase_order_pb.js +1986 -323
  29. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +44 -0
  30. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +2238 -30
  31. package/prisca/v1/vendor_domain/vendor_domain_pb.js +224 -2
@@ -0,0 +1,2078 @@
1
+ // source: prisca/v1/core/plant/plant.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = globalThis;
17
+
18
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
19
+ goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
20
+ var prisca_v1_core_company_company_pb = require('../../../../prisca/v1/core/company/company_pb.js');
21
+ goog.object.extend(proto, prisca_v1_core_company_company_pb);
22
+ goog.exportSymbol('proto.BasePlant', null, global);
23
+ goog.exportSymbol('proto.CreatePlantRequest', null, global);
24
+ goog.exportSymbol('proto.DeletePlantRequest', null, global);
25
+ goog.exportSymbol('proto.DeletePlantResponse', null, global);
26
+ goog.exportSymbol('proto.GetListPlantRequest', null, global);
27
+ goog.exportSymbol('proto.GetListPlantResponse', null, global);
28
+ goog.exportSymbol('proto.Plant', null, global);
29
+ goog.exportSymbol('proto.PlantGetByIdRequest', null, global);
30
+ goog.exportSymbol('proto.UpdatePlantRequest', null, global);
31
+ /**
32
+ * Generated by JsPbCodeGenerator.
33
+ * @param {Array=} opt_data Optional initial data array, typically from a
34
+ * server response, or constructed directly in Javascript. The array is used
35
+ * in place and becomes part of the constructed object. It is not cloned.
36
+ * If no data is provided, the constructed object will be empty, but still
37
+ * valid.
38
+ * @extends {jspb.Message}
39
+ * @constructor
40
+ */
41
+ proto.Plant = function(opt_data) {
42
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
43
+ };
44
+ goog.inherits(proto.Plant, jspb.Message);
45
+ if (goog.DEBUG && !COMPILED) {
46
+ /**
47
+ * @public
48
+ * @override
49
+ */
50
+ proto.Plant.displayName = 'proto.Plant';
51
+ }
52
+ /**
53
+ * Generated by JsPbCodeGenerator.
54
+ * @param {Array=} opt_data Optional initial data array, typically from a
55
+ * server response, or constructed directly in Javascript. The array is used
56
+ * in place and becomes part of the constructed object. It is not cloned.
57
+ * If no data is provided, the constructed object will be empty, but still
58
+ * valid.
59
+ * @extends {jspb.Message}
60
+ * @constructor
61
+ */
62
+ proto.BasePlant = function(opt_data) {
63
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
64
+ };
65
+ goog.inherits(proto.BasePlant, jspb.Message);
66
+ if (goog.DEBUG && !COMPILED) {
67
+ /**
68
+ * @public
69
+ * @override
70
+ */
71
+ proto.BasePlant.displayName = 'proto.BasePlant';
72
+ }
73
+ /**
74
+ * Generated by JsPbCodeGenerator.
75
+ * @param {Array=} opt_data Optional initial data array, typically from a
76
+ * server response, or constructed directly in Javascript. The array is used
77
+ * in place and becomes part of the constructed object. It is not cloned.
78
+ * If no data is provided, the constructed object will be empty, but still
79
+ * valid.
80
+ * @extends {jspb.Message}
81
+ * @constructor
82
+ */
83
+ proto.PlantGetByIdRequest = function(opt_data) {
84
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
85
+ };
86
+ goog.inherits(proto.PlantGetByIdRequest, jspb.Message);
87
+ if (goog.DEBUG && !COMPILED) {
88
+ /**
89
+ * @public
90
+ * @override
91
+ */
92
+ proto.PlantGetByIdRequest.displayName = 'proto.PlantGetByIdRequest';
93
+ }
94
+ /**
95
+ * Generated by JsPbCodeGenerator.
96
+ * @param {Array=} opt_data Optional initial data array, typically from a
97
+ * server response, or constructed directly in Javascript. The array is used
98
+ * in place and becomes part of the constructed object. It is not cloned.
99
+ * If no data is provided, the constructed object will be empty, but still
100
+ * valid.
101
+ * @extends {jspb.Message}
102
+ * @constructor
103
+ */
104
+ proto.CreatePlantRequest = function(opt_data) {
105
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
106
+ };
107
+ goog.inherits(proto.CreatePlantRequest, jspb.Message);
108
+ if (goog.DEBUG && !COMPILED) {
109
+ /**
110
+ * @public
111
+ * @override
112
+ */
113
+ proto.CreatePlantRequest.displayName = 'proto.CreatePlantRequest';
114
+ }
115
+ /**
116
+ * Generated by JsPbCodeGenerator.
117
+ * @param {Array=} opt_data Optional initial data array, typically from a
118
+ * server response, or constructed directly in Javascript. The array is used
119
+ * in place and becomes part of the constructed object. It is not cloned.
120
+ * If no data is provided, the constructed object will be empty, but still
121
+ * valid.
122
+ * @extends {jspb.Message}
123
+ * @constructor
124
+ */
125
+ proto.UpdatePlantRequest = function(opt_data) {
126
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
127
+ };
128
+ goog.inherits(proto.UpdatePlantRequest, jspb.Message);
129
+ if (goog.DEBUG && !COMPILED) {
130
+ /**
131
+ * @public
132
+ * @override
133
+ */
134
+ proto.UpdatePlantRequest.displayName = 'proto.UpdatePlantRequest';
135
+ }
136
+ /**
137
+ * Generated by JsPbCodeGenerator.
138
+ * @param {Array=} opt_data Optional initial data array, typically from a
139
+ * server response, or constructed directly in Javascript. The array is used
140
+ * in place and becomes part of the constructed object. It is not cloned.
141
+ * If no data is provided, the constructed object will be empty, but still
142
+ * valid.
143
+ * @extends {jspb.Message}
144
+ * @constructor
145
+ */
146
+ proto.DeletePlantRequest = function(opt_data) {
147
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeletePlantRequest.repeatedFields_, null);
148
+ };
149
+ goog.inherits(proto.DeletePlantRequest, jspb.Message);
150
+ if (goog.DEBUG && !COMPILED) {
151
+ /**
152
+ * @public
153
+ * @override
154
+ */
155
+ proto.DeletePlantRequest.displayName = 'proto.DeletePlantRequest';
156
+ }
157
+ /**
158
+ * Generated by JsPbCodeGenerator.
159
+ * @param {Array=} opt_data Optional initial data array, typically from a
160
+ * server response, or constructed directly in Javascript. The array is used
161
+ * in place and becomes part of the constructed object. It is not cloned.
162
+ * If no data is provided, the constructed object will be empty, but still
163
+ * valid.
164
+ * @extends {jspb.Message}
165
+ * @constructor
166
+ */
167
+ proto.DeletePlantResponse = function(opt_data) {
168
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeletePlantResponse.repeatedFields_, null);
169
+ };
170
+ goog.inherits(proto.DeletePlantResponse, jspb.Message);
171
+ if (goog.DEBUG && !COMPILED) {
172
+ /**
173
+ * @public
174
+ * @override
175
+ */
176
+ proto.DeletePlantResponse.displayName = 'proto.DeletePlantResponse';
177
+ }
178
+ /**
179
+ * Generated by JsPbCodeGenerator.
180
+ * @param {Array=} opt_data Optional initial data array, typically from a
181
+ * server response, or constructed directly in Javascript. The array is used
182
+ * in place and becomes part of the constructed object. It is not cloned.
183
+ * If no data is provided, the constructed object will be empty, but still
184
+ * valid.
185
+ * @extends {jspb.Message}
186
+ * @constructor
187
+ */
188
+ proto.GetListPlantRequest = function(opt_data) {
189
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
190
+ };
191
+ goog.inherits(proto.GetListPlantRequest, jspb.Message);
192
+ if (goog.DEBUG && !COMPILED) {
193
+ /**
194
+ * @public
195
+ * @override
196
+ */
197
+ proto.GetListPlantRequest.displayName = 'proto.GetListPlantRequest';
198
+ }
199
+ /**
200
+ * Generated by JsPbCodeGenerator.
201
+ * @param {Array=} opt_data Optional initial data array, typically from a
202
+ * server response, or constructed directly in Javascript. The array is used
203
+ * in place and becomes part of the constructed object. It is not cloned.
204
+ * If no data is provided, the constructed object will be empty, but still
205
+ * valid.
206
+ * @extends {jspb.Message}
207
+ * @constructor
208
+ */
209
+ proto.GetListPlantResponse = function(opt_data) {
210
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListPlantResponse.repeatedFields_, null);
211
+ };
212
+ goog.inherits(proto.GetListPlantResponse, jspb.Message);
213
+ if (goog.DEBUG && !COMPILED) {
214
+ /**
215
+ * @public
216
+ * @override
217
+ */
218
+ proto.GetListPlantResponse.displayName = 'proto.GetListPlantResponse';
219
+ }
220
+
221
+
222
+
223
+ if (jspb.Message.GENERATE_TO_OBJECT) {
224
+ /**
225
+ * Creates an object representation of this proto.
226
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
227
+ * Optional fields that are not set will be set to undefined.
228
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
229
+ * For the list of reserved names please see:
230
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
231
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
232
+ * JSPB instance for transitional soy proto support:
233
+ * http://goto/soy-param-migration
234
+ * @return {!Object}
235
+ */
236
+ proto.Plant.prototype.toObject = function(opt_includeInstance) {
237
+ return proto.Plant.toObject(opt_includeInstance, this);
238
+ };
239
+
240
+
241
+ /**
242
+ * Static version of the {@see toObject} method.
243
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
244
+ * the JSPB instance for transitional soy proto support:
245
+ * http://goto/soy-param-migration
246
+ * @param {!proto.Plant} msg The msg instance to transform.
247
+ * @return {!Object}
248
+ * @suppress {unusedLocalVariables} f is only used for nested messages
249
+ */
250
+ proto.Plant.toObject = function(includeInstance, msg) {
251
+ var f, obj = {
252
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
253
+ plantCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
254
+ plantDescription: jspb.Message.getFieldWithDefault(msg, 3, ""),
255
+ address: jspb.Message.getFieldWithDefault(msg, 4, ""),
256
+ referencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
257
+ createdAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
258
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
259
+ createdBy: jspb.Message.getFieldWithDefault(msg, 8, ""),
260
+ updatedBy: jspb.Message.getFieldWithDefault(msg, 9, ""),
261
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 10, "")
262
+ };
263
+
264
+ if (includeInstance) {
265
+ obj.$jspbMessageInstance = msg;
266
+ }
267
+ return obj;
268
+ };
269
+ }
270
+
271
+
272
+ /**
273
+ * Deserializes binary data (in protobuf wire format).
274
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
275
+ * @return {!proto.Plant}
276
+ */
277
+ proto.Plant.deserializeBinary = function(bytes) {
278
+ var reader = new jspb.BinaryReader(bytes);
279
+ var msg = new proto.Plant;
280
+ return proto.Plant.deserializeBinaryFromReader(msg, reader);
281
+ };
282
+
283
+
284
+ /**
285
+ * Deserializes binary data (in protobuf wire format) from the
286
+ * given reader into the given message object.
287
+ * @param {!proto.Plant} msg The message object to deserialize into.
288
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
289
+ * @return {!proto.Plant}
290
+ */
291
+ proto.Plant.deserializeBinaryFromReader = function(msg, reader) {
292
+ while (reader.nextField()) {
293
+ if (reader.isEndGroup()) {
294
+ break;
295
+ }
296
+ var field = reader.getFieldNumber();
297
+ switch (field) {
298
+ case 1:
299
+ var value = /** @type {number} */ (reader.readInt64());
300
+ msg.setId(value);
301
+ break;
302
+ case 2:
303
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
304
+ msg.setPlantCode(value);
305
+ break;
306
+ case 3:
307
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
308
+ msg.setPlantDescription(value);
309
+ break;
310
+ case 4:
311
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
312
+ msg.setAddress(value);
313
+ break;
314
+ case 5:
315
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
316
+ msg.setReferencesId(value);
317
+ break;
318
+ case 6:
319
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
320
+ msg.setCreatedAt(value);
321
+ break;
322
+ case 7:
323
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
324
+ msg.setUpdatedAt(value);
325
+ break;
326
+ case 8:
327
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
328
+ msg.setCreatedBy(value);
329
+ break;
330
+ case 9:
331
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
332
+ msg.setUpdatedBy(value);
333
+ break;
334
+ case 10:
335
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
336
+ msg.setCompaniesReferencesId(value);
337
+ break;
338
+ default:
339
+ reader.skipField();
340
+ break;
341
+ }
342
+ }
343
+ return msg;
344
+ };
345
+
346
+
347
+ /**
348
+ * Serializes the message to binary data (in protobuf wire format).
349
+ * @return {!Uint8Array}
350
+ */
351
+ proto.Plant.prototype.serializeBinary = function() {
352
+ var writer = new jspb.BinaryWriter();
353
+ proto.Plant.serializeBinaryToWriter(this, writer);
354
+ return writer.getResultBuffer();
355
+ };
356
+
357
+
358
+ /**
359
+ * Serializes the given message to binary data (in protobuf wire
360
+ * format), writing to the given BinaryWriter.
361
+ * @param {!proto.Plant} message
362
+ * @param {!jspb.BinaryWriter} writer
363
+ * @suppress {unusedLocalVariables} f is only used for nested messages
364
+ */
365
+ proto.Plant.serializeBinaryToWriter = function(message, writer) {
366
+ var f = undefined;
367
+ f = message.getId();
368
+ if (f !== 0) {
369
+ writer.writeInt64(
370
+ 1,
371
+ f
372
+ );
373
+ }
374
+ f = message.getPlantCode();
375
+ if (f.length > 0) {
376
+ writer.writeString(
377
+ 2,
378
+ f
379
+ );
380
+ }
381
+ f = message.getPlantDescription();
382
+ if (f.length > 0) {
383
+ writer.writeString(
384
+ 3,
385
+ f
386
+ );
387
+ }
388
+ f = message.getAddress();
389
+ if (f.length > 0) {
390
+ writer.writeString(
391
+ 4,
392
+ f
393
+ );
394
+ }
395
+ f = message.getReferencesId();
396
+ if (f.length > 0) {
397
+ writer.writeString(
398
+ 5,
399
+ f
400
+ );
401
+ }
402
+ f = message.getCreatedAt();
403
+ if (f.length > 0) {
404
+ writer.writeString(
405
+ 6,
406
+ f
407
+ );
408
+ }
409
+ f = message.getUpdatedAt();
410
+ if (f.length > 0) {
411
+ writer.writeString(
412
+ 7,
413
+ f
414
+ );
415
+ }
416
+ f = message.getCreatedBy();
417
+ if (f.length > 0) {
418
+ writer.writeString(
419
+ 8,
420
+ f
421
+ );
422
+ }
423
+ f = message.getUpdatedBy();
424
+ if (f.length > 0) {
425
+ writer.writeString(
426
+ 9,
427
+ f
428
+ );
429
+ }
430
+ f = message.getCompaniesReferencesId();
431
+ if (f.length > 0) {
432
+ writer.writeString(
433
+ 10,
434
+ f
435
+ );
436
+ }
437
+ };
438
+
439
+
440
+ /**
441
+ * optional int64 id = 1;
442
+ * @return {number}
443
+ */
444
+ proto.Plant.prototype.getId = function() {
445
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
446
+ };
447
+
448
+
449
+ /**
450
+ * @param {number} value
451
+ * @return {!proto.Plant} returns this
452
+ */
453
+ proto.Plant.prototype.setId = function(value) {
454
+ return jspb.Message.setProto3IntField(this, 1, value);
455
+ };
456
+
457
+
458
+ /**
459
+ * optional string plant_code = 2;
460
+ * @return {string}
461
+ */
462
+ proto.Plant.prototype.getPlantCode = function() {
463
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
464
+ };
465
+
466
+
467
+ /**
468
+ * @param {string} value
469
+ * @return {!proto.Plant} returns this
470
+ */
471
+ proto.Plant.prototype.setPlantCode = function(value) {
472
+ return jspb.Message.setProto3StringField(this, 2, value);
473
+ };
474
+
475
+
476
+ /**
477
+ * optional string plant_description = 3;
478
+ * @return {string}
479
+ */
480
+ proto.Plant.prototype.getPlantDescription = function() {
481
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
482
+ };
483
+
484
+
485
+ /**
486
+ * @param {string} value
487
+ * @return {!proto.Plant} returns this
488
+ */
489
+ proto.Plant.prototype.setPlantDescription = function(value) {
490
+ return jspb.Message.setProto3StringField(this, 3, value);
491
+ };
492
+
493
+
494
+ /**
495
+ * optional string address = 4;
496
+ * @return {string}
497
+ */
498
+ proto.Plant.prototype.getAddress = function() {
499
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
500
+ };
501
+
502
+
503
+ /**
504
+ * @param {string} value
505
+ * @return {!proto.Plant} returns this
506
+ */
507
+ proto.Plant.prototype.setAddress = function(value) {
508
+ return jspb.Message.setProto3StringField(this, 4, value);
509
+ };
510
+
511
+
512
+ /**
513
+ * optional string references_id = 5;
514
+ * @return {string}
515
+ */
516
+ proto.Plant.prototype.getReferencesId = function() {
517
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
518
+ };
519
+
520
+
521
+ /**
522
+ * @param {string} value
523
+ * @return {!proto.Plant} returns this
524
+ */
525
+ proto.Plant.prototype.setReferencesId = function(value) {
526
+ return jspb.Message.setProto3StringField(this, 5, value);
527
+ };
528
+
529
+
530
+ /**
531
+ * optional string created_at = 6;
532
+ * @return {string}
533
+ */
534
+ proto.Plant.prototype.getCreatedAt = function() {
535
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
536
+ };
537
+
538
+
539
+ /**
540
+ * @param {string} value
541
+ * @return {!proto.Plant} returns this
542
+ */
543
+ proto.Plant.prototype.setCreatedAt = function(value) {
544
+ return jspb.Message.setProto3StringField(this, 6, value);
545
+ };
546
+
547
+
548
+ /**
549
+ * optional string updated_at = 7;
550
+ * @return {string}
551
+ */
552
+ proto.Plant.prototype.getUpdatedAt = function() {
553
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
554
+ };
555
+
556
+
557
+ /**
558
+ * @param {string} value
559
+ * @return {!proto.Plant} returns this
560
+ */
561
+ proto.Plant.prototype.setUpdatedAt = function(value) {
562
+ return jspb.Message.setProto3StringField(this, 7, value);
563
+ };
564
+
565
+
566
+ /**
567
+ * optional string created_by = 8;
568
+ * @return {string}
569
+ */
570
+ proto.Plant.prototype.getCreatedBy = function() {
571
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
572
+ };
573
+
574
+
575
+ /**
576
+ * @param {string} value
577
+ * @return {!proto.Plant} returns this
578
+ */
579
+ proto.Plant.prototype.setCreatedBy = function(value) {
580
+ return jspb.Message.setProto3StringField(this, 8, value);
581
+ };
582
+
583
+
584
+ /**
585
+ * optional string updated_by = 9;
586
+ * @return {string}
587
+ */
588
+ proto.Plant.prototype.getUpdatedBy = function() {
589
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
590
+ };
591
+
592
+
593
+ /**
594
+ * @param {string} value
595
+ * @return {!proto.Plant} returns this
596
+ */
597
+ proto.Plant.prototype.setUpdatedBy = function(value) {
598
+ return jspb.Message.setProto3StringField(this, 9, value);
599
+ };
600
+
601
+
602
+ /**
603
+ * optional string companies_references_id = 10;
604
+ * @return {string}
605
+ */
606
+ proto.Plant.prototype.getCompaniesReferencesId = function() {
607
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
608
+ };
609
+
610
+
611
+ /**
612
+ * @param {string} value
613
+ * @return {!proto.Plant} returns this
614
+ */
615
+ proto.Plant.prototype.setCompaniesReferencesId = function(value) {
616
+ return jspb.Message.setProto3StringField(this, 10, value);
617
+ };
618
+
619
+
620
+
621
+
622
+
623
+ if (jspb.Message.GENERATE_TO_OBJECT) {
624
+ /**
625
+ * Creates an object representation of this proto.
626
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
627
+ * Optional fields that are not set will be set to undefined.
628
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
629
+ * For the list of reserved names please see:
630
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
631
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
632
+ * JSPB instance for transitional soy proto support:
633
+ * http://goto/soy-param-migration
634
+ * @return {!Object}
635
+ */
636
+ proto.BasePlant.prototype.toObject = function(opt_includeInstance) {
637
+ return proto.BasePlant.toObject(opt_includeInstance, this);
638
+ };
639
+
640
+
641
+ /**
642
+ * Static version of the {@see toObject} method.
643
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
644
+ * the JSPB instance for transitional soy proto support:
645
+ * http://goto/soy-param-migration
646
+ * @param {!proto.BasePlant} msg The msg instance to transform.
647
+ * @return {!Object}
648
+ * @suppress {unusedLocalVariables} f is only used for nested messages
649
+ */
650
+ proto.BasePlant.toObject = function(includeInstance, msg) {
651
+ var f, obj = {
652
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
653
+ plantCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
654
+ plantDescription: jspb.Message.getFieldWithDefault(msg, 3, ""),
655
+ address: jspb.Message.getFieldWithDefault(msg, 4, ""),
656
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 5, "")
657
+ };
658
+
659
+ if (includeInstance) {
660
+ obj.$jspbMessageInstance = msg;
661
+ }
662
+ return obj;
663
+ };
664
+ }
665
+
666
+
667
+ /**
668
+ * Deserializes binary data (in protobuf wire format).
669
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
670
+ * @return {!proto.BasePlant}
671
+ */
672
+ proto.BasePlant.deserializeBinary = function(bytes) {
673
+ var reader = new jspb.BinaryReader(bytes);
674
+ var msg = new proto.BasePlant;
675
+ return proto.BasePlant.deserializeBinaryFromReader(msg, reader);
676
+ };
677
+
678
+
679
+ /**
680
+ * Deserializes binary data (in protobuf wire format) from the
681
+ * given reader into the given message object.
682
+ * @param {!proto.BasePlant} msg The message object to deserialize into.
683
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
684
+ * @return {!proto.BasePlant}
685
+ */
686
+ proto.BasePlant.deserializeBinaryFromReader = function(msg, reader) {
687
+ while (reader.nextField()) {
688
+ if (reader.isEndGroup()) {
689
+ break;
690
+ }
691
+ var field = reader.getFieldNumber();
692
+ switch (field) {
693
+ case 1:
694
+ var value = /** @type {number} */ (reader.readInt64());
695
+ msg.setId(value);
696
+ break;
697
+ case 2:
698
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
699
+ msg.setPlantCode(value);
700
+ break;
701
+ case 3:
702
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
703
+ msg.setPlantDescription(value);
704
+ break;
705
+ case 4:
706
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
707
+ msg.setAddress(value);
708
+ break;
709
+ case 5:
710
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
711
+ msg.setCompaniesReferencesId(value);
712
+ break;
713
+ default:
714
+ reader.skipField();
715
+ break;
716
+ }
717
+ }
718
+ return msg;
719
+ };
720
+
721
+
722
+ /**
723
+ * Serializes the message to binary data (in protobuf wire format).
724
+ * @return {!Uint8Array}
725
+ */
726
+ proto.BasePlant.prototype.serializeBinary = function() {
727
+ var writer = new jspb.BinaryWriter();
728
+ proto.BasePlant.serializeBinaryToWriter(this, writer);
729
+ return writer.getResultBuffer();
730
+ };
731
+
732
+
733
+ /**
734
+ * Serializes the given message to binary data (in protobuf wire
735
+ * format), writing to the given BinaryWriter.
736
+ * @param {!proto.BasePlant} message
737
+ * @param {!jspb.BinaryWriter} writer
738
+ * @suppress {unusedLocalVariables} f is only used for nested messages
739
+ */
740
+ proto.BasePlant.serializeBinaryToWriter = function(message, writer) {
741
+ var f = undefined;
742
+ f = message.getId();
743
+ if (f !== 0) {
744
+ writer.writeInt64(
745
+ 1,
746
+ f
747
+ );
748
+ }
749
+ f = message.getPlantCode();
750
+ if (f.length > 0) {
751
+ writer.writeString(
752
+ 2,
753
+ f
754
+ );
755
+ }
756
+ f = message.getPlantDescription();
757
+ if (f.length > 0) {
758
+ writer.writeString(
759
+ 3,
760
+ f
761
+ );
762
+ }
763
+ f = message.getAddress();
764
+ if (f.length > 0) {
765
+ writer.writeString(
766
+ 4,
767
+ f
768
+ );
769
+ }
770
+ f = message.getCompaniesReferencesId();
771
+ if (f.length > 0) {
772
+ writer.writeString(
773
+ 5,
774
+ f
775
+ );
776
+ }
777
+ };
778
+
779
+
780
+ /**
781
+ * optional int64 id = 1;
782
+ * @return {number}
783
+ */
784
+ proto.BasePlant.prototype.getId = function() {
785
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
786
+ };
787
+
788
+
789
+ /**
790
+ * @param {number} value
791
+ * @return {!proto.BasePlant} returns this
792
+ */
793
+ proto.BasePlant.prototype.setId = function(value) {
794
+ return jspb.Message.setProto3IntField(this, 1, value);
795
+ };
796
+
797
+
798
+ /**
799
+ * optional string plant_code = 2;
800
+ * @return {string}
801
+ */
802
+ proto.BasePlant.prototype.getPlantCode = function() {
803
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
804
+ };
805
+
806
+
807
+ /**
808
+ * @param {string} value
809
+ * @return {!proto.BasePlant} returns this
810
+ */
811
+ proto.BasePlant.prototype.setPlantCode = function(value) {
812
+ return jspb.Message.setProto3StringField(this, 2, value);
813
+ };
814
+
815
+
816
+ /**
817
+ * optional string plant_description = 3;
818
+ * @return {string}
819
+ */
820
+ proto.BasePlant.prototype.getPlantDescription = function() {
821
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
822
+ };
823
+
824
+
825
+ /**
826
+ * @param {string} value
827
+ * @return {!proto.BasePlant} returns this
828
+ */
829
+ proto.BasePlant.prototype.setPlantDescription = function(value) {
830
+ return jspb.Message.setProto3StringField(this, 3, value);
831
+ };
832
+
833
+
834
+ /**
835
+ * optional string address = 4;
836
+ * @return {string}
837
+ */
838
+ proto.BasePlant.prototype.getAddress = function() {
839
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
840
+ };
841
+
842
+
843
+ /**
844
+ * @param {string} value
845
+ * @return {!proto.BasePlant} returns this
846
+ */
847
+ proto.BasePlant.prototype.setAddress = function(value) {
848
+ return jspb.Message.setProto3StringField(this, 4, value);
849
+ };
850
+
851
+
852
+ /**
853
+ * optional string companies_references_id = 5;
854
+ * @return {string}
855
+ */
856
+ proto.BasePlant.prototype.getCompaniesReferencesId = function() {
857
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
858
+ };
859
+
860
+
861
+ /**
862
+ * @param {string} value
863
+ * @return {!proto.BasePlant} returns this
864
+ */
865
+ proto.BasePlant.prototype.setCompaniesReferencesId = function(value) {
866
+ return jspb.Message.setProto3StringField(this, 5, value);
867
+ };
868
+
869
+
870
+
871
+
872
+
873
+ if (jspb.Message.GENERATE_TO_OBJECT) {
874
+ /**
875
+ * Creates an object representation of this proto.
876
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
877
+ * Optional fields that are not set will be set to undefined.
878
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
879
+ * For the list of reserved names please see:
880
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
881
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
882
+ * JSPB instance for transitional soy proto support:
883
+ * http://goto/soy-param-migration
884
+ * @return {!Object}
885
+ */
886
+ proto.PlantGetByIdRequest.prototype.toObject = function(opt_includeInstance) {
887
+ return proto.PlantGetByIdRequest.toObject(opt_includeInstance, this);
888
+ };
889
+
890
+
891
+ /**
892
+ * Static version of the {@see toObject} method.
893
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
894
+ * the JSPB instance for transitional soy proto support:
895
+ * http://goto/soy-param-migration
896
+ * @param {!proto.PlantGetByIdRequest} msg The msg instance to transform.
897
+ * @return {!Object}
898
+ * @suppress {unusedLocalVariables} f is only used for nested messages
899
+ */
900
+ proto.PlantGetByIdRequest.toObject = function(includeInstance, msg) {
901
+ var f, obj = {
902
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
903
+ };
904
+
905
+ if (includeInstance) {
906
+ obj.$jspbMessageInstance = msg;
907
+ }
908
+ return obj;
909
+ };
910
+ }
911
+
912
+
913
+ /**
914
+ * Deserializes binary data (in protobuf wire format).
915
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
916
+ * @return {!proto.PlantGetByIdRequest}
917
+ */
918
+ proto.PlantGetByIdRequest.deserializeBinary = function(bytes) {
919
+ var reader = new jspb.BinaryReader(bytes);
920
+ var msg = new proto.PlantGetByIdRequest;
921
+ return proto.PlantGetByIdRequest.deserializeBinaryFromReader(msg, reader);
922
+ };
923
+
924
+
925
+ /**
926
+ * Deserializes binary data (in protobuf wire format) from the
927
+ * given reader into the given message object.
928
+ * @param {!proto.PlantGetByIdRequest} msg The message object to deserialize into.
929
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
930
+ * @return {!proto.PlantGetByIdRequest}
931
+ */
932
+ proto.PlantGetByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
933
+ while (reader.nextField()) {
934
+ if (reader.isEndGroup()) {
935
+ break;
936
+ }
937
+ var field = reader.getFieldNumber();
938
+ switch (field) {
939
+ case 1:
940
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
941
+ msg.setReferencesId(value);
942
+ break;
943
+ default:
944
+ reader.skipField();
945
+ break;
946
+ }
947
+ }
948
+ return msg;
949
+ };
950
+
951
+
952
+ /**
953
+ * Serializes the message to binary data (in protobuf wire format).
954
+ * @return {!Uint8Array}
955
+ */
956
+ proto.PlantGetByIdRequest.prototype.serializeBinary = function() {
957
+ var writer = new jspb.BinaryWriter();
958
+ proto.PlantGetByIdRequest.serializeBinaryToWriter(this, writer);
959
+ return writer.getResultBuffer();
960
+ };
961
+
962
+
963
+ /**
964
+ * Serializes the given message to binary data (in protobuf wire
965
+ * format), writing to the given BinaryWriter.
966
+ * @param {!proto.PlantGetByIdRequest} message
967
+ * @param {!jspb.BinaryWriter} writer
968
+ * @suppress {unusedLocalVariables} f is only used for nested messages
969
+ */
970
+ proto.PlantGetByIdRequest.serializeBinaryToWriter = function(message, writer) {
971
+ var f = undefined;
972
+ f = message.getReferencesId();
973
+ if (f.length > 0) {
974
+ writer.writeString(
975
+ 1,
976
+ f
977
+ );
978
+ }
979
+ };
980
+
981
+
982
+ /**
983
+ * optional string references_id = 1;
984
+ * @return {string}
985
+ */
986
+ proto.PlantGetByIdRequest.prototype.getReferencesId = function() {
987
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
988
+ };
989
+
990
+
991
+ /**
992
+ * @param {string} value
993
+ * @return {!proto.PlantGetByIdRequest} returns this
994
+ */
995
+ proto.PlantGetByIdRequest.prototype.setReferencesId = function(value) {
996
+ return jspb.Message.setProto3StringField(this, 1, value);
997
+ };
998
+
999
+
1000
+
1001
+
1002
+
1003
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1004
+ /**
1005
+ * Creates an object representation of this proto.
1006
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1007
+ * Optional fields that are not set will be set to undefined.
1008
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1009
+ * For the list of reserved names please see:
1010
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1011
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1012
+ * JSPB instance for transitional soy proto support:
1013
+ * http://goto/soy-param-migration
1014
+ * @return {!Object}
1015
+ */
1016
+ proto.CreatePlantRequest.prototype.toObject = function(opt_includeInstance) {
1017
+ return proto.CreatePlantRequest.toObject(opt_includeInstance, this);
1018
+ };
1019
+
1020
+
1021
+ /**
1022
+ * Static version of the {@see toObject} method.
1023
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1024
+ * the JSPB instance for transitional soy proto support:
1025
+ * http://goto/soy-param-migration
1026
+ * @param {!proto.CreatePlantRequest} msg The msg instance to transform.
1027
+ * @return {!Object}
1028
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1029
+ */
1030
+ proto.CreatePlantRequest.toObject = function(includeInstance, msg) {
1031
+ var f, obj = {
1032
+ plant: (f = msg.getPlant()) && proto.BasePlant.toObject(includeInstance, f)
1033
+ };
1034
+
1035
+ if (includeInstance) {
1036
+ obj.$jspbMessageInstance = msg;
1037
+ }
1038
+ return obj;
1039
+ };
1040
+ }
1041
+
1042
+
1043
+ /**
1044
+ * Deserializes binary data (in protobuf wire format).
1045
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1046
+ * @return {!proto.CreatePlantRequest}
1047
+ */
1048
+ proto.CreatePlantRequest.deserializeBinary = function(bytes) {
1049
+ var reader = new jspb.BinaryReader(bytes);
1050
+ var msg = new proto.CreatePlantRequest;
1051
+ return proto.CreatePlantRequest.deserializeBinaryFromReader(msg, reader);
1052
+ };
1053
+
1054
+
1055
+ /**
1056
+ * Deserializes binary data (in protobuf wire format) from the
1057
+ * given reader into the given message object.
1058
+ * @param {!proto.CreatePlantRequest} msg The message object to deserialize into.
1059
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1060
+ * @return {!proto.CreatePlantRequest}
1061
+ */
1062
+ proto.CreatePlantRequest.deserializeBinaryFromReader = function(msg, reader) {
1063
+ while (reader.nextField()) {
1064
+ if (reader.isEndGroup()) {
1065
+ break;
1066
+ }
1067
+ var field = reader.getFieldNumber();
1068
+ switch (field) {
1069
+ case 1:
1070
+ var value = new proto.BasePlant;
1071
+ reader.readMessage(value,proto.BasePlant.deserializeBinaryFromReader);
1072
+ msg.setPlant(value);
1073
+ break;
1074
+ default:
1075
+ reader.skipField();
1076
+ break;
1077
+ }
1078
+ }
1079
+ return msg;
1080
+ };
1081
+
1082
+
1083
+ /**
1084
+ * Serializes the message to binary data (in protobuf wire format).
1085
+ * @return {!Uint8Array}
1086
+ */
1087
+ proto.CreatePlantRequest.prototype.serializeBinary = function() {
1088
+ var writer = new jspb.BinaryWriter();
1089
+ proto.CreatePlantRequest.serializeBinaryToWriter(this, writer);
1090
+ return writer.getResultBuffer();
1091
+ };
1092
+
1093
+
1094
+ /**
1095
+ * Serializes the given message to binary data (in protobuf wire
1096
+ * format), writing to the given BinaryWriter.
1097
+ * @param {!proto.CreatePlantRequest} message
1098
+ * @param {!jspb.BinaryWriter} writer
1099
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1100
+ */
1101
+ proto.CreatePlantRequest.serializeBinaryToWriter = function(message, writer) {
1102
+ var f = undefined;
1103
+ f = message.getPlant();
1104
+ if (f != null) {
1105
+ writer.writeMessage(
1106
+ 1,
1107
+ f,
1108
+ proto.BasePlant.serializeBinaryToWriter
1109
+ );
1110
+ }
1111
+ };
1112
+
1113
+
1114
+ /**
1115
+ * optional BasePlant plant = 1;
1116
+ * @return {?proto.BasePlant}
1117
+ */
1118
+ proto.CreatePlantRequest.prototype.getPlant = function() {
1119
+ return /** @type{?proto.BasePlant} */ (
1120
+ jspb.Message.getWrapperField(this, proto.BasePlant, 1));
1121
+ };
1122
+
1123
+
1124
+ /**
1125
+ * @param {?proto.BasePlant|undefined} value
1126
+ * @return {!proto.CreatePlantRequest} returns this
1127
+ */
1128
+ proto.CreatePlantRequest.prototype.setPlant = function(value) {
1129
+ return jspb.Message.setWrapperField(this, 1, value);
1130
+ };
1131
+
1132
+
1133
+ /**
1134
+ * Clears the message field making it undefined.
1135
+ * @return {!proto.CreatePlantRequest} returns this
1136
+ */
1137
+ proto.CreatePlantRequest.prototype.clearPlant = function() {
1138
+ return this.setPlant(undefined);
1139
+ };
1140
+
1141
+
1142
+ /**
1143
+ * Returns whether this field is set.
1144
+ * @return {boolean}
1145
+ */
1146
+ proto.CreatePlantRequest.prototype.hasPlant = function() {
1147
+ return jspb.Message.getField(this, 1) != null;
1148
+ };
1149
+
1150
+
1151
+
1152
+
1153
+
1154
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1155
+ /**
1156
+ * Creates an object representation of this proto.
1157
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1158
+ * Optional fields that are not set will be set to undefined.
1159
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1160
+ * For the list of reserved names please see:
1161
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1162
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1163
+ * JSPB instance for transitional soy proto support:
1164
+ * http://goto/soy-param-migration
1165
+ * @return {!Object}
1166
+ */
1167
+ proto.UpdatePlantRequest.prototype.toObject = function(opt_includeInstance) {
1168
+ return proto.UpdatePlantRequest.toObject(opt_includeInstance, this);
1169
+ };
1170
+
1171
+
1172
+ /**
1173
+ * Static version of the {@see toObject} method.
1174
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1175
+ * the JSPB instance for transitional soy proto support:
1176
+ * http://goto/soy-param-migration
1177
+ * @param {!proto.UpdatePlantRequest} msg The msg instance to transform.
1178
+ * @return {!Object}
1179
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1180
+ */
1181
+ proto.UpdatePlantRequest.toObject = function(includeInstance, msg) {
1182
+ var f, obj = {
1183
+ plant: (f = msg.getPlant()) && proto.Plant.toObject(includeInstance, f)
1184
+ };
1185
+
1186
+ if (includeInstance) {
1187
+ obj.$jspbMessageInstance = msg;
1188
+ }
1189
+ return obj;
1190
+ };
1191
+ }
1192
+
1193
+
1194
+ /**
1195
+ * Deserializes binary data (in protobuf wire format).
1196
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1197
+ * @return {!proto.UpdatePlantRequest}
1198
+ */
1199
+ proto.UpdatePlantRequest.deserializeBinary = function(bytes) {
1200
+ var reader = new jspb.BinaryReader(bytes);
1201
+ var msg = new proto.UpdatePlantRequest;
1202
+ return proto.UpdatePlantRequest.deserializeBinaryFromReader(msg, reader);
1203
+ };
1204
+
1205
+
1206
+ /**
1207
+ * Deserializes binary data (in protobuf wire format) from the
1208
+ * given reader into the given message object.
1209
+ * @param {!proto.UpdatePlantRequest} msg The message object to deserialize into.
1210
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1211
+ * @return {!proto.UpdatePlantRequest}
1212
+ */
1213
+ proto.UpdatePlantRequest.deserializeBinaryFromReader = function(msg, reader) {
1214
+ while (reader.nextField()) {
1215
+ if (reader.isEndGroup()) {
1216
+ break;
1217
+ }
1218
+ var field = reader.getFieldNumber();
1219
+ switch (field) {
1220
+ case 2:
1221
+ var value = new proto.Plant;
1222
+ reader.readMessage(value,proto.Plant.deserializeBinaryFromReader);
1223
+ msg.setPlant(value);
1224
+ break;
1225
+ default:
1226
+ reader.skipField();
1227
+ break;
1228
+ }
1229
+ }
1230
+ return msg;
1231
+ };
1232
+
1233
+
1234
+ /**
1235
+ * Serializes the message to binary data (in protobuf wire format).
1236
+ * @return {!Uint8Array}
1237
+ */
1238
+ proto.UpdatePlantRequest.prototype.serializeBinary = function() {
1239
+ var writer = new jspb.BinaryWriter();
1240
+ proto.UpdatePlantRequest.serializeBinaryToWriter(this, writer);
1241
+ return writer.getResultBuffer();
1242
+ };
1243
+
1244
+
1245
+ /**
1246
+ * Serializes the given message to binary data (in protobuf wire
1247
+ * format), writing to the given BinaryWriter.
1248
+ * @param {!proto.UpdatePlantRequest} message
1249
+ * @param {!jspb.BinaryWriter} writer
1250
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1251
+ */
1252
+ proto.UpdatePlantRequest.serializeBinaryToWriter = function(message, writer) {
1253
+ var f = undefined;
1254
+ f = message.getPlant();
1255
+ if (f != null) {
1256
+ writer.writeMessage(
1257
+ 2,
1258
+ f,
1259
+ proto.Plant.serializeBinaryToWriter
1260
+ );
1261
+ }
1262
+ };
1263
+
1264
+
1265
+ /**
1266
+ * optional Plant plant = 2;
1267
+ * @return {?proto.Plant}
1268
+ */
1269
+ proto.UpdatePlantRequest.prototype.getPlant = function() {
1270
+ return /** @type{?proto.Plant} */ (
1271
+ jspb.Message.getWrapperField(this, proto.Plant, 2));
1272
+ };
1273
+
1274
+
1275
+ /**
1276
+ * @param {?proto.Plant|undefined} value
1277
+ * @return {!proto.UpdatePlantRequest} returns this
1278
+ */
1279
+ proto.UpdatePlantRequest.prototype.setPlant = function(value) {
1280
+ return jspb.Message.setWrapperField(this, 2, value);
1281
+ };
1282
+
1283
+
1284
+ /**
1285
+ * Clears the message field making it undefined.
1286
+ * @return {!proto.UpdatePlantRequest} returns this
1287
+ */
1288
+ proto.UpdatePlantRequest.prototype.clearPlant = function() {
1289
+ return this.setPlant(undefined);
1290
+ };
1291
+
1292
+
1293
+ /**
1294
+ * Returns whether this field is set.
1295
+ * @return {boolean}
1296
+ */
1297
+ proto.UpdatePlantRequest.prototype.hasPlant = function() {
1298
+ return jspb.Message.getField(this, 2) != null;
1299
+ };
1300
+
1301
+
1302
+
1303
+ /**
1304
+ * List of repeated fields within this message type.
1305
+ * @private {!Array<number>}
1306
+ * @const
1307
+ */
1308
+ proto.DeletePlantRequest.repeatedFields_ = [1];
1309
+
1310
+
1311
+
1312
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1313
+ /**
1314
+ * Creates an object representation of this proto.
1315
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1316
+ * Optional fields that are not set will be set to undefined.
1317
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1318
+ * For the list of reserved names please see:
1319
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1320
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1321
+ * JSPB instance for transitional soy proto support:
1322
+ * http://goto/soy-param-migration
1323
+ * @return {!Object}
1324
+ */
1325
+ proto.DeletePlantRequest.prototype.toObject = function(opt_includeInstance) {
1326
+ return proto.DeletePlantRequest.toObject(opt_includeInstance, this);
1327
+ };
1328
+
1329
+
1330
+ /**
1331
+ * Static version of the {@see toObject} method.
1332
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1333
+ * the JSPB instance for transitional soy proto support:
1334
+ * http://goto/soy-param-migration
1335
+ * @param {!proto.DeletePlantRequest} msg The msg instance to transform.
1336
+ * @return {!Object}
1337
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1338
+ */
1339
+ proto.DeletePlantRequest.toObject = function(includeInstance, msg) {
1340
+ var f, obj = {
1341
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
1342
+ };
1343
+
1344
+ if (includeInstance) {
1345
+ obj.$jspbMessageInstance = msg;
1346
+ }
1347
+ return obj;
1348
+ };
1349
+ }
1350
+
1351
+
1352
+ /**
1353
+ * Deserializes binary data (in protobuf wire format).
1354
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1355
+ * @return {!proto.DeletePlantRequest}
1356
+ */
1357
+ proto.DeletePlantRequest.deserializeBinary = function(bytes) {
1358
+ var reader = new jspb.BinaryReader(bytes);
1359
+ var msg = new proto.DeletePlantRequest;
1360
+ return proto.DeletePlantRequest.deserializeBinaryFromReader(msg, reader);
1361
+ };
1362
+
1363
+
1364
+ /**
1365
+ * Deserializes binary data (in protobuf wire format) from the
1366
+ * given reader into the given message object.
1367
+ * @param {!proto.DeletePlantRequest} msg The message object to deserialize into.
1368
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1369
+ * @return {!proto.DeletePlantRequest}
1370
+ */
1371
+ proto.DeletePlantRequest.deserializeBinaryFromReader = function(msg, reader) {
1372
+ while (reader.nextField()) {
1373
+ if (reader.isEndGroup()) {
1374
+ break;
1375
+ }
1376
+ var field = reader.getFieldNumber();
1377
+ switch (field) {
1378
+ case 1:
1379
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1380
+ msg.addReferenceIds(value);
1381
+ break;
1382
+ default:
1383
+ reader.skipField();
1384
+ break;
1385
+ }
1386
+ }
1387
+ return msg;
1388
+ };
1389
+
1390
+
1391
+ /**
1392
+ * Serializes the message to binary data (in protobuf wire format).
1393
+ * @return {!Uint8Array}
1394
+ */
1395
+ proto.DeletePlantRequest.prototype.serializeBinary = function() {
1396
+ var writer = new jspb.BinaryWriter();
1397
+ proto.DeletePlantRequest.serializeBinaryToWriter(this, writer);
1398
+ return writer.getResultBuffer();
1399
+ };
1400
+
1401
+
1402
+ /**
1403
+ * Serializes the given message to binary data (in protobuf wire
1404
+ * format), writing to the given BinaryWriter.
1405
+ * @param {!proto.DeletePlantRequest} message
1406
+ * @param {!jspb.BinaryWriter} writer
1407
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1408
+ */
1409
+ proto.DeletePlantRequest.serializeBinaryToWriter = function(message, writer) {
1410
+ var f = undefined;
1411
+ f = message.getReferenceIdsList();
1412
+ if (f.length > 0) {
1413
+ writer.writeRepeatedString(
1414
+ 1,
1415
+ f
1416
+ );
1417
+ }
1418
+ };
1419
+
1420
+
1421
+ /**
1422
+ * repeated string reference_ids = 1;
1423
+ * @return {!Array<string>}
1424
+ */
1425
+ proto.DeletePlantRequest.prototype.getReferenceIdsList = function() {
1426
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
1427
+ };
1428
+
1429
+
1430
+ /**
1431
+ * @param {!Array<string>} value
1432
+ * @return {!proto.DeletePlantRequest} returns this
1433
+ */
1434
+ proto.DeletePlantRequest.prototype.setReferenceIdsList = function(value) {
1435
+ return jspb.Message.setField(this, 1, value || []);
1436
+ };
1437
+
1438
+
1439
+ /**
1440
+ * @param {string} value
1441
+ * @param {number=} opt_index
1442
+ * @return {!proto.DeletePlantRequest} returns this
1443
+ */
1444
+ proto.DeletePlantRequest.prototype.addReferenceIds = function(value, opt_index) {
1445
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1446
+ };
1447
+
1448
+
1449
+ /**
1450
+ * Clears the list making it empty but non-null.
1451
+ * @return {!proto.DeletePlantRequest} returns this
1452
+ */
1453
+ proto.DeletePlantRequest.prototype.clearReferenceIdsList = function() {
1454
+ return this.setReferenceIdsList([]);
1455
+ };
1456
+
1457
+
1458
+
1459
+ /**
1460
+ * List of repeated fields within this message type.
1461
+ * @private {!Array<number>}
1462
+ * @const
1463
+ */
1464
+ proto.DeletePlantResponse.repeatedFields_ = [1];
1465
+
1466
+
1467
+
1468
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1469
+ /**
1470
+ * Creates an object representation of this proto.
1471
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1472
+ * Optional fields that are not set will be set to undefined.
1473
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1474
+ * For the list of reserved names please see:
1475
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1476
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1477
+ * JSPB instance for transitional soy proto support:
1478
+ * http://goto/soy-param-migration
1479
+ * @return {!Object}
1480
+ */
1481
+ proto.DeletePlantResponse.prototype.toObject = function(opt_includeInstance) {
1482
+ return proto.DeletePlantResponse.toObject(opt_includeInstance, this);
1483
+ };
1484
+
1485
+
1486
+ /**
1487
+ * Static version of the {@see toObject} method.
1488
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1489
+ * the JSPB instance for transitional soy proto support:
1490
+ * http://goto/soy-param-migration
1491
+ * @param {!proto.DeletePlantResponse} msg The msg instance to transform.
1492
+ * @return {!Object}
1493
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1494
+ */
1495
+ proto.DeletePlantResponse.toObject = function(includeInstance, msg) {
1496
+ var f, obj = {
1497
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
1498
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1499
+ };
1500
+
1501
+ if (includeInstance) {
1502
+ obj.$jspbMessageInstance = msg;
1503
+ }
1504
+ return obj;
1505
+ };
1506
+ }
1507
+
1508
+
1509
+ /**
1510
+ * Deserializes binary data (in protobuf wire format).
1511
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1512
+ * @return {!proto.DeletePlantResponse}
1513
+ */
1514
+ proto.DeletePlantResponse.deserializeBinary = function(bytes) {
1515
+ var reader = new jspb.BinaryReader(bytes);
1516
+ var msg = new proto.DeletePlantResponse;
1517
+ return proto.DeletePlantResponse.deserializeBinaryFromReader(msg, reader);
1518
+ };
1519
+
1520
+
1521
+ /**
1522
+ * Deserializes binary data (in protobuf wire format) from the
1523
+ * given reader into the given message object.
1524
+ * @param {!proto.DeletePlantResponse} msg The message object to deserialize into.
1525
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1526
+ * @return {!proto.DeletePlantResponse}
1527
+ */
1528
+ proto.DeletePlantResponse.deserializeBinaryFromReader = function(msg, reader) {
1529
+ while (reader.nextField()) {
1530
+ if (reader.isEndGroup()) {
1531
+ break;
1532
+ }
1533
+ var field = reader.getFieldNumber();
1534
+ switch (field) {
1535
+ case 1:
1536
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1537
+ msg.addReferenceIds(value);
1538
+ break;
1539
+ case 2:
1540
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1541
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1542
+ msg.setMeta(value);
1543
+ break;
1544
+ default:
1545
+ reader.skipField();
1546
+ break;
1547
+ }
1548
+ }
1549
+ return msg;
1550
+ };
1551
+
1552
+
1553
+ /**
1554
+ * Serializes the message to binary data (in protobuf wire format).
1555
+ * @return {!Uint8Array}
1556
+ */
1557
+ proto.DeletePlantResponse.prototype.serializeBinary = function() {
1558
+ var writer = new jspb.BinaryWriter();
1559
+ proto.DeletePlantResponse.serializeBinaryToWriter(this, writer);
1560
+ return writer.getResultBuffer();
1561
+ };
1562
+
1563
+
1564
+ /**
1565
+ * Serializes the given message to binary data (in protobuf wire
1566
+ * format), writing to the given BinaryWriter.
1567
+ * @param {!proto.DeletePlantResponse} message
1568
+ * @param {!jspb.BinaryWriter} writer
1569
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1570
+ */
1571
+ proto.DeletePlantResponse.serializeBinaryToWriter = function(message, writer) {
1572
+ var f = undefined;
1573
+ f = message.getReferenceIdsList();
1574
+ if (f.length > 0) {
1575
+ writer.writeRepeatedString(
1576
+ 1,
1577
+ f
1578
+ );
1579
+ }
1580
+ f = message.getMeta();
1581
+ if (f != null) {
1582
+ writer.writeMessage(
1583
+ 2,
1584
+ f,
1585
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1586
+ );
1587
+ }
1588
+ };
1589
+
1590
+
1591
+ /**
1592
+ * repeated string reference_ids = 1;
1593
+ * @return {!Array<string>}
1594
+ */
1595
+ proto.DeletePlantResponse.prototype.getReferenceIdsList = function() {
1596
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
1597
+ };
1598
+
1599
+
1600
+ /**
1601
+ * @param {!Array<string>} value
1602
+ * @return {!proto.DeletePlantResponse} returns this
1603
+ */
1604
+ proto.DeletePlantResponse.prototype.setReferenceIdsList = function(value) {
1605
+ return jspb.Message.setField(this, 1, value || []);
1606
+ };
1607
+
1608
+
1609
+ /**
1610
+ * @param {string} value
1611
+ * @param {number=} opt_index
1612
+ * @return {!proto.DeletePlantResponse} returns this
1613
+ */
1614
+ proto.DeletePlantResponse.prototype.addReferenceIds = function(value, opt_index) {
1615
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1616
+ };
1617
+
1618
+
1619
+ /**
1620
+ * Clears the list making it empty but non-null.
1621
+ * @return {!proto.DeletePlantResponse} returns this
1622
+ */
1623
+ proto.DeletePlantResponse.prototype.clearReferenceIdsList = function() {
1624
+ return this.setReferenceIdsList([]);
1625
+ };
1626
+
1627
+
1628
+ /**
1629
+ * optional prisca.v1.global.meta.Meta meta = 2;
1630
+ * @return {?proto.prisca.v1.global.meta.Meta}
1631
+ */
1632
+ proto.DeletePlantResponse.prototype.getMeta = function() {
1633
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1634
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1635
+ };
1636
+
1637
+
1638
+ /**
1639
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1640
+ * @return {!proto.DeletePlantResponse} returns this
1641
+ */
1642
+ proto.DeletePlantResponse.prototype.setMeta = function(value) {
1643
+ return jspb.Message.setWrapperField(this, 2, value);
1644
+ };
1645
+
1646
+
1647
+ /**
1648
+ * Clears the message field making it undefined.
1649
+ * @return {!proto.DeletePlantResponse} returns this
1650
+ */
1651
+ proto.DeletePlantResponse.prototype.clearMeta = function() {
1652
+ return this.setMeta(undefined);
1653
+ };
1654
+
1655
+
1656
+ /**
1657
+ * Returns whether this field is set.
1658
+ * @return {boolean}
1659
+ */
1660
+ proto.DeletePlantResponse.prototype.hasMeta = function() {
1661
+ return jspb.Message.getField(this, 2) != null;
1662
+ };
1663
+
1664
+
1665
+
1666
+
1667
+
1668
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1669
+ /**
1670
+ * Creates an object representation of this proto.
1671
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1672
+ * Optional fields that are not set will be set to undefined.
1673
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1674
+ * For the list of reserved names please see:
1675
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1676
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1677
+ * JSPB instance for transitional soy proto support:
1678
+ * http://goto/soy-param-migration
1679
+ * @return {!Object}
1680
+ */
1681
+ proto.GetListPlantRequest.prototype.toObject = function(opt_includeInstance) {
1682
+ return proto.GetListPlantRequest.toObject(opt_includeInstance, this);
1683
+ };
1684
+
1685
+
1686
+ /**
1687
+ * Static version of the {@see toObject} method.
1688
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1689
+ * the JSPB instance for transitional soy proto support:
1690
+ * http://goto/soy-param-migration
1691
+ * @param {!proto.GetListPlantRequest} msg The msg instance to transform.
1692
+ * @return {!Object}
1693
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1694
+ */
1695
+ proto.GetListPlantRequest.toObject = function(includeInstance, msg) {
1696
+ var f, obj = {
1697
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1698
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
1699
+ };
1700
+
1701
+ if (includeInstance) {
1702
+ obj.$jspbMessageInstance = msg;
1703
+ }
1704
+ return obj;
1705
+ };
1706
+ }
1707
+
1708
+
1709
+ /**
1710
+ * Deserializes binary data (in protobuf wire format).
1711
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1712
+ * @return {!proto.GetListPlantRequest}
1713
+ */
1714
+ proto.GetListPlantRequest.deserializeBinary = function(bytes) {
1715
+ var reader = new jspb.BinaryReader(bytes);
1716
+ var msg = new proto.GetListPlantRequest;
1717
+ return proto.GetListPlantRequest.deserializeBinaryFromReader(msg, reader);
1718
+ };
1719
+
1720
+
1721
+ /**
1722
+ * Deserializes binary data (in protobuf wire format) from the
1723
+ * given reader into the given message object.
1724
+ * @param {!proto.GetListPlantRequest} msg The message object to deserialize into.
1725
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1726
+ * @return {!proto.GetListPlantRequest}
1727
+ */
1728
+ proto.GetListPlantRequest.deserializeBinaryFromReader = function(msg, reader) {
1729
+ while (reader.nextField()) {
1730
+ if (reader.isEndGroup()) {
1731
+ break;
1732
+ }
1733
+ var field = reader.getFieldNumber();
1734
+ switch (field) {
1735
+ case 1:
1736
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1737
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1738
+ msg.setPagination(value);
1739
+ break;
1740
+ case 2:
1741
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1742
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1743
+ msg.setQuery(value);
1744
+ break;
1745
+ default:
1746
+ reader.skipField();
1747
+ break;
1748
+ }
1749
+ }
1750
+ return msg;
1751
+ };
1752
+
1753
+
1754
+ /**
1755
+ * Serializes the message to binary data (in protobuf wire format).
1756
+ * @return {!Uint8Array}
1757
+ */
1758
+ proto.GetListPlantRequest.prototype.serializeBinary = function() {
1759
+ var writer = new jspb.BinaryWriter();
1760
+ proto.GetListPlantRequest.serializeBinaryToWriter(this, writer);
1761
+ return writer.getResultBuffer();
1762
+ };
1763
+
1764
+
1765
+ /**
1766
+ * Serializes the given message to binary data (in protobuf wire
1767
+ * format), writing to the given BinaryWriter.
1768
+ * @param {!proto.GetListPlantRequest} message
1769
+ * @param {!jspb.BinaryWriter} writer
1770
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1771
+ */
1772
+ proto.GetListPlantRequest.serializeBinaryToWriter = function(message, writer) {
1773
+ var f = undefined;
1774
+ f = message.getPagination();
1775
+ if (f != null) {
1776
+ writer.writeMessage(
1777
+ 1,
1778
+ f,
1779
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1780
+ );
1781
+ }
1782
+ f = message.getQuery();
1783
+ if (f != null) {
1784
+ writer.writeMessage(
1785
+ 2,
1786
+ f,
1787
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1788
+ );
1789
+ }
1790
+ };
1791
+
1792
+
1793
+ /**
1794
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1795
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1796
+ */
1797
+ proto.GetListPlantRequest.prototype.getPagination = function() {
1798
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1799
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1800
+ };
1801
+
1802
+
1803
+ /**
1804
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1805
+ * @return {!proto.GetListPlantRequest} returns this
1806
+ */
1807
+ proto.GetListPlantRequest.prototype.setPagination = function(value) {
1808
+ return jspb.Message.setWrapperField(this, 1, value);
1809
+ };
1810
+
1811
+
1812
+ /**
1813
+ * Clears the message field making it undefined.
1814
+ * @return {!proto.GetListPlantRequest} returns this
1815
+ */
1816
+ proto.GetListPlantRequest.prototype.clearPagination = function() {
1817
+ return this.setPagination(undefined);
1818
+ };
1819
+
1820
+
1821
+ /**
1822
+ * Returns whether this field is set.
1823
+ * @return {boolean}
1824
+ */
1825
+ proto.GetListPlantRequest.prototype.hasPagination = function() {
1826
+ return jspb.Message.getField(this, 1) != null;
1827
+ };
1828
+
1829
+
1830
+ /**
1831
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
1832
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
1833
+ */
1834
+ proto.GetListPlantRequest.prototype.getQuery = function() {
1835
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1836
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1837
+ };
1838
+
1839
+
1840
+ /**
1841
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1842
+ * @return {!proto.GetListPlantRequest} returns this
1843
+ */
1844
+ proto.GetListPlantRequest.prototype.setQuery = function(value) {
1845
+ return jspb.Message.setWrapperField(this, 2, value);
1846
+ };
1847
+
1848
+
1849
+ /**
1850
+ * Clears the message field making it undefined.
1851
+ * @return {!proto.GetListPlantRequest} returns this
1852
+ */
1853
+ proto.GetListPlantRequest.prototype.clearQuery = function() {
1854
+ return this.setQuery(undefined);
1855
+ };
1856
+
1857
+
1858
+ /**
1859
+ * Returns whether this field is set.
1860
+ * @return {boolean}
1861
+ */
1862
+ proto.GetListPlantRequest.prototype.hasQuery = function() {
1863
+ return jspb.Message.getField(this, 2) != null;
1864
+ };
1865
+
1866
+
1867
+
1868
+ /**
1869
+ * List of repeated fields within this message type.
1870
+ * @private {!Array<number>}
1871
+ * @const
1872
+ */
1873
+ proto.GetListPlantResponse.repeatedFields_ = [1];
1874
+
1875
+
1876
+
1877
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1878
+ /**
1879
+ * Creates an object representation of this proto.
1880
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1881
+ * Optional fields that are not set will be set to undefined.
1882
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1883
+ * For the list of reserved names please see:
1884
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1885
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1886
+ * JSPB instance for transitional soy proto support:
1887
+ * http://goto/soy-param-migration
1888
+ * @return {!Object}
1889
+ */
1890
+ proto.GetListPlantResponse.prototype.toObject = function(opt_includeInstance) {
1891
+ return proto.GetListPlantResponse.toObject(opt_includeInstance, this);
1892
+ };
1893
+
1894
+
1895
+ /**
1896
+ * Static version of the {@see toObject} method.
1897
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1898
+ * the JSPB instance for transitional soy proto support:
1899
+ * http://goto/soy-param-migration
1900
+ * @param {!proto.GetListPlantResponse} msg The msg instance to transform.
1901
+ * @return {!Object}
1902
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1903
+ */
1904
+ proto.GetListPlantResponse.toObject = function(includeInstance, msg) {
1905
+ var f, obj = {
1906
+ plantList: jspb.Message.toObjectList(msg.getPlantList(),
1907
+ proto.Plant.toObject, includeInstance),
1908
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1909
+ };
1910
+
1911
+ if (includeInstance) {
1912
+ obj.$jspbMessageInstance = msg;
1913
+ }
1914
+ return obj;
1915
+ };
1916
+ }
1917
+
1918
+
1919
+ /**
1920
+ * Deserializes binary data (in protobuf wire format).
1921
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1922
+ * @return {!proto.GetListPlantResponse}
1923
+ */
1924
+ proto.GetListPlantResponse.deserializeBinary = function(bytes) {
1925
+ var reader = new jspb.BinaryReader(bytes);
1926
+ var msg = new proto.GetListPlantResponse;
1927
+ return proto.GetListPlantResponse.deserializeBinaryFromReader(msg, reader);
1928
+ };
1929
+
1930
+
1931
+ /**
1932
+ * Deserializes binary data (in protobuf wire format) from the
1933
+ * given reader into the given message object.
1934
+ * @param {!proto.GetListPlantResponse} msg The message object to deserialize into.
1935
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1936
+ * @return {!proto.GetListPlantResponse}
1937
+ */
1938
+ proto.GetListPlantResponse.deserializeBinaryFromReader = function(msg, reader) {
1939
+ while (reader.nextField()) {
1940
+ if (reader.isEndGroup()) {
1941
+ break;
1942
+ }
1943
+ var field = reader.getFieldNumber();
1944
+ switch (field) {
1945
+ case 1:
1946
+ var value = new proto.Plant;
1947
+ reader.readMessage(value,proto.Plant.deserializeBinaryFromReader);
1948
+ msg.addPlant(value);
1949
+ break;
1950
+ case 2:
1951
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1952
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1953
+ msg.setMeta(value);
1954
+ break;
1955
+ default:
1956
+ reader.skipField();
1957
+ break;
1958
+ }
1959
+ }
1960
+ return msg;
1961
+ };
1962
+
1963
+
1964
+ /**
1965
+ * Serializes the message to binary data (in protobuf wire format).
1966
+ * @return {!Uint8Array}
1967
+ */
1968
+ proto.GetListPlantResponse.prototype.serializeBinary = function() {
1969
+ var writer = new jspb.BinaryWriter();
1970
+ proto.GetListPlantResponse.serializeBinaryToWriter(this, writer);
1971
+ return writer.getResultBuffer();
1972
+ };
1973
+
1974
+
1975
+ /**
1976
+ * Serializes the given message to binary data (in protobuf wire
1977
+ * format), writing to the given BinaryWriter.
1978
+ * @param {!proto.GetListPlantResponse} message
1979
+ * @param {!jspb.BinaryWriter} writer
1980
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1981
+ */
1982
+ proto.GetListPlantResponse.serializeBinaryToWriter = function(message, writer) {
1983
+ var f = undefined;
1984
+ f = message.getPlantList();
1985
+ if (f.length > 0) {
1986
+ writer.writeRepeatedMessage(
1987
+ 1,
1988
+ f,
1989
+ proto.Plant.serializeBinaryToWriter
1990
+ );
1991
+ }
1992
+ f = message.getMeta();
1993
+ if (f != null) {
1994
+ writer.writeMessage(
1995
+ 2,
1996
+ f,
1997
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1998
+ );
1999
+ }
2000
+ };
2001
+
2002
+
2003
+ /**
2004
+ * repeated Plant plant = 1;
2005
+ * @return {!Array<!proto.Plant>}
2006
+ */
2007
+ proto.GetListPlantResponse.prototype.getPlantList = function() {
2008
+ return /** @type{!Array<!proto.Plant>} */ (
2009
+ jspb.Message.getRepeatedWrapperField(this, proto.Plant, 1));
2010
+ };
2011
+
2012
+
2013
+ /**
2014
+ * @param {!Array<!proto.Plant>} value
2015
+ * @return {!proto.GetListPlantResponse} returns this
2016
+ */
2017
+ proto.GetListPlantResponse.prototype.setPlantList = function(value) {
2018
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2019
+ };
2020
+
2021
+
2022
+ /**
2023
+ * @param {!proto.Plant=} opt_value
2024
+ * @param {number=} opt_index
2025
+ * @return {!proto.Plant}
2026
+ */
2027
+ proto.GetListPlantResponse.prototype.addPlant = function(opt_value, opt_index) {
2028
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Plant, opt_index);
2029
+ };
2030
+
2031
+
2032
+ /**
2033
+ * Clears the list making it empty but non-null.
2034
+ * @return {!proto.GetListPlantResponse} returns this
2035
+ */
2036
+ proto.GetListPlantResponse.prototype.clearPlantList = function() {
2037
+ return this.setPlantList([]);
2038
+ };
2039
+
2040
+
2041
+ /**
2042
+ * optional prisca.v1.global.meta.Meta meta = 2;
2043
+ * @return {?proto.prisca.v1.global.meta.Meta}
2044
+ */
2045
+ proto.GetListPlantResponse.prototype.getMeta = function() {
2046
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2047
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2048
+ };
2049
+
2050
+
2051
+ /**
2052
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2053
+ * @return {!proto.GetListPlantResponse} returns this
2054
+ */
2055
+ proto.GetListPlantResponse.prototype.setMeta = function(value) {
2056
+ return jspb.Message.setWrapperField(this, 2, value);
2057
+ };
2058
+
2059
+
2060
+ /**
2061
+ * Clears the message field making it undefined.
2062
+ * @return {!proto.GetListPlantResponse} returns this
2063
+ */
2064
+ proto.GetListPlantResponse.prototype.clearMeta = function() {
2065
+ return this.setMeta(undefined);
2066
+ };
2067
+
2068
+
2069
+ /**
2070
+ * Returns whether this field is set.
2071
+ * @return {boolean}
2072
+ */
2073
+ proto.GetListPlantResponse.prototype.hasMeta = function() {
2074
+ return jspb.Message.getField(this, 2) != null;
2075
+ };
2076
+
2077
+
2078
+ goog.object.extend(exports, proto);