@aldiokta/protocgen 1.0.21 → 1.0.23

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.
@@ -23,6 +23,11 @@ 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_location_location_pb = require('../../../../prisca/v1/core/location/location_pb.js');
27
+ goog.object.extend(proto, prisca_v1_core_location_location_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);
30
+ goog.exportSymbol('proto.BaseWorkLocation', null, global);
26
31
  goog.exportSymbol('proto.CreateWorkLocationRequest', null, global);
27
32
  goog.exportSymbol('proto.CreateWorkLocationResponse', null, global);
28
33
  goog.exportSymbol('proto.DeleteWorkLocationRequest', null, global);
@@ -55,6 +60,27 @@ if (goog.DEBUG && !COMPILED) {
55
60
  */
56
61
  proto.WorkLocation.displayName = 'proto.WorkLocation';
57
62
  }
63
+ /**
64
+ * Generated by JsPbCodeGenerator.
65
+ * @param {Array=} opt_data Optional initial data array, typically from a
66
+ * server response, or constructed directly in Javascript. The array is used
67
+ * in place and becomes part of the constructed object. It is not cloned.
68
+ * If no data is provided, the constructed object will be empty, but still
69
+ * valid.
70
+ * @extends {jspb.Message}
71
+ * @constructor
72
+ */
73
+ proto.BaseWorkLocation = function(opt_data) {
74
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
75
+ };
76
+ goog.inherits(proto.BaseWorkLocation, jspb.Message);
77
+ if (goog.DEBUG && !COMPILED) {
78
+ /**
79
+ * @public
80
+ * @override
81
+ */
82
+ proto.BaseWorkLocation.displayName = 'proto.BaseWorkLocation';
83
+ }
58
84
  /**
59
85
  * Generated by JsPbCodeGenerator.
60
86
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -312,12 +338,12 @@ npwpAddress: jspb.Message.getFieldWithDefault(msg, 12, ""),
312
338
  latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0),
313
339
  longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 14, 0.0),
314
340
  radius: jspb.Message.getFieldWithDefault(msg, 15, 0),
315
- countryReferencesId: jspb.Message.getFieldWithDefault(msg, 16, 0),
316
- regionReferencesId: jspb.Message.getFieldWithDefault(msg, 17, 0),
317
- cityReferencesId: jspb.Message.getFieldWithDefault(msg, 18, 0),
318
- districtReferencesId: jspb.Message.getFieldWithDefault(msg, 19, 0),
319
- provinceReferencesId: jspb.Message.getFieldWithDefault(msg, 20, 0),
320
- areaReferencesId: jspb.Message.getFieldWithDefault(msg, 21, 0),
341
+ countryReferencesId: jspb.Message.getFieldWithDefault(msg, 16, ""),
342
+ villageReferencesId: jspb.Message.getFieldWithDefault(msg, 17, ""),
343
+ cityReferencesId: jspb.Message.getFieldWithDefault(msg, 18, ""),
344
+ districtReferencesId: jspb.Message.getFieldWithDefault(msg, 19, ""),
345
+ provinceReferencesId: jspb.Message.getFieldWithDefault(msg, 20, ""),
346
+ areaReferencesId: jspb.Message.getFieldWithDefault(msg, 21, ""),
321
347
  taxOfficeLocation: jspb.Message.getFieldWithDefault(msg, 22, ""),
322
348
  referencesId: jspb.Message.getFieldWithDefault(msg, 23, "")
323
349
  };
@@ -417,27 +443,27 @@ proto.WorkLocation.deserializeBinaryFromReader = function(msg, reader) {
417
443
  msg.setRadius(value);
418
444
  break;
419
445
  case 16:
420
- var value = /** @type {number} */ (reader.readInt64());
446
+ var value = /** @type {string} */ (reader.readString());
421
447
  msg.setCountryReferencesId(value);
422
448
  break;
423
449
  case 17:
424
- var value = /** @type {number} */ (reader.readInt64());
425
- msg.setRegionReferencesId(value);
450
+ var value = /** @type {string} */ (reader.readString());
451
+ msg.setVillageReferencesId(value);
426
452
  break;
427
453
  case 18:
428
- var value = /** @type {number} */ (reader.readInt64());
454
+ var value = /** @type {string} */ (reader.readString());
429
455
  msg.setCityReferencesId(value);
430
456
  break;
431
457
  case 19:
432
- var value = /** @type {number} */ (reader.readInt64());
458
+ var value = /** @type {string} */ (reader.readString());
433
459
  msg.setDistrictReferencesId(value);
434
460
  break;
435
461
  case 20:
436
- var value = /** @type {number} */ (reader.readInt64());
462
+ var value = /** @type {string} */ (reader.readString());
437
463
  msg.setProvinceReferencesId(value);
438
464
  break;
439
465
  case 21:
440
- var value = /** @type {number} */ (reader.readInt64());
466
+ var value = /** @type {string} */ (reader.readString());
441
467
  msg.setAreaReferencesId(value);
442
468
  break;
443
469
  case 22:
@@ -583,43 +609,43 @@ proto.WorkLocation.serializeBinaryToWriter = function(message, writer) {
583
609
  );
584
610
  }
585
611
  f = message.getCountryReferencesId();
586
- if (f !== 0) {
587
- writer.writeInt64(
612
+ if (f.length > 0) {
613
+ writer.writeString(
588
614
  16,
589
615
  f
590
616
  );
591
617
  }
592
- f = message.getRegionReferencesId();
593
- if (f !== 0) {
594
- writer.writeInt64(
618
+ f = message.getVillageReferencesId();
619
+ if (f.length > 0) {
620
+ writer.writeString(
595
621
  17,
596
622
  f
597
623
  );
598
624
  }
599
625
  f = message.getCityReferencesId();
600
- if (f !== 0) {
601
- writer.writeInt64(
626
+ if (f.length > 0) {
627
+ writer.writeString(
602
628
  18,
603
629
  f
604
630
  );
605
631
  }
606
632
  f = message.getDistrictReferencesId();
607
- if (f !== 0) {
608
- writer.writeInt64(
633
+ if (f.length > 0) {
634
+ writer.writeString(
609
635
  19,
610
636
  f
611
637
  );
612
638
  }
613
639
  f = message.getProvinceReferencesId();
614
- if (f !== 0) {
615
- writer.writeInt64(
640
+ if (f.length > 0) {
641
+ writer.writeString(
616
642
  20,
617
643
  f
618
644
  );
619
645
  }
620
646
  f = message.getAreaReferencesId();
621
- if (f !== 0) {
622
- writer.writeInt64(
647
+ if (f.length > 0) {
648
+ writer.writeString(
623
649
  21,
624
650
  f
625
651
  );
@@ -642,416 +668,1512 @@ proto.WorkLocation.serializeBinaryToWriter = function(message, writer) {
642
668
 
643
669
 
644
670
  /**
645
- * optional string companies_references_id = 1;
671
+ * optional string companies_references_id = 1;
672
+ * @return {string}
673
+ */
674
+ proto.WorkLocation.prototype.getCompaniesReferencesId = function() {
675
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
676
+ };
677
+
678
+
679
+ /**
680
+ * @param {string} value
681
+ * @return {!proto.WorkLocation} returns this
682
+ */
683
+ proto.WorkLocation.prototype.setCompaniesReferencesId = function(value) {
684
+ return jspb.Message.setProto3StringField(this, 1, value);
685
+ };
686
+
687
+
688
+ /**
689
+ * optional string code = 2;
690
+ * @return {string}
691
+ */
692
+ proto.WorkLocation.prototype.getCode = function() {
693
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
694
+ };
695
+
696
+
697
+ /**
698
+ * @param {string} value
699
+ * @return {!proto.WorkLocation} returns this
700
+ */
701
+ proto.WorkLocation.prototype.setCode = function(value) {
702
+ return jspb.Message.setProto3StringField(this, 2, value);
703
+ };
704
+
705
+
706
+ /**
707
+ * optional string location_name = 3;
708
+ * @return {string}
709
+ */
710
+ proto.WorkLocation.prototype.getLocationName = function() {
711
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
712
+ };
713
+
714
+
715
+ /**
716
+ * @param {string} value
717
+ * @return {!proto.WorkLocation} returns this
718
+ */
719
+ proto.WorkLocation.prototype.setLocationName = function(value) {
720
+ return jspb.Message.setProto3StringField(this, 3, value);
721
+ };
722
+
723
+
724
+ /**
725
+ * optional string alias = 4;
726
+ * @return {string}
727
+ */
728
+ proto.WorkLocation.prototype.getAlias = function() {
729
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
730
+ };
731
+
732
+
733
+ /**
734
+ * @param {string} value
735
+ * @return {!proto.WorkLocation} returns this
736
+ */
737
+ proto.WorkLocation.prototype.setAlias = function(value) {
738
+ return jspb.Message.setProto3StringField(this, 4, value);
739
+ };
740
+
741
+
742
+ /**
743
+ * optional string address = 5;
744
+ * @return {string}
745
+ */
746
+ proto.WorkLocation.prototype.getAddress = function() {
747
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
748
+ };
749
+
750
+
751
+ /**
752
+ * @param {string} value
753
+ * @return {!proto.WorkLocation} returns this
754
+ */
755
+ proto.WorkLocation.prototype.setAddress = function(value) {
756
+ return jspb.Message.setProto3StringField(this, 5, value);
757
+ };
758
+
759
+
760
+ /**
761
+ * optional string letter_address_line1 = 6;
762
+ * @return {string}
763
+ */
764
+ proto.WorkLocation.prototype.getLetterAddressLine1 = function() {
765
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
766
+ };
767
+
768
+
769
+ /**
770
+ * @param {string} value
771
+ * @return {!proto.WorkLocation} returns this
772
+ */
773
+ proto.WorkLocation.prototype.setLetterAddressLine1 = function(value) {
774
+ return jspb.Message.setProto3StringField(this, 6, value);
775
+ };
776
+
777
+
778
+ /**
779
+ * optional string letter_address_line2 = 7;
780
+ * @return {string}
781
+ */
782
+ proto.WorkLocation.prototype.getLetterAddressLine2 = function() {
783
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
784
+ };
785
+
786
+
787
+ /**
788
+ * @param {string} value
789
+ * @return {!proto.WorkLocation} returns this
790
+ */
791
+ proto.WorkLocation.prototype.setLetterAddressLine2 = function(value) {
792
+ return jspb.Message.setProto3StringField(this, 7, value);
793
+ };
794
+
795
+
796
+ /**
797
+ * optional string letter_address_line3 = 8;
798
+ * @return {string}
799
+ */
800
+ proto.WorkLocation.prototype.getLetterAddressLine3 = function() {
801
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
802
+ };
803
+
804
+
805
+ /**
806
+ * @param {string} value
807
+ * @return {!proto.WorkLocation} returns this
808
+ */
809
+ proto.WorkLocation.prototype.setLetterAddressLine3 = function(value) {
810
+ return jspb.Message.setProto3StringField(this, 8, value);
811
+ };
812
+
813
+
814
+ /**
815
+ * optional string phone_number = 9;
816
+ * @return {string}
817
+ */
818
+ proto.WorkLocation.prototype.getPhoneNumber = function() {
819
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
820
+ };
821
+
822
+
823
+ /**
824
+ * @param {string} value
825
+ * @return {!proto.WorkLocation} returns this
826
+ */
827
+ proto.WorkLocation.prototype.setPhoneNumber = function(value) {
828
+ return jspb.Message.setProto3StringField(this, 9, value);
829
+ };
830
+
831
+
832
+ /**
833
+ * optional string email = 10;
834
+ * @return {string}
835
+ */
836
+ proto.WorkLocation.prototype.getEmail = function() {
837
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
838
+ };
839
+
840
+
841
+ /**
842
+ * @param {string} value
843
+ * @return {!proto.WorkLocation} returns this
844
+ */
845
+ proto.WorkLocation.prototype.setEmail = function(value) {
846
+ return jspb.Message.setProto3StringField(this, 10, value);
847
+ };
848
+
849
+
850
+ /**
851
+ * optional string npwp = 11;
852
+ * @return {string}
853
+ */
854
+ proto.WorkLocation.prototype.getNpwp = function() {
855
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
856
+ };
857
+
858
+
859
+ /**
860
+ * @param {string} value
861
+ * @return {!proto.WorkLocation} returns this
862
+ */
863
+ proto.WorkLocation.prototype.setNpwp = function(value) {
864
+ return jspb.Message.setProto3StringField(this, 11, value);
865
+ };
866
+
867
+
868
+ /**
869
+ * optional string npwp_address = 12;
870
+ * @return {string}
871
+ */
872
+ proto.WorkLocation.prototype.getNpwpAddress = function() {
873
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
874
+ };
875
+
876
+
877
+ /**
878
+ * @param {string} value
879
+ * @return {!proto.WorkLocation} returns this
880
+ */
881
+ proto.WorkLocation.prototype.setNpwpAddress = function(value) {
882
+ return jspb.Message.setProto3StringField(this, 12, value);
883
+ };
884
+
885
+
886
+ /**
887
+ * optional double latitude = 13;
888
+ * @return {number}
889
+ */
890
+ proto.WorkLocation.prototype.getLatitude = function() {
891
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 13, 0.0));
892
+ };
893
+
894
+
895
+ /**
896
+ * @param {number} value
897
+ * @return {!proto.WorkLocation} returns this
898
+ */
899
+ proto.WorkLocation.prototype.setLatitude = function(value) {
900
+ return jspb.Message.setProto3FloatField(this, 13, value);
901
+ };
902
+
903
+
904
+ /**
905
+ * optional double longitude = 14;
906
+ * @return {number}
907
+ */
908
+ proto.WorkLocation.prototype.getLongitude = function() {
909
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 14, 0.0));
910
+ };
911
+
912
+
913
+ /**
914
+ * @param {number} value
915
+ * @return {!proto.WorkLocation} returns this
916
+ */
917
+ proto.WorkLocation.prototype.setLongitude = function(value) {
918
+ return jspb.Message.setProto3FloatField(this, 14, value);
919
+ };
920
+
921
+
922
+ /**
923
+ * optional int64 radius = 15;
924
+ * @return {number}
925
+ */
926
+ proto.WorkLocation.prototype.getRadius = function() {
927
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
928
+ };
929
+
930
+
931
+ /**
932
+ * @param {number} value
933
+ * @return {!proto.WorkLocation} returns this
934
+ */
935
+ proto.WorkLocation.prototype.setRadius = function(value) {
936
+ return jspb.Message.setProto3IntField(this, 15, value);
937
+ };
938
+
939
+
940
+ /**
941
+ * optional string country_references_id = 16;
942
+ * @return {string}
943
+ */
944
+ proto.WorkLocation.prototype.getCountryReferencesId = function() {
945
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
946
+ };
947
+
948
+
949
+ /**
950
+ * @param {string} value
951
+ * @return {!proto.WorkLocation} returns this
952
+ */
953
+ proto.WorkLocation.prototype.setCountryReferencesId = function(value) {
954
+ return jspb.Message.setProto3StringField(this, 16, value);
955
+ };
956
+
957
+
958
+ /**
959
+ * optional string village_references_id = 17;
960
+ * @return {string}
961
+ */
962
+ proto.WorkLocation.prototype.getVillageReferencesId = function() {
963
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
964
+ };
965
+
966
+
967
+ /**
968
+ * @param {string} value
969
+ * @return {!proto.WorkLocation} returns this
970
+ */
971
+ proto.WorkLocation.prototype.setVillageReferencesId = function(value) {
972
+ return jspb.Message.setProto3StringField(this, 17, value);
973
+ };
974
+
975
+
976
+ /**
977
+ * optional string city_references_id = 18;
978
+ * @return {string}
979
+ */
980
+ proto.WorkLocation.prototype.getCityReferencesId = function() {
981
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
982
+ };
983
+
984
+
985
+ /**
986
+ * @param {string} value
987
+ * @return {!proto.WorkLocation} returns this
988
+ */
989
+ proto.WorkLocation.prototype.setCityReferencesId = function(value) {
990
+ return jspb.Message.setProto3StringField(this, 18, value);
991
+ };
992
+
993
+
994
+ /**
995
+ * optional string district_references_id = 19;
996
+ * @return {string}
997
+ */
998
+ proto.WorkLocation.prototype.getDistrictReferencesId = function() {
999
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
1000
+ };
1001
+
1002
+
1003
+ /**
1004
+ * @param {string} value
1005
+ * @return {!proto.WorkLocation} returns this
1006
+ */
1007
+ proto.WorkLocation.prototype.setDistrictReferencesId = function(value) {
1008
+ return jspb.Message.setProto3StringField(this, 19, value);
1009
+ };
1010
+
1011
+
1012
+ /**
1013
+ * optional string province_references_id = 20;
1014
+ * @return {string}
1015
+ */
1016
+ proto.WorkLocation.prototype.getProvinceReferencesId = function() {
1017
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
1018
+ };
1019
+
1020
+
1021
+ /**
1022
+ * @param {string} value
1023
+ * @return {!proto.WorkLocation} returns this
1024
+ */
1025
+ proto.WorkLocation.prototype.setProvinceReferencesId = function(value) {
1026
+ return jspb.Message.setProto3StringField(this, 20, value);
1027
+ };
1028
+
1029
+
1030
+ /**
1031
+ * optional string area_references_id = 21;
1032
+ * @return {string}
1033
+ */
1034
+ proto.WorkLocation.prototype.getAreaReferencesId = function() {
1035
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
1036
+ };
1037
+
1038
+
1039
+ /**
1040
+ * @param {string} value
1041
+ * @return {!proto.WorkLocation} returns this
1042
+ */
1043
+ proto.WorkLocation.prototype.setAreaReferencesId = function(value) {
1044
+ return jspb.Message.setProto3StringField(this, 21, value);
1045
+ };
1046
+
1047
+
1048
+ /**
1049
+ * optional string tax_office_location = 22;
1050
+ * @return {string}
1051
+ */
1052
+ proto.WorkLocation.prototype.getTaxOfficeLocation = function() {
1053
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
1054
+ };
1055
+
1056
+
1057
+ /**
1058
+ * @param {string} value
1059
+ * @return {!proto.WorkLocation} returns this
1060
+ */
1061
+ proto.WorkLocation.prototype.setTaxOfficeLocation = function(value) {
1062
+ return jspb.Message.setProto3StringField(this, 22, value);
1063
+ };
1064
+
1065
+
1066
+ /**
1067
+ * optional string references_id = 23;
1068
+ * @return {string}
1069
+ */
1070
+ proto.WorkLocation.prototype.getReferencesId = function() {
1071
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
1072
+ };
1073
+
1074
+
1075
+ /**
1076
+ * @param {string} value
1077
+ * @return {!proto.WorkLocation} returns this
1078
+ */
1079
+ proto.WorkLocation.prototype.setReferencesId = function(value) {
1080
+ return jspb.Message.setProto3StringField(this, 23, value);
1081
+ };
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1088
+ /**
1089
+ * Creates an object representation of this proto.
1090
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1091
+ * Optional fields that are not set will be set to undefined.
1092
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1093
+ * For the list of reserved names please see:
1094
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1095
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1096
+ * JSPB instance for transitional soy proto support:
1097
+ * http://goto/soy-param-migration
1098
+ * @return {!Object}
1099
+ */
1100
+ proto.BaseWorkLocation.prototype.toObject = function(opt_includeInstance) {
1101
+ return proto.BaseWorkLocation.toObject(opt_includeInstance, this);
1102
+ };
1103
+
1104
+
1105
+ /**
1106
+ * Static version of the {@see toObject} method.
1107
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1108
+ * the JSPB instance for transitional soy proto support:
1109
+ * http://goto/soy-param-migration
1110
+ * @param {!proto.BaseWorkLocation} msg The msg instance to transform.
1111
+ * @return {!Object}
1112
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1113
+ */
1114
+ proto.BaseWorkLocation.toObject = function(includeInstance, msg) {
1115
+ var f, obj = {
1116
+ code: jspb.Message.getFieldWithDefault(msg, 1, ""),
1117
+ locationName: jspb.Message.getFieldWithDefault(msg, 2, ""),
1118
+ alias: jspb.Message.getFieldWithDefault(msg, 3, ""),
1119
+ address: jspb.Message.getFieldWithDefault(msg, 4, ""),
1120
+ letterAddressLine1: jspb.Message.getFieldWithDefault(msg, 5, ""),
1121
+ letterAddressLine2: jspb.Message.getFieldWithDefault(msg, 6, ""),
1122
+ letterAddressLine3: jspb.Message.getFieldWithDefault(msg, 7, ""),
1123
+ phoneNumber: jspb.Message.getFieldWithDefault(msg, 8, ""),
1124
+ email: jspb.Message.getFieldWithDefault(msg, 9, ""),
1125
+ npwp: jspb.Message.getFieldWithDefault(msg, 10, ""),
1126
+ npwpAddress: jspb.Message.getFieldWithDefault(msg, 11, ""),
1127
+ latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
1128
+ longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0),
1129
+ radius: jspb.Message.getFieldWithDefault(msg, 14, 0),
1130
+ countryReferencesId: jspb.Message.getFieldWithDefault(msg, 15, ""),
1131
+ country: (f = msg.getCountry()) && prisca_v1_core_location_location_pb.Country.toObject(includeInstance, f),
1132
+ villageReferencesId: jspb.Message.getFieldWithDefault(msg, 17, ""),
1133
+ village: (f = msg.getVillage()) && prisca_v1_core_location_location_pb.Village.toObject(includeInstance, f),
1134
+ cityReferencesId: jspb.Message.getFieldWithDefault(msg, 19, ""),
1135
+ city: (f = msg.getCity()) && prisca_v1_core_location_location_pb.City.toObject(includeInstance, f),
1136
+ districtReferencesId: jspb.Message.getFieldWithDefault(msg, 21, ""),
1137
+ district: (f = msg.getDistrict()) && prisca_v1_core_location_location_pb.District.toObject(includeInstance, f),
1138
+ provinceReferencesId: jspb.Message.getFieldWithDefault(msg, 23, ""),
1139
+ province: (f = msg.getProvince()) && prisca_v1_core_location_location_pb.Province.toObject(includeInstance, f),
1140
+ areaReferencesId: jspb.Message.getFieldWithDefault(msg, 25, ""),
1141
+ taxOfficeLocation: jspb.Message.getFieldWithDefault(msg, 26, ""),
1142
+ referencesId: jspb.Message.getFieldWithDefault(msg, 27, ""),
1143
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 28, ""),
1144
+ companies: (f = msg.getCompanies()) && prisca_v1_core_company_company_pb.BaseCompanyParent.toObject(includeInstance, f)
1145
+ };
1146
+
1147
+ if (includeInstance) {
1148
+ obj.$jspbMessageInstance = msg;
1149
+ }
1150
+ return obj;
1151
+ };
1152
+ }
1153
+
1154
+
1155
+ /**
1156
+ * Deserializes binary data (in protobuf wire format).
1157
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1158
+ * @return {!proto.BaseWorkLocation}
1159
+ */
1160
+ proto.BaseWorkLocation.deserializeBinary = function(bytes) {
1161
+ var reader = new jspb.BinaryReader(bytes);
1162
+ var msg = new proto.BaseWorkLocation;
1163
+ return proto.BaseWorkLocation.deserializeBinaryFromReader(msg, reader);
1164
+ };
1165
+
1166
+
1167
+ /**
1168
+ * Deserializes binary data (in protobuf wire format) from the
1169
+ * given reader into the given message object.
1170
+ * @param {!proto.BaseWorkLocation} msg The message object to deserialize into.
1171
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1172
+ * @return {!proto.BaseWorkLocation}
1173
+ */
1174
+ proto.BaseWorkLocation.deserializeBinaryFromReader = function(msg, reader) {
1175
+ while (reader.nextField()) {
1176
+ if (reader.isEndGroup()) {
1177
+ break;
1178
+ }
1179
+ var field = reader.getFieldNumber();
1180
+ switch (field) {
1181
+ case 1:
1182
+ var value = /** @type {string} */ (reader.readString());
1183
+ msg.setCode(value);
1184
+ break;
1185
+ case 2:
1186
+ var value = /** @type {string} */ (reader.readString());
1187
+ msg.setLocationName(value);
1188
+ break;
1189
+ case 3:
1190
+ var value = /** @type {string} */ (reader.readString());
1191
+ msg.setAlias(value);
1192
+ break;
1193
+ case 4:
1194
+ var value = /** @type {string} */ (reader.readString());
1195
+ msg.setAddress(value);
1196
+ break;
1197
+ case 5:
1198
+ var value = /** @type {string} */ (reader.readString());
1199
+ msg.setLetterAddressLine1(value);
1200
+ break;
1201
+ case 6:
1202
+ var value = /** @type {string} */ (reader.readString());
1203
+ msg.setLetterAddressLine2(value);
1204
+ break;
1205
+ case 7:
1206
+ var value = /** @type {string} */ (reader.readString());
1207
+ msg.setLetterAddressLine3(value);
1208
+ break;
1209
+ case 8:
1210
+ var value = /** @type {string} */ (reader.readString());
1211
+ msg.setPhoneNumber(value);
1212
+ break;
1213
+ case 9:
1214
+ var value = /** @type {string} */ (reader.readString());
1215
+ msg.setEmail(value);
1216
+ break;
1217
+ case 10:
1218
+ var value = /** @type {string} */ (reader.readString());
1219
+ msg.setNpwp(value);
1220
+ break;
1221
+ case 11:
1222
+ var value = /** @type {string} */ (reader.readString());
1223
+ msg.setNpwpAddress(value);
1224
+ break;
1225
+ case 12:
1226
+ var value = /** @type {number} */ (reader.readDouble());
1227
+ msg.setLatitude(value);
1228
+ break;
1229
+ case 13:
1230
+ var value = /** @type {number} */ (reader.readDouble());
1231
+ msg.setLongitude(value);
1232
+ break;
1233
+ case 14:
1234
+ var value = /** @type {number} */ (reader.readInt64());
1235
+ msg.setRadius(value);
1236
+ break;
1237
+ case 15:
1238
+ var value = /** @type {string} */ (reader.readString());
1239
+ msg.setCountryReferencesId(value);
1240
+ break;
1241
+ case 16:
1242
+ var value = new prisca_v1_core_location_location_pb.Country;
1243
+ reader.readMessage(value,prisca_v1_core_location_location_pb.Country.deserializeBinaryFromReader);
1244
+ msg.setCountry(value);
1245
+ break;
1246
+ case 17:
1247
+ var value = /** @type {string} */ (reader.readString());
1248
+ msg.setVillageReferencesId(value);
1249
+ break;
1250
+ case 18:
1251
+ var value = new prisca_v1_core_location_location_pb.Village;
1252
+ reader.readMessage(value,prisca_v1_core_location_location_pb.Village.deserializeBinaryFromReader);
1253
+ msg.setVillage(value);
1254
+ break;
1255
+ case 19:
1256
+ var value = /** @type {string} */ (reader.readString());
1257
+ msg.setCityReferencesId(value);
1258
+ break;
1259
+ case 20:
1260
+ var value = new prisca_v1_core_location_location_pb.City;
1261
+ reader.readMessage(value,prisca_v1_core_location_location_pb.City.deserializeBinaryFromReader);
1262
+ msg.setCity(value);
1263
+ break;
1264
+ case 21:
1265
+ var value = /** @type {string} */ (reader.readString());
1266
+ msg.setDistrictReferencesId(value);
1267
+ break;
1268
+ case 22:
1269
+ var value = new prisca_v1_core_location_location_pb.District;
1270
+ reader.readMessage(value,prisca_v1_core_location_location_pb.District.deserializeBinaryFromReader);
1271
+ msg.setDistrict(value);
1272
+ break;
1273
+ case 23:
1274
+ var value = /** @type {string} */ (reader.readString());
1275
+ msg.setProvinceReferencesId(value);
1276
+ break;
1277
+ case 24:
1278
+ var value = new prisca_v1_core_location_location_pb.Province;
1279
+ reader.readMessage(value,prisca_v1_core_location_location_pb.Province.deserializeBinaryFromReader);
1280
+ msg.setProvince(value);
1281
+ break;
1282
+ case 25:
1283
+ var value = /** @type {string} */ (reader.readString());
1284
+ msg.setAreaReferencesId(value);
1285
+ break;
1286
+ case 26:
1287
+ var value = /** @type {string} */ (reader.readString());
1288
+ msg.setTaxOfficeLocation(value);
1289
+ break;
1290
+ case 27:
1291
+ var value = /** @type {string} */ (reader.readString());
1292
+ msg.setReferencesId(value);
1293
+ break;
1294
+ case 28:
1295
+ var value = /** @type {string} */ (reader.readString());
1296
+ msg.setCompaniesReferencesId(value);
1297
+ break;
1298
+ case 29:
1299
+ var value = new prisca_v1_core_company_company_pb.BaseCompanyParent;
1300
+ reader.readMessage(value,prisca_v1_core_company_company_pb.BaseCompanyParent.deserializeBinaryFromReader);
1301
+ msg.setCompanies(value);
1302
+ break;
1303
+ default:
1304
+ reader.skipField();
1305
+ break;
1306
+ }
1307
+ }
1308
+ return msg;
1309
+ };
1310
+
1311
+
1312
+ /**
1313
+ * Serializes the message to binary data (in protobuf wire format).
1314
+ * @return {!Uint8Array}
1315
+ */
1316
+ proto.BaseWorkLocation.prototype.serializeBinary = function() {
1317
+ var writer = new jspb.BinaryWriter();
1318
+ proto.BaseWorkLocation.serializeBinaryToWriter(this, writer);
1319
+ return writer.getResultBuffer();
1320
+ };
1321
+
1322
+
1323
+ /**
1324
+ * Serializes the given message to binary data (in protobuf wire
1325
+ * format), writing to the given BinaryWriter.
1326
+ * @param {!proto.BaseWorkLocation} message
1327
+ * @param {!jspb.BinaryWriter} writer
1328
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1329
+ */
1330
+ proto.BaseWorkLocation.serializeBinaryToWriter = function(message, writer) {
1331
+ var f = undefined;
1332
+ f = message.getCode();
1333
+ if (f.length > 0) {
1334
+ writer.writeString(
1335
+ 1,
1336
+ f
1337
+ );
1338
+ }
1339
+ f = message.getLocationName();
1340
+ if (f.length > 0) {
1341
+ writer.writeString(
1342
+ 2,
1343
+ f
1344
+ );
1345
+ }
1346
+ f = message.getAlias();
1347
+ if (f.length > 0) {
1348
+ writer.writeString(
1349
+ 3,
1350
+ f
1351
+ );
1352
+ }
1353
+ f = message.getAddress();
1354
+ if (f.length > 0) {
1355
+ writer.writeString(
1356
+ 4,
1357
+ f
1358
+ );
1359
+ }
1360
+ f = message.getLetterAddressLine1();
1361
+ if (f.length > 0) {
1362
+ writer.writeString(
1363
+ 5,
1364
+ f
1365
+ );
1366
+ }
1367
+ f = message.getLetterAddressLine2();
1368
+ if (f.length > 0) {
1369
+ writer.writeString(
1370
+ 6,
1371
+ f
1372
+ );
1373
+ }
1374
+ f = message.getLetterAddressLine3();
1375
+ if (f.length > 0) {
1376
+ writer.writeString(
1377
+ 7,
1378
+ f
1379
+ );
1380
+ }
1381
+ f = message.getPhoneNumber();
1382
+ if (f.length > 0) {
1383
+ writer.writeString(
1384
+ 8,
1385
+ f
1386
+ );
1387
+ }
1388
+ f = message.getEmail();
1389
+ if (f.length > 0) {
1390
+ writer.writeString(
1391
+ 9,
1392
+ f
1393
+ );
1394
+ }
1395
+ f = message.getNpwp();
1396
+ if (f.length > 0) {
1397
+ writer.writeString(
1398
+ 10,
1399
+ f
1400
+ );
1401
+ }
1402
+ f = message.getNpwpAddress();
1403
+ if (f.length > 0) {
1404
+ writer.writeString(
1405
+ 11,
1406
+ f
1407
+ );
1408
+ }
1409
+ f = message.getLatitude();
1410
+ if (f !== 0.0) {
1411
+ writer.writeDouble(
1412
+ 12,
1413
+ f
1414
+ );
1415
+ }
1416
+ f = message.getLongitude();
1417
+ if (f !== 0.0) {
1418
+ writer.writeDouble(
1419
+ 13,
1420
+ f
1421
+ );
1422
+ }
1423
+ f = message.getRadius();
1424
+ if (f !== 0) {
1425
+ writer.writeInt64(
1426
+ 14,
1427
+ f
1428
+ );
1429
+ }
1430
+ f = message.getCountryReferencesId();
1431
+ if (f.length > 0) {
1432
+ writer.writeString(
1433
+ 15,
1434
+ f
1435
+ );
1436
+ }
1437
+ f = message.getCountry();
1438
+ if (f != null) {
1439
+ writer.writeMessage(
1440
+ 16,
1441
+ f,
1442
+ prisca_v1_core_location_location_pb.Country.serializeBinaryToWriter
1443
+ );
1444
+ }
1445
+ f = message.getVillageReferencesId();
1446
+ if (f.length > 0) {
1447
+ writer.writeString(
1448
+ 17,
1449
+ f
1450
+ );
1451
+ }
1452
+ f = message.getVillage();
1453
+ if (f != null) {
1454
+ writer.writeMessage(
1455
+ 18,
1456
+ f,
1457
+ prisca_v1_core_location_location_pb.Village.serializeBinaryToWriter
1458
+ );
1459
+ }
1460
+ f = message.getCityReferencesId();
1461
+ if (f.length > 0) {
1462
+ writer.writeString(
1463
+ 19,
1464
+ f
1465
+ );
1466
+ }
1467
+ f = message.getCity();
1468
+ if (f != null) {
1469
+ writer.writeMessage(
1470
+ 20,
1471
+ f,
1472
+ prisca_v1_core_location_location_pb.City.serializeBinaryToWriter
1473
+ );
1474
+ }
1475
+ f = message.getDistrictReferencesId();
1476
+ if (f.length > 0) {
1477
+ writer.writeString(
1478
+ 21,
1479
+ f
1480
+ );
1481
+ }
1482
+ f = message.getDistrict();
1483
+ if (f != null) {
1484
+ writer.writeMessage(
1485
+ 22,
1486
+ f,
1487
+ prisca_v1_core_location_location_pb.District.serializeBinaryToWriter
1488
+ );
1489
+ }
1490
+ f = message.getProvinceReferencesId();
1491
+ if (f.length > 0) {
1492
+ writer.writeString(
1493
+ 23,
1494
+ f
1495
+ );
1496
+ }
1497
+ f = message.getProvince();
1498
+ if (f != null) {
1499
+ writer.writeMessage(
1500
+ 24,
1501
+ f,
1502
+ prisca_v1_core_location_location_pb.Province.serializeBinaryToWriter
1503
+ );
1504
+ }
1505
+ f = message.getAreaReferencesId();
1506
+ if (f.length > 0) {
1507
+ writer.writeString(
1508
+ 25,
1509
+ f
1510
+ );
1511
+ }
1512
+ f = message.getTaxOfficeLocation();
1513
+ if (f.length > 0) {
1514
+ writer.writeString(
1515
+ 26,
1516
+ f
1517
+ );
1518
+ }
1519
+ f = message.getReferencesId();
1520
+ if (f.length > 0) {
1521
+ writer.writeString(
1522
+ 27,
1523
+ f
1524
+ );
1525
+ }
1526
+ f = message.getCompaniesReferencesId();
1527
+ if (f.length > 0) {
1528
+ writer.writeString(
1529
+ 28,
1530
+ f
1531
+ );
1532
+ }
1533
+ f = message.getCompanies();
1534
+ if (f != null) {
1535
+ writer.writeMessage(
1536
+ 29,
1537
+ f,
1538
+ prisca_v1_core_company_company_pb.BaseCompanyParent.serializeBinaryToWriter
1539
+ );
1540
+ }
1541
+ };
1542
+
1543
+
1544
+ /**
1545
+ * optional string code = 1;
1546
+ * @return {string}
1547
+ */
1548
+ proto.BaseWorkLocation.prototype.getCode = function() {
1549
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1550
+ };
1551
+
1552
+
1553
+ /**
1554
+ * @param {string} value
1555
+ * @return {!proto.BaseWorkLocation} returns this
1556
+ */
1557
+ proto.BaseWorkLocation.prototype.setCode = function(value) {
1558
+ return jspb.Message.setProto3StringField(this, 1, value);
1559
+ };
1560
+
1561
+
1562
+ /**
1563
+ * optional string location_name = 2;
1564
+ * @return {string}
1565
+ */
1566
+ proto.BaseWorkLocation.prototype.getLocationName = function() {
1567
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1568
+ };
1569
+
1570
+
1571
+ /**
1572
+ * @param {string} value
1573
+ * @return {!proto.BaseWorkLocation} returns this
1574
+ */
1575
+ proto.BaseWorkLocation.prototype.setLocationName = function(value) {
1576
+ return jspb.Message.setProto3StringField(this, 2, value);
1577
+ };
1578
+
1579
+
1580
+ /**
1581
+ * optional string alias = 3;
1582
+ * @return {string}
1583
+ */
1584
+ proto.BaseWorkLocation.prototype.getAlias = function() {
1585
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1586
+ };
1587
+
1588
+
1589
+ /**
1590
+ * @param {string} value
1591
+ * @return {!proto.BaseWorkLocation} returns this
1592
+ */
1593
+ proto.BaseWorkLocation.prototype.setAlias = function(value) {
1594
+ return jspb.Message.setProto3StringField(this, 3, value);
1595
+ };
1596
+
1597
+
1598
+ /**
1599
+ * optional string address = 4;
1600
+ * @return {string}
1601
+ */
1602
+ proto.BaseWorkLocation.prototype.getAddress = function() {
1603
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1604
+ };
1605
+
1606
+
1607
+ /**
1608
+ * @param {string} value
1609
+ * @return {!proto.BaseWorkLocation} returns this
1610
+ */
1611
+ proto.BaseWorkLocation.prototype.setAddress = function(value) {
1612
+ return jspb.Message.setProto3StringField(this, 4, value);
1613
+ };
1614
+
1615
+
1616
+ /**
1617
+ * optional string letter_address_line1 = 5;
1618
+ * @return {string}
1619
+ */
1620
+ proto.BaseWorkLocation.prototype.getLetterAddressLine1 = function() {
1621
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1622
+ };
1623
+
1624
+
1625
+ /**
1626
+ * @param {string} value
1627
+ * @return {!proto.BaseWorkLocation} returns this
1628
+ */
1629
+ proto.BaseWorkLocation.prototype.setLetterAddressLine1 = function(value) {
1630
+ return jspb.Message.setProto3StringField(this, 5, value);
1631
+ };
1632
+
1633
+
1634
+ /**
1635
+ * optional string letter_address_line2 = 6;
1636
+ * @return {string}
1637
+ */
1638
+ proto.BaseWorkLocation.prototype.getLetterAddressLine2 = function() {
1639
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1640
+ };
1641
+
1642
+
1643
+ /**
1644
+ * @param {string} value
1645
+ * @return {!proto.BaseWorkLocation} returns this
1646
+ */
1647
+ proto.BaseWorkLocation.prototype.setLetterAddressLine2 = function(value) {
1648
+ return jspb.Message.setProto3StringField(this, 6, value);
1649
+ };
1650
+
1651
+
1652
+ /**
1653
+ * optional string letter_address_line3 = 7;
1654
+ * @return {string}
1655
+ */
1656
+ proto.BaseWorkLocation.prototype.getLetterAddressLine3 = function() {
1657
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1658
+ };
1659
+
1660
+
1661
+ /**
1662
+ * @param {string} value
1663
+ * @return {!proto.BaseWorkLocation} returns this
1664
+ */
1665
+ proto.BaseWorkLocation.prototype.setLetterAddressLine3 = function(value) {
1666
+ return jspb.Message.setProto3StringField(this, 7, value);
1667
+ };
1668
+
1669
+
1670
+ /**
1671
+ * optional string phone_number = 8;
646
1672
  * @return {string}
647
1673
  */
648
- proto.WorkLocation.prototype.getCompaniesReferencesId = function() {
649
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1674
+ proto.BaseWorkLocation.prototype.getPhoneNumber = function() {
1675
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
650
1676
  };
651
1677
 
652
1678
 
653
1679
  /**
654
1680
  * @param {string} value
655
- * @return {!proto.WorkLocation} returns this
1681
+ * @return {!proto.BaseWorkLocation} returns this
656
1682
  */
657
- proto.WorkLocation.prototype.setCompaniesReferencesId = function(value) {
658
- return jspb.Message.setProto3StringField(this, 1, value);
1683
+ proto.BaseWorkLocation.prototype.setPhoneNumber = function(value) {
1684
+ return jspb.Message.setProto3StringField(this, 8, value);
659
1685
  };
660
1686
 
661
1687
 
662
1688
  /**
663
- * optional string code = 2;
1689
+ * optional string email = 9;
664
1690
  * @return {string}
665
1691
  */
666
- proto.WorkLocation.prototype.getCode = function() {
667
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1692
+ proto.BaseWorkLocation.prototype.getEmail = function() {
1693
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
668
1694
  };
669
1695
 
670
1696
 
671
1697
  /**
672
1698
  * @param {string} value
673
- * @return {!proto.WorkLocation} returns this
1699
+ * @return {!proto.BaseWorkLocation} returns this
674
1700
  */
675
- proto.WorkLocation.prototype.setCode = function(value) {
676
- return jspb.Message.setProto3StringField(this, 2, value);
1701
+ proto.BaseWorkLocation.prototype.setEmail = function(value) {
1702
+ return jspb.Message.setProto3StringField(this, 9, value);
677
1703
  };
678
1704
 
679
1705
 
680
1706
  /**
681
- * optional string location_name = 3;
1707
+ * optional string npwp = 10;
682
1708
  * @return {string}
683
1709
  */
684
- proto.WorkLocation.prototype.getLocationName = function() {
685
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1710
+ proto.BaseWorkLocation.prototype.getNpwp = function() {
1711
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
686
1712
  };
687
1713
 
688
1714
 
689
1715
  /**
690
1716
  * @param {string} value
691
- * @return {!proto.WorkLocation} returns this
1717
+ * @return {!proto.BaseWorkLocation} returns this
692
1718
  */
693
- proto.WorkLocation.prototype.setLocationName = function(value) {
694
- return jspb.Message.setProto3StringField(this, 3, value);
1719
+ proto.BaseWorkLocation.prototype.setNpwp = function(value) {
1720
+ return jspb.Message.setProto3StringField(this, 10, value);
695
1721
  };
696
1722
 
697
1723
 
698
1724
  /**
699
- * optional string alias = 4;
1725
+ * optional string npwp_address = 11;
700
1726
  * @return {string}
701
1727
  */
702
- proto.WorkLocation.prototype.getAlias = function() {
703
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1728
+ proto.BaseWorkLocation.prototype.getNpwpAddress = function() {
1729
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
704
1730
  };
705
1731
 
706
1732
 
707
1733
  /**
708
1734
  * @param {string} value
709
- * @return {!proto.WorkLocation} returns this
1735
+ * @return {!proto.BaseWorkLocation} returns this
710
1736
  */
711
- proto.WorkLocation.prototype.setAlias = function(value) {
712
- return jspb.Message.setProto3StringField(this, 4, value);
1737
+ proto.BaseWorkLocation.prototype.setNpwpAddress = function(value) {
1738
+ return jspb.Message.setProto3StringField(this, 11, value);
713
1739
  };
714
1740
 
715
1741
 
716
1742
  /**
717
- * optional string address = 5;
718
- * @return {string}
1743
+ * optional double latitude = 12;
1744
+ * @return {number}
719
1745
  */
720
- proto.WorkLocation.prototype.getAddress = function() {
721
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1746
+ proto.BaseWorkLocation.prototype.getLatitude = function() {
1747
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
722
1748
  };
723
1749
 
724
1750
 
725
1751
  /**
726
- * @param {string} value
727
- * @return {!proto.WorkLocation} returns this
1752
+ * @param {number} value
1753
+ * @return {!proto.BaseWorkLocation} returns this
728
1754
  */
729
- proto.WorkLocation.prototype.setAddress = function(value) {
730
- return jspb.Message.setProto3StringField(this, 5, value);
1755
+ proto.BaseWorkLocation.prototype.setLatitude = function(value) {
1756
+ return jspb.Message.setProto3FloatField(this, 12, value);
731
1757
  };
732
1758
 
733
1759
 
734
1760
  /**
735
- * optional string letter_address_line1 = 6;
736
- * @return {string}
1761
+ * optional double longitude = 13;
1762
+ * @return {number}
737
1763
  */
738
- proto.WorkLocation.prototype.getLetterAddressLine1 = function() {
739
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1764
+ proto.BaseWorkLocation.prototype.getLongitude = function() {
1765
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 13, 0.0));
740
1766
  };
741
1767
 
742
1768
 
743
1769
  /**
744
- * @param {string} value
745
- * @return {!proto.WorkLocation} returns this
1770
+ * @param {number} value
1771
+ * @return {!proto.BaseWorkLocation} returns this
746
1772
  */
747
- proto.WorkLocation.prototype.setLetterAddressLine1 = function(value) {
748
- return jspb.Message.setProto3StringField(this, 6, value);
1773
+ proto.BaseWorkLocation.prototype.setLongitude = function(value) {
1774
+ return jspb.Message.setProto3FloatField(this, 13, value);
749
1775
  };
750
1776
 
751
1777
 
752
1778
  /**
753
- * optional string letter_address_line2 = 7;
754
- * @return {string}
1779
+ * optional int64 radius = 14;
1780
+ * @return {number}
755
1781
  */
756
- proto.WorkLocation.prototype.getLetterAddressLine2 = function() {
757
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1782
+ proto.BaseWorkLocation.prototype.getRadius = function() {
1783
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
758
1784
  };
759
1785
 
760
1786
 
761
1787
  /**
762
- * @param {string} value
763
- * @return {!proto.WorkLocation} returns this
1788
+ * @param {number} value
1789
+ * @return {!proto.BaseWorkLocation} returns this
764
1790
  */
765
- proto.WorkLocation.prototype.setLetterAddressLine2 = function(value) {
766
- return jspb.Message.setProto3StringField(this, 7, value);
1791
+ proto.BaseWorkLocation.prototype.setRadius = function(value) {
1792
+ return jspb.Message.setProto3IntField(this, 14, value);
767
1793
  };
768
1794
 
769
1795
 
770
1796
  /**
771
- * optional string letter_address_line3 = 8;
1797
+ * optional string country_references_id = 15;
772
1798
  * @return {string}
773
1799
  */
774
- proto.WorkLocation.prototype.getLetterAddressLine3 = function() {
775
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1800
+ proto.BaseWorkLocation.prototype.getCountryReferencesId = function() {
1801
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
776
1802
  };
777
1803
 
778
1804
 
779
1805
  /**
780
1806
  * @param {string} value
781
- * @return {!proto.WorkLocation} returns this
1807
+ * @return {!proto.BaseWorkLocation} returns this
782
1808
  */
783
- proto.WorkLocation.prototype.setLetterAddressLine3 = function(value) {
784
- return jspb.Message.setProto3StringField(this, 8, value);
1809
+ proto.BaseWorkLocation.prototype.setCountryReferencesId = function(value) {
1810
+ return jspb.Message.setProto3StringField(this, 15, value);
785
1811
  };
786
1812
 
787
1813
 
788
1814
  /**
789
- * optional string phone_number = 9;
790
- * @return {string}
1815
+ * optional Country country = 16;
1816
+ * @return {?proto.Country}
791
1817
  */
792
- proto.WorkLocation.prototype.getPhoneNumber = function() {
793
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1818
+ proto.BaseWorkLocation.prototype.getCountry = function() {
1819
+ return /** @type{?proto.Country} */ (
1820
+ jspb.Message.getWrapperField(this, prisca_v1_core_location_location_pb.Country, 16));
794
1821
  };
795
1822
 
796
1823
 
797
1824
  /**
798
- * @param {string} value
799
- * @return {!proto.WorkLocation} returns this
1825
+ * @param {?proto.Country|undefined} value
1826
+ * @return {!proto.BaseWorkLocation} returns this
1827
+ */
1828
+ proto.BaseWorkLocation.prototype.setCountry = function(value) {
1829
+ return jspb.Message.setWrapperField(this, 16, value);
1830
+ };
1831
+
1832
+
1833
+ /**
1834
+ * Clears the message field making it undefined.
1835
+ * @return {!proto.BaseWorkLocation} returns this
800
1836
  */
801
- proto.WorkLocation.prototype.setPhoneNumber = function(value) {
802
- return jspb.Message.setProto3StringField(this, 9, value);
1837
+ proto.BaseWorkLocation.prototype.clearCountry = function() {
1838
+ return this.setCountry(undefined);
803
1839
  };
804
1840
 
805
1841
 
806
1842
  /**
807
- * optional string email = 10;
1843
+ * Returns whether this field is set.
1844
+ * @return {boolean}
1845
+ */
1846
+ proto.BaseWorkLocation.prototype.hasCountry = function() {
1847
+ return jspb.Message.getField(this, 16) != null;
1848
+ };
1849
+
1850
+
1851
+ /**
1852
+ * optional string village_references_id = 17;
808
1853
  * @return {string}
809
1854
  */
810
- proto.WorkLocation.prototype.getEmail = function() {
811
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1855
+ proto.BaseWorkLocation.prototype.getVillageReferencesId = function() {
1856
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
812
1857
  };
813
1858
 
814
1859
 
815
1860
  /**
816
1861
  * @param {string} value
817
- * @return {!proto.WorkLocation} returns this
1862
+ * @return {!proto.BaseWorkLocation} returns this
818
1863
  */
819
- proto.WorkLocation.prototype.setEmail = function(value) {
820
- return jspb.Message.setProto3StringField(this, 10, value);
1864
+ proto.BaseWorkLocation.prototype.setVillageReferencesId = function(value) {
1865
+ return jspb.Message.setProto3StringField(this, 17, value);
821
1866
  };
822
1867
 
823
1868
 
824
1869
  /**
825
- * optional string npwp = 11;
826
- * @return {string}
1870
+ * optional Village village = 18;
1871
+ * @return {?proto.Village}
827
1872
  */
828
- proto.WorkLocation.prototype.getNpwp = function() {
829
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1873
+ proto.BaseWorkLocation.prototype.getVillage = function() {
1874
+ return /** @type{?proto.Village} */ (
1875
+ jspb.Message.getWrapperField(this, prisca_v1_core_location_location_pb.Village, 18));
830
1876
  };
831
1877
 
832
1878
 
833
1879
  /**
834
- * @param {string} value
835
- * @return {!proto.WorkLocation} returns this
1880
+ * @param {?proto.Village|undefined} value
1881
+ * @return {!proto.BaseWorkLocation} returns this
1882
+ */
1883
+ proto.BaseWorkLocation.prototype.setVillage = function(value) {
1884
+ return jspb.Message.setWrapperField(this, 18, value);
1885
+ };
1886
+
1887
+
1888
+ /**
1889
+ * Clears the message field making it undefined.
1890
+ * @return {!proto.BaseWorkLocation} returns this
836
1891
  */
837
- proto.WorkLocation.prototype.setNpwp = function(value) {
838
- return jspb.Message.setProto3StringField(this, 11, value);
1892
+ proto.BaseWorkLocation.prototype.clearVillage = function() {
1893
+ return this.setVillage(undefined);
839
1894
  };
840
1895
 
841
1896
 
842
1897
  /**
843
- * optional string npwp_address = 12;
1898
+ * Returns whether this field is set.
1899
+ * @return {boolean}
1900
+ */
1901
+ proto.BaseWorkLocation.prototype.hasVillage = function() {
1902
+ return jspb.Message.getField(this, 18) != null;
1903
+ };
1904
+
1905
+
1906
+ /**
1907
+ * optional string city_references_id = 19;
844
1908
  * @return {string}
845
1909
  */
846
- proto.WorkLocation.prototype.getNpwpAddress = function() {
847
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
1910
+ proto.BaseWorkLocation.prototype.getCityReferencesId = function() {
1911
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
848
1912
  };
849
1913
 
850
1914
 
851
1915
  /**
852
1916
  * @param {string} value
853
- * @return {!proto.WorkLocation} returns this
1917
+ * @return {!proto.BaseWorkLocation} returns this
854
1918
  */
855
- proto.WorkLocation.prototype.setNpwpAddress = function(value) {
856
- return jspb.Message.setProto3StringField(this, 12, value);
1919
+ proto.BaseWorkLocation.prototype.setCityReferencesId = function(value) {
1920
+ return jspb.Message.setProto3StringField(this, 19, value);
857
1921
  };
858
1922
 
859
1923
 
860
1924
  /**
861
- * optional double latitude = 13;
862
- * @return {number}
1925
+ * optional City city = 20;
1926
+ * @return {?proto.City}
863
1927
  */
864
- proto.WorkLocation.prototype.getLatitude = function() {
865
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 13, 0.0));
1928
+ proto.BaseWorkLocation.prototype.getCity = function() {
1929
+ return /** @type{?proto.City} */ (
1930
+ jspb.Message.getWrapperField(this, prisca_v1_core_location_location_pb.City, 20));
866
1931
  };
867
1932
 
868
1933
 
869
1934
  /**
870
- * @param {number} value
871
- * @return {!proto.WorkLocation} returns this
872
- */
873
- proto.WorkLocation.prototype.setLatitude = function(value) {
874
- return jspb.Message.setProto3FloatField(this, 13, value);
1935
+ * @param {?proto.City|undefined} value
1936
+ * @return {!proto.BaseWorkLocation} returns this
1937
+ */
1938
+ proto.BaseWorkLocation.prototype.setCity = function(value) {
1939
+ return jspb.Message.setWrapperField(this, 20, value);
875
1940
  };
876
1941
 
877
1942
 
878
1943
  /**
879
- * optional double longitude = 14;
880
- * @return {number}
1944
+ * Clears the message field making it undefined.
1945
+ * @return {!proto.BaseWorkLocation} returns this
881
1946
  */
882
- proto.WorkLocation.prototype.getLongitude = function() {
883
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 14, 0.0));
1947
+ proto.BaseWorkLocation.prototype.clearCity = function() {
1948
+ return this.setCity(undefined);
884
1949
  };
885
1950
 
886
1951
 
887
1952
  /**
888
- * @param {number} value
889
- * @return {!proto.WorkLocation} returns this
1953
+ * Returns whether this field is set.
1954
+ * @return {boolean}
890
1955
  */
891
- proto.WorkLocation.prototype.setLongitude = function(value) {
892
- return jspb.Message.setProto3FloatField(this, 14, value);
1956
+ proto.BaseWorkLocation.prototype.hasCity = function() {
1957
+ return jspb.Message.getField(this, 20) != null;
893
1958
  };
894
1959
 
895
1960
 
896
1961
  /**
897
- * optional int64 radius = 15;
898
- * @return {number}
1962
+ * optional string district_references_id = 21;
1963
+ * @return {string}
899
1964
  */
900
- proto.WorkLocation.prototype.getRadius = function() {
901
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
1965
+ proto.BaseWorkLocation.prototype.getDistrictReferencesId = function() {
1966
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
902
1967
  };
903
1968
 
904
1969
 
905
1970
  /**
906
- * @param {number} value
907
- * @return {!proto.WorkLocation} returns this
1971
+ * @param {string} value
1972
+ * @return {!proto.BaseWorkLocation} returns this
908
1973
  */
909
- proto.WorkLocation.prototype.setRadius = function(value) {
910
- return jspb.Message.setProto3IntField(this, 15, value);
1974
+ proto.BaseWorkLocation.prototype.setDistrictReferencesId = function(value) {
1975
+ return jspb.Message.setProto3StringField(this, 21, value);
911
1976
  };
912
1977
 
913
1978
 
914
1979
  /**
915
- * optional int64 country_references_id = 16;
916
- * @return {number}
1980
+ * optional District district = 22;
1981
+ * @return {?proto.District}
917
1982
  */
918
- proto.WorkLocation.prototype.getCountryReferencesId = function() {
919
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
1983
+ proto.BaseWorkLocation.prototype.getDistrict = function() {
1984
+ return /** @type{?proto.District} */ (
1985
+ jspb.Message.getWrapperField(this, prisca_v1_core_location_location_pb.District, 22));
920
1986
  };
921
1987
 
922
1988
 
923
1989
  /**
924
- * @param {number} value
925
- * @return {!proto.WorkLocation} returns this
1990
+ * @param {?proto.District|undefined} value
1991
+ * @return {!proto.BaseWorkLocation} returns this
1992
+ */
1993
+ proto.BaseWorkLocation.prototype.setDistrict = function(value) {
1994
+ return jspb.Message.setWrapperField(this, 22, value);
1995
+ };
1996
+
1997
+
1998
+ /**
1999
+ * Clears the message field making it undefined.
2000
+ * @return {!proto.BaseWorkLocation} returns this
926
2001
  */
927
- proto.WorkLocation.prototype.setCountryReferencesId = function(value) {
928
- return jspb.Message.setProto3IntField(this, 16, value);
2002
+ proto.BaseWorkLocation.prototype.clearDistrict = function() {
2003
+ return this.setDistrict(undefined);
929
2004
  };
930
2005
 
931
2006
 
932
2007
  /**
933
- * optional int64 region_references_id = 17;
934
- * @return {number}
2008
+ * Returns whether this field is set.
2009
+ * @return {boolean}
935
2010
  */
936
- proto.WorkLocation.prototype.getRegionReferencesId = function() {
937
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
2011
+ proto.BaseWorkLocation.prototype.hasDistrict = function() {
2012
+ return jspb.Message.getField(this, 22) != null;
938
2013
  };
939
2014
 
940
2015
 
941
2016
  /**
942
- * @param {number} value
943
- * @return {!proto.WorkLocation} returns this
2017
+ * optional string province_references_id = 23;
2018
+ * @return {string}
944
2019
  */
945
- proto.WorkLocation.prototype.setRegionReferencesId = function(value) {
946
- return jspb.Message.setProto3IntField(this, 17, value);
2020
+ proto.BaseWorkLocation.prototype.getProvinceReferencesId = function() {
2021
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
947
2022
  };
948
2023
 
949
2024
 
950
2025
  /**
951
- * optional int64 city_references_id = 18;
952
- * @return {number}
2026
+ * @param {string} value
2027
+ * @return {!proto.BaseWorkLocation} returns this
953
2028
  */
954
- proto.WorkLocation.prototype.getCityReferencesId = function() {
955
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
2029
+ proto.BaseWorkLocation.prototype.setProvinceReferencesId = function(value) {
2030
+ return jspb.Message.setProto3StringField(this, 23, value);
956
2031
  };
957
2032
 
958
2033
 
959
2034
  /**
960
- * @param {number} value
961
- * @return {!proto.WorkLocation} returns this
2035
+ * optional Province province = 24;
2036
+ * @return {?proto.Province}
962
2037
  */
963
- proto.WorkLocation.prototype.setCityReferencesId = function(value) {
964
- return jspb.Message.setProto3IntField(this, 18, value);
2038
+ proto.BaseWorkLocation.prototype.getProvince = function() {
2039
+ return /** @type{?proto.Province} */ (
2040
+ jspb.Message.getWrapperField(this, prisca_v1_core_location_location_pb.Province, 24));
965
2041
  };
966
2042
 
967
2043
 
968
2044
  /**
969
- * optional int64 district_references_id = 19;
970
- * @return {number}
2045
+ * @param {?proto.Province|undefined} value
2046
+ * @return {!proto.BaseWorkLocation} returns this
2047
+ */
2048
+ proto.BaseWorkLocation.prototype.setProvince = function(value) {
2049
+ return jspb.Message.setWrapperField(this, 24, value);
2050
+ };
2051
+
2052
+
2053
+ /**
2054
+ * Clears the message field making it undefined.
2055
+ * @return {!proto.BaseWorkLocation} returns this
971
2056
  */
972
- proto.WorkLocation.prototype.getDistrictReferencesId = function() {
973
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
2057
+ proto.BaseWorkLocation.prototype.clearProvince = function() {
2058
+ return this.setProvince(undefined);
974
2059
  };
975
2060
 
976
2061
 
977
2062
  /**
978
- * @param {number} value
979
- * @return {!proto.WorkLocation} returns this
2063
+ * Returns whether this field is set.
2064
+ * @return {boolean}
980
2065
  */
981
- proto.WorkLocation.prototype.setDistrictReferencesId = function(value) {
982
- return jspb.Message.setProto3IntField(this, 19, value);
2066
+ proto.BaseWorkLocation.prototype.hasProvince = function() {
2067
+ return jspb.Message.getField(this, 24) != null;
983
2068
  };
984
2069
 
985
2070
 
986
2071
  /**
987
- * optional int64 province_references_id = 20;
988
- * @return {number}
2072
+ * optional string area_references_id = 25;
2073
+ * @return {string}
989
2074
  */
990
- proto.WorkLocation.prototype.getProvinceReferencesId = function() {
991
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
2075
+ proto.BaseWorkLocation.prototype.getAreaReferencesId = function() {
2076
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, ""));
992
2077
  };
993
2078
 
994
2079
 
995
2080
  /**
996
- * @param {number} value
997
- * @return {!proto.WorkLocation} returns this
2081
+ * @param {string} value
2082
+ * @return {!proto.BaseWorkLocation} returns this
998
2083
  */
999
- proto.WorkLocation.prototype.setProvinceReferencesId = function(value) {
1000
- return jspb.Message.setProto3IntField(this, 20, value);
2084
+ proto.BaseWorkLocation.prototype.setAreaReferencesId = function(value) {
2085
+ return jspb.Message.setProto3StringField(this, 25, value);
1001
2086
  };
1002
2087
 
1003
2088
 
1004
2089
  /**
1005
- * optional int64 area_references_id = 21;
1006
- * @return {number}
2090
+ * optional string tax_office_location = 26;
2091
+ * @return {string}
1007
2092
  */
1008
- proto.WorkLocation.prototype.getAreaReferencesId = function() {
1009
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0));
2093
+ proto.BaseWorkLocation.prototype.getTaxOfficeLocation = function() {
2094
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, ""));
1010
2095
  };
1011
2096
 
1012
2097
 
1013
2098
  /**
1014
- * @param {number} value
1015
- * @return {!proto.WorkLocation} returns this
2099
+ * @param {string} value
2100
+ * @return {!proto.BaseWorkLocation} returns this
1016
2101
  */
1017
- proto.WorkLocation.prototype.setAreaReferencesId = function(value) {
1018
- return jspb.Message.setProto3IntField(this, 21, value);
2102
+ proto.BaseWorkLocation.prototype.setTaxOfficeLocation = function(value) {
2103
+ return jspb.Message.setProto3StringField(this, 26, value);
1019
2104
  };
1020
2105
 
1021
2106
 
1022
2107
  /**
1023
- * optional string tax_office_location = 22;
2108
+ * optional string references_id = 27;
1024
2109
  * @return {string}
1025
2110
  */
1026
- proto.WorkLocation.prototype.getTaxOfficeLocation = function() {
1027
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
2111
+ proto.BaseWorkLocation.prototype.getReferencesId = function() {
2112
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 27, ""));
1028
2113
  };
1029
2114
 
1030
2115
 
1031
2116
  /**
1032
2117
  * @param {string} value
1033
- * @return {!proto.WorkLocation} returns this
2118
+ * @return {!proto.BaseWorkLocation} returns this
1034
2119
  */
1035
- proto.WorkLocation.prototype.setTaxOfficeLocation = function(value) {
1036
- return jspb.Message.setProto3StringField(this, 22, value);
2120
+ proto.BaseWorkLocation.prototype.setReferencesId = function(value) {
2121
+ return jspb.Message.setProto3StringField(this, 27, value);
1037
2122
  };
1038
2123
 
1039
2124
 
1040
2125
  /**
1041
- * optional string references_id = 23;
2126
+ * optional string companies_references_id = 28;
1042
2127
  * @return {string}
1043
2128
  */
1044
- proto.WorkLocation.prototype.getReferencesId = function() {
1045
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
2129
+ proto.BaseWorkLocation.prototype.getCompaniesReferencesId = function() {
2130
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 28, ""));
1046
2131
  };
1047
2132
 
1048
2133
 
1049
2134
  /**
1050
2135
  * @param {string} value
1051
- * @return {!proto.WorkLocation} returns this
2136
+ * @return {!proto.BaseWorkLocation} returns this
1052
2137
  */
1053
- proto.WorkLocation.prototype.setReferencesId = function(value) {
1054
- return jspb.Message.setProto3StringField(this, 23, value);
2138
+ proto.BaseWorkLocation.prototype.setCompaniesReferencesId = function(value) {
2139
+ return jspb.Message.setProto3StringField(this, 28, value);
2140
+ };
2141
+
2142
+
2143
+ /**
2144
+ * optional BaseCompanyParent companies = 29;
2145
+ * @return {?proto.BaseCompanyParent}
2146
+ */
2147
+ proto.BaseWorkLocation.prototype.getCompanies = function() {
2148
+ return /** @type{?proto.BaseCompanyParent} */ (
2149
+ jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.BaseCompanyParent, 29));
2150
+ };
2151
+
2152
+
2153
+ /**
2154
+ * @param {?proto.BaseCompanyParent|undefined} value
2155
+ * @return {!proto.BaseWorkLocation} returns this
2156
+ */
2157
+ proto.BaseWorkLocation.prototype.setCompanies = function(value) {
2158
+ return jspb.Message.setWrapperField(this, 29, value);
2159
+ };
2160
+
2161
+
2162
+ /**
2163
+ * Clears the message field making it undefined.
2164
+ * @return {!proto.BaseWorkLocation} returns this
2165
+ */
2166
+ proto.BaseWorkLocation.prototype.clearCompanies = function() {
2167
+ return this.setCompanies(undefined);
2168
+ };
2169
+
2170
+
2171
+ /**
2172
+ * Returns whether this field is set.
2173
+ * @return {boolean}
2174
+ */
2175
+ proto.BaseWorkLocation.prototype.hasCompanies = function() {
2176
+ return jspb.Message.getField(this, 29) != null;
1055
2177
  };
1056
2178
 
1057
2179
 
@@ -2272,7 +3394,7 @@ proto.GetListWorkLocationResponse.prototype.toObject = function(opt_includeInsta
2272
3394
  proto.GetListWorkLocationResponse.toObject = function(includeInstance, msg) {
2273
3395
  var f, obj = {
2274
3396
  workLocationList: jspb.Message.toObjectList(msg.getWorkLocationList(),
2275
- proto.WorkLocation.toObject, includeInstance),
3397
+ proto.BaseWorkLocation.toObject, includeInstance),
2276
3398
  meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2277
3399
  };
2278
3400
 
@@ -2311,8 +3433,8 @@ proto.GetListWorkLocationResponse.deserializeBinaryFromReader = function(msg, re
2311
3433
  var field = reader.getFieldNumber();
2312
3434
  switch (field) {
2313
3435
  case 1:
2314
- var value = new proto.WorkLocation;
2315
- reader.readMessage(value,proto.WorkLocation.deserializeBinaryFromReader);
3436
+ var value = new proto.BaseWorkLocation;
3437
+ reader.readMessage(value,proto.BaseWorkLocation.deserializeBinaryFromReader);
2316
3438
  msg.addWorkLocation(value);
2317
3439
  break;
2318
3440
  case 2:
@@ -2354,7 +3476,7 @@ proto.GetListWorkLocationResponse.serializeBinaryToWriter = function(message, wr
2354
3476
  writer.writeRepeatedMessage(
2355
3477
  1,
2356
3478
  f,
2357
- proto.WorkLocation.serializeBinaryToWriter
3479
+ proto.BaseWorkLocation.serializeBinaryToWriter
2358
3480
  );
2359
3481
  }
2360
3482
  f = message.getMeta();
@@ -2369,17 +3491,17 @@ proto.GetListWorkLocationResponse.serializeBinaryToWriter = function(message, wr
2369
3491
 
2370
3492
 
2371
3493
  /**
2372
- * repeated WorkLocation work_location = 1;
2373
- * @return {!Array<!proto.WorkLocation>}
3494
+ * repeated BaseWorkLocation work_location = 1;
3495
+ * @return {!Array<!proto.BaseWorkLocation>}
2374
3496
  */
2375
3497
  proto.GetListWorkLocationResponse.prototype.getWorkLocationList = function() {
2376
- return /** @type{!Array<!proto.WorkLocation>} */ (
2377
- jspb.Message.getRepeatedWrapperField(this, proto.WorkLocation, 1));
3498
+ return /** @type{!Array<!proto.BaseWorkLocation>} */ (
3499
+ jspb.Message.getRepeatedWrapperField(this, proto.BaseWorkLocation, 1));
2378
3500
  };
2379
3501
 
2380
3502
 
2381
3503
  /**
2382
- * @param {!Array<!proto.WorkLocation>} value
3504
+ * @param {!Array<!proto.BaseWorkLocation>} value
2383
3505
  * @return {!proto.GetListWorkLocationResponse} returns this
2384
3506
  */
2385
3507
  proto.GetListWorkLocationResponse.prototype.setWorkLocationList = function(value) {
@@ -2388,12 +3510,12 @@ proto.GetListWorkLocationResponse.prototype.setWorkLocationList = function(value
2388
3510
 
2389
3511
 
2390
3512
  /**
2391
- * @param {!proto.WorkLocation=} opt_value
3513
+ * @param {!proto.BaseWorkLocation=} opt_value
2392
3514
  * @param {number=} opt_index
2393
- * @return {!proto.WorkLocation}
3515
+ * @return {!proto.BaseWorkLocation}
2394
3516
  */
2395
3517
  proto.GetListWorkLocationResponse.prototype.addWorkLocation = function(opt_value, opt_index) {
2396
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.WorkLocation, opt_index);
3518
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.BaseWorkLocation, opt_index);
2397
3519
  };
2398
3520
 
2399
3521
 
@@ -2677,7 +3799,7 @@ proto.WorkLocationGetByIdResponse.prototype.toObject = function(opt_includeInsta
2677
3799
  */
2678
3800
  proto.WorkLocationGetByIdResponse.toObject = function(includeInstance, msg) {
2679
3801
  var f, obj = {
2680
- workLocation: (f = msg.getWorkLocation()) && proto.WorkLocation.toObject(includeInstance, f),
3802
+ workLocation: (f = msg.getWorkLocation()) && proto.BaseWorkLocation.toObject(includeInstance, f),
2681
3803
  meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2682
3804
  };
2683
3805
 
@@ -2716,8 +3838,8 @@ proto.WorkLocationGetByIdResponse.deserializeBinaryFromReader = function(msg, re
2716
3838
  var field = reader.getFieldNumber();
2717
3839
  switch (field) {
2718
3840
  case 1:
2719
- var value = new proto.WorkLocation;
2720
- reader.readMessage(value,proto.WorkLocation.deserializeBinaryFromReader);
3841
+ var value = new proto.BaseWorkLocation;
3842
+ reader.readMessage(value,proto.BaseWorkLocation.deserializeBinaryFromReader);
2721
3843
  msg.setWorkLocation(value);
2722
3844
  break;
2723
3845
  case 2:
@@ -2759,7 +3881,7 @@ proto.WorkLocationGetByIdResponse.serializeBinaryToWriter = function(message, wr
2759
3881
  writer.writeMessage(
2760
3882
  1,
2761
3883
  f,
2762
- proto.WorkLocation.serializeBinaryToWriter
3884
+ proto.BaseWorkLocation.serializeBinaryToWriter
2763
3885
  );
2764
3886
  }
2765
3887
  f = message.getMeta();
@@ -2774,17 +3896,17 @@ proto.WorkLocationGetByIdResponse.serializeBinaryToWriter = function(message, wr
2774
3896
 
2775
3897
 
2776
3898
  /**
2777
- * optional WorkLocation work_location = 1;
2778
- * @return {?proto.WorkLocation}
3899
+ * optional BaseWorkLocation work_location = 1;
3900
+ * @return {?proto.BaseWorkLocation}
2779
3901
  */
2780
3902
  proto.WorkLocationGetByIdResponse.prototype.getWorkLocation = function() {
2781
- return /** @type{?proto.WorkLocation} */ (
2782
- jspb.Message.getWrapperField(this, proto.WorkLocation, 1));
3903
+ return /** @type{?proto.BaseWorkLocation} */ (
3904
+ jspb.Message.getWrapperField(this, proto.BaseWorkLocation, 1));
2783
3905
  };
2784
3906
 
2785
3907
 
2786
3908
  /**
2787
- * @param {?proto.WorkLocation|undefined} value
3909
+ * @param {?proto.BaseWorkLocation|undefined} value
2788
3910
  * @return {!proto.WorkLocationGetByIdResponse} returns this
2789
3911
  */
2790
3912
  proto.WorkLocationGetByIdResponse.prototype.setWorkLocation = function(value) {