@aldiokta/protocgen 1.0.42 → 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 +446 -31
- package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +1 -0
- package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +87 -55
- 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
|
|
@@ -301,8 +325,9 @@ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
|
301
325
|
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
302
326
|
telephone: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
303
327
|
faxNumber: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
304
|
-
extension: jspb.Message.getFieldWithDefault(msg, 5,
|
|
305
|
-
emailAddress: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
328
|
+
extension: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
329
|
+
emailAddress: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
330
|
+
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
306
331
|
};
|
|
307
332
|
|
|
308
333
|
if (includeInstance) {
|
|
@@ -356,13 +381,17 @@ proto.PurchasingGroup.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
356
381
|
msg.setFaxNumber(value);
|
|
357
382
|
break;
|
|
358
383
|
case 5:
|
|
359
|
-
var value = /** @type {
|
|
384
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
360
385
|
msg.setExtension$(value);
|
|
361
386
|
break;
|
|
362
387
|
case 6:
|
|
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;
|
|
@@ -421,8 +450,8 @@ proto.PurchasingGroup.serializeBinaryToWriter = function(message, writer) {
|
|
|
421
450
|
);
|
|
422
451
|
}
|
|
423
452
|
f = message.getExtension$();
|
|
424
|
-
if (f
|
|
425
|
-
writer.
|
|
453
|
+
if (f !== 0) {
|
|
454
|
+
writer.writeInt64(
|
|
426
455
|
5,
|
|
427
456
|
f
|
|
428
457
|
);
|
|
@@ -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
|
|
|
@@ -510,20 +546,20 @@ proto.PurchasingGroup.prototype.setFaxNumber = function(value) {
|
|
|
510
546
|
|
|
511
547
|
|
|
512
548
|
/**
|
|
513
|
-
* optional
|
|
514
|
-
* @return {
|
|
549
|
+
* optional int64 extension = 5;
|
|
550
|
+
* @return {number}
|
|
515
551
|
*/
|
|
516
552
|
proto.PurchasingGroup.prototype.getExtension$ = function() {
|
|
517
|
-
return /** @type {
|
|
553
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
518
554
|
};
|
|
519
555
|
|
|
520
556
|
|
|
521
557
|
/**
|
|
522
|
-
* @param {
|
|
558
|
+
* @param {number} value
|
|
523
559
|
* @return {!proto.PurchasingGroup} returns this
|
|
524
560
|
*/
|
|
525
561
|
proto.PurchasingGroup.prototype.setExtension$ = function(value) {
|
|
526
|
-
return jspb.Message.
|
|
562
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
527
563
|
};
|
|
528
564
|
|
|
529
565
|
|
|
@@ -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)) {
|