@aldiokta/protocgen 1.0.50 → 1.0.52

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.
@@ -324,10 +324,12 @@ proto.PurchasingGroup.toObject = function(includeInstance, msg) {
324
324
  referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
325
325
  description: jspb.Message.getFieldWithDefault(msg, 2, ""),
326
326
  telephone: jspb.Message.getFieldWithDefault(msg, 3, ""),
327
- faxNumber: jspb.Message.getFieldWithDefault(msg, 4, ""),
328
- extension: jspb.Message.getFieldWithDefault(msg, 5, 0),
329
- emailAddress: jspb.Message.getFieldWithDefault(msg, 6, ""),
330
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 7, "")
327
+ telephoneNoPurchasingGroup: jspb.Message.getFieldWithDefault(msg, 4, ""),
328
+ faxNumber: jspb.Message.getFieldWithDefault(msg, 5, ""),
329
+ extension: jspb.Message.getFieldWithDefault(msg, 6, 0),
330
+ emailAddress: jspb.Message.getFieldWithDefault(msg, 7, ""),
331
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 8, ""),
332
+ code: jspb.Message.getFieldWithDefault(msg, 9, "")
331
333
  };
332
334
 
333
335
  if (includeInstance) {
@@ -378,20 +380,28 @@ proto.PurchasingGroup.deserializeBinaryFromReader = function(msg, reader) {
378
380
  break;
379
381
  case 4:
380
382
  var value = /** @type {string} */ (reader.readString());
381
- msg.setFaxNumber(value);
383
+ msg.setTelephoneNoPurchasingGroup(value);
382
384
  break;
383
385
  case 5:
386
+ var value = /** @type {string} */ (reader.readString());
387
+ msg.setFaxNumber(value);
388
+ break;
389
+ case 6:
384
390
  var value = /** @type {number} */ (reader.readInt64());
385
391
  msg.setExtension$(value);
386
392
  break;
387
- case 6:
393
+ case 7:
388
394
  var value = /** @type {string} */ (reader.readString());
389
395
  msg.setEmailAddress(value);
390
396
  break;
391
- case 7:
397
+ case 8:
392
398
  var value = /** @type {string} */ (reader.readString());
393
399
  msg.setCompaniesReferencesId(value);
394
400
  break;
401
+ case 9:
402
+ var value = /** @type {string} */ (reader.readString());
403
+ msg.setCode(value);
404
+ break;
395
405
  default:
396
406
  reader.skipField();
397
407
  break;
@@ -442,31 +452,45 @@ proto.PurchasingGroup.serializeBinaryToWriter = function(message, writer) {
442
452
  f
443
453
  );
444
454
  }
445
- f = message.getFaxNumber();
455
+ f = message.getTelephoneNoPurchasingGroup();
446
456
  if (f.length > 0) {
447
457
  writer.writeString(
448
458
  4,
449
459
  f
450
460
  );
451
461
  }
462
+ f = message.getFaxNumber();
463
+ if (f.length > 0) {
464
+ writer.writeString(
465
+ 5,
466
+ f
467
+ );
468
+ }
452
469
  f = message.getExtension$();
453
470
  if (f !== 0) {
454
471
  writer.writeInt64(
455
- 5,
472
+ 6,
456
473
  f
457
474
  );
458
475
  }
459
476
  f = message.getEmailAddress();
460
477
  if (f.length > 0) {
461
478
  writer.writeString(
462
- 6,
479
+ 7,
463
480
  f
464
481
  );
465
482
  }
466
483
  f = message.getCompaniesReferencesId();
467
484
  if (f.length > 0) {
468
485
  writer.writeString(
469
- 7,
486
+ 8,
487
+ f
488
+ );
489
+ }
490
+ f = message.getCode();
491
+ if (f.length > 0) {
492
+ writer.writeString(
493
+ 9,
470
494
  f
471
495
  );
472
496
  }
@@ -528,10 +552,10 @@ proto.PurchasingGroup.prototype.setTelephone = function(value) {
528
552
 
529
553
 
530
554
  /**
531
- * optional string fax_number = 4;
555
+ * optional string telephone_no_purchasing_group = 4;
532
556
  * @return {string}
533
557
  */
534
- proto.PurchasingGroup.prototype.getFaxNumber = function() {
558
+ proto.PurchasingGroup.prototype.getTelephoneNoPurchasingGroup = function() {
535
559
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
536
560
  };
537
561
 
@@ -540,17 +564,35 @@ proto.PurchasingGroup.prototype.getFaxNumber = function() {
540
564
  * @param {string} value
541
565
  * @return {!proto.PurchasingGroup} returns this
542
566
  */
543
- proto.PurchasingGroup.prototype.setFaxNumber = function(value) {
567
+ proto.PurchasingGroup.prototype.setTelephoneNoPurchasingGroup = function(value) {
544
568
  return jspb.Message.setProto3StringField(this, 4, value);
545
569
  };
546
570
 
547
571
 
548
572
  /**
549
- * optional int64 extension = 5;
573
+ * optional string fax_number = 5;
574
+ * @return {string}
575
+ */
576
+ proto.PurchasingGroup.prototype.getFaxNumber = function() {
577
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
578
+ };
579
+
580
+
581
+ /**
582
+ * @param {string} value
583
+ * @return {!proto.PurchasingGroup} returns this
584
+ */
585
+ proto.PurchasingGroup.prototype.setFaxNumber = function(value) {
586
+ return jspb.Message.setProto3StringField(this, 5, value);
587
+ };
588
+
589
+
590
+ /**
591
+ * optional int64 extension = 6;
550
592
  * @return {number}
551
593
  */
552
594
  proto.PurchasingGroup.prototype.getExtension$ = function() {
553
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
595
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
554
596
  };
555
597
 
556
598
 
@@ -559,16 +601,16 @@ proto.PurchasingGroup.prototype.getExtension$ = function() {
559
601
  * @return {!proto.PurchasingGroup} returns this
560
602
  */
561
603
  proto.PurchasingGroup.prototype.setExtension$ = function(value) {
562
- return jspb.Message.setProto3IntField(this, 5, value);
604
+ return jspb.Message.setProto3IntField(this, 6, value);
563
605
  };
564
606
 
565
607
 
566
608
  /**
567
- * optional string email_address = 6;
609
+ * optional string email_address = 7;
568
610
  * @return {string}
569
611
  */
570
612
  proto.PurchasingGroup.prototype.getEmailAddress = function() {
571
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
613
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
572
614
  };
573
615
 
574
616
 
@@ -577,16 +619,16 @@ proto.PurchasingGroup.prototype.getEmailAddress = function() {
577
619
  * @return {!proto.PurchasingGroup} returns this
578
620
  */
579
621
  proto.PurchasingGroup.prototype.setEmailAddress = function(value) {
580
- return jspb.Message.setProto3StringField(this, 6, value);
622
+ return jspb.Message.setProto3StringField(this, 7, value);
581
623
  };
582
624
 
583
625
 
584
626
  /**
585
- * optional string companies_references_id = 7;
627
+ * optional string companies_references_id = 8;
586
628
  * @return {string}
587
629
  */
588
630
  proto.PurchasingGroup.prototype.getCompaniesReferencesId = function() {
589
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
631
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
590
632
  };
591
633
 
592
634
 
@@ -595,7 +637,25 @@ proto.PurchasingGroup.prototype.getCompaniesReferencesId = function() {
595
637
  * @return {!proto.PurchasingGroup} returns this
596
638
  */
597
639
  proto.PurchasingGroup.prototype.setCompaniesReferencesId = function(value) {
598
- return jspb.Message.setProto3StringField(this, 7, value);
640
+ return jspb.Message.setProto3StringField(this, 8, value);
641
+ };
642
+
643
+
644
+ /**
645
+ * optional string code = 9;
646
+ * @return {string}
647
+ */
648
+ proto.PurchasingGroup.prototype.getCode = function() {
649
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
650
+ };
651
+
652
+
653
+ /**
654
+ * @param {string} value
655
+ * @return {!proto.PurchasingGroup} returns this
656
+ */
657
+ proto.PurchasingGroup.prototype.setCode = function(value) {
658
+ return jspb.Message.setProto3StringField(this, 9, value);
599
659
  };
600
660
 
601
661
 
@@ -634,11 +694,13 @@ proto.BasePurchasingGroup.toObject = function(includeInstance, msg) {
634
694
  referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
635
695
  description: jspb.Message.getFieldWithDefault(msg, 2, ""),
636
696
  telephone: jspb.Message.getFieldWithDefault(msg, 3, ""),
637
- faxNumber: jspb.Message.getFieldWithDefault(msg, 4, ""),
638
- extension: jspb.Message.getFieldWithDefault(msg, 5, 0),
639
- emailAddress: jspb.Message.getFieldWithDefault(msg, 6, ""),
640
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 7, ""),
641
- company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f)
697
+ telephoneNoPurchasingGroup: jspb.Message.getFieldWithDefault(msg, 4, ""),
698
+ faxNumber: jspb.Message.getFieldWithDefault(msg, 5, ""),
699
+ extension: jspb.Message.getFieldWithDefault(msg, 6, 0),
700
+ emailAddress: jspb.Message.getFieldWithDefault(msg, 7, ""),
701
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 8, ""),
702
+ company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f),
703
+ code: jspb.Message.getFieldWithDefault(msg, 10, "")
642
704
  };
643
705
 
644
706
  if (includeInstance) {
@@ -689,25 +751,33 @@ proto.BasePurchasingGroup.deserializeBinaryFromReader = function(msg, reader) {
689
751
  break;
690
752
  case 4:
691
753
  var value = /** @type {string} */ (reader.readString());
692
- msg.setFaxNumber(value);
754
+ msg.setTelephoneNoPurchasingGroup(value);
693
755
  break;
694
756
  case 5:
757
+ var value = /** @type {string} */ (reader.readString());
758
+ msg.setFaxNumber(value);
759
+ break;
760
+ case 6:
695
761
  var value = /** @type {number} */ (reader.readInt64());
696
762
  msg.setExtension$(value);
697
763
  break;
698
- case 6:
764
+ case 7:
699
765
  var value = /** @type {string} */ (reader.readString());
700
766
  msg.setEmailAddress(value);
701
767
  break;
702
- case 7:
768
+ case 8:
703
769
  var value = /** @type {string} */ (reader.readString());
704
770
  msg.setCompaniesReferencesId(value);
705
771
  break;
706
- case 8:
772
+ case 9:
707
773
  var value = new prisca_v1_core_company_company_pb.Company;
708
774
  reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
709
775
  msg.setCompany(value);
710
776
  break;
777
+ case 10:
778
+ var value = /** @type {string} */ (reader.readString());
779
+ msg.setCode(value);
780
+ break;
711
781
  default:
712
782
  reader.skipField();
713
783
  break;
@@ -758,42 +828,56 @@ proto.BasePurchasingGroup.serializeBinaryToWriter = function(message, writer) {
758
828
  f
759
829
  );
760
830
  }
761
- f = message.getFaxNumber();
831
+ f = message.getTelephoneNoPurchasingGroup();
762
832
  if (f.length > 0) {
763
833
  writer.writeString(
764
834
  4,
765
835
  f
766
836
  );
767
837
  }
838
+ f = message.getFaxNumber();
839
+ if (f.length > 0) {
840
+ writer.writeString(
841
+ 5,
842
+ f
843
+ );
844
+ }
768
845
  f = message.getExtension$();
769
846
  if (f !== 0) {
770
847
  writer.writeInt64(
771
- 5,
848
+ 6,
772
849
  f
773
850
  );
774
851
  }
775
852
  f = message.getEmailAddress();
776
853
  if (f.length > 0) {
777
854
  writer.writeString(
778
- 6,
855
+ 7,
779
856
  f
780
857
  );
781
858
  }
782
859
  f = message.getCompaniesReferencesId();
783
860
  if (f.length > 0) {
784
861
  writer.writeString(
785
- 7,
862
+ 8,
786
863
  f
787
864
  );
788
865
  }
789
866
  f = message.getCompany();
790
867
  if (f != null) {
791
868
  writer.writeMessage(
792
- 8,
869
+ 9,
793
870
  f,
794
871
  prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
795
872
  );
796
873
  }
874
+ f = message.getCode();
875
+ if (f.length > 0) {
876
+ writer.writeString(
877
+ 10,
878
+ f
879
+ );
880
+ }
797
881
  };
798
882
 
799
883
 
@@ -852,10 +936,10 @@ proto.BasePurchasingGroup.prototype.setTelephone = function(value) {
852
936
 
853
937
 
854
938
  /**
855
- * optional string fax_number = 4;
939
+ * optional string telephone_no_purchasing_group = 4;
856
940
  * @return {string}
857
941
  */
858
- proto.BasePurchasingGroup.prototype.getFaxNumber = function() {
942
+ proto.BasePurchasingGroup.prototype.getTelephoneNoPurchasingGroup = function() {
859
943
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
860
944
  };
861
945
 
@@ -864,17 +948,35 @@ proto.BasePurchasingGroup.prototype.getFaxNumber = function() {
864
948
  * @param {string} value
865
949
  * @return {!proto.BasePurchasingGroup} returns this
866
950
  */
867
- proto.BasePurchasingGroup.prototype.setFaxNumber = function(value) {
951
+ proto.BasePurchasingGroup.prototype.setTelephoneNoPurchasingGroup = function(value) {
868
952
  return jspb.Message.setProto3StringField(this, 4, value);
869
953
  };
870
954
 
871
955
 
872
956
  /**
873
- * optional int64 extension = 5;
957
+ * optional string fax_number = 5;
958
+ * @return {string}
959
+ */
960
+ proto.BasePurchasingGroup.prototype.getFaxNumber = function() {
961
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
962
+ };
963
+
964
+
965
+ /**
966
+ * @param {string} value
967
+ * @return {!proto.BasePurchasingGroup} returns this
968
+ */
969
+ proto.BasePurchasingGroup.prototype.setFaxNumber = function(value) {
970
+ return jspb.Message.setProto3StringField(this, 5, value);
971
+ };
972
+
973
+
974
+ /**
975
+ * optional int64 extension = 6;
874
976
  * @return {number}
875
977
  */
876
978
  proto.BasePurchasingGroup.prototype.getExtension$ = function() {
877
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
979
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
878
980
  };
879
981
 
880
982
 
@@ -883,16 +985,16 @@ proto.BasePurchasingGroup.prototype.getExtension$ = function() {
883
985
  * @return {!proto.BasePurchasingGroup} returns this
884
986
  */
885
987
  proto.BasePurchasingGroup.prototype.setExtension$ = function(value) {
886
- return jspb.Message.setProto3IntField(this, 5, value);
988
+ return jspb.Message.setProto3IntField(this, 6, value);
887
989
  };
888
990
 
889
991
 
890
992
  /**
891
- * optional string email_address = 6;
993
+ * optional string email_address = 7;
892
994
  * @return {string}
893
995
  */
894
996
  proto.BasePurchasingGroup.prototype.getEmailAddress = function() {
895
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
997
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
896
998
  };
897
999
 
898
1000
 
@@ -901,16 +1003,16 @@ proto.BasePurchasingGroup.prototype.getEmailAddress = function() {
901
1003
  * @return {!proto.BasePurchasingGroup} returns this
902
1004
  */
903
1005
  proto.BasePurchasingGroup.prototype.setEmailAddress = function(value) {
904
- return jspb.Message.setProto3StringField(this, 6, value);
1006
+ return jspb.Message.setProto3StringField(this, 7, value);
905
1007
  };
906
1008
 
907
1009
 
908
1010
  /**
909
- * optional string companies_references_id = 7;
1011
+ * optional string companies_references_id = 8;
910
1012
  * @return {string}
911
1013
  */
912
1014
  proto.BasePurchasingGroup.prototype.getCompaniesReferencesId = function() {
913
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1015
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
914
1016
  };
915
1017
 
916
1018
 
@@ -919,17 +1021,17 @@ proto.BasePurchasingGroup.prototype.getCompaniesReferencesId = function() {
919
1021
  * @return {!proto.BasePurchasingGroup} returns this
920
1022
  */
921
1023
  proto.BasePurchasingGroup.prototype.setCompaniesReferencesId = function(value) {
922
- return jspb.Message.setProto3StringField(this, 7, value);
1024
+ return jspb.Message.setProto3StringField(this, 8, value);
923
1025
  };
924
1026
 
925
1027
 
926
1028
  /**
927
- * optional Company company = 8;
1029
+ * optional Company company = 9;
928
1030
  * @return {?proto.Company}
929
1031
  */
930
1032
  proto.BasePurchasingGroup.prototype.getCompany = function() {
931
1033
  return /** @type{?proto.Company} */ (
932
- jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 8));
1034
+ jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 9));
933
1035
  };
934
1036
 
935
1037
 
@@ -938,7 +1040,7 @@ proto.BasePurchasingGroup.prototype.getCompany = function() {
938
1040
  * @return {!proto.BasePurchasingGroup} returns this
939
1041
  */
940
1042
  proto.BasePurchasingGroup.prototype.setCompany = function(value) {
941
- return jspb.Message.setWrapperField(this, 8, value);
1043
+ return jspb.Message.setWrapperField(this, 9, value);
942
1044
  };
943
1045
 
944
1046
 
@@ -956,7 +1058,25 @@ proto.BasePurchasingGroup.prototype.clearCompany = function() {
956
1058
  * @return {boolean}
957
1059
  */
958
1060
  proto.BasePurchasingGroup.prototype.hasCompany = function() {
959
- return jspb.Message.getField(this, 8) != null;
1061
+ return jspb.Message.getField(this, 9) != null;
1062
+ };
1063
+
1064
+
1065
+ /**
1066
+ * optional string code = 10;
1067
+ * @return {string}
1068
+ */
1069
+ proto.BasePurchasingGroup.prototype.getCode = function() {
1070
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1071
+ };
1072
+
1073
+
1074
+ /**
1075
+ * @param {string} value
1076
+ * @return {!proto.BasePurchasingGroup} returns this
1077
+ */
1078
+ proto.BasePurchasingGroup.prototype.setCode = function(value) {
1079
+ return jspb.Message.setProto3StringField(this, 10, value);
960
1080
  };
961
1081
 
962
1082