@aldiokta/protocgen 1.0.16 → 1.0.18
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/core/company/company_pb.js +362 -99
- package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +1 -0
- package/prisca/v1/core/job_grade/job_grade_pb.js +157 -104
- package/prisca/v1/core/job_position/job_position_grpc_pb.js +4 -0
- package/prisca/v1/core/job_position/job_position_pb.js +955 -285
- package/prisca/v1/core/job_title/job_title_grpc_pb.js +1 -0
- package/prisca/v1/core/job_title/job_title_pb.js +417 -101
- package/prisca/v1/core/material/material_pb.js +159 -129
- package/prisca/v1/core/material_group/material_group_pb.js +39 -39
- package/prisca/v1/core/material_type/material_type_pb.js +55 -25
- package/prisca/v1/core/organization/organization_grpc_pb.js +3 -0
- package/prisca/v1/core/organization/organization_pb.js +831 -229
- package/prisca/v1/core/organization_level/organization_level_pb.js +40 -70
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +52 -52
- package/prisca/v1/core/users_role/users_role_grpc_pb.js +177 -0
- package/prisca/v1/core/users_role/users_role_pb.js +2372 -0
- package/prisca/v1/core/work_location/work_location_pb.js +221 -221
- package/prisca/v1/core/workflow/workflow_pb.js +59 -59
|
@@ -23,7 +23,10 @@ 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.BaseJobTitle', null, global);
|
|
29
|
+
goog.exportSymbol('proto.BaseJobTitleParent', null, global);
|
|
27
30
|
goog.exportSymbol('proto.CreateJobTitleRequest', null, global);
|
|
28
31
|
goog.exportSymbol('proto.CreateJobTitleResponse', null, global);
|
|
29
32
|
goog.exportSymbol('proto.DeleteJobTitleRequest', null, global);
|
|
@@ -77,6 +80,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
77
80
|
*/
|
|
78
81
|
proto.BaseJobTitle.displayName = 'proto.BaseJobTitle';
|
|
79
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Generated by JsPbCodeGenerator.
|
|
85
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
86
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
87
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
88
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
89
|
+
* valid.
|
|
90
|
+
* @extends {jspb.Message}
|
|
91
|
+
* @constructor
|
|
92
|
+
*/
|
|
93
|
+
proto.BaseJobTitleParent = function(opt_data) {
|
|
94
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
95
|
+
};
|
|
96
|
+
goog.inherits(proto.BaseJobTitleParent, jspb.Message);
|
|
97
|
+
if (goog.DEBUG && !COMPILED) {
|
|
98
|
+
/**
|
|
99
|
+
* @public
|
|
100
|
+
* @override
|
|
101
|
+
*/
|
|
102
|
+
proto.BaseJobTitleParent.displayName = 'proto.BaseJobTitleParent';
|
|
103
|
+
}
|
|
80
104
|
/**
|
|
81
105
|
* Generated by JsPbCodeGenerator.
|
|
82
106
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -322,8 +346,8 @@ proto.JobTitle.toObject = function(includeInstance, msg) {
|
|
|
322
346
|
code: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
323
347
|
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
324
348
|
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
325
|
-
|
|
326
|
-
|
|
349
|
+
parentReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
350
|
+
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
327
351
|
};
|
|
328
352
|
|
|
329
353
|
if (includeInstance) {
|
|
@@ -373,12 +397,12 @@ proto.JobTitle.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
373
397
|
msg.setDescription(value);
|
|
374
398
|
break;
|
|
375
399
|
case 4:
|
|
376
|
-
var value = /** @type {
|
|
377
|
-
msg.
|
|
400
|
+
var value = /** @type {string} */ (reader.readString());
|
|
401
|
+
msg.setParentReferencesId(value);
|
|
378
402
|
break;
|
|
379
403
|
case 5:
|
|
380
|
-
var value = /** @type {
|
|
381
|
-
msg.
|
|
404
|
+
var value = /** @type {string} */ (reader.readString());
|
|
405
|
+
msg.setCompaniesReferencesId(value);
|
|
382
406
|
break;
|
|
383
407
|
default:
|
|
384
408
|
reader.skipField();
|
|
@@ -430,16 +454,16 @@ proto.JobTitle.serializeBinaryToWriter = function(message, writer) {
|
|
|
430
454
|
f
|
|
431
455
|
);
|
|
432
456
|
}
|
|
433
|
-
f = message.
|
|
434
|
-
if (f
|
|
435
|
-
writer.
|
|
457
|
+
f = message.getParentReferencesId();
|
|
458
|
+
if (f.length > 0) {
|
|
459
|
+
writer.writeString(
|
|
436
460
|
4,
|
|
437
461
|
f
|
|
438
462
|
);
|
|
439
463
|
}
|
|
440
|
-
f = message.
|
|
441
|
-
if (f
|
|
442
|
-
writer.
|
|
464
|
+
f = message.getCompaniesReferencesId();
|
|
465
|
+
if (f.length > 0) {
|
|
466
|
+
writer.writeString(
|
|
443
467
|
5,
|
|
444
468
|
f
|
|
445
469
|
);
|
|
@@ -502,38 +526,38 @@ proto.JobTitle.prototype.setDescription = function(value) {
|
|
|
502
526
|
|
|
503
527
|
|
|
504
528
|
/**
|
|
505
|
-
* optional
|
|
506
|
-
* @return {
|
|
529
|
+
* optional string parent_references_id = 4;
|
|
530
|
+
* @return {string}
|
|
507
531
|
*/
|
|
508
|
-
proto.JobTitle.prototype.
|
|
509
|
-
return /** @type {
|
|
532
|
+
proto.JobTitle.prototype.getParentReferencesId = function() {
|
|
533
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
510
534
|
};
|
|
511
535
|
|
|
512
536
|
|
|
513
537
|
/**
|
|
514
|
-
* @param {
|
|
538
|
+
* @param {string} value
|
|
515
539
|
* @return {!proto.JobTitle} returns this
|
|
516
540
|
*/
|
|
517
|
-
proto.JobTitle.prototype.
|
|
518
|
-
return jspb.Message.
|
|
541
|
+
proto.JobTitle.prototype.setParentReferencesId = function(value) {
|
|
542
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
519
543
|
};
|
|
520
544
|
|
|
521
545
|
|
|
522
546
|
/**
|
|
523
|
-
* optional
|
|
524
|
-
* @return {
|
|
547
|
+
* optional string companies_references_id = 5;
|
|
548
|
+
* @return {string}
|
|
525
549
|
*/
|
|
526
|
-
proto.JobTitle.prototype.
|
|
527
|
-
return /** @type {
|
|
550
|
+
proto.JobTitle.prototype.getCompaniesReferencesId = function() {
|
|
551
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
528
552
|
};
|
|
529
553
|
|
|
530
554
|
|
|
531
555
|
/**
|
|
532
|
-
* @param {
|
|
556
|
+
* @param {string} value
|
|
533
557
|
* @return {!proto.JobTitle} returns this
|
|
534
558
|
*/
|
|
535
|
-
proto.JobTitle.prototype.
|
|
536
|
-
return jspb.Message.
|
|
559
|
+
proto.JobTitle.prototype.setCompaniesReferencesId = function(value) {
|
|
560
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
537
561
|
};
|
|
538
562
|
|
|
539
563
|
|
|
@@ -569,12 +593,13 @@ proto.BaseJobTitle.prototype.toObject = function(opt_includeInstance) {
|
|
|
569
593
|
*/
|
|
570
594
|
proto.BaseJobTitle.toObject = function(includeInstance, msg) {
|
|
571
595
|
var f, obj = {
|
|
572
|
-
|
|
596
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
573
597
|
code: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
574
598
|
name: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
575
599
|
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
576
|
-
|
|
577
|
-
|
|
600
|
+
parentReferencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
601
|
+
parent: (f = msg.getParent()) && proto.BaseJobTitleParent.toObject(includeInstance, f),
|
|
602
|
+
companies: (f = msg.getCompanies()) && prisca_v1_core_company_company_pb.BaseCompanyParent.toObject(includeInstance, f)
|
|
578
603
|
};
|
|
579
604
|
|
|
580
605
|
if (includeInstance) {
|
|
@@ -612,8 +637,8 @@ proto.BaseJobTitle.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
612
637
|
var field = reader.getFieldNumber();
|
|
613
638
|
switch (field) {
|
|
614
639
|
case 1:
|
|
615
|
-
var value = /** @type {
|
|
616
|
-
msg.
|
|
640
|
+
var value = /** @type {string} */ (reader.readString());
|
|
641
|
+
msg.setReferencesId(value);
|
|
617
642
|
break;
|
|
618
643
|
case 2:
|
|
619
644
|
var value = /** @type {string} */ (reader.readString());
|
|
@@ -628,12 +653,18 @@ proto.BaseJobTitle.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
628
653
|
msg.setDescription(value);
|
|
629
654
|
break;
|
|
630
655
|
case 5:
|
|
631
|
-
var value = /** @type {
|
|
632
|
-
msg.
|
|
656
|
+
var value = /** @type {string} */ (reader.readString());
|
|
657
|
+
msg.setParentReferencesId(value);
|
|
633
658
|
break;
|
|
634
659
|
case 6:
|
|
635
|
-
var value =
|
|
636
|
-
|
|
660
|
+
var value = new proto.BaseJobTitleParent;
|
|
661
|
+
reader.readMessage(value,proto.BaseJobTitleParent.deserializeBinaryFromReader);
|
|
662
|
+
msg.setParent(value);
|
|
663
|
+
break;
|
|
664
|
+
case 7:
|
|
665
|
+
var value = new prisca_v1_core_company_company_pb.BaseCompanyParent;
|
|
666
|
+
reader.readMessage(value,prisca_v1_core_company_company_pb.BaseCompanyParent.deserializeBinaryFromReader);
|
|
667
|
+
msg.setCompanies(value);
|
|
637
668
|
break;
|
|
638
669
|
default:
|
|
639
670
|
reader.skipField();
|
|
@@ -664,9 +695,9 @@ proto.BaseJobTitle.prototype.serializeBinary = function() {
|
|
|
664
695
|
*/
|
|
665
696
|
proto.BaseJobTitle.serializeBinaryToWriter = function(message, writer) {
|
|
666
697
|
var f = undefined;
|
|
667
|
-
f = message.
|
|
668
|
-
if (f
|
|
669
|
-
writer.
|
|
698
|
+
f = message.getReferencesId();
|
|
699
|
+
if (f.length > 0) {
|
|
700
|
+
writer.writeString(
|
|
670
701
|
1,
|
|
671
702
|
f
|
|
672
703
|
);
|
|
@@ -692,38 +723,47 @@ proto.BaseJobTitle.serializeBinaryToWriter = function(message, writer) {
|
|
|
692
723
|
f
|
|
693
724
|
);
|
|
694
725
|
}
|
|
695
|
-
f = message.
|
|
696
|
-
if (f
|
|
697
|
-
writer.
|
|
726
|
+
f = message.getParentReferencesId();
|
|
727
|
+
if (f.length > 0) {
|
|
728
|
+
writer.writeString(
|
|
698
729
|
5,
|
|
699
730
|
f
|
|
700
731
|
);
|
|
701
732
|
}
|
|
702
|
-
f = message.
|
|
703
|
-
if (f
|
|
704
|
-
writer.
|
|
733
|
+
f = message.getParent();
|
|
734
|
+
if (f != null) {
|
|
735
|
+
writer.writeMessage(
|
|
705
736
|
6,
|
|
706
|
-
f
|
|
737
|
+
f,
|
|
738
|
+
proto.BaseJobTitleParent.serializeBinaryToWriter
|
|
739
|
+
);
|
|
740
|
+
}
|
|
741
|
+
f = message.getCompanies();
|
|
742
|
+
if (f != null) {
|
|
743
|
+
writer.writeMessage(
|
|
744
|
+
7,
|
|
745
|
+
f,
|
|
746
|
+
prisca_v1_core_company_company_pb.BaseCompanyParent.serializeBinaryToWriter
|
|
707
747
|
);
|
|
708
748
|
}
|
|
709
749
|
};
|
|
710
750
|
|
|
711
751
|
|
|
712
752
|
/**
|
|
713
|
-
* optional
|
|
714
|
-
* @return {
|
|
753
|
+
* optional string references_id = 1;
|
|
754
|
+
* @return {string}
|
|
715
755
|
*/
|
|
716
|
-
proto.BaseJobTitle.prototype.
|
|
717
|
-
return /** @type {
|
|
756
|
+
proto.BaseJobTitle.prototype.getReferencesId = function() {
|
|
757
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
718
758
|
};
|
|
719
759
|
|
|
720
760
|
|
|
721
761
|
/**
|
|
722
|
-
* @param {
|
|
762
|
+
* @param {string} value
|
|
723
763
|
* @return {!proto.BaseJobTitle} returns this
|
|
724
764
|
*/
|
|
725
|
-
proto.BaseJobTitle.prototype.
|
|
726
|
-
return jspb.Message.
|
|
765
|
+
proto.BaseJobTitle.prototype.setReferencesId = function(value) {
|
|
766
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
727
767
|
};
|
|
728
768
|
|
|
729
769
|
|
|
@@ -782,38 +822,314 @@ proto.BaseJobTitle.prototype.setDescription = function(value) {
|
|
|
782
822
|
|
|
783
823
|
|
|
784
824
|
/**
|
|
785
|
-
* optional
|
|
786
|
-
* @return {
|
|
825
|
+
* optional string parent_references_id = 5;
|
|
826
|
+
* @return {string}
|
|
787
827
|
*/
|
|
788
|
-
proto.BaseJobTitle.prototype.
|
|
789
|
-
return /** @type {
|
|
828
|
+
proto.BaseJobTitle.prototype.getParentReferencesId = function() {
|
|
829
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
790
830
|
};
|
|
791
831
|
|
|
792
832
|
|
|
793
833
|
/**
|
|
794
|
-
* @param {
|
|
834
|
+
* @param {string} value
|
|
795
835
|
* @return {!proto.BaseJobTitle} returns this
|
|
796
836
|
*/
|
|
797
|
-
proto.BaseJobTitle.prototype.
|
|
798
|
-
return jspb.Message.
|
|
837
|
+
proto.BaseJobTitle.prototype.setParentReferencesId = function(value) {
|
|
838
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
799
839
|
};
|
|
800
840
|
|
|
801
841
|
|
|
802
842
|
/**
|
|
803
|
-
* optional
|
|
804
|
-
* @return {
|
|
843
|
+
* optional BaseJobTitleParent parent = 6;
|
|
844
|
+
* @return {?proto.BaseJobTitleParent}
|
|
805
845
|
*/
|
|
806
|
-
proto.BaseJobTitle.prototype.
|
|
807
|
-
return /** @type
|
|
846
|
+
proto.BaseJobTitle.prototype.getParent = function() {
|
|
847
|
+
return /** @type{?proto.BaseJobTitleParent} */ (
|
|
848
|
+
jspb.Message.getWrapperField(this, proto.BaseJobTitleParent, 6));
|
|
808
849
|
};
|
|
809
850
|
|
|
810
851
|
|
|
811
852
|
/**
|
|
812
|
-
* @param {
|
|
853
|
+
* @param {?proto.BaseJobTitleParent|undefined} value
|
|
854
|
+
* @return {!proto.BaseJobTitle} returns this
|
|
855
|
+
*/
|
|
856
|
+
proto.BaseJobTitle.prototype.setParent = function(value) {
|
|
857
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
858
|
+
};
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Clears the message field making it undefined.
|
|
813
863
|
* @return {!proto.BaseJobTitle} returns this
|
|
814
864
|
*/
|
|
815
|
-
proto.BaseJobTitle.prototype.
|
|
816
|
-
return
|
|
865
|
+
proto.BaseJobTitle.prototype.clearParent = function() {
|
|
866
|
+
return this.setParent(undefined);
|
|
867
|
+
};
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
/**
|
|
871
|
+
* Returns whether this field is set.
|
|
872
|
+
* @return {boolean}
|
|
873
|
+
*/
|
|
874
|
+
proto.BaseJobTitle.prototype.hasParent = function() {
|
|
875
|
+
return jspb.Message.getField(this, 6) != null;
|
|
876
|
+
};
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* optional BaseCompanyParent companies = 7;
|
|
881
|
+
* @return {?proto.BaseCompanyParent}
|
|
882
|
+
*/
|
|
883
|
+
proto.BaseJobTitle.prototype.getCompanies = function() {
|
|
884
|
+
return /** @type{?proto.BaseCompanyParent} */ (
|
|
885
|
+
jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.BaseCompanyParent, 7));
|
|
886
|
+
};
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* @param {?proto.BaseCompanyParent|undefined} value
|
|
891
|
+
* @return {!proto.BaseJobTitle} returns this
|
|
892
|
+
*/
|
|
893
|
+
proto.BaseJobTitle.prototype.setCompanies = function(value) {
|
|
894
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
895
|
+
};
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
/**
|
|
899
|
+
* Clears the message field making it undefined.
|
|
900
|
+
* @return {!proto.BaseJobTitle} returns this
|
|
901
|
+
*/
|
|
902
|
+
proto.BaseJobTitle.prototype.clearCompanies = function() {
|
|
903
|
+
return this.setCompanies(undefined);
|
|
904
|
+
};
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* Returns whether this field is set.
|
|
909
|
+
* @return {boolean}
|
|
910
|
+
*/
|
|
911
|
+
proto.BaseJobTitle.prototype.hasCompanies = function() {
|
|
912
|
+
return jspb.Message.getField(this, 7) != null;
|
|
913
|
+
};
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
920
|
+
/**
|
|
921
|
+
* Creates an object representation of this proto.
|
|
922
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
923
|
+
* Optional fields that are not set will be set to undefined.
|
|
924
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
925
|
+
* For the list of reserved names please see:
|
|
926
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
927
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
928
|
+
* JSPB instance for transitional soy proto support:
|
|
929
|
+
* http://goto/soy-param-migration
|
|
930
|
+
* @return {!Object}
|
|
931
|
+
*/
|
|
932
|
+
proto.BaseJobTitleParent.prototype.toObject = function(opt_includeInstance) {
|
|
933
|
+
return proto.BaseJobTitleParent.toObject(opt_includeInstance, this);
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* Static version of the {@see toObject} method.
|
|
939
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
940
|
+
* the JSPB instance for transitional soy proto support:
|
|
941
|
+
* http://goto/soy-param-migration
|
|
942
|
+
* @param {!proto.BaseJobTitleParent} msg The msg instance to transform.
|
|
943
|
+
* @return {!Object}
|
|
944
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
945
|
+
*/
|
|
946
|
+
proto.BaseJobTitleParent.toObject = function(includeInstance, msg) {
|
|
947
|
+
var f, obj = {
|
|
948
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
949
|
+
code: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
950
|
+
name: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
951
|
+
description: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
952
|
+
};
|
|
953
|
+
|
|
954
|
+
if (includeInstance) {
|
|
955
|
+
obj.$jspbMessageInstance = msg;
|
|
956
|
+
}
|
|
957
|
+
return obj;
|
|
958
|
+
};
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* Deserializes binary data (in protobuf wire format).
|
|
964
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
965
|
+
* @return {!proto.BaseJobTitleParent}
|
|
966
|
+
*/
|
|
967
|
+
proto.BaseJobTitleParent.deserializeBinary = function(bytes) {
|
|
968
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
969
|
+
var msg = new proto.BaseJobTitleParent;
|
|
970
|
+
return proto.BaseJobTitleParent.deserializeBinaryFromReader(msg, reader);
|
|
971
|
+
};
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
976
|
+
* given reader into the given message object.
|
|
977
|
+
* @param {!proto.BaseJobTitleParent} msg The message object to deserialize into.
|
|
978
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
979
|
+
* @return {!proto.BaseJobTitleParent}
|
|
980
|
+
*/
|
|
981
|
+
proto.BaseJobTitleParent.deserializeBinaryFromReader = function(msg, reader) {
|
|
982
|
+
while (reader.nextField()) {
|
|
983
|
+
if (reader.isEndGroup()) {
|
|
984
|
+
break;
|
|
985
|
+
}
|
|
986
|
+
var field = reader.getFieldNumber();
|
|
987
|
+
switch (field) {
|
|
988
|
+
case 1:
|
|
989
|
+
var value = /** @type {string} */ (reader.readString());
|
|
990
|
+
msg.setReferencesId(value);
|
|
991
|
+
break;
|
|
992
|
+
case 2:
|
|
993
|
+
var value = /** @type {string} */ (reader.readString());
|
|
994
|
+
msg.setCode(value);
|
|
995
|
+
break;
|
|
996
|
+
case 3:
|
|
997
|
+
var value = /** @type {string} */ (reader.readString());
|
|
998
|
+
msg.setName(value);
|
|
999
|
+
break;
|
|
1000
|
+
case 4:
|
|
1001
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1002
|
+
msg.setDescription(value);
|
|
1003
|
+
break;
|
|
1004
|
+
default:
|
|
1005
|
+
reader.skipField();
|
|
1006
|
+
break;
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
return msg;
|
|
1010
|
+
};
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1015
|
+
* @return {!Uint8Array}
|
|
1016
|
+
*/
|
|
1017
|
+
proto.BaseJobTitleParent.prototype.serializeBinary = function() {
|
|
1018
|
+
var writer = new jspb.BinaryWriter();
|
|
1019
|
+
proto.BaseJobTitleParent.serializeBinaryToWriter(this, writer);
|
|
1020
|
+
return writer.getResultBuffer();
|
|
1021
|
+
};
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1026
|
+
* format), writing to the given BinaryWriter.
|
|
1027
|
+
* @param {!proto.BaseJobTitleParent} message
|
|
1028
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1029
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1030
|
+
*/
|
|
1031
|
+
proto.BaseJobTitleParent.serializeBinaryToWriter = function(message, writer) {
|
|
1032
|
+
var f = undefined;
|
|
1033
|
+
f = message.getReferencesId();
|
|
1034
|
+
if (f.length > 0) {
|
|
1035
|
+
writer.writeString(
|
|
1036
|
+
1,
|
|
1037
|
+
f
|
|
1038
|
+
);
|
|
1039
|
+
}
|
|
1040
|
+
f = message.getCode();
|
|
1041
|
+
if (f.length > 0) {
|
|
1042
|
+
writer.writeString(
|
|
1043
|
+
2,
|
|
1044
|
+
f
|
|
1045
|
+
);
|
|
1046
|
+
}
|
|
1047
|
+
f = message.getName();
|
|
1048
|
+
if (f.length > 0) {
|
|
1049
|
+
writer.writeString(
|
|
1050
|
+
3,
|
|
1051
|
+
f
|
|
1052
|
+
);
|
|
1053
|
+
}
|
|
1054
|
+
f = message.getDescription();
|
|
1055
|
+
if (f.length > 0) {
|
|
1056
|
+
writer.writeString(
|
|
1057
|
+
4,
|
|
1058
|
+
f
|
|
1059
|
+
);
|
|
1060
|
+
}
|
|
1061
|
+
};
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* optional string references_id = 1;
|
|
1066
|
+
* @return {string}
|
|
1067
|
+
*/
|
|
1068
|
+
proto.BaseJobTitleParent.prototype.getReferencesId = function() {
|
|
1069
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1070
|
+
};
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* @param {string} value
|
|
1075
|
+
* @return {!proto.BaseJobTitleParent} returns this
|
|
1076
|
+
*/
|
|
1077
|
+
proto.BaseJobTitleParent.prototype.setReferencesId = function(value) {
|
|
1078
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1079
|
+
};
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* optional string code = 2;
|
|
1084
|
+
* @return {string}
|
|
1085
|
+
*/
|
|
1086
|
+
proto.BaseJobTitleParent.prototype.getCode = function() {
|
|
1087
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1088
|
+
};
|
|
1089
|
+
|
|
1090
|
+
|
|
1091
|
+
/**
|
|
1092
|
+
* @param {string} value
|
|
1093
|
+
* @return {!proto.BaseJobTitleParent} returns this
|
|
1094
|
+
*/
|
|
1095
|
+
proto.BaseJobTitleParent.prototype.setCode = function(value) {
|
|
1096
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1097
|
+
};
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* optional string name = 3;
|
|
1102
|
+
* @return {string}
|
|
1103
|
+
*/
|
|
1104
|
+
proto.BaseJobTitleParent.prototype.getName = function() {
|
|
1105
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1106
|
+
};
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* @param {string} value
|
|
1111
|
+
* @return {!proto.BaseJobTitleParent} returns this
|
|
1112
|
+
*/
|
|
1113
|
+
proto.BaseJobTitleParent.prototype.setName = function(value) {
|
|
1114
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1115
|
+
};
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* optional string description = 4;
|
|
1120
|
+
* @return {string}
|
|
1121
|
+
*/
|
|
1122
|
+
proto.BaseJobTitleParent.prototype.getDescription = function() {
|
|
1123
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1124
|
+
};
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* @param {string} value
|
|
1129
|
+
* @return {!proto.BaseJobTitleParent} returns this
|
|
1130
|
+
*/
|
|
1131
|
+
proto.BaseJobTitleParent.prototype.setDescription = function(value) {
|
|
1132
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
817
1133
|
};
|
|
818
1134
|
|
|
819
1135
|
|
|
@@ -849,7 +1165,7 @@ proto.JobTitleGetByIdRequest.prototype.toObject = function(opt_includeInstance)
|
|
|
849
1165
|
*/
|
|
850
1166
|
proto.JobTitleGetByIdRequest.toObject = function(includeInstance, msg) {
|
|
851
1167
|
var f, obj = {
|
|
852
|
-
|
|
1168
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
853
1169
|
};
|
|
854
1170
|
|
|
855
1171
|
if (includeInstance) {
|
|
@@ -887,8 +1203,8 @@ proto.JobTitleGetByIdRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
|
887
1203
|
var field = reader.getFieldNumber();
|
|
888
1204
|
switch (field) {
|
|
889
1205
|
case 1:
|
|
890
|
-
var value = /** @type {
|
|
891
|
-
msg.
|
|
1206
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1207
|
+
msg.setReferencesId(value);
|
|
892
1208
|
break;
|
|
893
1209
|
default:
|
|
894
1210
|
reader.skipField();
|
|
@@ -919,9 +1235,9 @@ proto.JobTitleGetByIdRequest.prototype.serializeBinary = function() {
|
|
|
919
1235
|
*/
|
|
920
1236
|
proto.JobTitleGetByIdRequest.serializeBinaryToWriter = function(message, writer) {
|
|
921
1237
|
var f = undefined;
|
|
922
|
-
f = message.
|
|
923
|
-
if (f
|
|
924
|
-
writer.
|
|
1238
|
+
f = message.getReferencesId();
|
|
1239
|
+
if (f.length > 0) {
|
|
1240
|
+
writer.writeString(
|
|
925
1241
|
1,
|
|
926
1242
|
f
|
|
927
1243
|
);
|
|
@@ -930,20 +1246,20 @@ proto.JobTitleGetByIdRequest.serializeBinaryToWriter = function(message, writer)
|
|
|
930
1246
|
|
|
931
1247
|
|
|
932
1248
|
/**
|
|
933
|
-
* optional
|
|
934
|
-
* @return {
|
|
1249
|
+
* optional string references_id = 1;
|
|
1250
|
+
* @return {string}
|
|
935
1251
|
*/
|
|
936
|
-
proto.JobTitleGetByIdRequest.prototype.
|
|
937
|
-
return /** @type {
|
|
1252
|
+
proto.JobTitleGetByIdRequest.prototype.getReferencesId = function() {
|
|
1253
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
938
1254
|
};
|
|
939
1255
|
|
|
940
1256
|
|
|
941
1257
|
/**
|
|
942
|
-
* @param {
|
|
1258
|
+
* @param {string} value
|
|
943
1259
|
* @return {!proto.JobTitleGetByIdRequest} returns this
|
|
944
1260
|
*/
|
|
945
|
-
proto.JobTitleGetByIdRequest.prototype.
|
|
946
|
-
return jspb.Message.
|
|
1261
|
+
proto.JobTitleGetByIdRequest.prototype.setReferencesId = function(value) {
|
|
1262
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
947
1263
|
};
|
|
948
1264
|
|
|
949
1265
|
|
|
@@ -1130,7 +1446,7 @@ proto.UpdateJobTitleRequest.prototype.toObject = function(opt_includeInstance) {
|
|
|
1130
1446
|
*/
|
|
1131
1447
|
proto.UpdateJobTitleRequest.toObject = function(includeInstance, msg) {
|
|
1132
1448
|
var f, obj = {
|
|
1133
|
-
|
|
1449
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1134
1450
|
jobTitle: (f = msg.getJobTitle()) && proto.JobTitle.toObject(includeInstance, f)
|
|
1135
1451
|
};
|
|
1136
1452
|
|
|
@@ -1169,8 +1485,8 @@ proto.UpdateJobTitleRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
|
1169
1485
|
var field = reader.getFieldNumber();
|
|
1170
1486
|
switch (field) {
|
|
1171
1487
|
case 1:
|
|
1172
|
-
var value = /** @type {
|
|
1173
|
-
msg.
|
|
1488
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1489
|
+
msg.setReferencesId(value);
|
|
1174
1490
|
break;
|
|
1175
1491
|
case 2:
|
|
1176
1492
|
var value = new proto.JobTitle;
|
|
@@ -1206,9 +1522,9 @@ proto.UpdateJobTitleRequest.prototype.serializeBinary = function() {
|
|
|
1206
1522
|
*/
|
|
1207
1523
|
proto.UpdateJobTitleRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1208
1524
|
var f = undefined;
|
|
1209
|
-
f = message.
|
|
1210
|
-
if (f
|
|
1211
|
-
writer.
|
|
1525
|
+
f = message.getReferencesId();
|
|
1526
|
+
if (f.length > 0) {
|
|
1527
|
+
writer.writeString(
|
|
1212
1528
|
1,
|
|
1213
1529
|
f
|
|
1214
1530
|
);
|
|
@@ -1225,20 +1541,20 @@ proto.UpdateJobTitleRequest.serializeBinaryToWriter = function(message, writer)
|
|
|
1225
1541
|
|
|
1226
1542
|
|
|
1227
1543
|
/**
|
|
1228
|
-
* optional
|
|
1229
|
-
* @return {
|
|
1544
|
+
* optional string references_id = 1;
|
|
1545
|
+
* @return {string}
|
|
1230
1546
|
*/
|
|
1231
|
-
proto.UpdateJobTitleRequest.prototype.
|
|
1232
|
-
return /** @type {
|
|
1547
|
+
proto.UpdateJobTitleRequest.prototype.getReferencesId = function() {
|
|
1548
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1233
1549
|
};
|
|
1234
1550
|
|
|
1235
1551
|
|
|
1236
1552
|
/**
|
|
1237
|
-
* @param {
|
|
1553
|
+
* @param {string} value
|
|
1238
1554
|
* @return {!proto.UpdateJobTitleRequest} returns this
|
|
1239
1555
|
*/
|
|
1240
|
-
proto.UpdateJobTitleRequest.prototype.
|
|
1241
|
-
return jspb.Message.
|
|
1556
|
+
proto.UpdateJobTitleRequest.prototype.setReferencesId = function(value) {
|
|
1557
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1242
1558
|
};
|
|
1243
1559
|
|
|
1244
1560
|
|
|
@@ -2439,7 +2755,7 @@ proto.JobTitleGetByIdResponse.prototype.toObject = function(opt_includeInstance)
|
|
|
2439
2755
|
*/
|
|
2440
2756
|
proto.JobTitleGetByIdResponse.toObject = function(includeInstance, msg) {
|
|
2441
2757
|
var f, obj = {
|
|
2442
|
-
jobTitle: (f = msg.getJobTitle()) && proto.
|
|
2758
|
+
jobTitle: (f = msg.getJobTitle()) && proto.BaseJobTitle.toObject(includeInstance, f),
|
|
2443
2759
|
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
2444
2760
|
};
|
|
2445
2761
|
|
|
@@ -2478,8 +2794,8 @@ proto.JobTitleGetByIdResponse.deserializeBinaryFromReader = function(msg, reader
|
|
|
2478
2794
|
var field = reader.getFieldNumber();
|
|
2479
2795
|
switch (field) {
|
|
2480
2796
|
case 1:
|
|
2481
|
-
var value = new proto.
|
|
2482
|
-
reader.readMessage(value,proto.
|
|
2797
|
+
var value = new proto.BaseJobTitle;
|
|
2798
|
+
reader.readMessage(value,proto.BaseJobTitle.deserializeBinaryFromReader);
|
|
2483
2799
|
msg.setJobTitle(value);
|
|
2484
2800
|
break;
|
|
2485
2801
|
case 2:
|
|
@@ -2521,7 +2837,7 @@ proto.JobTitleGetByIdResponse.serializeBinaryToWriter = function(message, writer
|
|
|
2521
2837
|
writer.writeMessage(
|
|
2522
2838
|
1,
|
|
2523
2839
|
f,
|
|
2524
|
-
proto.
|
|
2840
|
+
proto.BaseJobTitle.serializeBinaryToWriter
|
|
2525
2841
|
);
|
|
2526
2842
|
}
|
|
2527
2843
|
f = message.getMeta();
|
|
@@ -2536,17 +2852,17 @@ proto.JobTitleGetByIdResponse.serializeBinaryToWriter = function(message, writer
|
|
|
2536
2852
|
|
|
2537
2853
|
|
|
2538
2854
|
/**
|
|
2539
|
-
* optional
|
|
2540
|
-
* @return {?proto.
|
|
2855
|
+
* optional BaseJobTitle job_title = 1;
|
|
2856
|
+
* @return {?proto.BaseJobTitle}
|
|
2541
2857
|
*/
|
|
2542
2858
|
proto.JobTitleGetByIdResponse.prototype.getJobTitle = function() {
|
|
2543
|
-
return /** @type{?proto.
|
|
2544
|
-
jspb.Message.getWrapperField(this, proto.
|
|
2859
|
+
return /** @type{?proto.BaseJobTitle} */ (
|
|
2860
|
+
jspb.Message.getWrapperField(this, proto.BaseJobTitle, 1));
|
|
2545
2861
|
};
|
|
2546
2862
|
|
|
2547
2863
|
|
|
2548
2864
|
/**
|
|
2549
|
-
* @param {?proto.
|
|
2865
|
+
* @param {?proto.BaseJobTitle|undefined} value
|
|
2550
2866
|
* @return {!proto.JobTitleGetByIdResponse} returns this
|
|
2551
2867
|
*/
|
|
2552
2868
|
proto.JobTitleGetByIdResponse.prototype.setJobTitle = function(value) {
|