@aldiokta/protocgen 1.0.43 → 1.0.44
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.
- package/package.json +1 -1
- package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +1 -0
- package/prisca/v1/purchasing_group/purchasing_group_pb.js +437 -22
- package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +1 -0
- package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +115 -2
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +1 -0
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +18 -228
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +1 -0
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +115 -2
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var prisca_v1_purchasing_group_purchasing_group_pb = require('../../../prisca/v1/purchasing_group/purchasing_group_pb.js');
|
|
6
6
|
var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
|
+
var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
|
|
7
8
|
|
|
8
9
|
function serialize_CreatePurchasingGroupRequest(arg) {
|
|
9
10
|
if (!(arg instanceof prisca_v1_purchasing_group_purchasing_group_pb.CreatePurchasingGroupRequest)) {
|
|
@@ -23,6 +23,9 @@ var global =
|
|
|
23
23
|
|
|
24
24
|
var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
|
|
25
25
|
goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
|
|
26
|
+
var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
|
|
27
|
+
goog.object.extend(proto, prisca_v1_core_company_company_pb);
|
|
28
|
+
goog.exportSymbol('proto.BasePurchasingGroup', null, global);
|
|
26
29
|
goog.exportSymbol('proto.CreatePurchasingGroupRequest', null, global);
|
|
27
30
|
goog.exportSymbol('proto.CreatePurchasingGroupResponse', null, global);
|
|
28
31
|
goog.exportSymbol('proto.DeletePurchasingGroupRequest', null, global);
|
|
@@ -55,6 +58,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
55
58
|
*/
|
|
56
59
|
proto.PurchasingGroup.displayName = 'proto.PurchasingGroup';
|
|
57
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Generated by JsPbCodeGenerator.
|
|
63
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
64
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
65
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
66
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
67
|
+
* valid.
|
|
68
|
+
* @extends {jspb.Message}
|
|
69
|
+
* @constructor
|
|
70
|
+
*/
|
|
71
|
+
proto.BasePurchasingGroup = function(opt_data) {
|
|
72
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
73
|
+
};
|
|
74
|
+
goog.inherits(proto.BasePurchasingGroup, jspb.Message);
|
|
75
|
+
if (goog.DEBUG && !COMPILED) {
|
|
76
|
+
/**
|
|
77
|
+
* @public
|
|
78
|
+
* @override
|
|
79
|
+
*/
|
|
80
|
+
proto.BasePurchasingGroup.displayName = 'proto.BasePurchasingGroup';
|
|
81
|
+
}
|
|
58
82
|
/**
|
|
59
83
|
* Generated by JsPbCodeGenerator.
|
|
60
84
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -302,7 +326,8 @@ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
|
302
326
|
telephone: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
303
327
|
faxNumber: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
304
328
|
extension: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
305
|
-
emailAddress: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
329
|
+
emailAddress: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
330
|
+
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
306
331
|
};
|
|
307
332
|
|
|
308
333
|
if (includeInstance) {
|
|
@@ -363,6 +388,10 @@ proto.PurchasingGroup.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
363
388
|
var value = /** @type {string} */ (reader.readString());
|
|
364
389
|
msg.setEmailAddress(value);
|
|
365
390
|
break;
|
|
391
|
+
case 7:
|
|
392
|
+
var value = /** @type {string} */ (reader.readString());
|
|
393
|
+
msg.setCompaniesReferencesId(value);
|
|
394
|
+
break;
|
|
366
395
|
default:
|
|
367
396
|
reader.skipField();
|
|
368
397
|
break;
|
|
@@ -434,6 +463,13 @@ proto.PurchasingGroup.serializeBinaryToWriter = function(message, writer) {
|
|
|
434
463
|
f
|
|
435
464
|
);
|
|
436
465
|
}
|
|
466
|
+
f = message.getCompaniesReferencesId();
|
|
467
|
+
if (f.length > 0) {
|
|
468
|
+
writer.writeString(
|
|
469
|
+
7,
|
|
470
|
+
f
|
|
471
|
+
);
|
|
472
|
+
}
|
|
437
473
|
};
|
|
438
474
|
|
|
439
475
|
|
|
@@ -545,6 +581,385 @@ proto.PurchasingGroup.prototype.setEmailAddress = function(value) {
|
|
|
545
581
|
};
|
|
546
582
|
|
|
547
583
|
|
|
584
|
+
/**
|
|
585
|
+
* optional string companies_references_id = 7;
|
|
586
|
+
* @return {string}
|
|
587
|
+
*/
|
|
588
|
+
proto.PurchasingGroup.prototype.getCompaniesReferencesId = function() {
|
|
589
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
590
|
+
};
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* @param {string} value
|
|
595
|
+
* @return {!proto.PurchasingGroup} returns this
|
|
596
|
+
*/
|
|
597
|
+
proto.PurchasingGroup.prototype.setCompaniesReferencesId = function(value) {
|
|
598
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
606
|
+
/**
|
|
607
|
+
* Creates an object representation of this proto.
|
|
608
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
609
|
+
* Optional fields that are not set will be set to undefined.
|
|
610
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
611
|
+
* For the list of reserved names please see:
|
|
612
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
613
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
614
|
+
* JSPB instance for transitional soy proto support:
|
|
615
|
+
* http://goto/soy-param-migration
|
|
616
|
+
* @return {!Object}
|
|
617
|
+
*/
|
|
618
|
+
proto.BasePurchasingGroup.prototype.toObject = function(opt_includeInstance) {
|
|
619
|
+
return proto.BasePurchasingGroup.toObject(opt_includeInstance, this);
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Static version of the {@see toObject} method.
|
|
625
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
626
|
+
* the JSPB instance for transitional soy proto support:
|
|
627
|
+
* http://goto/soy-param-migration
|
|
628
|
+
* @param {!proto.BasePurchasingGroup} msg The msg instance to transform.
|
|
629
|
+
* @return {!Object}
|
|
630
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
631
|
+
*/
|
|
632
|
+
proto.BasePurchasingGroup.toObject = function(includeInstance, msg) {
|
|
633
|
+
var f, obj = {
|
|
634
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
635
|
+
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
636
|
+
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)
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
if (includeInstance) {
|
|
645
|
+
obj.$jspbMessageInstance = msg;
|
|
646
|
+
}
|
|
647
|
+
return obj;
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Deserializes binary data (in protobuf wire format).
|
|
654
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
655
|
+
* @return {!proto.BasePurchasingGroup}
|
|
656
|
+
*/
|
|
657
|
+
proto.BasePurchasingGroup.deserializeBinary = function(bytes) {
|
|
658
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
659
|
+
var msg = new proto.BasePurchasingGroup;
|
|
660
|
+
return proto.BasePurchasingGroup.deserializeBinaryFromReader(msg, reader);
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
666
|
+
* given reader into the given message object.
|
|
667
|
+
* @param {!proto.BasePurchasingGroup} msg The message object to deserialize into.
|
|
668
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
669
|
+
* @return {!proto.BasePurchasingGroup}
|
|
670
|
+
*/
|
|
671
|
+
proto.BasePurchasingGroup.deserializeBinaryFromReader = function(msg, reader) {
|
|
672
|
+
while (reader.nextField()) {
|
|
673
|
+
if (reader.isEndGroup()) {
|
|
674
|
+
break;
|
|
675
|
+
}
|
|
676
|
+
var field = reader.getFieldNumber();
|
|
677
|
+
switch (field) {
|
|
678
|
+
case 1:
|
|
679
|
+
var value = /** @type {string} */ (reader.readString());
|
|
680
|
+
msg.setReferencesId(value);
|
|
681
|
+
break;
|
|
682
|
+
case 2:
|
|
683
|
+
var value = /** @type {string} */ (reader.readString());
|
|
684
|
+
msg.setDescription(value);
|
|
685
|
+
break;
|
|
686
|
+
case 3:
|
|
687
|
+
var value = /** @type {string} */ (reader.readString());
|
|
688
|
+
msg.setTelephone(value);
|
|
689
|
+
break;
|
|
690
|
+
case 4:
|
|
691
|
+
var value = /** @type {string} */ (reader.readString());
|
|
692
|
+
msg.setFaxNumber(value);
|
|
693
|
+
break;
|
|
694
|
+
case 5:
|
|
695
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
696
|
+
msg.setExtension$(value);
|
|
697
|
+
break;
|
|
698
|
+
case 6:
|
|
699
|
+
var value = /** @type {string} */ (reader.readString());
|
|
700
|
+
msg.setEmailAddress(value);
|
|
701
|
+
break;
|
|
702
|
+
case 7:
|
|
703
|
+
var value = /** @type {string} */ (reader.readString());
|
|
704
|
+
msg.setCompaniesReferencesId(value);
|
|
705
|
+
break;
|
|
706
|
+
case 8:
|
|
707
|
+
var value = new prisca_v1_core_company_company_pb.Company;
|
|
708
|
+
reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
|
|
709
|
+
msg.setCompany(value);
|
|
710
|
+
break;
|
|
711
|
+
default:
|
|
712
|
+
reader.skipField();
|
|
713
|
+
break;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
return msg;
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
722
|
+
* @return {!Uint8Array}
|
|
723
|
+
*/
|
|
724
|
+
proto.BasePurchasingGroup.prototype.serializeBinary = function() {
|
|
725
|
+
var writer = new jspb.BinaryWriter();
|
|
726
|
+
proto.BasePurchasingGroup.serializeBinaryToWriter(this, writer);
|
|
727
|
+
return writer.getResultBuffer();
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
733
|
+
* format), writing to the given BinaryWriter.
|
|
734
|
+
* @param {!proto.BasePurchasingGroup} message
|
|
735
|
+
* @param {!jspb.BinaryWriter} writer
|
|
736
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
737
|
+
*/
|
|
738
|
+
proto.BasePurchasingGroup.serializeBinaryToWriter = function(message, writer) {
|
|
739
|
+
var f = undefined;
|
|
740
|
+
f = message.getReferencesId();
|
|
741
|
+
if (f.length > 0) {
|
|
742
|
+
writer.writeString(
|
|
743
|
+
1,
|
|
744
|
+
f
|
|
745
|
+
);
|
|
746
|
+
}
|
|
747
|
+
f = message.getDescription();
|
|
748
|
+
if (f.length > 0) {
|
|
749
|
+
writer.writeString(
|
|
750
|
+
2,
|
|
751
|
+
f
|
|
752
|
+
);
|
|
753
|
+
}
|
|
754
|
+
f = message.getTelephone();
|
|
755
|
+
if (f.length > 0) {
|
|
756
|
+
writer.writeString(
|
|
757
|
+
3,
|
|
758
|
+
f
|
|
759
|
+
);
|
|
760
|
+
}
|
|
761
|
+
f = message.getFaxNumber();
|
|
762
|
+
if (f.length > 0) {
|
|
763
|
+
writer.writeString(
|
|
764
|
+
4,
|
|
765
|
+
f
|
|
766
|
+
);
|
|
767
|
+
}
|
|
768
|
+
f = message.getExtension$();
|
|
769
|
+
if (f !== 0) {
|
|
770
|
+
writer.writeInt64(
|
|
771
|
+
5,
|
|
772
|
+
f
|
|
773
|
+
);
|
|
774
|
+
}
|
|
775
|
+
f = message.getEmailAddress();
|
|
776
|
+
if (f.length > 0) {
|
|
777
|
+
writer.writeString(
|
|
778
|
+
6,
|
|
779
|
+
f
|
|
780
|
+
);
|
|
781
|
+
}
|
|
782
|
+
f = message.getCompaniesReferencesId();
|
|
783
|
+
if (f.length > 0) {
|
|
784
|
+
writer.writeString(
|
|
785
|
+
7,
|
|
786
|
+
f
|
|
787
|
+
);
|
|
788
|
+
}
|
|
789
|
+
f = message.getCompany();
|
|
790
|
+
if (f != null) {
|
|
791
|
+
writer.writeMessage(
|
|
792
|
+
8,
|
|
793
|
+
f,
|
|
794
|
+
prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
|
|
795
|
+
);
|
|
796
|
+
}
|
|
797
|
+
};
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* optional string references_id = 1;
|
|
802
|
+
* @return {string}
|
|
803
|
+
*/
|
|
804
|
+
proto.BasePurchasingGroup.prototype.getReferencesId = function() {
|
|
805
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
806
|
+
};
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* @param {string} value
|
|
811
|
+
* @return {!proto.BasePurchasingGroup} returns this
|
|
812
|
+
*/
|
|
813
|
+
proto.BasePurchasingGroup.prototype.setReferencesId = function(value) {
|
|
814
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* optional string description = 2;
|
|
820
|
+
* @return {string}
|
|
821
|
+
*/
|
|
822
|
+
proto.BasePurchasingGroup.prototype.getDescription = function() {
|
|
823
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
824
|
+
};
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* @param {string} value
|
|
829
|
+
* @return {!proto.BasePurchasingGroup} returns this
|
|
830
|
+
*/
|
|
831
|
+
proto.BasePurchasingGroup.prototype.setDescription = function(value) {
|
|
832
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
833
|
+
};
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* optional string telephone = 3;
|
|
838
|
+
* @return {string}
|
|
839
|
+
*/
|
|
840
|
+
proto.BasePurchasingGroup.prototype.getTelephone = function() {
|
|
841
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
842
|
+
};
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* @param {string} value
|
|
847
|
+
* @return {!proto.BasePurchasingGroup} returns this
|
|
848
|
+
*/
|
|
849
|
+
proto.BasePurchasingGroup.prototype.setTelephone = function(value) {
|
|
850
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
851
|
+
};
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* optional string fax_number = 4;
|
|
856
|
+
* @return {string}
|
|
857
|
+
*/
|
|
858
|
+
proto.BasePurchasingGroup.prototype.getFaxNumber = function() {
|
|
859
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
860
|
+
};
|
|
861
|
+
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* @param {string} value
|
|
865
|
+
* @return {!proto.BasePurchasingGroup} returns this
|
|
866
|
+
*/
|
|
867
|
+
proto.BasePurchasingGroup.prototype.setFaxNumber = function(value) {
|
|
868
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
869
|
+
};
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* optional int64 extension = 5;
|
|
874
|
+
* @return {number}
|
|
875
|
+
*/
|
|
876
|
+
proto.BasePurchasingGroup.prototype.getExtension$ = function() {
|
|
877
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
878
|
+
};
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* @param {number} value
|
|
883
|
+
* @return {!proto.BasePurchasingGroup} returns this
|
|
884
|
+
*/
|
|
885
|
+
proto.BasePurchasingGroup.prototype.setExtension$ = function(value) {
|
|
886
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
887
|
+
};
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* optional string email_address = 6;
|
|
892
|
+
* @return {string}
|
|
893
|
+
*/
|
|
894
|
+
proto.BasePurchasingGroup.prototype.getEmailAddress = function() {
|
|
895
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
896
|
+
};
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* @param {string} value
|
|
901
|
+
* @return {!proto.BasePurchasingGroup} returns this
|
|
902
|
+
*/
|
|
903
|
+
proto.BasePurchasingGroup.prototype.setEmailAddress = function(value) {
|
|
904
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
905
|
+
};
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* optional string companies_references_id = 7;
|
|
910
|
+
* @return {string}
|
|
911
|
+
*/
|
|
912
|
+
proto.BasePurchasingGroup.prototype.getCompaniesReferencesId = function() {
|
|
913
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
914
|
+
};
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* @param {string} value
|
|
919
|
+
* @return {!proto.BasePurchasingGroup} returns this
|
|
920
|
+
*/
|
|
921
|
+
proto.BasePurchasingGroup.prototype.setCompaniesReferencesId = function(value) {
|
|
922
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
923
|
+
};
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* optional Company company = 8;
|
|
928
|
+
* @return {?proto.Company}
|
|
929
|
+
*/
|
|
930
|
+
proto.BasePurchasingGroup.prototype.getCompany = function() {
|
|
931
|
+
return /** @type{?proto.Company} */ (
|
|
932
|
+
jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 8));
|
|
933
|
+
};
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* @param {?proto.Company|undefined} value
|
|
938
|
+
* @return {!proto.BasePurchasingGroup} returns this
|
|
939
|
+
*/
|
|
940
|
+
proto.BasePurchasingGroup.prototype.setCompany = function(value) {
|
|
941
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
942
|
+
};
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* Clears the message field making it undefined.
|
|
947
|
+
* @return {!proto.BasePurchasingGroup} returns this
|
|
948
|
+
*/
|
|
949
|
+
proto.BasePurchasingGroup.prototype.clearCompany = function() {
|
|
950
|
+
return this.setCompany(undefined);
|
|
951
|
+
};
|
|
952
|
+
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* Returns whether this field is set.
|
|
956
|
+
* @return {boolean}
|
|
957
|
+
*/
|
|
958
|
+
proto.BasePurchasingGroup.prototype.hasCompany = function() {
|
|
959
|
+
return jspb.Message.getField(this, 8) != null;
|
|
960
|
+
};
|
|
961
|
+
|
|
962
|
+
|
|
548
963
|
|
|
549
964
|
|
|
550
965
|
|
|
@@ -1581,7 +1996,7 @@ proto.GetListPurchasingGroupResponse.prototype.toObject = function(opt_includeIn
|
|
|
1581
1996
|
proto.GetListPurchasingGroupResponse.toObject = function(includeInstance, msg) {
|
|
1582
1997
|
var f, obj = {
|
|
1583
1998
|
purchasingGroupList: jspb.Message.toObjectList(msg.getPurchasingGroupList(),
|
|
1584
|
-
proto.
|
|
1999
|
+
proto.BasePurchasingGroup.toObject, includeInstance),
|
|
1585
2000
|
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
1586
2001
|
};
|
|
1587
2002
|
|
|
@@ -1620,8 +2035,8 @@ proto.GetListPurchasingGroupResponse.deserializeBinaryFromReader = function(msg,
|
|
|
1620
2035
|
var field = reader.getFieldNumber();
|
|
1621
2036
|
switch (field) {
|
|
1622
2037
|
case 1:
|
|
1623
|
-
var value = new proto.
|
|
1624
|
-
reader.readMessage(value,proto.
|
|
2038
|
+
var value = new proto.BasePurchasingGroup;
|
|
2039
|
+
reader.readMessage(value,proto.BasePurchasingGroup.deserializeBinaryFromReader);
|
|
1625
2040
|
msg.addPurchasingGroup(value);
|
|
1626
2041
|
break;
|
|
1627
2042
|
case 2:
|
|
@@ -1663,7 +2078,7 @@ proto.GetListPurchasingGroupResponse.serializeBinaryToWriter = function(message,
|
|
|
1663
2078
|
writer.writeRepeatedMessage(
|
|
1664
2079
|
1,
|
|
1665
2080
|
f,
|
|
1666
|
-
proto.
|
|
2081
|
+
proto.BasePurchasingGroup.serializeBinaryToWriter
|
|
1667
2082
|
);
|
|
1668
2083
|
}
|
|
1669
2084
|
f = message.getMeta();
|
|
@@ -1678,17 +2093,17 @@ proto.GetListPurchasingGroupResponse.serializeBinaryToWriter = function(message,
|
|
|
1678
2093
|
|
|
1679
2094
|
|
|
1680
2095
|
/**
|
|
1681
|
-
* repeated
|
|
1682
|
-
* @return {!Array<!proto.
|
|
2096
|
+
* repeated BasePurchasingGroup purchasing_group = 1;
|
|
2097
|
+
* @return {!Array<!proto.BasePurchasingGroup>}
|
|
1683
2098
|
*/
|
|
1684
2099
|
proto.GetListPurchasingGroupResponse.prototype.getPurchasingGroupList = function() {
|
|
1685
|
-
return /** @type{!Array<!proto.
|
|
1686
|
-
jspb.Message.getRepeatedWrapperField(this, proto.
|
|
2100
|
+
return /** @type{!Array<!proto.BasePurchasingGroup>} */ (
|
|
2101
|
+
jspb.Message.getRepeatedWrapperField(this, proto.BasePurchasingGroup, 1));
|
|
1687
2102
|
};
|
|
1688
2103
|
|
|
1689
2104
|
|
|
1690
2105
|
/**
|
|
1691
|
-
* @param {!Array<!proto.
|
|
2106
|
+
* @param {!Array<!proto.BasePurchasingGroup>} value
|
|
1692
2107
|
* @return {!proto.GetListPurchasingGroupResponse} returns this
|
|
1693
2108
|
*/
|
|
1694
2109
|
proto.GetListPurchasingGroupResponse.prototype.setPurchasingGroupList = function(value) {
|
|
@@ -1697,12 +2112,12 @@ proto.GetListPurchasingGroupResponse.prototype.setPurchasingGroupList = function
|
|
|
1697
2112
|
|
|
1698
2113
|
|
|
1699
2114
|
/**
|
|
1700
|
-
* @param {!proto.
|
|
2115
|
+
* @param {!proto.BasePurchasingGroup=} opt_value
|
|
1701
2116
|
* @param {number=} opt_index
|
|
1702
|
-
* @return {!proto.
|
|
2117
|
+
* @return {!proto.BasePurchasingGroup}
|
|
1703
2118
|
*/
|
|
1704
2119
|
proto.GetListPurchasingGroupResponse.prototype.addPurchasingGroup = function(opt_value, opt_index) {
|
|
1705
|
-
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.
|
|
2120
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.BasePurchasingGroup, opt_index);
|
|
1706
2121
|
};
|
|
1707
2122
|
|
|
1708
2123
|
|
|
@@ -1986,7 +2401,7 @@ proto.PurchasingGroupGetByIdResponse.prototype.toObject = function(opt_includeIn
|
|
|
1986
2401
|
*/
|
|
1987
2402
|
proto.PurchasingGroupGetByIdResponse.toObject = function(includeInstance, msg) {
|
|
1988
2403
|
var f, obj = {
|
|
1989
|
-
purchasingGroup: (f = msg.getPurchasingGroup()) && proto.
|
|
2404
|
+
purchasingGroup: (f = msg.getPurchasingGroup()) && proto.BasePurchasingGroup.toObject(includeInstance, f),
|
|
1990
2405
|
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
1991
2406
|
};
|
|
1992
2407
|
|
|
@@ -2025,8 +2440,8 @@ proto.PurchasingGroupGetByIdResponse.deserializeBinaryFromReader = function(msg,
|
|
|
2025
2440
|
var field = reader.getFieldNumber();
|
|
2026
2441
|
switch (field) {
|
|
2027
2442
|
case 1:
|
|
2028
|
-
var value = new proto.
|
|
2029
|
-
reader.readMessage(value,proto.
|
|
2443
|
+
var value = new proto.BasePurchasingGroup;
|
|
2444
|
+
reader.readMessage(value,proto.BasePurchasingGroup.deserializeBinaryFromReader);
|
|
2030
2445
|
msg.setPurchasingGroup(value);
|
|
2031
2446
|
break;
|
|
2032
2447
|
case 2:
|
|
@@ -2068,7 +2483,7 @@ proto.PurchasingGroupGetByIdResponse.serializeBinaryToWriter = function(message,
|
|
|
2068
2483
|
writer.writeMessage(
|
|
2069
2484
|
1,
|
|
2070
2485
|
f,
|
|
2071
|
-
proto.
|
|
2486
|
+
proto.BasePurchasingGroup.serializeBinaryToWriter
|
|
2072
2487
|
);
|
|
2073
2488
|
}
|
|
2074
2489
|
f = message.getMeta();
|
|
@@ -2083,17 +2498,17 @@ proto.PurchasingGroupGetByIdResponse.serializeBinaryToWriter = function(message,
|
|
|
2083
2498
|
|
|
2084
2499
|
|
|
2085
2500
|
/**
|
|
2086
|
-
* optional
|
|
2087
|
-
* @return {?proto.
|
|
2501
|
+
* optional BasePurchasingGroup purchasing_group = 1;
|
|
2502
|
+
* @return {?proto.BasePurchasingGroup}
|
|
2088
2503
|
*/
|
|
2089
2504
|
proto.PurchasingGroupGetByIdResponse.prototype.getPurchasingGroup = function() {
|
|
2090
|
-
return /** @type{?proto.
|
|
2091
|
-
jspb.Message.getWrapperField(this, proto.
|
|
2505
|
+
return /** @type{?proto.BasePurchasingGroup} */ (
|
|
2506
|
+
jspb.Message.getWrapperField(this, proto.BasePurchasingGroup, 1));
|
|
2092
2507
|
};
|
|
2093
2508
|
|
|
2094
2509
|
|
|
2095
2510
|
/**
|
|
2096
|
-
* @param {?proto.
|
|
2511
|
+
* @param {?proto.BasePurchasingGroup|undefined} value
|
|
2097
2512
|
* @return {!proto.PurchasingGroupGetByIdResponse} returns this
|
|
2098
2513
|
*/
|
|
2099
2514
|
proto.PurchasingGroupGetByIdResponse.prototype.setPurchasingGroup = function(value) {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var prisca_v1_purchasing_organization_purchasing_organization_pb = require('../../../prisca/v1/purchasing_organization/purchasing_organization_pb.js');
|
|
6
6
|
var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
|
+
var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
|
|
7
8
|
|
|
8
9
|
function serialize_CreatePurchasingOrganizationRequest(arg) {
|
|
9
10
|
if (!(arg instanceof prisca_v1_purchasing_organization_purchasing_organization_pb.CreatePurchasingOrganizationRequest)) {
|
|
@@ -23,6 +23,8 @@ var global =
|
|
|
23
23
|
|
|
24
24
|
var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
|
|
25
25
|
goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
|
|
26
|
+
var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
|
|
27
|
+
goog.object.extend(proto, prisca_v1_core_company_company_pb);
|
|
26
28
|
goog.exportSymbol('proto.BasePurchasingOrganization', null, global);
|
|
27
29
|
goog.exportSymbol('proto.CreatePurchasingOrganizationRequest', null, global);
|
|
28
30
|
goog.exportSymbol('proto.CreatePurchasingOrganizationResponse', null, global);
|
|
@@ -299,7 +301,9 @@ proto.PurchasingOrganization.toObject = function(includeInstance, msg) {
|
|
|
299
301
|
var f, obj = {
|
|
300
302
|
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
301
303
|
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
302
|
-
validity: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
|
|
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)
|
|
303
307
|
};
|
|
304
308
|
|
|
305
309
|
if (includeInstance) {
|
|
@@ -348,6 +352,15 @@ proto.PurchasingOrganization.deserializeBinaryFromReader = function(msg, reader)
|
|
|
348
352
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
349
353
|
msg.setValidity(value);
|
|
350
354
|
break;
|
|
355
|
+
case 4:
|
|
356
|
+
var value = /** @type {string} */ (reader.readString());
|
|
357
|
+
msg.setCompaniesReferencesId(value);
|
|
358
|
+
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);
|
|
363
|
+
break;
|
|
351
364
|
default:
|
|
352
365
|
reader.skipField();
|
|
353
366
|
break;
|
|
@@ -398,6 +411,21 @@ proto.PurchasingOrganization.serializeBinaryToWriter = function(message, writer)
|
|
|
398
411
|
f
|
|
399
412
|
);
|
|
400
413
|
}
|
|
414
|
+
f = message.getCompaniesReferencesId();
|
|
415
|
+
if (f.length > 0) {
|
|
416
|
+
writer.writeString(
|
|
417
|
+
4,
|
|
418
|
+
f
|
|
419
|
+
);
|
|
420
|
+
}
|
|
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
|
+
}
|
|
401
429
|
};
|
|
402
430
|
|
|
403
431
|
|
|
@@ -455,6 +483,61 @@ proto.PurchasingOrganization.prototype.setValidity = function(value) {
|
|
|
455
483
|
};
|
|
456
484
|
|
|
457
485
|
|
|
486
|
+
/**
|
|
487
|
+
* optional string companies_references_id = 4;
|
|
488
|
+
* @return {string}
|
|
489
|
+
*/
|
|
490
|
+
proto.PurchasingOrganization.prototype.getCompaniesReferencesId = function() {
|
|
491
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
492
|
+
};
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* @param {string} value
|
|
497
|
+
* @return {!proto.PurchasingOrganization} returns this
|
|
498
|
+
*/
|
|
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
|
+
|
|
458
541
|
|
|
459
542
|
|
|
460
543
|
|
|
@@ -489,7 +572,8 @@ proto.BasePurchasingOrganization.toObject = function(includeInstance, msg) {
|
|
|
489
572
|
var f, obj = {
|
|
490
573
|
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
491
574
|
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
492
|
-
validity: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
|
|
575
|
+
validity: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
576
|
+
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
493
577
|
};
|
|
494
578
|
|
|
495
579
|
if (includeInstance) {
|
|
@@ -538,6 +622,10 @@ proto.BasePurchasingOrganization.deserializeBinaryFromReader = function(msg, rea
|
|
|
538
622
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
539
623
|
msg.setValidity(value);
|
|
540
624
|
break;
|
|
625
|
+
case 4:
|
|
626
|
+
var value = /** @type {string} */ (reader.readString());
|
|
627
|
+
msg.setCompaniesReferencesId(value);
|
|
628
|
+
break;
|
|
541
629
|
default:
|
|
542
630
|
reader.skipField();
|
|
543
631
|
break;
|
|
@@ -588,6 +676,13 @@ proto.BasePurchasingOrganization.serializeBinaryToWriter = function(message, wri
|
|
|
588
676
|
f
|
|
589
677
|
);
|
|
590
678
|
}
|
|
679
|
+
f = message.getCompaniesReferencesId();
|
|
680
|
+
if (f.length > 0) {
|
|
681
|
+
writer.writeString(
|
|
682
|
+
4,
|
|
683
|
+
f
|
|
684
|
+
);
|
|
685
|
+
}
|
|
591
686
|
};
|
|
592
687
|
|
|
593
688
|
|
|
@@ -645,6 +740,24 @@ proto.BasePurchasingOrganization.prototype.setValidity = function(value) {
|
|
|
645
740
|
};
|
|
646
741
|
|
|
647
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
|
|
755
|
+
*/
|
|
756
|
+
proto.BasePurchasingOrganization.prototype.setCompaniesReferencesId = function(value) {
|
|
757
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
758
|
+
};
|
|
759
|
+
|
|
760
|
+
|
|
648
761
|
|
|
649
762
|
|
|
650
763
|
|
package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js
CHANGED
|
@@ -5,6 +5,7 @@ var grpc = require('@grpc/grpc-js');
|
|
|
5
5
|
var prisca_v1_purchasing_organization_assignment_purchasing_organization_assignment_pb = require('../../../prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js');
|
|
6
6
|
var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
7
|
var prisca_v1_purchasing_organization_purchasing_organization_pb = require('../../../prisca/v1/purchasing_organization/purchasing_organization_pb.js');
|
|
8
|
+
var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
|
|
8
9
|
|
|
9
10
|
function serialize_AssignPOrganizationGetByIdRequest(arg) {
|
|
10
11
|
if (!(arg instanceof prisca_v1_purchasing_organization_assignment_purchasing_organization_assignment_pb.AssignPOrganizationGetByIdRequest)) {
|
package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js
CHANGED
|
@@ -25,6 +25,8 @@ 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_purchasing_organization_purchasing_organization_pb = require('../../../prisca/v1/purchasing_organization/purchasing_organization_pb.js');
|
|
27
27
|
goog.object.extend(proto, prisca_v1_purchasing_organization_purchasing_organization_pb);
|
|
28
|
+
var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
|
|
29
|
+
goog.object.extend(proto, prisca_v1_core_company_company_pb);
|
|
28
30
|
goog.exportSymbol('proto.AssignPOrganization', null, global);
|
|
29
31
|
goog.exportSymbol('proto.AssignPOrganizationGetByIdRequest', null, global);
|
|
30
32
|
goog.exportSymbol('proto.AssignPOrganizationGetByIdResponse', null, global);
|
|
@@ -33,7 +35,6 @@ goog.exportSymbol('proto.CreateAssignPOrganizationRequest', null, global);
|
|
|
33
35
|
goog.exportSymbol('proto.CreateAssignPOrganizationResponse', null, global);
|
|
34
36
|
goog.exportSymbol('proto.GetListAssignPOrganizationRequest', null, global);
|
|
35
37
|
goog.exportSymbol('proto.GetListAssignPOrganizationResponse', null, global);
|
|
36
|
-
goog.exportSymbol('proto.POCompany', null, global);
|
|
37
38
|
goog.exportSymbol('proto.UpdateAssignPOrganizationRequest', null, global);
|
|
38
39
|
goog.exportSymbol('proto.UpdateAssignPOrganizationResponse', null, global);
|
|
39
40
|
/**
|
|
@@ -78,27 +79,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
78
79
|
*/
|
|
79
80
|
proto.BaseAssignPOrganization.displayName = 'proto.BaseAssignPOrganization';
|
|
80
81
|
}
|
|
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
82
|
/**
|
|
103
83
|
* Generated by JsPbCodeGenerator.
|
|
104
84
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -461,7 +441,7 @@ proto.BaseAssignPOrganization.toObject = function(includeInstance, msg) {
|
|
|
461
441
|
var f, obj = {
|
|
462
442
|
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
463
443
|
referencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
464
|
-
|
|
444
|
+
company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f),
|
|
465
445
|
purchasingOrganizationReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
466
446
|
purchasingOrganizations: (f = msg.getPurchasingOrganizations()) && prisca_v1_purchasing_organization_purchasing_organization_pb.BasePurchasingOrganization.toObject(includeInstance, f)
|
|
467
447
|
};
|
|
@@ -509,9 +489,9 @@ proto.BaseAssignPOrganization.deserializeBinaryFromReader = function(msg, reader
|
|
|
509
489
|
msg.setReferencesId(value);
|
|
510
490
|
break;
|
|
511
491
|
case 3:
|
|
512
|
-
var value = new
|
|
513
|
-
reader.readMessage(value,
|
|
514
|
-
msg.
|
|
492
|
+
var value = new prisca_v1_core_company_company_pb.Company;
|
|
493
|
+
reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
|
|
494
|
+
msg.setCompany(value);
|
|
515
495
|
break;
|
|
516
496
|
case 4:
|
|
517
497
|
var value = /** @type {string} */ (reader.readString());
|
|
@@ -565,12 +545,12 @@ proto.BaseAssignPOrganization.serializeBinaryToWriter = function(message, writer
|
|
|
565
545
|
f
|
|
566
546
|
);
|
|
567
547
|
}
|
|
568
|
-
f = message.
|
|
548
|
+
f = message.getCompany();
|
|
569
549
|
if (f != null) {
|
|
570
550
|
writer.writeMessage(
|
|
571
551
|
3,
|
|
572
552
|
f,
|
|
573
|
-
|
|
553
|
+
prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
|
|
574
554
|
);
|
|
575
555
|
}
|
|
576
556
|
f = message.getPurchasingOrganizationReferencesId();
|
|
@@ -628,20 +608,20 @@ proto.BaseAssignPOrganization.prototype.setReferencesId = function(value) {
|
|
|
628
608
|
|
|
629
609
|
|
|
630
610
|
/**
|
|
631
|
-
* optional
|
|
632
|
-
* @return {?proto.
|
|
611
|
+
* optional Company company = 3;
|
|
612
|
+
* @return {?proto.Company}
|
|
633
613
|
*/
|
|
634
|
-
proto.BaseAssignPOrganization.prototype.
|
|
635
|
-
return /** @type{?proto.
|
|
636
|
-
jspb.Message.getWrapperField(this,
|
|
614
|
+
proto.BaseAssignPOrganization.prototype.getCompany = function() {
|
|
615
|
+
return /** @type{?proto.Company} */ (
|
|
616
|
+
jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 3));
|
|
637
617
|
};
|
|
638
618
|
|
|
639
619
|
|
|
640
620
|
/**
|
|
641
|
-
* @param {?proto.
|
|
621
|
+
* @param {?proto.Company|undefined} value
|
|
642
622
|
* @return {!proto.BaseAssignPOrganization} returns this
|
|
643
623
|
*/
|
|
644
|
-
proto.BaseAssignPOrganization.prototype.
|
|
624
|
+
proto.BaseAssignPOrganization.prototype.setCompany = function(value) {
|
|
645
625
|
return jspb.Message.setWrapperField(this, 3, value);
|
|
646
626
|
};
|
|
647
627
|
|
|
@@ -650,8 +630,8 @@ proto.BaseAssignPOrganization.prototype.setCompanies = function(value) {
|
|
|
650
630
|
* Clears the message field making it undefined.
|
|
651
631
|
* @return {!proto.BaseAssignPOrganization} returns this
|
|
652
632
|
*/
|
|
653
|
-
proto.BaseAssignPOrganization.prototype.
|
|
654
|
-
return this.
|
|
633
|
+
proto.BaseAssignPOrganization.prototype.clearCompany = function() {
|
|
634
|
+
return this.setCompany(undefined);
|
|
655
635
|
};
|
|
656
636
|
|
|
657
637
|
|
|
@@ -659,7 +639,7 @@ proto.BaseAssignPOrganization.prototype.clearCompanies = function() {
|
|
|
659
639
|
* Returns whether this field is set.
|
|
660
640
|
* @return {boolean}
|
|
661
641
|
*/
|
|
662
|
-
proto.BaseAssignPOrganization.prototype.
|
|
642
|
+
proto.BaseAssignPOrganization.prototype.hasCompany = function() {
|
|
663
643
|
return jspb.Message.getField(this, 3) != null;
|
|
664
644
|
};
|
|
665
645
|
|
|
@@ -722,196 +702,6 @@ proto.BaseAssignPOrganization.prototype.hasPurchasingOrganizations = function()
|
|
|
722
702
|
|
|
723
703
|
|
|
724
704
|
|
|
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
705
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
916
706
|
/**
|
|
917
707
|
* Creates an object representation of this proto.
|
|
@@ -5,6 +5,7 @@ var grpc = require('@grpc/grpc-js');
|
|
|
5
5
|
var prisca_v1_purchasing_organization_plant_purchasing_organization_plant_pb = require('../../../prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js');
|
|
6
6
|
var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
7
|
var prisca_v1_purchasing_organization_purchasing_organization_pb = require('../../../prisca/v1/purchasing_organization/purchasing_organization_pb.js');
|
|
8
|
+
var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
|
|
8
9
|
|
|
9
10
|
function serialize_CreatePlantPOrganizationRequest(arg) {
|
|
10
11
|
if (!(arg instanceof prisca_v1_purchasing_organization_plant_purchasing_organization_plant_pb.CreatePlantPOrganizationRequest)) {
|
|
@@ -25,6 +25,8 @@ 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_purchasing_organization_purchasing_organization_pb = require('../../../prisca/v1/purchasing_organization/purchasing_organization_pb.js');
|
|
27
27
|
goog.object.extend(proto, prisca_v1_purchasing_organization_purchasing_organization_pb);
|
|
28
|
+
var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
|
|
29
|
+
goog.object.extend(proto, prisca_v1_core_company_company_pb);
|
|
28
30
|
goog.exportSymbol('proto.BasePlantPOrganization', null, global);
|
|
29
31
|
goog.exportSymbol('proto.CreatePlantPOrganizationRequest', null, global);
|
|
30
32
|
goog.exportSymbol('proto.CreatePlantPOrganizationResponse', null, global);
|
|
@@ -301,7 +303,8 @@ proto.PlantPOrganization.toObject = function(includeInstance, msg) {
|
|
|
301
303
|
var f, obj = {
|
|
302
304
|
purchasingOrganizationReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
303
305
|
plantReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
304
|
-
description: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
306
|
+
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
307
|
+
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
305
308
|
};
|
|
306
309
|
|
|
307
310
|
if (includeInstance) {
|
|
@@ -350,6 +353,10 @@ proto.PlantPOrganization.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
350
353
|
var value = /** @type {string} */ (reader.readString());
|
|
351
354
|
msg.setDescription(value);
|
|
352
355
|
break;
|
|
356
|
+
case 4:
|
|
357
|
+
var value = /** @type {string} */ (reader.readString());
|
|
358
|
+
msg.setCompaniesReferencesId(value);
|
|
359
|
+
break;
|
|
353
360
|
default:
|
|
354
361
|
reader.skipField();
|
|
355
362
|
break;
|
|
@@ -400,6 +407,13 @@ proto.PlantPOrganization.serializeBinaryToWriter = function(message, writer) {
|
|
|
400
407
|
f
|
|
401
408
|
);
|
|
402
409
|
}
|
|
410
|
+
f = message.getCompaniesReferencesId();
|
|
411
|
+
if (f.length > 0) {
|
|
412
|
+
writer.writeString(
|
|
413
|
+
4,
|
|
414
|
+
f
|
|
415
|
+
);
|
|
416
|
+
}
|
|
403
417
|
};
|
|
404
418
|
|
|
405
419
|
|
|
@@ -457,6 +471,24 @@ proto.PlantPOrganization.prototype.setDescription = function(value) {
|
|
|
457
471
|
};
|
|
458
472
|
|
|
459
473
|
|
|
474
|
+
/**
|
|
475
|
+
* optional string companies_references_id = 4;
|
|
476
|
+
* @return {string}
|
|
477
|
+
*/
|
|
478
|
+
proto.PlantPOrganization.prototype.getCompaniesReferencesId = function() {
|
|
479
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* @param {string} value
|
|
485
|
+
* @return {!proto.PlantPOrganization} returns this
|
|
486
|
+
*/
|
|
487
|
+
proto.PlantPOrganization.prototype.setCompaniesReferencesId = function(value) {
|
|
488
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
|
|
460
492
|
|
|
461
493
|
|
|
462
494
|
|
|
@@ -491,7 +523,9 @@ proto.BasePlantPOrganization.toObject = function(includeInstance, msg) {
|
|
|
491
523
|
var f, obj = {
|
|
492
524
|
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
493
525
|
plant: (f = msg.getPlant()) && proto.POWorkLocation.toObject(includeInstance, f),
|
|
494
|
-
purchasingOrganizations: (f = msg.getPurchasingOrganizations()) && prisca_v1_purchasing_organization_purchasing_organization_pb.BasePurchasingOrganization.toObject(includeInstance, f)
|
|
526
|
+
purchasingOrganizations: (f = msg.getPurchasingOrganizations()) && prisca_v1_purchasing_organization_purchasing_organization_pb.BasePurchasingOrganization.toObject(includeInstance, f),
|
|
527
|
+
company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f),
|
|
528
|
+
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
495
529
|
};
|
|
496
530
|
|
|
497
531
|
if (includeInstance) {
|
|
@@ -542,6 +576,15 @@ proto.BasePlantPOrganization.deserializeBinaryFromReader = function(msg, reader)
|
|
|
542
576
|
reader.readMessage(value,prisca_v1_purchasing_organization_purchasing_organization_pb.BasePurchasingOrganization.deserializeBinaryFromReader);
|
|
543
577
|
msg.setPurchasingOrganizations(value);
|
|
544
578
|
break;
|
|
579
|
+
case 4:
|
|
580
|
+
var value = new prisca_v1_core_company_company_pb.Company;
|
|
581
|
+
reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
|
|
582
|
+
msg.setCompany(value);
|
|
583
|
+
break;
|
|
584
|
+
case 5:
|
|
585
|
+
var value = /** @type {string} */ (reader.readString());
|
|
586
|
+
msg.setCompaniesReferencesId(value);
|
|
587
|
+
break;
|
|
545
588
|
default:
|
|
546
589
|
reader.skipField();
|
|
547
590
|
break;
|
|
@@ -594,6 +637,21 @@ proto.BasePlantPOrganization.serializeBinaryToWriter = function(message, writer)
|
|
|
594
637
|
prisca_v1_purchasing_organization_purchasing_organization_pb.BasePurchasingOrganization.serializeBinaryToWriter
|
|
595
638
|
);
|
|
596
639
|
}
|
|
640
|
+
f = message.getCompany();
|
|
641
|
+
if (f != null) {
|
|
642
|
+
writer.writeMessage(
|
|
643
|
+
4,
|
|
644
|
+
f,
|
|
645
|
+
prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
|
|
646
|
+
);
|
|
647
|
+
}
|
|
648
|
+
f = message.getCompaniesReferencesId();
|
|
649
|
+
if (f.length > 0) {
|
|
650
|
+
writer.writeString(
|
|
651
|
+
5,
|
|
652
|
+
f
|
|
653
|
+
);
|
|
654
|
+
}
|
|
597
655
|
};
|
|
598
656
|
|
|
599
657
|
|
|
@@ -689,6 +747,61 @@ proto.BasePlantPOrganization.prototype.hasPurchasingOrganizations = function() {
|
|
|
689
747
|
};
|
|
690
748
|
|
|
691
749
|
|
|
750
|
+
/**
|
|
751
|
+
* optional Company company = 4;
|
|
752
|
+
* @return {?proto.Company}
|
|
753
|
+
*/
|
|
754
|
+
proto.BasePlantPOrganization.prototype.getCompany = function() {
|
|
755
|
+
return /** @type{?proto.Company} */ (
|
|
756
|
+
jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 4));
|
|
757
|
+
};
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* @param {?proto.Company|undefined} value
|
|
762
|
+
* @return {!proto.BasePlantPOrganization} returns this
|
|
763
|
+
*/
|
|
764
|
+
proto.BasePlantPOrganization.prototype.setCompany = function(value) {
|
|
765
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
766
|
+
};
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Clears the message field making it undefined.
|
|
771
|
+
* @return {!proto.BasePlantPOrganization} returns this
|
|
772
|
+
*/
|
|
773
|
+
proto.BasePlantPOrganization.prototype.clearCompany = function() {
|
|
774
|
+
return this.setCompany(undefined);
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Returns whether this field is set.
|
|
780
|
+
* @return {boolean}
|
|
781
|
+
*/
|
|
782
|
+
proto.BasePlantPOrganization.prototype.hasCompany = function() {
|
|
783
|
+
return jspb.Message.getField(this, 4) != null;
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* optional string companies_references_id = 5;
|
|
789
|
+
* @return {string}
|
|
790
|
+
*/
|
|
791
|
+
proto.BasePlantPOrganization.prototype.getCompaniesReferencesId = function() {
|
|
792
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
793
|
+
};
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* @param {string} value
|
|
798
|
+
* @return {!proto.BasePlantPOrganization} returns this
|
|
799
|
+
*/
|
|
800
|
+
proto.BasePlantPOrganization.prototype.setCompaniesReferencesId = function(value) {
|
|
801
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
802
|
+
};
|
|
803
|
+
|
|
804
|
+
|
|
692
805
|
|
|
693
806
|
|
|
694
807
|
|