@aldiokta/protocgen 1.0.17 → 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.
@@ -24,6 +24,7 @@ var global =
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
26
  goog.exportSymbol('proto.BaseCompany', null, global);
27
+ goog.exportSymbol('proto.BaseCompanyParent', null, global);
27
28
  goog.exportSymbol('proto.Company', null, global);
28
29
  goog.exportSymbol('proto.CompanyGetByIdRequest', null, global);
29
30
  goog.exportSymbol('proto.CompanyGetByIdResponse', null, global);
@@ -56,6 +57,27 @@ if (goog.DEBUG && !COMPILED) {
56
57
  */
57
58
  proto.Company.displayName = 'proto.Company';
58
59
  }
60
+ /**
61
+ * Generated by JsPbCodeGenerator.
62
+ * @param {Array=} opt_data Optional initial data array, typically from a
63
+ * server response, or constructed directly in Javascript. The array is used
64
+ * in place and becomes part of the constructed object. It is not cloned.
65
+ * If no data is provided, the constructed object will be empty, but still
66
+ * valid.
67
+ * @extends {jspb.Message}
68
+ * @constructor
69
+ */
70
+ proto.BaseCompanyParent = function(opt_data) {
71
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
72
+ };
73
+ goog.inherits(proto.BaseCompanyParent, jspb.Message);
74
+ if (goog.DEBUG && !COMPILED) {
75
+ /**
76
+ * @public
77
+ * @override
78
+ */
79
+ proto.BaseCompanyParent.displayName = 'proto.BaseCompanyParent';
80
+ }
59
81
  /**
60
82
  * Generated by JsPbCodeGenerator.
61
83
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -323,7 +345,7 @@ code: jspb.Message.getFieldWithDefault(msg, 1, ""),
323
345
  name: jspb.Message.getFieldWithDefault(msg, 2, ""),
324
346
  currencyCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
325
347
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
326
- parentRefId: jspb.Message.getFieldWithDefault(msg, 5, 0)
348
+ parentReferencesId: jspb.Message.getFieldWithDefault(msg, 5, "")
327
349
  };
328
350
 
329
351
  if (includeInstance) {
@@ -377,8 +399,8 @@ proto.Company.deserializeBinaryFromReader = function(msg, reader) {
377
399
  msg.setDescription(value);
378
400
  break;
379
401
  case 5:
380
- var value = /** @type {number} */ (reader.readInt64());
381
- msg.setParentRefId(value);
402
+ var value = /** @type {string} */ (reader.readString());
403
+ msg.setParentReferencesId(value);
382
404
  break;
383
405
  default:
384
406
  reader.skipField();
@@ -437,9 +459,9 @@ proto.Company.serializeBinaryToWriter = function(message, writer) {
437
459
  f
438
460
  );
439
461
  }
440
- f = message.getParentRefId();
441
- if (f !== 0) {
442
- writer.writeInt64(
462
+ f = message.getParentReferencesId();
463
+ if (f.length > 0) {
464
+ writer.writeString(
443
465
  5,
444
466
  f
445
467
  );
@@ -520,20 +542,210 @@ proto.Company.prototype.setDescription = function(value) {
520
542
 
521
543
 
522
544
  /**
523
- * optional int64 parent_ref_id = 5;
524
- * @return {number}
545
+ * optional string parent_references_id = 5;
546
+ * @return {string}
525
547
  */
526
- proto.Company.prototype.getParentRefId = function() {
527
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
548
+ proto.Company.prototype.getParentReferencesId = function() {
549
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
528
550
  };
529
551
 
530
552
 
531
553
  /**
532
- * @param {number} value
554
+ * @param {string} value
533
555
  * @return {!proto.Company} returns this
534
556
  */
535
- proto.Company.prototype.setParentRefId = function(value) {
536
- return jspb.Message.setProto3IntField(this, 5, value);
557
+ proto.Company.prototype.setParentReferencesId = function(value) {
558
+ return jspb.Message.setProto3StringField(this, 5, value);
559
+ };
560
+
561
+
562
+
563
+
564
+
565
+ if (jspb.Message.GENERATE_TO_OBJECT) {
566
+ /**
567
+ * Creates an object representation of this proto.
568
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
569
+ * Optional fields that are not set will be set to undefined.
570
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
571
+ * For the list of reserved names please see:
572
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
573
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
574
+ * JSPB instance for transitional soy proto support:
575
+ * http://goto/soy-param-migration
576
+ * @return {!Object}
577
+ */
578
+ proto.BaseCompanyParent.prototype.toObject = function(opt_includeInstance) {
579
+ return proto.BaseCompanyParent.toObject(opt_includeInstance, this);
580
+ };
581
+
582
+
583
+ /**
584
+ * Static version of the {@see toObject} method.
585
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
586
+ * the JSPB instance for transitional soy proto support:
587
+ * http://goto/soy-param-migration
588
+ * @param {!proto.BaseCompanyParent} msg The msg instance to transform.
589
+ * @return {!Object}
590
+ * @suppress {unusedLocalVariables} f is only used for nested messages
591
+ */
592
+ proto.BaseCompanyParent.toObject = function(includeInstance, msg) {
593
+ var f, obj = {
594
+ code: jspb.Message.getFieldWithDefault(msg, 2, ""),
595
+ name: jspb.Message.getFieldWithDefault(msg, 3, ""),
596
+ referencesId: jspb.Message.getFieldWithDefault(msg, 4, "")
597
+ };
598
+
599
+ if (includeInstance) {
600
+ obj.$jspbMessageInstance = msg;
601
+ }
602
+ return obj;
603
+ };
604
+ }
605
+
606
+
607
+ /**
608
+ * Deserializes binary data (in protobuf wire format).
609
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
610
+ * @return {!proto.BaseCompanyParent}
611
+ */
612
+ proto.BaseCompanyParent.deserializeBinary = function(bytes) {
613
+ var reader = new jspb.BinaryReader(bytes);
614
+ var msg = new proto.BaseCompanyParent;
615
+ return proto.BaseCompanyParent.deserializeBinaryFromReader(msg, reader);
616
+ };
617
+
618
+
619
+ /**
620
+ * Deserializes binary data (in protobuf wire format) from the
621
+ * given reader into the given message object.
622
+ * @param {!proto.BaseCompanyParent} msg The message object to deserialize into.
623
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
624
+ * @return {!proto.BaseCompanyParent}
625
+ */
626
+ proto.BaseCompanyParent.deserializeBinaryFromReader = function(msg, reader) {
627
+ while (reader.nextField()) {
628
+ if (reader.isEndGroup()) {
629
+ break;
630
+ }
631
+ var field = reader.getFieldNumber();
632
+ switch (field) {
633
+ case 2:
634
+ var value = /** @type {string} */ (reader.readString());
635
+ msg.setCode(value);
636
+ break;
637
+ case 3:
638
+ var value = /** @type {string} */ (reader.readString());
639
+ msg.setName(value);
640
+ break;
641
+ case 4:
642
+ var value = /** @type {string} */ (reader.readString());
643
+ msg.setReferencesId(value);
644
+ break;
645
+ default:
646
+ reader.skipField();
647
+ break;
648
+ }
649
+ }
650
+ return msg;
651
+ };
652
+
653
+
654
+ /**
655
+ * Serializes the message to binary data (in protobuf wire format).
656
+ * @return {!Uint8Array}
657
+ */
658
+ proto.BaseCompanyParent.prototype.serializeBinary = function() {
659
+ var writer = new jspb.BinaryWriter();
660
+ proto.BaseCompanyParent.serializeBinaryToWriter(this, writer);
661
+ return writer.getResultBuffer();
662
+ };
663
+
664
+
665
+ /**
666
+ * Serializes the given message to binary data (in protobuf wire
667
+ * format), writing to the given BinaryWriter.
668
+ * @param {!proto.BaseCompanyParent} message
669
+ * @param {!jspb.BinaryWriter} writer
670
+ * @suppress {unusedLocalVariables} f is only used for nested messages
671
+ */
672
+ proto.BaseCompanyParent.serializeBinaryToWriter = function(message, writer) {
673
+ var f = undefined;
674
+ f = message.getCode();
675
+ if (f.length > 0) {
676
+ writer.writeString(
677
+ 2,
678
+ f
679
+ );
680
+ }
681
+ f = message.getName();
682
+ if (f.length > 0) {
683
+ writer.writeString(
684
+ 3,
685
+ f
686
+ );
687
+ }
688
+ f = message.getReferencesId();
689
+ if (f.length > 0) {
690
+ writer.writeString(
691
+ 4,
692
+ f
693
+ );
694
+ }
695
+ };
696
+
697
+
698
+ /**
699
+ * optional string code = 2;
700
+ * @return {string}
701
+ */
702
+ proto.BaseCompanyParent.prototype.getCode = function() {
703
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
704
+ };
705
+
706
+
707
+ /**
708
+ * @param {string} value
709
+ * @return {!proto.BaseCompanyParent} returns this
710
+ */
711
+ proto.BaseCompanyParent.prototype.setCode = function(value) {
712
+ return jspb.Message.setProto3StringField(this, 2, value);
713
+ };
714
+
715
+
716
+ /**
717
+ * optional string name = 3;
718
+ * @return {string}
719
+ */
720
+ proto.BaseCompanyParent.prototype.getName = function() {
721
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
722
+ };
723
+
724
+
725
+ /**
726
+ * @param {string} value
727
+ * @return {!proto.BaseCompanyParent} returns this
728
+ */
729
+ proto.BaseCompanyParent.prototype.setName = function(value) {
730
+ return jspb.Message.setProto3StringField(this, 3, value);
731
+ };
732
+
733
+
734
+ /**
735
+ * optional string references_id = 4;
736
+ * @return {string}
737
+ */
738
+ proto.BaseCompanyParent.prototype.getReferencesId = function() {
739
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
740
+ };
741
+
742
+
743
+ /**
744
+ * @param {string} value
745
+ * @return {!proto.BaseCompanyParent} returns this
746
+ */
747
+ proto.BaseCompanyParent.prototype.setReferencesId = function(value) {
748
+ return jspb.Message.setProto3StringField(this, 4, value);
537
749
  };
538
750
 
539
751
 
@@ -569,11 +781,12 @@ proto.BaseCompany.prototype.toObject = function(opt_includeInstance) {
569
781
  */
570
782
  proto.BaseCompany.toObject = function(includeInstance, msg) {
571
783
  var f, obj = {
572
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
573
- code: jspb.Message.getFieldWithDefault(msg, 2, ""),
574
- name: jspb.Message.getFieldWithDefault(msg, 3, ""),
784
+ code: jspb.Message.getFieldWithDefault(msg, 1, ""),
785
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
786
+ currencyCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
575
787
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
576
- parentRefId: jspb.Message.getFieldWithDefault(msg, 5, 0)
788
+ referencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
789
+ parent: (f = msg.getParent()) && proto.BaseCompanyParent.toObject(includeInstance, f)
577
790
  };
578
791
 
579
792
  if (includeInstance) {
@@ -611,24 +824,29 @@ proto.BaseCompany.deserializeBinaryFromReader = function(msg, reader) {
611
824
  var field = reader.getFieldNumber();
612
825
  switch (field) {
613
826
  case 1:
614
- var value = /** @type {number} */ (reader.readInt64());
615
- msg.setId(value);
827
+ var value = /** @type {string} */ (reader.readString());
828
+ msg.setCode(value);
616
829
  break;
617
830
  case 2:
618
831
  var value = /** @type {string} */ (reader.readString());
619
- msg.setCode(value);
832
+ msg.setName(value);
620
833
  break;
621
834
  case 3:
622
835
  var value = /** @type {string} */ (reader.readString());
623
- msg.setName(value);
836
+ msg.setCurrencyCode(value);
624
837
  break;
625
838
  case 4:
626
839
  var value = /** @type {string} */ (reader.readString());
627
840
  msg.setDescription(value);
628
841
  break;
629
842
  case 5:
630
- var value = /** @type {number} */ (reader.readInt64());
631
- msg.setParentRefId(value);
843
+ var value = /** @type {string} */ (reader.readString());
844
+ msg.setReferencesId(value);
845
+ break;
846
+ case 6:
847
+ var value = new proto.BaseCompanyParent;
848
+ reader.readMessage(value,proto.BaseCompanyParent.deserializeBinaryFromReader);
849
+ msg.setParent(value);
632
850
  break;
633
851
  default:
634
852
  reader.skipField();
@@ -659,21 +877,21 @@ proto.BaseCompany.prototype.serializeBinary = function() {
659
877
  */
660
878
  proto.BaseCompany.serializeBinaryToWriter = function(message, writer) {
661
879
  var f = undefined;
662
- f = message.getId();
663
- if (f !== 0) {
664
- writer.writeInt64(
880
+ f = message.getCode();
881
+ if (f.length > 0) {
882
+ writer.writeString(
665
883
  1,
666
884
  f
667
885
  );
668
886
  }
669
- f = message.getCode();
887
+ f = message.getName();
670
888
  if (f.length > 0) {
671
889
  writer.writeString(
672
890
  2,
673
891
  f
674
892
  );
675
893
  }
676
- f = message.getName();
894
+ f = message.getCurrencyCode();
677
895
  if (f.length > 0) {
678
896
  writer.writeString(
679
897
  3,
@@ -687,39 +905,47 @@ proto.BaseCompany.serializeBinaryToWriter = function(message, writer) {
687
905
  f
688
906
  );
689
907
  }
690
- f = message.getParentRefId();
691
- if (f !== 0) {
692
- writer.writeInt64(
908
+ f = message.getReferencesId();
909
+ if (f.length > 0) {
910
+ writer.writeString(
693
911
  5,
694
912
  f
695
913
  );
696
914
  }
915
+ f = message.getParent();
916
+ if (f != null) {
917
+ writer.writeMessage(
918
+ 6,
919
+ f,
920
+ proto.BaseCompanyParent.serializeBinaryToWriter
921
+ );
922
+ }
697
923
  };
698
924
 
699
925
 
700
926
  /**
701
- * optional int64 id = 1;
702
- * @return {number}
927
+ * optional string code = 1;
928
+ * @return {string}
703
929
  */
704
- proto.BaseCompany.prototype.getId = function() {
705
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
930
+ proto.BaseCompany.prototype.getCode = function() {
931
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
706
932
  };
707
933
 
708
934
 
709
935
  /**
710
- * @param {number} value
936
+ * @param {string} value
711
937
  * @return {!proto.BaseCompany} returns this
712
938
  */
713
- proto.BaseCompany.prototype.setId = function(value) {
714
- return jspb.Message.setProto3IntField(this, 1, value);
939
+ proto.BaseCompany.prototype.setCode = function(value) {
940
+ return jspb.Message.setProto3StringField(this, 1, value);
715
941
  };
716
942
 
717
943
 
718
944
  /**
719
- * optional string code = 2;
945
+ * optional string name = 2;
720
946
  * @return {string}
721
947
  */
722
- proto.BaseCompany.prototype.getCode = function() {
948
+ proto.BaseCompany.prototype.getName = function() {
723
949
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
724
950
  };
725
951
 
@@ -728,16 +954,16 @@ proto.BaseCompany.prototype.getCode = function() {
728
954
  * @param {string} value
729
955
  * @return {!proto.BaseCompany} returns this
730
956
  */
731
- proto.BaseCompany.prototype.setCode = function(value) {
957
+ proto.BaseCompany.prototype.setName = function(value) {
732
958
  return jspb.Message.setProto3StringField(this, 2, value);
733
959
  };
734
960
 
735
961
 
736
962
  /**
737
- * optional string name = 3;
963
+ * optional string currency_code = 3;
738
964
  * @return {string}
739
965
  */
740
- proto.BaseCompany.prototype.getName = function() {
966
+ proto.BaseCompany.prototype.getCurrencyCode = function() {
741
967
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
742
968
  };
743
969
 
@@ -746,7 +972,7 @@ proto.BaseCompany.prototype.getName = function() {
746
972
  * @param {string} value
747
973
  * @return {!proto.BaseCompany} returns this
748
974
  */
749
- proto.BaseCompany.prototype.setName = function(value) {
975
+ proto.BaseCompany.prototype.setCurrencyCode = function(value) {
750
976
  return jspb.Message.setProto3StringField(this, 3, value);
751
977
  };
752
978
 
@@ -770,20 +996,57 @@ proto.BaseCompany.prototype.setDescription = function(value) {
770
996
 
771
997
 
772
998
  /**
773
- * optional int64 parent_ref_id = 5;
774
- * @return {number}
999
+ * optional string references_id = 5;
1000
+ * @return {string}
775
1001
  */
776
- proto.BaseCompany.prototype.getParentRefId = function() {
777
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1002
+ proto.BaseCompany.prototype.getReferencesId = function() {
1003
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
778
1004
  };
779
1005
 
780
1006
 
781
1007
  /**
782
- * @param {number} value
1008
+ * @param {string} value
1009
+ * @return {!proto.BaseCompany} returns this
1010
+ */
1011
+ proto.BaseCompany.prototype.setReferencesId = function(value) {
1012
+ return jspb.Message.setProto3StringField(this, 5, value);
1013
+ };
1014
+
1015
+
1016
+ /**
1017
+ * optional BaseCompanyParent parent = 6;
1018
+ * @return {?proto.BaseCompanyParent}
1019
+ */
1020
+ proto.BaseCompany.prototype.getParent = function() {
1021
+ return /** @type{?proto.BaseCompanyParent} */ (
1022
+ jspb.Message.getWrapperField(this, proto.BaseCompanyParent, 6));
1023
+ };
1024
+
1025
+
1026
+ /**
1027
+ * @param {?proto.BaseCompanyParent|undefined} value
1028
+ * @return {!proto.BaseCompany} returns this
1029
+ */
1030
+ proto.BaseCompany.prototype.setParent = function(value) {
1031
+ return jspb.Message.setWrapperField(this, 6, value);
1032
+ };
1033
+
1034
+
1035
+ /**
1036
+ * Clears the message field making it undefined.
783
1037
  * @return {!proto.BaseCompany} returns this
784
1038
  */
785
- proto.BaseCompany.prototype.setParentRefId = function(value) {
786
- return jspb.Message.setProto3IntField(this, 5, value);
1039
+ proto.BaseCompany.prototype.clearParent = function() {
1040
+ return this.setParent(undefined);
1041
+ };
1042
+
1043
+
1044
+ /**
1045
+ * Returns whether this field is set.
1046
+ * @return {boolean}
1047
+ */
1048
+ proto.BaseCompany.prototype.hasParent = function() {
1049
+ return jspb.Message.getField(this, 6) != null;
787
1050
  };
788
1051
 
789
1052
 
@@ -819,7 +1082,7 @@ proto.CompanyGetByIdRequest.prototype.toObject = function(opt_includeInstance) {
819
1082
  */
820
1083
  proto.CompanyGetByIdRequest.toObject = function(includeInstance, msg) {
821
1084
  var f, obj = {
822
- id: jspb.Message.getFieldWithDefault(msg, 1, 0)
1085
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
823
1086
  };
824
1087
 
825
1088
  if (includeInstance) {
@@ -857,8 +1120,8 @@ proto.CompanyGetByIdRequest.deserializeBinaryFromReader = function(msg, reader)
857
1120
  var field = reader.getFieldNumber();
858
1121
  switch (field) {
859
1122
  case 1:
860
- var value = /** @type {number} */ (reader.readInt64());
861
- msg.setId(value);
1123
+ var value = /** @type {string} */ (reader.readString());
1124
+ msg.setReferencesId(value);
862
1125
  break;
863
1126
  default:
864
1127
  reader.skipField();
@@ -889,9 +1152,9 @@ proto.CompanyGetByIdRequest.prototype.serializeBinary = function() {
889
1152
  */
890
1153
  proto.CompanyGetByIdRequest.serializeBinaryToWriter = function(message, writer) {
891
1154
  var f = undefined;
892
- f = message.getId();
893
- if (f !== 0) {
894
- writer.writeInt64(
1155
+ f = message.getReferencesId();
1156
+ if (f.length > 0) {
1157
+ writer.writeString(
895
1158
  1,
896
1159
  f
897
1160
  );
@@ -900,20 +1163,20 @@ proto.CompanyGetByIdRequest.serializeBinaryToWriter = function(message, writer)
900
1163
 
901
1164
 
902
1165
  /**
903
- * optional int64 id = 1;
904
- * @return {number}
1166
+ * optional string references_id = 1;
1167
+ * @return {string}
905
1168
  */
906
- proto.CompanyGetByIdRequest.prototype.getId = function() {
907
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1169
+ proto.CompanyGetByIdRequest.prototype.getReferencesId = function() {
1170
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
908
1171
  };
909
1172
 
910
1173
 
911
1174
  /**
912
- * @param {number} value
1175
+ * @param {string} value
913
1176
  * @return {!proto.CompanyGetByIdRequest} returns this
914
1177
  */
915
- proto.CompanyGetByIdRequest.prototype.setId = function(value) {
916
- return jspb.Message.setProto3IntField(this, 1, value);
1178
+ proto.CompanyGetByIdRequest.prototype.setReferencesId = function(value) {
1179
+ return jspb.Message.setProto3StringField(this, 1, value);
917
1180
  };
918
1181
 
919
1182
 
@@ -949,7 +1212,7 @@ proto.CompanyGetByIdResponse.prototype.toObject = function(opt_includeInstance)
949
1212
  */
950
1213
  proto.CompanyGetByIdResponse.toObject = function(includeInstance, msg) {
951
1214
  var f, obj = {
952
- company: (f = msg.getCompany()) && proto.Company.toObject(includeInstance, f),
1215
+ company: (f = msg.getCompany()) && proto.BaseCompany.toObject(includeInstance, f),
953
1216
  meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
954
1217
  };
955
1218
 
@@ -988,8 +1251,8 @@ proto.CompanyGetByIdResponse.deserializeBinaryFromReader = function(msg, reader)
988
1251
  var field = reader.getFieldNumber();
989
1252
  switch (field) {
990
1253
  case 1:
991
- var value = new proto.Company;
992
- reader.readMessage(value,proto.Company.deserializeBinaryFromReader);
1254
+ var value = new proto.BaseCompany;
1255
+ reader.readMessage(value,proto.BaseCompany.deserializeBinaryFromReader);
993
1256
  msg.setCompany(value);
994
1257
  break;
995
1258
  case 2:
@@ -1031,7 +1294,7 @@ proto.CompanyGetByIdResponse.serializeBinaryToWriter = function(message, writer)
1031
1294
  writer.writeMessage(
1032
1295
  1,
1033
1296
  f,
1034
- proto.Company.serializeBinaryToWriter
1297
+ proto.BaseCompany.serializeBinaryToWriter
1035
1298
  );
1036
1299
  }
1037
1300
  f = message.getMeta();
@@ -1046,17 +1309,17 @@ proto.CompanyGetByIdResponse.serializeBinaryToWriter = function(message, writer)
1046
1309
 
1047
1310
 
1048
1311
  /**
1049
- * optional Company company = 1;
1050
- * @return {?proto.Company}
1312
+ * optional BaseCompany company = 1;
1313
+ * @return {?proto.BaseCompany}
1051
1314
  */
1052
1315
  proto.CompanyGetByIdResponse.prototype.getCompany = function() {
1053
- return /** @type{?proto.Company} */ (
1054
- jspb.Message.getWrapperField(this, proto.Company, 1));
1316
+ return /** @type{?proto.BaseCompany} */ (
1317
+ jspb.Message.getWrapperField(this, proto.BaseCompany, 1));
1055
1318
  };
1056
1319
 
1057
1320
 
1058
1321
  /**
1059
- * @param {?proto.Company|undefined} value
1322
+ * @param {?proto.BaseCompany|undefined} value
1060
1323
  * @return {!proto.CompanyGetByIdResponse} returns this
1061
1324
  */
1062
1325
  proto.CompanyGetByIdResponse.prototype.setCompany = function(value) {
@@ -1151,7 +1414,7 @@ proto.UpdateCompanyRequest.prototype.toObject = function(opt_includeInstance) {
1151
1414
  */
1152
1415
  proto.UpdateCompanyRequest.toObject = function(includeInstance, msg) {
1153
1416
  var f, obj = {
1154
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1417
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1155
1418
  company: (f = msg.getCompany()) && proto.Company.toObject(includeInstance, f)
1156
1419
  };
1157
1420
 
@@ -1190,8 +1453,8 @@ proto.UpdateCompanyRequest.deserializeBinaryFromReader = function(msg, reader) {
1190
1453
  var field = reader.getFieldNumber();
1191
1454
  switch (field) {
1192
1455
  case 1:
1193
- var value = /** @type {number} */ (reader.readInt64());
1194
- msg.setId(value);
1456
+ var value = /** @type {string} */ (reader.readString());
1457
+ msg.setReferencesId(value);
1195
1458
  break;
1196
1459
  case 2:
1197
1460
  var value = new proto.Company;
@@ -1227,9 +1490,9 @@ proto.UpdateCompanyRequest.prototype.serializeBinary = function() {
1227
1490
  */
1228
1491
  proto.UpdateCompanyRequest.serializeBinaryToWriter = function(message, writer) {
1229
1492
  var f = undefined;
1230
- f = message.getId();
1231
- if (f !== 0) {
1232
- writer.writeInt64(
1493
+ f = message.getReferencesId();
1494
+ if (f.length > 0) {
1495
+ writer.writeString(
1233
1496
  1,
1234
1497
  f
1235
1498
  );
@@ -1246,20 +1509,20 @@ proto.UpdateCompanyRequest.serializeBinaryToWriter = function(message, writer) {
1246
1509
 
1247
1510
 
1248
1511
  /**
1249
- * optional int64 id = 1;
1250
- * @return {number}
1512
+ * optional string references_id = 1;
1513
+ * @return {string}
1251
1514
  */
1252
- proto.UpdateCompanyRequest.prototype.getId = function() {
1253
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1515
+ proto.UpdateCompanyRequest.prototype.getReferencesId = function() {
1516
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1254
1517
  };
1255
1518
 
1256
1519
 
1257
1520
  /**
1258
- * @param {number} value
1521
+ * @param {string} value
1259
1522
  * @return {!proto.UpdateCompanyRequest} returns this
1260
1523
  */
1261
- proto.UpdateCompanyRequest.prototype.setId = function(value) {
1262
- return jspb.Message.setProto3IntField(this, 1, value);
1524
+ proto.UpdateCompanyRequest.prototype.setReferencesId = function(value) {
1525
+ return jspb.Message.setProto3StringField(this, 1, value);
1263
1526
  };
1264
1527
 
1265
1528
 
@@ -1887,7 +2150,7 @@ proto.DeleteCompanyRequest.prototype.toObject = function(opt_includeInstance) {
1887
2150
  */
1888
2151
  proto.DeleteCompanyRequest.toObject = function(includeInstance, msg) {
1889
2152
  var f, obj = {
1890
- id: jspb.Message.getFieldWithDefault(msg, 1, 0)
2153
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1891
2154
  };
1892
2155
 
1893
2156
  if (includeInstance) {
@@ -1925,8 +2188,8 @@ proto.DeleteCompanyRequest.deserializeBinaryFromReader = function(msg, reader) {
1925
2188
  var field = reader.getFieldNumber();
1926
2189
  switch (field) {
1927
2190
  case 1:
1928
- var value = /** @type {number} */ (reader.readInt64());
1929
- msg.setId(value);
2191
+ var value = /** @type {string} */ (reader.readString());
2192
+ msg.setReferencesId(value);
1930
2193
  break;
1931
2194
  default:
1932
2195
  reader.skipField();
@@ -1957,9 +2220,9 @@ proto.DeleteCompanyRequest.prototype.serializeBinary = function() {
1957
2220
  */
1958
2221
  proto.DeleteCompanyRequest.serializeBinaryToWriter = function(message, writer) {
1959
2222
  var f = undefined;
1960
- f = message.getId();
1961
- if (f !== 0) {
1962
- writer.writeInt64(
2223
+ f = message.getReferencesId();
2224
+ if (f.length > 0) {
2225
+ writer.writeString(
1963
2226
  1,
1964
2227
  f
1965
2228
  );
@@ -1968,20 +2231,20 @@ proto.DeleteCompanyRequest.serializeBinaryToWriter = function(message, writer) {
1968
2231
 
1969
2232
 
1970
2233
  /**
1971
- * optional int64 id = 1;
1972
- * @return {number}
2234
+ * optional string references_id = 1;
2235
+ * @return {string}
1973
2236
  */
1974
- proto.DeleteCompanyRequest.prototype.getId = function() {
1975
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2237
+ proto.DeleteCompanyRequest.prototype.getReferencesId = function() {
2238
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1976
2239
  };
1977
2240
 
1978
2241
 
1979
2242
  /**
1980
- * @param {number} value
2243
+ * @param {string} value
1981
2244
  * @return {!proto.DeleteCompanyRequest} returns this
1982
2245
  */
1983
- proto.DeleteCompanyRequest.prototype.setId = function(value) {
1984
- return jspb.Message.setProto3IntField(this, 1, value);
2246
+ proto.DeleteCompanyRequest.prototype.setReferencesId = function(value) {
2247
+ return jspb.Message.setProto3StringField(this, 1, value);
1985
2248
  };
1986
2249
 
1987
2250