683 lines
20 KiB
Go
683 lines
20 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v6.31.1
|
|
// source: services/user-svc/user.proto
|
|
|
|
package user
|
|
|
|
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 string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
|
|
Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *User) Reset() {
|
|
*x = User{}
|
|
mi := &file_services_user_svc_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_services_user_svc_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_services_user_svc_user_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *User) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateUserRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
|
|
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateUserRequest) Reset() {
|
|
*x = CreateUserRequest{}
|
|
mi := &file_services_user_svc_user_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateUserRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateUserRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_services_user_svc_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 CreateUserRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateUserRequest) Descriptor() ([]byte, []int) {
|
|
return file_services_user_svc_user_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateUserResponse 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 *CreateUserResponse) Reset() {
|
|
*x = CreateUserResponse{}
|
|
mi := &file_services_user_svc_user_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateUserResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateUserResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateUserResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_services_user_svc_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 CreateUserResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateUserResponse) Descriptor() ([]byte, []int) {
|
|
return file_services_user_svc_user_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *CreateUserResponse) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetUserRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserRequest) Reset() {
|
|
*x = GetUserRequest{}
|
|
mi := &file_services_user_svc_user_proto_msgTypes[3]
|
|
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_services_user_svc_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 GetUserRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetUserRequest) Descriptor() ([]byte, []int) {
|
|
return file_services_user_svc_user_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *GetUserRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
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_services_user_svc_user_proto_msgTypes[4]
|
|
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_services_user_svc_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 GetUserResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetUserResponse) Descriptor() ([]byte, []int) {
|
|
return file_services_user_svc_user_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *GetUserResponse) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListUsersRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListUsersRequest) Reset() {
|
|
*x = ListUsersRequest{}
|
|
mi := &file_services_user_svc_user_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListUsersRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListUsersRequest) ProtoMessage() {}
|
|
|
|
func (x *ListUsersRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_services_user_svc_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 ListUsersRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListUsersRequest) Descriptor() ([]byte, []int) {
|
|
return file_services_user_svc_user_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
type ListUsersResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListUsersResponse) Reset() {
|
|
*x = ListUsersResponse{}
|
|
mi := &file_services_user_svc_user_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListUsersResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListUsersResponse) ProtoMessage() {}
|
|
|
|
func (x *ListUsersResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_services_user_svc_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 ListUsersResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListUsersResponse) Descriptor() ([]byte, []int) {
|
|
return file_services_user_svc_user_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ListUsersResponse) GetUsers() []*User {
|
|
if x != nil {
|
|
return x.Users
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UpdateUserRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
|
|
Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateUserRequest) Reset() {
|
|
*x = UpdateUserRequest{}
|
|
mi := &file_services_user_svc_user_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateUserRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateUserRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_services_user_svc_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 UpdateUserRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateUserRequest) Descriptor() ([]byte, []int) {
|
|
return file_services_user_svc_user_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *UpdateUserRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserRequest) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UpdateUserResponse 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 *UpdateUserResponse) Reset() {
|
|
*x = UpdateUserResponse{}
|
|
mi := &file_services_user_svc_user_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateUserResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateUserResponse) ProtoMessage() {}
|
|
|
|
func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_services_user_svc_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 UpdateUserResponse.ProtoReflect.Descriptor instead.
|
|
func (*UpdateUserResponse) Descriptor() ([]byte, []int) {
|
|
return file_services_user_svc_user_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *UpdateUserResponse) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteUserRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteUserRequest) Reset() {
|
|
*x = DeleteUserRequest{}
|
|
mi := &file_services_user_svc_user_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteUserRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteUserRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_services_user_svc_user_proto_msgTypes[9]
|
|
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 DeleteUserRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteUserRequest) Descriptor() ([]byte, []int) {
|
|
return file_services_user_svc_user_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *DeleteUserRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteUserResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteUserResponse) Reset() {
|
|
*x = DeleteUserResponse{}
|
|
mi := &file_services_user_svc_user_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteUserResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteUserResponse) ProtoMessage() {}
|
|
|
|
func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_services_user_svc_user_proto_msgTypes[10]
|
|
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 DeleteUserResponse.ProtoReflect.Descriptor instead.
|
|
func (*DeleteUserResponse) Descriptor() ([]byte, []int) {
|
|
return file_services_user_svc_user_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *DeleteUserResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
var File_services_user_svc_user_proto protoreflect.FileDescriptor
|
|
|
|
const file_services_user_svc_user_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1cservices/user-svc/user.proto\x12\x04user\"\\\n" +
|
|
"\x04User\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x14\n" +
|
|
"\x05email\x18\x03 \x01(\tR\x05email\x12\x1a\n" +
|
|
"\bpassword\x18\x04 \x01(\tR\bpassword\"Y\n" +
|
|
"\x11CreateUserRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +
|
|
"\x05email\x18\x02 \x01(\tR\x05email\x12\x1a\n" +
|
|
"\bpassword\x18\x03 \x01(\tR\bpassword\"4\n" +
|
|
"\x12CreateUserResponse\x12\x1e\n" +
|
|
"\x04user\x18\x01 \x01(\v2\n" +
|
|
".user.UserR\x04user\" \n" +
|
|
"\x0eGetUserRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\"1\n" +
|
|
"\x0fGetUserResponse\x12\x1e\n" +
|
|
"\x04user\x18\x01 \x01(\v2\n" +
|
|
".user.UserR\x04user\"\x12\n" +
|
|
"\x10ListUsersRequest\"5\n" +
|
|
"\x11ListUsersResponse\x12 \n" +
|
|
"\x05users\x18\x01 \x03(\v2\n" +
|
|
".user.UserR\x05users\"i\n" +
|
|
"\x11UpdateUserRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x14\n" +
|
|
"\x05email\x18\x03 \x01(\tR\x05email\x12\x1a\n" +
|
|
"\bpassword\x18\x04 \x01(\tR\bpassword\"4\n" +
|
|
"\x12UpdateUserResponse\x12\x1e\n" +
|
|
"\x04user\x18\x01 \x01(\v2\n" +
|
|
".user.UserR\x04user\"#\n" +
|
|
"\x11DeleteUserRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\".\n" +
|
|
"\x12DeleteUserResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess2\xc6\x02\n" +
|
|
"\vUserService\x12?\n" +
|
|
"\n" +
|
|
"CreateUser\x12\x17.user.CreateUserRequest\x1a\x18.user.CreateUserResponse\x126\n" +
|
|
"\aGetUser\x12\x14.user.GetUserRequest\x1a\x15.user.GetUserResponse\x12<\n" +
|
|
"\tListUsers\x12\x16.user.ListUsersRequest\x1a\x17.user.ListUsersResponse\x12?\n" +
|
|
"\n" +
|
|
"UpdateUser\x12\x17.user.UpdateUserRequest\x1a\x18.user.UpdateUserResponse\x12?\n" +
|
|
"\n" +
|
|
"DeleteUser\x12\x17.user.DeleteUserRequest\x1a\x18.user.DeleteUserResponseB\bZ\x06./userb\x06proto3"
|
|
|
|
var (
|
|
file_services_user_svc_user_proto_rawDescOnce sync.Once
|
|
file_services_user_svc_user_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_services_user_svc_user_proto_rawDescGZIP() []byte {
|
|
file_services_user_svc_user_proto_rawDescOnce.Do(func() {
|
|
file_services_user_svc_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_services_user_svc_user_proto_rawDesc), len(file_services_user_svc_user_proto_rawDesc)))
|
|
})
|
|
return file_services_user_svc_user_proto_rawDescData
|
|
}
|
|
|
|
var file_services_user_svc_user_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
|
var file_services_user_svc_user_proto_goTypes = []any{
|
|
(*User)(nil), // 0: user.User
|
|
(*CreateUserRequest)(nil), // 1: user.CreateUserRequest
|
|
(*CreateUserResponse)(nil), // 2: user.CreateUserResponse
|
|
(*GetUserRequest)(nil), // 3: user.GetUserRequest
|
|
(*GetUserResponse)(nil), // 4: user.GetUserResponse
|
|
(*ListUsersRequest)(nil), // 5: user.ListUsersRequest
|
|
(*ListUsersResponse)(nil), // 6: user.ListUsersResponse
|
|
(*UpdateUserRequest)(nil), // 7: user.UpdateUserRequest
|
|
(*UpdateUserResponse)(nil), // 8: user.UpdateUserResponse
|
|
(*DeleteUserRequest)(nil), // 9: user.DeleteUserRequest
|
|
(*DeleteUserResponse)(nil), // 10: user.DeleteUserResponse
|
|
}
|
|
var file_services_user_svc_user_proto_depIdxs = []int32{
|
|
0, // 0: user.CreateUserResponse.user:type_name -> user.User
|
|
0, // 1: user.GetUserResponse.user:type_name -> user.User
|
|
0, // 2: user.ListUsersResponse.users:type_name -> user.User
|
|
0, // 3: user.UpdateUserResponse.user:type_name -> user.User
|
|
1, // 4: user.UserService.CreateUser:input_type -> user.CreateUserRequest
|
|
3, // 5: user.UserService.GetUser:input_type -> user.GetUserRequest
|
|
5, // 6: user.UserService.ListUsers:input_type -> user.ListUsersRequest
|
|
7, // 7: user.UserService.UpdateUser:input_type -> user.UpdateUserRequest
|
|
9, // 8: user.UserService.DeleteUser:input_type -> user.DeleteUserRequest
|
|
2, // 9: user.UserService.CreateUser:output_type -> user.CreateUserResponse
|
|
4, // 10: user.UserService.GetUser:output_type -> user.GetUserResponse
|
|
6, // 11: user.UserService.ListUsers:output_type -> user.ListUsersResponse
|
|
8, // 12: user.UserService.UpdateUser:output_type -> user.UpdateUserResponse
|
|
10, // 13: user.UserService.DeleteUser:output_type -> user.DeleteUserResponse
|
|
9, // [9:14] is the sub-list for method output_type
|
|
4, // [4:9] is the sub-list for method input_type
|
|
4, // [4:4] is the sub-list for extension type_name
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
0, // [0:4] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_services_user_svc_user_proto_init() }
|
|
func file_services_user_svc_user_proto_init() {
|
|
if File_services_user_svc_user_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_services_user_svc_user_proto_rawDesc), len(file_services_user_svc_user_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 11,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_services_user_svc_user_proto_goTypes,
|
|
DependencyIndexes: file_services_user_svc_user_proto_depIdxs,
|
|
MessageInfos: file_services_user_svc_user_proto_msgTypes,
|
|
}.Build()
|
|
File_services_user_svc_user_proto = out.File
|
|
file_services_user_svc_user_proto_goTypes = nil
|
|
file_services_user_svc_user_proto_depIdxs = nil
|
|
}
|