// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc (unknown) // source: user/v1/user.proto package userv1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) type User struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` ProfilePictureId *int64 `protobuf:"varint,3,opt,name=profile_picture_id,json=profilePictureId,proto3,oneof" json:"profile_picture_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *User) Reset() { *x = User{} mi := &file_user_v1_user_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *User) String() string { return protoimpl.X.MessageStringOf(x) } func (*User) ProtoMessage() {} func (x *User) ProtoReflect() protoreflect.Message { mi := &file_user_v1_user_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use User.ProtoReflect.Descriptor instead. func (*User) Descriptor() ([]byte, []int) { return file_user_v1_user_proto_rawDescGZIP(), []int{0} } func (x *User) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *User) GetUsername() string { if x != nil { return x.Username } return "" } func (x *User) GetProfilePictureId() int64 { if x != nil && x.ProfilePictureId != nil { return *x.ProfilePictureId } return 0 } type GetUserRequest struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetUserRequest) Reset() { *x = GetUserRequest{} mi := &file_user_v1_user_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetUserRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetUserRequest) ProtoMessage() {} func (x *GetUserRequest) ProtoReflect() protoreflect.Message { mi := &file_user_v1_user_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead. func (*GetUserRequest) Descriptor() ([]byte, []int) { return file_user_v1_user_proto_rawDescGZIP(), []int{1} } type GetUserResponse struct { state protoimpl.MessageState `protogen:"open.v1"` User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetUserResponse) Reset() { *x = GetUserResponse{} mi := &file_user_v1_user_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetUserResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetUserResponse) ProtoMessage() {} func (x *GetUserResponse) ProtoReflect() protoreflect.Message { mi := &file_user_v1_user_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead. func (*GetUserResponse) Descriptor() ([]byte, []int) { return file_user_v1_user_proto_rawDescGZIP(), []int{2} } func (x *GetUserResponse) GetUser() *User { if x != nil { return x.User } return nil } type UpdatePasswordRequest struct { state protoimpl.MessageState `protogen:"open.v1"` OldPassword string `protobuf:"bytes,1,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"` NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` ConfirmPassword string `protobuf:"bytes,3,opt,name=confirm_password,json=confirmPassword,proto3" json:"confirm_password,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *UpdatePasswordRequest) Reset() { *x = UpdatePasswordRequest{} mi := &file_user_v1_user_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *UpdatePasswordRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdatePasswordRequest) ProtoMessage() {} func (x *UpdatePasswordRequest) ProtoReflect() protoreflect.Message { mi := &file_user_v1_user_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UpdatePasswordRequest.ProtoReflect.Descriptor instead. func (*UpdatePasswordRequest) Descriptor() ([]byte, []int) { return file_user_v1_user_proto_rawDescGZIP(), []int{3} } func (x *UpdatePasswordRequest) GetOldPassword() string { if x != nil { return x.OldPassword } return "" } func (x *UpdatePasswordRequest) GetNewPassword() string { if x != nil { return x.NewPassword } return "" } func (x *UpdatePasswordRequest) GetConfirmPassword() string { if x != nil { return x.ConfirmPassword } return "" } type UpdatePasswordResponse struct { state protoimpl.MessageState `protogen:"open.v1"` User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *UpdatePasswordResponse) Reset() { *x = UpdatePasswordResponse{} mi := &file_user_v1_user_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *UpdatePasswordResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdatePasswordResponse) ProtoMessage() {} func (x *UpdatePasswordResponse) ProtoReflect() protoreflect.Message { mi := &file_user_v1_user_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UpdatePasswordResponse.ProtoReflect.Descriptor instead. func (*UpdatePasswordResponse) Descriptor() ([]byte, []int) { return file_user_v1_user_proto_rawDescGZIP(), []int{4} } func (x *UpdatePasswordResponse) GetUser() *User { if x != nil { return x.User } return nil } type GetAPIKeyRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` ConfirmPassword string `protobuf:"bytes,2,opt,name=confirm_password,json=confirmPassword,proto3" json:"confirm_password,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetAPIKeyRequest) Reset() { *x = GetAPIKeyRequest{} mi := &file_user_v1_user_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetAPIKeyRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetAPIKeyRequest) ProtoMessage() {} func (x *GetAPIKeyRequest) ProtoReflect() protoreflect.Message { mi := &file_user_v1_user_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetAPIKeyRequest.ProtoReflect.Descriptor instead. func (*GetAPIKeyRequest) Descriptor() ([]byte, []int) { return file_user_v1_user_proto_rawDescGZIP(), []int{5} } func (x *GetAPIKeyRequest) GetPassword() string { if x != nil { return x.Password } return "" } func (x *GetAPIKeyRequest) GetConfirmPassword() string { if x != nil { return x.ConfirmPassword } return "" } type GetAPIKeyResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetAPIKeyResponse) Reset() { *x = GetAPIKeyResponse{} mi := &file_user_v1_user_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetAPIKeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetAPIKeyResponse) ProtoMessage() {} func (x *GetAPIKeyResponse) ProtoReflect() protoreflect.Message { mi := &file_user_v1_user_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetAPIKeyResponse.ProtoReflect.Descriptor instead. func (*GetAPIKeyResponse) Descriptor() ([]byte, []int) { return file_user_v1_user_proto_rawDescGZIP(), []int{6} } func (x *GetAPIKeyResponse) GetKey() string { if x != nil { return x.Key } return "" } type UpdateProfilePictureRequest struct { state protoimpl.MessageState `protogen:"open.v1"` FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *UpdateProfilePictureRequest) Reset() { *x = UpdateProfilePictureRequest{} mi := &file_user_v1_user_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *UpdateProfilePictureRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateProfilePictureRequest) ProtoMessage() {} func (x *UpdateProfilePictureRequest) ProtoReflect() protoreflect.Message { mi := &file_user_v1_user_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UpdateProfilePictureRequest.ProtoReflect.Descriptor instead. func (*UpdateProfilePictureRequest) Descriptor() ([]byte, []int) { return file_user_v1_user_proto_rawDescGZIP(), []int{7} } func (x *UpdateProfilePictureRequest) GetFileName() string { if x != nil { return x.FileName } return "" } func (x *UpdateProfilePictureRequest) GetData() []byte { if x != nil { return x.Data } return nil } type UpdateProfilePictureResponse struct { state protoimpl.MessageState `protogen:"open.v1"` User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *UpdateProfilePictureResponse) Reset() { *x = UpdateProfilePictureResponse{} mi := &file_user_v1_user_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *UpdateProfilePictureResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateProfilePictureResponse) ProtoMessage() {} func (x *UpdateProfilePictureResponse) ProtoReflect() protoreflect.Message { mi := &file_user_v1_user_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UpdateProfilePictureResponse.ProtoReflect.Descriptor instead. func (*UpdateProfilePictureResponse) Descriptor() ([]byte, []int) { return file_user_v1_user_proto_rawDescGZIP(), []int{8} } func (x *UpdateProfilePictureResponse) GetUser() *User { if x != nil { return x.User } return nil } var File_user_v1_user_proto protoreflect.FileDescriptor const file_user_v1_user_proto_rawDesc = "" + "\n" + "\x12user/v1/user.proto\x12\auser.v1\"|\n" + "\x04User\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" + "\busername\x18\x02 \x01(\tR\busername\x121\n" + "\x12profile_picture_id\x18\x03 \x01(\x03H\x00R\x10profilePictureId\x88\x01\x01B\x15\n" + "\x13_profile_picture_id\"\x10\n" + "\x0eGetUserRequest\"4\n" + "\x0fGetUserResponse\x12!\n" + "\x04user\x18\x01 \x01(\v2\r.user.v1.UserR\x04user\"\x88\x01\n" + "\x15UpdatePasswordRequest\x12!\n" + "\fold_password\x18\x01 \x01(\tR\voldPassword\x12!\n" + "\fnew_password\x18\x02 \x01(\tR\vnewPassword\x12)\n" + "\x10confirm_password\x18\x03 \x01(\tR\x0fconfirmPassword\";\n" + "\x16UpdatePasswordResponse\x12!\n" + "\x04user\x18\x01 \x01(\v2\r.user.v1.UserR\x04user\"Y\n" + "\x10GetAPIKeyRequest\x12\x1a\n" + "\bpassword\x18\x01 \x01(\tR\bpassword\x12)\n" + "\x10confirm_password\x18\x02 \x01(\tR\x0fconfirmPassword\"%\n" + "\x11GetAPIKeyResponse\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\"N\n" + "\x1bUpdateProfilePictureRequest\x12\x1b\n" + "\tfile_name\x18\x01 \x01(\tR\bfileName\x12\x12\n" + "\x04data\x18\x02 \x01(\fR\x04data\"A\n" + "\x1cUpdateProfilePictureResponse\x12!\n" + "\x04user\x18\x01 \x01(\v2\r.user.v1.UserR\x04user2\xcf\x02\n" + "\vUserService\x12>\n" + "\aGetUser\x12\x17.user.v1.GetUserRequest\x1a\x18.user.v1.GetUserResponse\"\x00\x12S\n" + "\x0eUpdatePassword\x12\x1e.user.v1.UpdatePasswordRequest\x1a\x1f.user.v1.UpdatePasswordResponse\"\x00\x12D\n" + "\tGetAPIKey\x12\x19.user.v1.GetAPIKeyRequest\x1a\x1a.user.v1.GetAPIKeyResponse\"\x00\x12e\n" + "\x14UpdateProfilePicture\x12$.user.v1.UpdateProfilePictureRequest\x1a%.user.v1.UpdateProfilePictureResponse\"\x00B\x9c\x01\n" + "\vcom.user.v1B\tUserProtoP\x01ZEgithub.com/spotdemo4/trevstack/server/internal/connect/user/v1;userv1\xa2\x02\x03UXX\xaa\x02\aUser.V1\xca\x02\aUser\\V1\xe2\x02\x13User\\V1\\GPBMetadata\xea\x02\bUser::V1b\x06proto3" var ( file_user_v1_user_proto_rawDescOnce sync.Once file_user_v1_user_proto_rawDescData []byte ) func file_user_v1_user_proto_rawDescGZIP() []byte { file_user_v1_user_proto_rawDescOnce.Do(func() { file_user_v1_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_user_v1_user_proto_rawDesc), len(file_user_v1_user_proto_rawDesc))) }) return file_user_v1_user_proto_rawDescData } var file_user_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_user_v1_user_proto_goTypes = []any{ (*User)(nil), // 0: user.v1.User (*GetUserRequest)(nil), // 1: user.v1.GetUserRequest (*GetUserResponse)(nil), // 2: user.v1.GetUserResponse (*UpdatePasswordRequest)(nil), // 3: user.v1.UpdatePasswordRequest (*UpdatePasswordResponse)(nil), // 4: user.v1.UpdatePasswordResponse (*GetAPIKeyRequest)(nil), // 5: user.v1.GetAPIKeyRequest (*GetAPIKeyResponse)(nil), // 6: user.v1.GetAPIKeyResponse (*UpdateProfilePictureRequest)(nil), // 7: user.v1.UpdateProfilePictureRequest (*UpdateProfilePictureResponse)(nil), // 8: user.v1.UpdateProfilePictureResponse } var file_user_v1_user_proto_depIdxs = []int32{ 0, // 0: user.v1.GetUserResponse.user:type_name -> user.v1.User 0, // 1: user.v1.UpdatePasswordResponse.user:type_name -> user.v1.User 0, // 2: user.v1.UpdateProfilePictureResponse.user:type_name -> user.v1.User 1, // 3: user.v1.UserService.GetUser:input_type -> user.v1.GetUserRequest 3, // 4: user.v1.UserService.UpdatePassword:input_type -> user.v1.UpdatePasswordRequest 5, // 5: user.v1.UserService.GetAPIKey:input_type -> user.v1.GetAPIKeyRequest 7, // 6: user.v1.UserService.UpdateProfilePicture:input_type -> user.v1.UpdateProfilePictureRequest 2, // 7: user.v1.UserService.GetUser:output_type -> user.v1.GetUserResponse 4, // 8: user.v1.UserService.UpdatePassword:output_type -> user.v1.UpdatePasswordResponse 6, // 9: user.v1.UserService.GetAPIKey:output_type -> user.v1.GetAPIKeyResponse 8, // 10: user.v1.UserService.UpdateProfilePicture:output_type -> user.v1.UpdateProfilePictureResponse 7, // [7:11] is the sub-list for method output_type 3, // [3:7] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name 3, // [3:3] is the sub-list for extension extendee 0, // [0:3] is the sub-list for field type_name } func init() { file_user_v1_user_proto_init() } func file_user_v1_user_proto_init() { if File_user_v1_user_proto != nil { return } file_user_v1_user_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_user_v1_user_proto_rawDesc), len(file_user_v1_user_proto_rawDesc)), NumEnums: 0, NumMessages: 9, NumExtensions: 0, NumServices: 1, }, GoTypes: file_user_v1_user_proto_goTypes, DependencyIndexes: file_user_v1_user_proto_depIdxs, MessageInfos: file_user_v1_user_proto_msgTypes, }.Build() File_user_v1_user_proto = out.File file_user_v1_user_proto_goTypes = nil file_user_v1_user_proto_depIdxs = nil }