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