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