@aldiokta/protocgen 1.0.49 → 1.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -327,7 +327,8 @@ telephone: jspb.Message.getFieldWithDefault(msg, 3, ""),
327
327
  faxNumber: jspb.Message.getFieldWithDefault(msg, 4, ""),
328
328
  extension: jspb.Message.getFieldWithDefault(msg, 5, 0),
329
329
  emailAddress: jspb.Message.getFieldWithDefault(msg, 6, ""),
330
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 7, "")
330
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 7, ""),
331
+ code: jspb.Message.getFieldWithDefault(msg, 8, "")
331
332
  };
332
333
 
333
334
  if (includeInstance) {
@@ -392,6 +393,10 @@ proto.PurchasingGroup.deserializeBinaryFromReader = function(msg, reader) {
392
393
  var value = /** @type {string} */ (reader.readString());
393
394
  msg.setCompaniesReferencesId(value);
394
395
  break;
396
+ case 8:
397
+ var value = /** @type {string} */ (reader.readString());
398
+ msg.setCode(value);
399
+ break;
395
400
  default:
396
401
  reader.skipField();
397
402
  break;
@@ -470,6 +475,13 @@ proto.PurchasingGroup.serializeBinaryToWriter = function(message, writer) {
470
475
  f
471
476
  );
472
477
  }
478
+ f = message.getCode();
479
+ if (f.length > 0) {
480
+ writer.writeString(
481
+ 8,
482
+ f
483
+ );
484
+ }
473
485
  };
474
486
 
475
487
 
@@ -599,6 +611,24 @@ proto.PurchasingGroup.prototype.setCompaniesReferencesId = function(value) {
599
611
  };
600
612
 
601
613
 
614
+ /**
615
+ * optional string code = 8;
616
+ * @return {string}
617
+ */
618
+ proto.PurchasingGroup.prototype.getCode = function() {
619
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
620
+ };
621
+
622
+
623
+ /**
624
+ * @param {string} value
625
+ * @return {!proto.PurchasingGroup} returns this
626
+ */
627
+ proto.PurchasingGroup.prototype.setCode = function(value) {
628
+ return jspb.Message.setProto3StringField(this, 8, value);
629
+ };
630
+
631
+
602
632
 
603
633
 
604
634
 
@@ -638,7 +668,8 @@ faxNumber: jspb.Message.getFieldWithDefault(msg, 4, ""),
638
668
  extension: jspb.Message.getFieldWithDefault(msg, 5, 0),
639
669
  emailAddress: jspb.Message.getFieldWithDefault(msg, 6, ""),
640
670
  companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 7, ""),
641
- company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f)
671
+ company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f),
672
+ code: jspb.Message.getFieldWithDefault(msg, 9, "")
642
673
  };
643
674
 
644
675
  if (includeInstance) {
@@ -708,6 +739,10 @@ proto.BasePurchasingGroup.deserializeBinaryFromReader = function(msg, reader) {
708
739
  reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
709
740
  msg.setCompany(value);
710
741
  break;
742
+ case 9:
743
+ var value = /** @type {string} */ (reader.readString());
744
+ msg.setCode(value);
745
+ break;
711
746
  default:
712
747
  reader.skipField();
713
748
  break;
@@ -794,6 +829,13 @@ proto.BasePurchasingGroup.serializeBinaryToWriter = function(message, writer) {
794
829
  prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
795
830
  );
796
831
  }
832
+ f = message.getCode();
833
+ if (f.length > 0) {
834
+ writer.writeString(
835
+ 9,
836
+ f
837
+ );
838
+ }
797
839
  };
798
840
 
799
841
 
@@ -960,6 +1002,24 @@ proto.BasePurchasingGroup.prototype.hasCompany = function() {
960
1002
  };
961
1003
 
962
1004
 
1005
+ /**
1006
+ * optional string code = 9;
1007
+ * @return {string}
1008
+ */
1009
+ proto.BasePurchasingGroup.prototype.getCode = function() {
1010
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1011
+ };
1012
+
1013
+
1014
+ /**
1015
+ * @param {string} value
1016
+ * @return {!proto.BasePurchasingGroup} returns this
1017
+ */
1018
+ proto.BasePurchasingGroup.prototype.setCode = function(value) {
1019
+ return jspb.Message.setProto3StringField(this, 9, value);
1020
+ };
1021
+
1022
+
963
1023
 
964
1024
 
965
1025
 
@@ -25,7 +25,6 @@ var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta
25
25
  goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
26
  var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
27
27
  goog.object.extend(proto, prisca_v1_core_company_company_pb);
28
- goog.exportSymbol('proto.BasePurchasingOrganization', null, global);
29
28
  goog.exportSymbol('proto.CreatePurchasingOrganizationRequest', null, global);
30
29
  goog.exportSymbol('proto.CreatePurchasingOrganizationResponse', null, global);
31
30
  goog.exportSymbol('proto.GetListPurchasingOrganizationRequest', null, global);
@@ -57,27 +56,6 @@ if (goog.DEBUG && !COMPILED) {
57
56
  */
58
57
  proto.PurchasingOrganization.displayName = 'proto.PurchasingOrganization';
59
58
  }
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.BasePurchasingOrganization = function(opt_data) {
71
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
72
- };
73
- goog.inherits(proto.BasePurchasingOrganization, jspb.Message);
74
- if (goog.DEBUG && !COMPILED) {
75
- /**
76
- * @public
77
- * @override
78
- */
79
- proto.BasePurchasingOrganization.displayName = 'proto.BasePurchasingOrganization';
80
- }
81
59
  /**
82
60
  * Generated by JsPbCodeGenerator.
83
61
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -301,9 +279,8 @@ proto.PurchasingOrganization.toObject = function(includeInstance, msg) {
301
279
  var f, obj = {
302
280
  referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
303
281
  description: jspb.Message.getFieldWithDefault(msg, 2, ""),
304
- validity: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
305
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
306
- company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f)
282
+ code: jspb.Message.getFieldWithDefault(msg, 3, ""),
283
+ validity: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
307
284
  };
308
285
 
309
286
  if (includeInstance) {
@@ -349,17 +326,12 @@ proto.PurchasingOrganization.deserializeBinaryFromReader = function(msg, reader)
349
326
  msg.setDescription(value);
350
327
  break;
351
328
  case 3:
352
- var value = /** @type {boolean} */ (reader.readBool());
353
- msg.setValidity(value);
354
- break;
355
- case 4:
356
329
  var value = /** @type {string} */ (reader.readString());
357
- msg.setCompaniesReferencesId(value);
330
+ msg.setCode(value);
358
331
  break;
359
- case 5:
360
- var value = new prisca_v1_core_company_company_pb.Company;
361
- reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
362
- msg.setCompany(value);
332
+ case 4:
333
+ var value = /** @type {boolean} */ (reader.readBool());
334
+ msg.setValidity(value);
363
335
  break;
364
336
  default:
365
337
  reader.skipField();
@@ -404,28 +376,20 @@ proto.PurchasingOrganization.serializeBinaryToWriter = function(message, writer)
404
376
  f
405
377
  );
406
378
  }
407
- f = message.getValidity();
408
- if (f) {
409
- writer.writeBool(
379
+ f = message.getCode();
380
+ if (f.length > 0) {
381
+ writer.writeString(
410
382
  3,
411
383
  f
412
384
  );
413
385
  }
414
- f = message.getCompaniesReferencesId();
415
- if (f.length > 0) {
416
- writer.writeString(
386
+ f = message.getValidity();
387
+ if (f) {
388
+ writer.writeBool(
417
389
  4,
418
390
  f
419
391
  );
420
392
  }
421
- f = message.getCompany();
422
- if (f != null) {
423
- writer.writeMessage(
424
- 5,
425
- f,
426
- prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
427
- );
428
- }
429
393
  };
430
394
 
431
395
 
@@ -466,29 +430,11 @@ proto.PurchasingOrganization.prototype.setDescription = function(value) {
466
430
 
467
431
 
468
432
  /**
469
- * optional bool validity = 3;
470
- * @return {boolean}
471
- */
472
- proto.PurchasingOrganization.prototype.getValidity = function() {
473
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
474
- };
475
-
476
-
477
- /**
478
- * @param {boolean} value
479
- * @return {!proto.PurchasingOrganization} returns this
480
- */
481
- proto.PurchasingOrganization.prototype.setValidity = function(value) {
482
- return jspb.Message.setProto3BooleanField(this, 3, value);
483
- };
484
-
485
-
486
- /**
487
- * optional string companies_references_id = 4;
433
+ * optional string code = 3;
488
434
  * @return {string}
489
435
  */
490
- proto.PurchasingOrganization.prototype.getCompaniesReferencesId = function() {
491
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
436
+ proto.PurchasingOrganization.prototype.getCode = function() {
437
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
492
438
  };
493
439
 
494
440
 
@@ -496,265 +442,26 @@ proto.PurchasingOrganization.prototype.getCompaniesReferencesId = function() {
496
442
  * @param {string} value
497
443
  * @return {!proto.PurchasingOrganization} returns this
498
444
  */
499
- proto.PurchasingOrganization.prototype.setCompaniesReferencesId = function(value) {
500
- return jspb.Message.setProto3StringField(this, 4, value);
501
- };
502
-
503
-
504
- /**
505
- * optional Company company = 5;
506
- * @return {?proto.Company}
507
- */
508
- proto.PurchasingOrganization.prototype.getCompany = function() {
509
- return /** @type{?proto.Company} */ (
510
- jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 5));
511
- };
512
-
513
-
514
- /**
515
- * @param {?proto.Company|undefined} value
516
- * @return {!proto.PurchasingOrganization} returns this
517
- */
518
- proto.PurchasingOrganization.prototype.setCompany = function(value) {
519
- return jspb.Message.setWrapperField(this, 5, value);
520
- };
521
-
522
-
523
- /**
524
- * Clears the message field making it undefined.
525
- * @return {!proto.PurchasingOrganization} returns this
526
- */
527
- proto.PurchasingOrganization.prototype.clearCompany = function() {
528
- return this.setCompany(undefined);
529
- };
530
-
531
-
532
- /**
533
- * Returns whether this field is set.
534
- * @return {boolean}
535
- */
536
- proto.PurchasingOrganization.prototype.hasCompany = function() {
537
- return jspb.Message.getField(this, 5) != null;
538
- };
539
-
540
-
541
-
542
-
543
-
544
- if (jspb.Message.GENERATE_TO_OBJECT) {
545
- /**
546
- * Creates an object representation of this proto.
547
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
548
- * Optional fields that are not set will be set to undefined.
549
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
550
- * For the list of reserved names please see:
551
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
552
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
553
- * JSPB instance for transitional soy proto support:
554
- * http://goto/soy-param-migration
555
- * @return {!Object}
556
- */
557
- proto.BasePurchasingOrganization.prototype.toObject = function(opt_includeInstance) {
558
- return proto.BasePurchasingOrganization.toObject(opt_includeInstance, this);
559
- };
560
-
561
-
562
- /**
563
- * Static version of the {@see toObject} method.
564
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
565
- * the JSPB instance for transitional soy proto support:
566
- * http://goto/soy-param-migration
567
- * @param {!proto.BasePurchasingOrganization} msg The msg instance to transform.
568
- * @return {!Object}
569
- * @suppress {unusedLocalVariables} f is only used for nested messages
570
- */
571
- proto.BasePurchasingOrganization.toObject = function(includeInstance, msg) {
572
- var f, obj = {
573
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
574
- description: jspb.Message.getFieldWithDefault(msg, 2, ""),
575
- validity: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
576
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 4, "")
577
- };
578
-
579
- if (includeInstance) {
580
- obj.$jspbMessageInstance = msg;
581
- }
582
- return obj;
583
- };
584
- }
585
-
586
-
587
- /**
588
- * Deserializes binary data (in protobuf wire format).
589
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
590
- * @return {!proto.BasePurchasingOrganization}
591
- */
592
- proto.BasePurchasingOrganization.deserializeBinary = function(bytes) {
593
- var reader = new jspb.BinaryReader(bytes);
594
- var msg = new proto.BasePurchasingOrganization;
595
- return proto.BasePurchasingOrganization.deserializeBinaryFromReader(msg, reader);
596
- };
597
-
598
-
599
- /**
600
- * Deserializes binary data (in protobuf wire format) from the
601
- * given reader into the given message object.
602
- * @param {!proto.BasePurchasingOrganization} msg The message object to deserialize into.
603
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
604
- * @return {!proto.BasePurchasingOrganization}
605
- */
606
- proto.BasePurchasingOrganization.deserializeBinaryFromReader = function(msg, reader) {
607
- while (reader.nextField()) {
608
- if (reader.isEndGroup()) {
609
- break;
610
- }
611
- var field = reader.getFieldNumber();
612
- switch (field) {
613
- case 1:
614
- var value = /** @type {string} */ (reader.readString());
615
- msg.setReferencesId(value);
616
- break;
617
- case 2:
618
- var value = /** @type {string} */ (reader.readString());
619
- msg.setDescription(value);
620
- break;
621
- case 3:
622
- var value = /** @type {boolean} */ (reader.readBool());
623
- msg.setValidity(value);
624
- break;
625
- case 4:
626
- var value = /** @type {string} */ (reader.readString());
627
- msg.setCompaniesReferencesId(value);
628
- break;
629
- default:
630
- reader.skipField();
631
- break;
632
- }
633
- }
634
- return msg;
635
- };
636
-
637
-
638
- /**
639
- * Serializes the message to binary data (in protobuf wire format).
640
- * @return {!Uint8Array}
641
- */
642
- proto.BasePurchasingOrganization.prototype.serializeBinary = function() {
643
- var writer = new jspb.BinaryWriter();
644
- proto.BasePurchasingOrganization.serializeBinaryToWriter(this, writer);
645
- return writer.getResultBuffer();
646
- };
647
-
648
-
649
- /**
650
- * Serializes the given message to binary data (in protobuf wire
651
- * format), writing to the given BinaryWriter.
652
- * @param {!proto.BasePurchasingOrganization} message
653
- * @param {!jspb.BinaryWriter} writer
654
- * @suppress {unusedLocalVariables} f is only used for nested messages
655
- */
656
- proto.BasePurchasingOrganization.serializeBinaryToWriter = function(message, writer) {
657
- var f = undefined;
658
- f = message.getReferencesId();
659
- if (f.length > 0) {
660
- writer.writeString(
661
- 1,
662
- f
663
- );
664
- }
665
- f = message.getDescription();
666
- if (f.length > 0) {
667
- writer.writeString(
668
- 2,
669
- f
670
- );
671
- }
672
- f = message.getValidity();
673
- if (f) {
674
- writer.writeBool(
675
- 3,
676
- f
677
- );
678
- }
679
- f = message.getCompaniesReferencesId();
680
- if (f.length > 0) {
681
- writer.writeString(
682
- 4,
683
- f
684
- );
685
- }
686
- };
687
-
688
-
689
- /**
690
- * optional string references_id = 1;
691
- * @return {string}
692
- */
693
- proto.BasePurchasingOrganization.prototype.getReferencesId = function() {
694
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
695
- };
696
-
697
-
698
- /**
699
- * @param {string} value
700
- * @return {!proto.BasePurchasingOrganization} returns this
701
- */
702
- proto.BasePurchasingOrganization.prototype.setReferencesId = function(value) {
703
- return jspb.Message.setProto3StringField(this, 1, value);
704
- };
705
-
706
-
707
- /**
708
- * optional string description = 2;
709
- * @return {string}
710
- */
711
- proto.BasePurchasingOrganization.prototype.getDescription = function() {
712
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
713
- };
714
-
715
-
716
- /**
717
- * @param {string} value
718
- * @return {!proto.BasePurchasingOrganization} returns this
719
- */
720
- proto.BasePurchasingOrganization.prototype.setDescription = function(value) {
721
- return jspb.Message.setProto3StringField(this, 2, value);
445
+ proto.PurchasingOrganization.prototype.setCode = function(value) {
446
+ return jspb.Message.setProto3StringField(this, 3, value);
722
447
  };
723
448
 
724
449
 
725
450
  /**
726
- * optional bool validity = 3;
451
+ * optional bool validity = 4;
727
452
  * @return {boolean}
728
453
  */
729
- proto.BasePurchasingOrganization.prototype.getValidity = function() {
730
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
454
+ proto.PurchasingOrganization.prototype.getValidity = function() {
455
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
731
456
  };
732
457
 
733
458
 
734
459
  /**
735
460
  * @param {boolean} value
736
- * @return {!proto.BasePurchasingOrganization} returns this
737
- */
738
- proto.BasePurchasingOrganization.prototype.setValidity = function(value) {
739
- return jspb.Message.setProto3BooleanField(this, 3, value);
740
- };
741
-
742
-
743
- /**
744
- * optional string companies_references_id = 4;
745
- * @return {string}
746
- */
747
- proto.BasePurchasingOrganization.prototype.getCompaniesReferencesId = function() {
748
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
749
- };
750
-
751
-
752
- /**
753
- * @param {string} value
754
- * @return {!proto.BasePurchasingOrganization} returns this
461
+ * @return {!proto.PurchasingOrganization} returns this
755
462
  */
756
- proto.BasePurchasingOrganization.prototype.setCompaniesReferencesId = function(value) {
757
- return jspb.Message.setProto3StringField(this, 4, value);
463
+ proto.PurchasingOrganization.prototype.setValidity = function(value) {
464
+ return jspb.Message.setProto3BooleanField(this, 4, value);
758
465
  };
759
466
 
760
467
 
@@ -1110,7 +817,7 @@ proto.CreatePurchasingOrganizationRequest.prototype.toObject = function(opt_incl
1110
817
  */
1111
818
  proto.CreatePurchasingOrganizationRequest.toObject = function(includeInstance, msg) {
1112
819
  var f, obj = {
1113
- purchasingOrganization: (f = msg.getPurchasingOrganization()) && proto.BasePurchasingOrganization.toObject(includeInstance, f)
820
+ purchasingOrganization: (f = msg.getPurchasingOrganization()) && proto.PurchasingOrganization.toObject(includeInstance, f)
1114
821
  };
1115
822
 
1116
823
  if (includeInstance) {
@@ -1148,8 +855,8 @@ proto.CreatePurchasingOrganizationRequest.deserializeBinaryFromReader = function
1148
855
  var field = reader.getFieldNumber();
1149
856
  switch (field) {
1150
857
  case 1:
1151
- var value = new proto.BasePurchasingOrganization;
1152
- reader.readMessage(value,proto.BasePurchasingOrganization.deserializeBinaryFromReader);
858
+ var value = new proto.PurchasingOrganization;
859
+ reader.readMessage(value,proto.PurchasingOrganization.deserializeBinaryFromReader);
1153
860
  msg.setPurchasingOrganization(value);
1154
861
  break;
1155
862
  default:
@@ -1186,24 +893,24 @@ proto.CreatePurchasingOrganizationRequest.serializeBinaryToWriter = function(mes
1186
893
  writer.writeMessage(
1187
894
  1,
1188
895
  f,
1189
- proto.BasePurchasingOrganization.serializeBinaryToWriter
896
+ proto.PurchasingOrganization.serializeBinaryToWriter
1190
897
  );
1191
898
  }
1192
899
  };
1193
900
 
1194
901
 
1195
902
  /**
1196
- * optional BasePurchasingOrganization purchasing_organization = 1;
1197
- * @return {?proto.BasePurchasingOrganization}
903
+ * optional PurchasingOrganization purchasing_organization = 1;
904
+ * @return {?proto.PurchasingOrganization}
1198
905
  */
1199
906
  proto.CreatePurchasingOrganizationRequest.prototype.getPurchasingOrganization = function() {
1200
- return /** @type{?proto.BasePurchasingOrganization} */ (
1201
- jspb.Message.getWrapperField(this, proto.BasePurchasingOrganization, 1));
907
+ return /** @type{?proto.PurchasingOrganization} */ (
908
+ jspb.Message.getWrapperField(this, proto.PurchasingOrganization, 1));
1202
909
  };
1203
910
 
1204
911
 
1205
912
  /**
1206
- * @param {?proto.BasePurchasingOrganization|undefined} value
913
+ * @param {?proto.PurchasingOrganization|undefined} value
1207
914
  * @return {!proto.CreatePurchasingOrganizationRequest} returns this
1208
915
  */
1209
916
  proto.CreatePurchasingOrganizationRequest.prototype.setPurchasingOrganization = function(value) {
@@ -1262,7 +969,7 @@ proto.UpdatePurchasingOrganizationRequest.prototype.toObject = function(opt_incl
1262
969
  proto.UpdatePurchasingOrganizationRequest.toObject = function(includeInstance, msg) {
1263
970
  var f, obj = {
1264
971
  referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1265
- purchasingOrganization: (f = msg.getPurchasingOrganization()) && proto.BasePurchasingOrganization.toObject(includeInstance, f)
972
+ purchasingOrganization: (f = msg.getPurchasingOrganization()) && proto.PurchasingOrganization.toObject(includeInstance, f)
1266
973
  };
1267
974
 
1268
975
  if (includeInstance) {
@@ -1304,8 +1011,8 @@ proto.UpdatePurchasingOrganizationRequest.deserializeBinaryFromReader = function
1304
1011
  msg.setReferencesId(value);
1305
1012
  break;
1306
1013
  case 2:
1307
- var value = new proto.BasePurchasingOrganization;
1308
- reader.readMessage(value,proto.BasePurchasingOrganization.deserializeBinaryFromReader);
1014
+ var value = new proto.PurchasingOrganization;
1015
+ reader.readMessage(value,proto.PurchasingOrganization.deserializeBinaryFromReader);
1309
1016
  msg.setPurchasingOrganization(value);
1310
1017
  break;
1311
1018
  default:
@@ -1349,7 +1056,7 @@ proto.UpdatePurchasingOrganizationRequest.serializeBinaryToWriter = function(mes
1349
1056
  writer.writeMessage(
1350
1057
  2,
1351
1058
  f,
1352
- proto.BasePurchasingOrganization.serializeBinaryToWriter
1059
+ proto.PurchasingOrganization.serializeBinaryToWriter
1353
1060
  );
1354
1061
  }
1355
1062
  };
@@ -1374,17 +1081,17 @@ proto.UpdatePurchasingOrganizationRequest.prototype.setReferencesId = function(v
1374
1081
 
1375
1082
 
1376
1083
  /**
1377
- * optional BasePurchasingOrganization purchasing_organization = 2;
1378
- * @return {?proto.BasePurchasingOrganization}
1084
+ * optional PurchasingOrganization purchasing_organization = 2;
1085
+ * @return {?proto.PurchasingOrganization}
1379
1086
  */
1380
1087
  proto.UpdatePurchasingOrganizationRequest.prototype.getPurchasingOrganization = function() {
1381
- return /** @type{?proto.BasePurchasingOrganization} */ (
1382
- jspb.Message.getWrapperField(this, proto.BasePurchasingOrganization, 2));
1088
+ return /** @type{?proto.PurchasingOrganization} */ (
1089
+ jspb.Message.getWrapperField(this, proto.PurchasingOrganization, 2));
1383
1090
  };
1384
1091
 
1385
1092
 
1386
1093
  /**
1387
- * @param {?proto.BasePurchasingOrganization|undefined} value
1094
+ * @param {?proto.PurchasingOrganization|undefined} value
1388
1095
  * @return {!proto.UpdatePurchasingOrganizationRequest} returns this
1389
1096
  */
1390
1097
  proto.UpdatePurchasingOrganizationRequest.prototype.setPurchasingOrganization = function(value) {
@@ -443,7 +443,7 @@ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
443
443
  referencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
444
444
  company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f),
445
445
  purchasingOrganizationReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
446
- purchasingOrganizations: (f = msg.getPurchasingOrganizations()) && prisca_v1_purchasing_organization_purchasing_organization_pb.BasePurchasingOrganization.toObject(includeInstance, f)
446
+ purchasingOrganizations: (f = msg.getPurchasingOrganizations()) && prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.toObject(includeInstance, f)
447
447
  };
448
448
 
449
449
  if (includeInstance) {
@@ -498,8 +498,8 @@ proto.BaseAssignPOrganization.deserializeBinaryFromReader = function(msg, reader
498
498
  msg.setPurchasingOrganizationReferencesId(value);
499
499
  break;
500
500
  case 5:
501
- var value = new prisca_v1_purchasing_organization_purchasing_organization_pb.BasePurchasingOrganization;
502
- reader.readMessage(value,prisca_v1_purchasing_organization_purchasing_organization_pb.BasePurchasingOrganization.deserializeBinaryFromReader);
501
+ var value = new prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization;
502
+ reader.readMessage(value,prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.deserializeBinaryFromReader);
503
503
  msg.setPurchasingOrganizations(value);
504
504
  break;
505
505
  default:
@@ -565,7 +565,7 @@ proto.BaseAssignPOrganization.serializeBinaryToWriter = function(message, writer
565
565
  writer.writeMessage(
566
566
  5,
567
567
  f,
568
- prisca_v1_purchasing_organization_purchasing_organization_pb.BasePurchasingOrganization.serializeBinaryToWriter
568
+ prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.serializeBinaryToWriter
569
569
  );
570
570
  }
571
571
  };
@@ -663,17 +663,17 @@ proto.BaseAssignPOrganization.prototype.setPurchasingOrganizationReferencesId =
663
663
 
664
664
 
665
665
  /**
666
- * optional BasePurchasingOrganization purchasing_organizations = 5;
667
- * @return {?proto.BasePurchasingOrganization}
666
+ * optional PurchasingOrganization purchasing_organizations = 5;
667
+ * @return {?proto.PurchasingOrganization}
668
668
  */
669
669
  proto.BaseAssignPOrganization.prototype.getPurchasingOrganizations = function() {
670
- return /** @type{?proto.BasePurchasingOrganization} */ (
671
- jspb.Message.getWrapperField(this, prisca_v1_purchasing_organization_purchasing_organization_pb.BasePurchasingOrganization, 5));
670
+ return /** @type{?proto.PurchasingOrganization} */ (
671
+ jspb.Message.getWrapperField(this, prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization, 5));
672
672
  };
673
673
 
674
674
 
675
675
  /**
676
- * @param {?proto.BasePurchasingOrganization|undefined} value
676
+ * @param {?proto.PurchasingOrganization|undefined} value
677
677
  * @return {!proto.BaseAssignPOrganization} returns this
678
678
  */
679
679
  proto.BaseAssignPOrganization.prototype.setPurchasingOrganizations = function(value) {