@aldiokta/protocgen 1.0.40 → 1.0.42

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