@aldiokta/protocgen 1.0.79 → 1.0.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aldiokta/protocgen",
3
- "version": "1.0.79",
3
+ "version": "1.0.80",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1 +1,45 @@
1
- // GENERATED CODE -- NO SERVICES IN PROTO
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var prisca_v1_core_users_users_pb = require('../../../../prisca/v1/core/users/users_pb.js');
6
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
7
+
8
+ function serialize_UpdateUserRequest(arg) {
9
+ if (!(arg instanceof prisca_v1_core_users_users_pb.UpdateUserRequest)) {
10
+ throw new Error('Expected argument of type UpdateUserRequest');
11
+ }
12
+ return Buffer.from(arg.serializeBinary());
13
+ }
14
+
15
+ function deserialize_UpdateUserRequest(buffer_arg) {
16
+ return prisca_v1_core_users_users_pb.UpdateUserRequest.deserializeBinary(new Uint8Array(buffer_arg));
17
+ }
18
+
19
+ function serialize_UpdateUserResponse(arg) {
20
+ if (!(arg instanceof prisca_v1_core_users_users_pb.UpdateUserResponse)) {
21
+ throw new Error('Expected argument of type UpdateUserResponse');
22
+ }
23
+ return Buffer.from(arg.serializeBinary());
24
+ }
25
+
26
+ function deserialize_UpdateUserResponse(buffer_arg) {
27
+ return prisca_v1_core_users_users_pb.UpdateUserResponse.deserializeBinary(new Uint8Array(buffer_arg));
28
+ }
29
+
30
+
31
+ var UserServiceService = exports.UserServiceService = {
32
+ updateUser: {
33
+ path: '/UserService/UpdateUser',
34
+ requestStream: false,
35
+ responseStream: false,
36
+ requestType: prisca_v1_core_users_users_pb.UpdateUserRequest,
37
+ responseType: prisca_v1_core_users_users_pb.UpdateUserResponse,
38
+ requestSerialize: serialize_UpdateUserRequest,
39
+ requestDeserialize: deserialize_UpdateUserRequest,
40
+ responseSerialize: serialize_UpdateUserResponse,
41
+ responseDeserialize: deserialize_UpdateUserResponse,
42
+ },
43
+ };
44
+
45
+ exports.UserServiceClient = grpc.makeGenericClientConstructor(UserServiceService, 'UserService');
@@ -21,7 +21,11 @@ var global =
21
21
  (function () { return this; }).call(null) ||
22
22
  Function('return this')();
23
23
 
24
- goog.exportSymbol('proto.BaseUsers', null, global);
24
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
25
+ goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
+ goog.exportSymbol('proto.UpdateUser', null, global);
27
+ goog.exportSymbol('proto.UpdateUserRequest', null, global);
28
+ goog.exportSymbol('proto.UpdateUserResponse', null, global);
25
29
  goog.exportSymbol('proto.Users', null, global);
26
30
  /**
27
31
  * Generated by JsPbCodeGenerator.
@@ -54,16 +58,58 @@ if (goog.DEBUG && !COMPILED) {
54
58
  * @extends {jspb.Message}
55
59
  * @constructor
56
60
  */
57
- proto.BaseUsers = function(opt_data) {
61
+ proto.UpdateUser = function(opt_data) {
58
62
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
59
63
  };
60
- goog.inherits(proto.BaseUsers, jspb.Message);
64
+ goog.inherits(proto.UpdateUser, jspb.Message);
61
65
  if (goog.DEBUG && !COMPILED) {
62
66
  /**
63
67
  * @public
64
68
  * @override
65
69
  */
66
- proto.BaseUsers.displayName = 'proto.BaseUsers';
70
+ proto.UpdateUser.displayName = 'proto.UpdateUser';
71
+ }
72
+ /**
73
+ * Generated by JsPbCodeGenerator.
74
+ * @param {Array=} opt_data Optional initial data array, typically from a
75
+ * server response, or constructed directly in Javascript. The array is used
76
+ * in place and becomes part of the constructed object. It is not cloned.
77
+ * If no data is provided, the constructed object will be empty, but still
78
+ * valid.
79
+ * @extends {jspb.Message}
80
+ * @constructor
81
+ */
82
+ proto.UpdateUserRequest = function(opt_data) {
83
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
84
+ };
85
+ goog.inherits(proto.UpdateUserRequest, jspb.Message);
86
+ if (goog.DEBUG && !COMPILED) {
87
+ /**
88
+ * @public
89
+ * @override
90
+ */
91
+ proto.UpdateUserRequest.displayName = 'proto.UpdateUserRequest';
92
+ }
93
+ /**
94
+ * Generated by JsPbCodeGenerator.
95
+ * @param {Array=} opt_data Optional initial data array, typically from a
96
+ * server response, or constructed directly in Javascript. The array is used
97
+ * in place and becomes part of the constructed object. It is not cloned.
98
+ * If no data is provided, the constructed object will be empty, but still
99
+ * valid.
100
+ * @extends {jspb.Message}
101
+ * @constructor
102
+ */
103
+ proto.UpdateUserResponse = function(opt_data) {
104
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
105
+ };
106
+ goog.inherits(proto.UpdateUserResponse, jspb.Message);
107
+ if (goog.DEBUG && !COMPILED) {
108
+ /**
109
+ * @public
110
+ * @override
111
+ */
112
+ proto.UpdateUserResponse.displayName = 'proto.UpdateUserResponse';
67
113
  }
68
114
 
69
115
 
@@ -661,8 +707,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
661
707
  * http://goto/soy-param-migration
662
708
  * @return {!Object}
663
709
  */
664
- proto.BaseUsers.prototype.toObject = function(opt_includeInstance) {
665
- return proto.BaseUsers.toObject(opt_includeInstance, this);
710
+ proto.UpdateUser.prototype.toObject = function(opt_includeInstance) {
711
+ return proto.UpdateUser.toObject(opt_includeInstance, this);
666
712
  };
667
713
 
668
714
 
@@ -671,17 +717,15 @@ proto.BaseUsers.prototype.toObject = function(opt_includeInstance) {
671
717
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
672
718
  * the JSPB instance for transitional soy proto support:
673
719
  * http://goto/soy-param-migration
674
- * @param {!proto.BaseUsers} msg The msg instance to transform.
720
+ * @param {!proto.UpdateUser} msg The msg instance to transform.
675
721
  * @return {!Object}
676
722
  * @suppress {unusedLocalVariables} f is only used for nested messages
677
723
  */
678
- proto.BaseUsers.toObject = function(includeInstance, msg) {
724
+ proto.UpdateUser.toObject = function(includeInstance, msg) {
679
725
  var f, obj = {
680
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
681
- referencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
682
- name: jspb.Message.getFieldWithDefault(msg, 3, ""),
683
- phoneNumber: jspb.Message.getFieldWithDefault(msg, 5, ""),
684
- email: jspb.Message.getFieldWithDefault(msg, 6, "")
726
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
727
+ phoneNumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
728
+ email: jspb.Message.getFieldWithDefault(msg, 3, "")
685
729
  };
686
730
 
687
731
  if (includeInstance) {
@@ -695,23 +739,23 @@ email: jspb.Message.getFieldWithDefault(msg, 6, "")
695
739
  /**
696
740
  * Deserializes binary data (in protobuf wire format).
697
741
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
698
- * @return {!proto.BaseUsers}
742
+ * @return {!proto.UpdateUser}
699
743
  */
700
- proto.BaseUsers.deserializeBinary = function(bytes) {
744
+ proto.UpdateUser.deserializeBinary = function(bytes) {
701
745
  var reader = new jspb.BinaryReader(bytes);
702
- var msg = new proto.BaseUsers;
703
- return proto.BaseUsers.deserializeBinaryFromReader(msg, reader);
746
+ var msg = new proto.UpdateUser;
747
+ return proto.UpdateUser.deserializeBinaryFromReader(msg, reader);
704
748
  };
705
749
 
706
750
 
707
751
  /**
708
752
  * Deserializes binary data (in protobuf wire format) from the
709
753
  * given reader into the given message object.
710
- * @param {!proto.BaseUsers} msg The message object to deserialize into.
754
+ * @param {!proto.UpdateUser} msg The message object to deserialize into.
711
755
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
712
- * @return {!proto.BaseUsers}
756
+ * @return {!proto.UpdateUser}
713
757
  */
714
- proto.BaseUsers.deserializeBinaryFromReader = function(msg, reader) {
758
+ proto.UpdateUser.deserializeBinaryFromReader = function(msg, reader) {
715
759
  while (reader.nextField()) {
716
760
  if (reader.isEndGroup()) {
717
761
  break;
@@ -719,22 +763,14 @@ proto.BaseUsers.deserializeBinaryFromReader = function(msg, reader) {
719
763
  var field = reader.getFieldNumber();
720
764
  switch (field) {
721
765
  case 1:
722
- var value = /** @type {number} */ (reader.readInt32());
723
- msg.setId(value);
724
- break;
725
- case 2:
726
- var value = /** @type {string} */ (reader.readString());
727
- msg.setReferencesId(value);
728
- break;
729
- case 3:
730
766
  var value = /** @type {string} */ (reader.readString());
731
767
  msg.setName(value);
732
768
  break;
733
- case 5:
769
+ case 2:
734
770
  var value = /** @type {string} */ (reader.readString());
735
771
  msg.setPhoneNumber(value);
736
772
  break;
737
- case 6:
773
+ case 3:
738
774
  var value = /** @type {string} */ (reader.readString());
739
775
  msg.setEmail(value);
740
776
  break;
@@ -751,9 +787,9 @@ proto.BaseUsers.deserializeBinaryFromReader = function(msg, reader) {
751
787
  * Serializes the message to binary data (in protobuf wire format).
752
788
  * @return {!Uint8Array}
753
789
  */
754
- proto.BaseUsers.prototype.serializeBinary = function() {
790
+ proto.UpdateUser.prototype.serializeBinary = function() {
755
791
  var writer = new jspb.BinaryWriter();
756
- proto.BaseUsers.serializeBinaryToWriter(this, writer);
792
+ proto.UpdateUser.serializeBinaryToWriter(this, writer);
757
793
  return writer.getResultBuffer();
758
794
  };
759
795
 
@@ -761,44 +797,30 @@ proto.BaseUsers.prototype.serializeBinary = function() {
761
797
  /**
762
798
  * Serializes the given message to binary data (in protobuf wire
763
799
  * format), writing to the given BinaryWriter.
764
- * @param {!proto.BaseUsers} message
800
+ * @param {!proto.UpdateUser} message
765
801
  * @param {!jspb.BinaryWriter} writer
766
802
  * @suppress {unusedLocalVariables} f is only used for nested messages
767
803
  */
768
- proto.BaseUsers.serializeBinaryToWriter = function(message, writer) {
804
+ proto.UpdateUser.serializeBinaryToWriter = function(message, writer) {
769
805
  var f = undefined;
770
- f = message.getId();
771
- if (f !== 0) {
772
- writer.writeInt32(
773
- 1,
774
- f
775
- );
776
- }
777
- f = message.getReferencesId();
778
- if (f.length > 0) {
779
- writer.writeString(
780
- 2,
781
- f
782
- );
783
- }
784
806
  f = message.getName();
785
807
  if (f.length > 0) {
786
808
  writer.writeString(
787
- 3,
809
+ 1,
788
810
  f
789
811
  );
790
812
  }
791
813
  f = message.getPhoneNumber();
792
814
  if (f.length > 0) {
793
815
  writer.writeString(
794
- 5,
816
+ 2,
795
817
  f
796
818
  );
797
819
  }
798
820
  f = message.getEmail();
799
821
  if (f.length > 0) {
800
822
  writer.writeString(
801
- 6,
823
+ 3,
802
824
  f
803
825
  );
804
826
  }
@@ -806,92 +828,418 @@ proto.BaseUsers.serializeBinaryToWriter = function(message, writer) {
806
828
 
807
829
 
808
830
  /**
809
- * optional int32 id = 1;
810
- * @return {number}
831
+ * optional string name = 1;
832
+ * @return {string}
811
833
  */
812
- proto.BaseUsers.prototype.getId = function() {
813
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
834
+ proto.UpdateUser.prototype.getName = function() {
835
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
814
836
  };
815
837
 
816
838
 
817
839
  /**
818
- * @param {number} value
819
- * @return {!proto.BaseUsers} returns this
840
+ * @param {string} value
841
+ * @return {!proto.UpdateUser} returns this
820
842
  */
821
- proto.BaseUsers.prototype.setId = function(value) {
822
- return jspb.Message.setProto3IntField(this, 1, value);
843
+ proto.UpdateUser.prototype.setName = function(value) {
844
+ return jspb.Message.setProto3StringField(this, 1, value);
823
845
  };
824
846
 
825
847
 
826
848
  /**
827
- * optional string references_id = 2;
849
+ * optional string phone_number = 2;
828
850
  * @return {string}
829
851
  */
830
- proto.BaseUsers.prototype.getReferencesId = function() {
852
+ proto.UpdateUser.prototype.getPhoneNumber = function() {
831
853
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
832
854
  };
833
855
 
834
856
 
835
857
  /**
836
858
  * @param {string} value
837
- * @return {!proto.BaseUsers} returns this
859
+ * @return {!proto.UpdateUser} returns this
838
860
  */
839
- proto.BaseUsers.prototype.setReferencesId = function(value) {
861
+ proto.UpdateUser.prototype.setPhoneNumber = function(value) {
840
862
  return jspb.Message.setProto3StringField(this, 2, value);
841
863
  };
842
864
 
843
865
 
844
866
  /**
845
- * optional string name = 3;
867
+ * optional string email = 3;
846
868
  * @return {string}
847
869
  */
848
- proto.BaseUsers.prototype.getName = function() {
870
+ proto.UpdateUser.prototype.getEmail = function() {
849
871
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
850
872
  };
851
873
 
852
874
 
853
875
  /**
854
876
  * @param {string} value
855
- * @return {!proto.BaseUsers} returns this
877
+ * @return {!proto.UpdateUser} returns this
856
878
  */
857
- proto.BaseUsers.prototype.setName = function(value) {
879
+ proto.UpdateUser.prototype.setEmail = function(value) {
858
880
  return jspb.Message.setProto3StringField(this, 3, value);
859
881
  };
860
882
 
861
883
 
884
+
885
+
886
+
887
+ if (jspb.Message.GENERATE_TO_OBJECT) {
862
888
  /**
863
- * optional string phone_number = 5;
889
+ * Creates an object representation of this proto.
890
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
891
+ * Optional fields that are not set will be set to undefined.
892
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
893
+ * For the list of reserved names please see:
894
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
895
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
896
+ * JSPB instance for transitional soy proto support:
897
+ * http://goto/soy-param-migration
898
+ * @return {!Object}
899
+ */
900
+ proto.UpdateUserRequest.prototype.toObject = function(opt_includeInstance) {
901
+ return proto.UpdateUserRequest.toObject(opt_includeInstance, this);
902
+ };
903
+
904
+
905
+ /**
906
+ * Static version of the {@see toObject} method.
907
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
908
+ * the JSPB instance for transitional soy proto support:
909
+ * http://goto/soy-param-migration
910
+ * @param {!proto.UpdateUserRequest} msg The msg instance to transform.
911
+ * @return {!Object}
912
+ * @suppress {unusedLocalVariables} f is only used for nested messages
913
+ */
914
+ proto.UpdateUserRequest.toObject = function(includeInstance, msg) {
915
+ var f, obj = {
916
+ user: (f = msg.getUser()) && proto.UpdateUser.toObject(includeInstance, f),
917
+ referencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
918
+ };
919
+
920
+ if (includeInstance) {
921
+ obj.$jspbMessageInstance = msg;
922
+ }
923
+ return obj;
924
+ };
925
+ }
926
+
927
+
928
+ /**
929
+ * Deserializes binary data (in protobuf wire format).
930
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
931
+ * @return {!proto.UpdateUserRequest}
932
+ */
933
+ proto.UpdateUserRequest.deserializeBinary = function(bytes) {
934
+ var reader = new jspb.BinaryReader(bytes);
935
+ var msg = new proto.UpdateUserRequest;
936
+ return proto.UpdateUserRequest.deserializeBinaryFromReader(msg, reader);
937
+ };
938
+
939
+
940
+ /**
941
+ * Deserializes binary data (in protobuf wire format) from the
942
+ * given reader into the given message object.
943
+ * @param {!proto.UpdateUserRequest} msg The message object to deserialize into.
944
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
945
+ * @return {!proto.UpdateUserRequest}
946
+ */
947
+ proto.UpdateUserRequest.deserializeBinaryFromReader = function(msg, reader) {
948
+ while (reader.nextField()) {
949
+ if (reader.isEndGroup()) {
950
+ break;
951
+ }
952
+ var field = reader.getFieldNumber();
953
+ switch (field) {
954
+ case 1:
955
+ var value = new proto.UpdateUser;
956
+ reader.readMessage(value,proto.UpdateUser.deserializeBinaryFromReader);
957
+ msg.setUser(value);
958
+ break;
959
+ case 2:
960
+ var value = /** @type {string} */ (reader.readString());
961
+ msg.setReferencesId(value);
962
+ break;
963
+ default:
964
+ reader.skipField();
965
+ break;
966
+ }
967
+ }
968
+ return msg;
969
+ };
970
+
971
+
972
+ /**
973
+ * Serializes the message to binary data (in protobuf wire format).
974
+ * @return {!Uint8Array}
975
+ */
976
+ proto.UpdateUserRequest.prototype.serializeBinary = function() {
977
+ var writer = new jspb.BinaryWriter();
978
+ proto.UpdateUserRequest.serializeBinaryToWriter(this, writer);
979
+ return writer.getResultBuffer();
980
+ };
981
+
982
+
983
+ /**
984
+ * Serializes the given message to binary data (in protobuf wire
985
+ * format), writing to the given BinaryWriter.
986
+ * @param {!proto.UpdateUserRequest} message
987
+ * @param {!jspb.BinaryWriter} writer
988
+ * @suppress {unusedLocalVariables} f is only used for nested messages
989
+ */
990
+ proto.UpdateUserRequest.serializeBinaryToWriter = function(message, writer) {
991
+ var f = undefined;
992
+ f = message.getUser();
993
+ if (f != null) {
994
+ writer.writeMessage(
995
+ 1,
996
+ f,
997
+ proto.UpdateUser.serializeBinaryToWriter
998
+ );
999
+ }
1000
+ f = message.getReferencesId();
1001
+ if (f.length > 0) {
1002
+ writer.writeString(
1003
+ 2,
1004
+ f
1005
+ );
1006
+ }
1007
+ };
1008
+
1009
+
1010
+ /**
1011
+ * optional UpdateUser user = 1;
1012
+ * @return {?proto.UpdateUser}
1013
+ */
1014
+ proto.UpdateUserRequest.prototype.getUser = function() {
1015
+ return /** @type{?proto.UpdateUser} */ (
1016
+ jspb.Message.getWrapperField(this, proto.UpdateUser, 1));
1017
+ };
1018
+
1019
+
1020
+ /**
1021
+ * @param {?proto.UpdateUser|undefined} value
1022
+ * @return {!proto.UpdateUserRequest} returns this
1023
+ */
1024
+ proto.UpdateUserRequest.prototype.setUser = function(value) {
1025
+ return jspb.Message.setWrapperField(this, 1, value);
1026
+ };
1027
+
1028
+
1029
+ /**
1030
+ * Clears the message field making it undefined.
1031
+ * @return {!proto.UpdateUserRequest} returns this
1032
+ */
1033
+ proto.UpdateUserRequest.prototype.clearUser = function() {
1034
+ return this.setUser(undefined);
1035
+ };
1036
+
1037
+
1038
+ /**
1039
+ * Returns whether this field is set.
1040
+ * @return {boolean}
1041
+ */
1042
+ proto.UpdateUserRequest.prototype.hasUser = function() {
1043
+ return jspb.Message.getField(this, 1) != null;
1044
+ };
1045
+
1046
+
1047
+ /**
1048
+ * optional string references_id = 2;
864
1049
  * @return {string}
865
1050
  */
866
- proto.BaseUsers.prototype.getPhoneNumber = function() {
867
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1051
+ proto.UpdateUserRequest.prototype.getReferencesId = function() {
1052
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
868
1053
  };
869
1054
 
870
1055
 
871
1056
  /**
872
1057
  * @param {string} value
873
- * @return {!proto.BaseUsers} returns this
1058
+ * @return {!proto.UpdateUserRequest} returns this
874
1059
  */
875
- proto.BaseUsers.prototype.setPhoneNumber = function(value) {
876
- return jspb.Message.setProto3StringField(this, 5, value);
1060
+ proto.UpdateUserRequest.prototype.setReferencesId = function(value) {
1061
+ return jspb.Message.setProto3StringField(this, 2, value);
877
1062
  };
878
1063
 
879
1064
 
1065
+
1066
+
1067
+
1068
+ if (jspb.Message.GENERATE_TO_OBJECT) {
880
1069
  /**
881
- * optional string email = 6;
1070
+ * Creates an object representation of this proto.
1071
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1072
+ * Optional fields that are not set will be set to undefined.
1073
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1074
+ * For the list of reserved names please see:
1075
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1076
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1077
+ * JSPB instance for transitional soy proto support:
1078
+ * http://goto/soy-param-migration
1079
+ * @return {!Object}
1080
+ */
1081
+ proto.UpdateUserResponse.prototype.toObject = function(opt_includeInstance) {
1082
+ return proto.UpdateUserResponse.toObject(opt_includeInstance, this);
1083
+ };
1084
+
1085
+
1086
+ /**
1087
+ * Static version of the {@see toObject} method.
1088
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1089
+ * the JSPB instance for transitional soy proto support:
1090
+ * http://goto/soy-param-migration
1091
+ * @param {!proto.UpdateUserResponse} msg The msg instance to transform.
1092
+ * @return {!Object}
1093
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1094
+ */
1095
+ proto.UpdateUserResponse.toObject = function(includeInstance, msg) {
1096
+ var f, obj = {
1097
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1098
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1099
+ };
1100
+
1101
+ if (includeInstance) {
1102
+ obj.$jspbMessageInstance = msg;
1103
+ }
1104
+ return obj;
1105
+ };
1106
+ }
1107
+
1108
+
1109
+ /**
1110
+ * Deserializes binary data (in protobuf wire format).
1111
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1112
+ * @return {!proto.UpdateUserResponse}
1113
+ */
1114
+ proto.UpdateUserResponse.deserializeBinary = function(bytes) {
1115
+ var reader = new jspb.BinaryReader(bytes);
1116
+ var msg = new proto.UpdateUserResponse;
1117
+ return proto.UpdateUserResponse.deserializeBinaryFromReader(msg, reader);
1118
+ };
1119
+
1120
+
1121
+ /**
1122
+ * Deserializes binary data (in protobuf wire format) from the
1123
+ * given reader into the given message object.
1124
+ * @param {!proto.UpdateUserResponse} msg The message object to deserialize into.
1125
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1126
+ * @return {!proto.UpdateUserResponse}
1127
+ */
1128
+ proto.UpdateUserResponse.deserializeBinaryFromReader = function(msg, reader) {
1129
+ while (reader.nextField()) {
1130
+ if (reader.isEndGroup()) {
1131
+ break;
1132
+ }
1133
+ var field = reader.getFieldNumber();
1134
+ switch (field) {
1135
+ case 1:
1136
+ var value = /** @type {string} */ (reader.readString());
1137
+ msg.setReferencesId(value);
1138
+ break;
1139
+ case 2:
1140
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1141
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1142
+ msg.setMeta(value);
1143
+ break;
1144
+ default:
1145
+ reader.skipField();
1146
+ break;
1147
+ }
1148
+ }
1149
+ return msg;
1150
+ };
1151
+
1152
+
1153
+ /**
1154
+ * Serializes the message to binary data (in protobuf wire format).
1155
+ * @return {!Uint8Array}
1156
+ */
1157
+ proto.UpdateUserResponse.prototype.serializeBinary = function() {
1158
+ var writer = new jspb.BinaryWriter();
1159
+ proto.UpdateUserResponse.serializeBinaryToWriter(this, writer);
1160
+ return writer.getResultBuffer();
1161
+ };
1162
+
1163
+
1164
+ /**
1165
+ * Serializes the given message to binary data (in protobuf wire
1166
+ * format), writing to the given BinaryWriter.
1167
+ * @param {!proto.UpdateUserResponse} message
1168
+ * @param {!jspb.BinaryWriter} writer
1169
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1170
+ */
1171
+ proto.UpdateUserResponse.serializeBinaryToWriter = function(message, writer) {
1172
+ var f = undefined;
1173
+ f = message.getReferencesId();
1174
+ if (f.length > 0) {
1175
+ writer.writeString(
1176
+ 1,
1177
+ f
1178
+ );
1179
+ }
1180
+ f = message.getMeta();
1181
+ if (f != null) {
1182
+ writer.writeMessage(
1183
+ 2,
1184
+ f,
1185
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1186
+ );
1187
+ }
1188
+ };
1189
+
1190
+
1191
+ /**
1192
+ * optional string references_id = 1;
882
1193
  * @return {string}
883
1194
  */
884
- proto.BaseUsers.prototype.getEmail = function() {
885
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1195
+ proto.UpdateUserResponse.prototype.getReferencesId = function() {
1196
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
886
1197
  };
887
1198
 
888
1199
 
889
1200
  /**
890
1201
  * @param {string} value
891
- * @return {!proto.BaseUsers} returns this
1202
+ * @return {!proto.UpdateUserResponse} returns this
892
1203
  */
893
- proto.BaseUsers.prototype.setEmail = function(value) {
894
- return jspb.Message.setProto3StringField(this, 6, value);
1204
+ proto.UpdateUserResponse.prototype.setReferencesId = function(value) {
1205
+ return jspb.Message.setProto3StringField(this, 1, value);
1206
+ };
1207
+
1208
+
1209
+ /**
1210
+ * optional prisca.v1.global.meta.Meta meta = 2;
1211
+ * @return {?proto.prisca.v1.global.meta.Meta}
1212
+ */
1213
+ proto.UpdateUserResponse.prototype.getMeta = function() {
1214
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1215
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1216
+ };
1217
+
1218
+
1219
+ /**
1220
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1221
+ * @return {!proto.UpdateUserResponse} returns this
1222
+ */
1223
+ proto.UpdateUserResponse.prototype.setMeta = function(value) {
1224
+ return jspb.Message.setWrapperField(this, 2, value);
1225
+ };
1226
+
1227
+
1228
+ /**
1229
+ * Clears the message field making it undefined.
1230
+ * @return {!proto.UpdateUserResponse} returns this
1231
+ */
1232
+ proto.UpdateUserResponse.prototype.clearMeta = function() {
1233
+ return this.setMeta(undefined);
1234
+ };
1235
+
1236
+
1237
+ /**
1238
+ * Returns whether this field is set.
1239
+ * @return {boolean}
1240
+ */
1241
+ proto.UpdateUserResponse.prototype.hasMeta = function() {
1242
+ return jspb.Message.getField(this, 2) != null;
895
1243
  };
896
1244
 
897
1245