439 lines
14 KiB
Go
439 lines
14 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.6
|
|
// protoc v4.25.0
|
|
// source: ucenter/user/user.proto
|
|
|
|
package user
|
|
|
|
import (
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
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 CreateUserInfoRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
|
|
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
|
|
Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateUserInfoRequest) Reset() {
|
|
*x = CreateUserInfoRequest{}
|
|
mi := &file_ucenter_user_user_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateUserInfoRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateUserInfoRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateUserInfoRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_ucenter_user_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 CreateUserInfoRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateUserInfoRequest) Descriptor() ([]byte, []int) {
|
|
return file_ucenter_user_user_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CreateUserInfoRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserInfoRequest) GetNickname() string {
|
|
if x != nil {
|
|
return x.Nickname
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserInfoRequest) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserInfoRequest) GetPhone() string {
|
|
if x != nil {
|
|
return x.Phone
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateUserInfoReply 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 *CreateUserInfoReply) Reset() {
|
|
*x = CreateUserInfoReply{}
|
|
mi := &file_ucenter_user_user_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateUserInfoReply) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateUserInfoReply) ProtoMessage() {}
|
|
|
|
func (x *CreateUserInfoReply) ProtoReflect() protoreflect.Message {
|
|
mi := &file_ucenter_user_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 CreateUserInfoReply.ProtoReflect.Descriptor instead.
|
|
func (*CreateUserInfoReply) Descriptor() ([]byte, []int) {
|
|
return file_ucenter_user_user_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CreateUserInfoReply) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetUserInfoRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserInfoRequest) Reset() {
|
|
*x = GetUserInfoRequest{}
|
|
mi := &file_ucenter_user_user_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUserInfoRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUserInfoRequest) ProtoMessage() {}
|
|
|
|
func (x *GetUserInfoRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_ucenter_user_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 GetUserInfoRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetUserInfoRequest) Descriptor() ([]byte, []int) {
|
|
return file_ucenter_user_user_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *GetUserInfoRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetUserInfoReply struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Users []*GetUserInfoReply_User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserInfoReply) Reset() {
|
|
*x = GetUserInfoReply{}
|
|
mi := &file_ucenter_user_user_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUserInfoReply) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUserInfoReply) ProtoMessage() {}
|
|
|
|
func (x *GetUserInfoReply) ProtoReflect() protoreflect.Message {
|
|
mi := &file_ucenter_user_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 GetUserInfoReply.ProtoReflect.Descriptor instead.
|
|
func (*GetUserInfoReply) Descriptor() ([]byte, []int) {
|
|
return file_ucenter_user_user_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *GetUserInfoReply) GetUsers() []*GetUserInfoReply_User {
|
|
if x != nil {
|
|
return x.Users
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetUserInfoReply_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"`
|
|
Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`
|
|
Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
|
|
Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"`
|
|
Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"`
|
|
IsDeleted bool `protobuf:"varint,7,opt,name=is_deleted,json=isDeleted,proto3" json:"is_deleted,omitempty"`
|
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
|
|
DeletedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserInfoReply_User) Reset() {
|
|
*x = GetUserInfoReply_User{}
|
|
mi := &file_ucenter_user_user_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUserInfoReply_User) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUserInfoReply_User) ProtoMessage() {}
|
|
|
|
func (x *GetUserInfoReply_User) ProtoReflect() protoreflect.Message {
|
|
mi := &file_ucenter_user_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 GetUserInfoReply_User.ProtoReflect.Descriptor instead.
|
|
func (*GetUserInfoReply_User) Descriptor() ([]byte, []int) {
|
|
return file_ucenter_user_user_proto_rawDescGZIP(), []int{3, 0}
|
|
}
|
|
|
|
func (x *GetUserInfoReply_User) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserInfoReply_User) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserInfoReply_User) GetNickname() string {
|
|
if x != nil {
|
|
return x.Nickname
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserInfoReply_User) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserInfoReply_User) GetPhone() string {
|
|
if x != nil {
|
|
return x.Phone
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserInfoReply_User) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserInfoReply_User) GetIsDeleted() bool {
|
|
if x != nil {
|
|
return x.IsDeleted
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetUserInfoReply_User) GetCreatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetUserInfoReply_User) GetUpdatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.UpdatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetUserInfoReply_User) GetDeletedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.DeletedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_ucenter_user_user_proto protoreflect.FileDescriptor
|
|
|
|
const file_ucenter_user_user_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x17ucenter/user/user.proto\x12\x10api.ucenter.user\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"s\n" +
|
|
"\x15CreateUserInfoRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1a\n" +
|
|
"\bnickname\x18\x02 \x01(\tR\bnickname\x12\x14\n" +
|
|
"\x05email\x18\x03 \x01(\tR\x05email\x12\x14\n" +
|
|
"\x05phone\x18\x04 \x01(\tR\x05phone\"%\n" +
|
|
"\x13CreateUserInfoReply\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\"-\n" +
|
|
"\x12GetUserInfoRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\tR\x06userId\"\xb2\x03\n" +
|
|
"\x10GetUserInfoReply\x12=\n" +
|
|
"\x05users\x18\x01 \x03(\v2'.api.ucenter.user.GetUserInfoReply.UserR\x05users\x1a\xde\x02\n" +
|
|
"\x04User\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1a\n" +
|
|
"\bnickname\x18\x03 \x01(\tR\bnickname\x12\x14\n" +
|
|
"\x05email\x18\x04 \x01(\tR\x05email\x12\x14\n" +
|
|
"\x05phone\x18\x05 \x01(\tR\x05phone\x12\x1a\n" +
|
|
"\bpassword\x18\x06 \x01(\tR\bpassword\x12\x1d\n" +
|
|
"\n" +
|
|
"is_deleted\x18\a \x01(\bR\tisDeleted\x129\n" +
|
|
"\n" +
|
|
"created_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
|
|
"\n" +
|
|
"updated_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x129\n" +
|
|
"\n" +
|
|
"deleted_at\x18\n" +
|
|
" \x01(\v2\x1a.google.protobuf.TimestampR\tdeletedAt2\x88\x02\n" +
|
|
"\x04User\x12|\n" +
|
|
"\vGetUserInfo\x12$.api.ucenter.user.GetUserInfoRequest\x1a\".api.ucenter.user.GetUserInfoReply\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/ucenter/user/get_user_info\x12\x81\x01\n" +
|
|
"\x0eCreateUserInfo\x12'.api.ucenter.user.CreateUserInfoRequest\x1a%.api.ucenter.user.CreateUserInfoReply\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/ucenter/user/createB8\n" +
|
|
"\x10api.ucenter.userP\x01Z\"ky-go-kratos/api/ucenter/user;userb\x06proto3"
|
|
|
|
var (
|
|
file_ucenter_user_user_proto_rawDescOnce sync.Once
|
|
file_ucenter_user_user_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_ucenter_user_user_proto_rawDescGZIP() []byte {
|
|
file_ucenter_user_user_proto_rawDescOnce.Do(func() {
|
|
file_ucenter_user_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ucenter_user_user_proto_rawDesc), len(file_ucenter_user_user_proto_rawDesc)))
|
|
})
|
|
return file_ucenter_user_user_proto_rawDescData
|
|
}
|
|
|
|
var file_ucenter_user_user_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
var file_ucenter_user_user_proto_goTypes = []any{
|
|
(*CreateUserInfoRequest)(nil), // 0: api.ucenter.user.CreateUserInfoRequest
|
|
(*CreateUserInfoReply)(nil), // 1: api.ucenter.user.CreateUserInfoReply
|
|
(*GetUserInfoRequest)(nil), // 2: api.ucenter.user.GetUserInfoRequest
|
|
(*GetUserInfoReply)(nil), // 3: api.ucenter.user.GetUserInfoReply
|
|
(*GetUserInfoReply_User)(nil), // 4: api.ucenter.user.GetUserInfoReply.User
|
|
(*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
|
|
}
|
|
var file_ucenter_user_user_proto_depIdxs = []int32{
|
|
4, // 0: api.ucenter.user.GetUserInfoReply.users:type_name -> api.ucenter.user.GetUserInfoReply.User
|
|
5, // 1: api.ucenter.user.GetUserInfoReply.User.created_at:type_name -> google.protobuf.Timestamp
|
|
5, // 2: api.ucenter.user.GetUserInfoReply.User.updated_at:type_name -> google.protobuf.Timestamp
|
|
5, // 3: api.ucenter.user.GetUserInfoReply.User.deleted_at:type_name -> google.protobuf.Timestamp
|
|
2, // 4: api.ucenter.user.User.GetUserInfo:input_type -> api.ucenter.user.GetUserInfoRequest
|
|
0, // 5: api.ucenter.user.User.CreateUserInfo:input_type -> api.ucenter.user.CreateUserInfoRequest
|
|
3, // 6: api.ucenter.user.User.GetUserInfo:output_type -> api.ucenter.user.GetUserInfoReply
|
|
1, // 7: api.ucenter.user.User.CreateUserInfo:output_type -> api.ucenter.user.CreateUserInfoReply
|
|
6, // [6:8] is the sub-list for method output_type
|
|
4, // [4:6] 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_ucenter_user_user_proto_init() }
|
|
func file_ucenter_user_user_proto_init() {
|
|
if File_ucenter_user_user_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_ucenter_user_user_proto_rawDesc), len(file_ucenter_user_user_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 5,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_ucenter_user_user_proto_goTypes,
|
|
DependencyIndexes: file_ucenter_user_user_proto_depIdxs,
|
|
MessageInfos: file_ucenter_user_user_proto_msgTypes,
|
|
}.Build()
|
|
File_ucenter_user_user_proto = out.File
|
|
file_ucenter_user_user_proto_goTypes = nil
|
|
file_ucenter_user_user_proto_depIdxs = nil
|
|
}
|