// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.20.0 // source: user/user_msg.proto package pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) 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 UserLoginReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account"` //账号 Sid int32 `protobuf:"varint,2,opt,name=sid,proto3" json:"sid"` //区服编号 } func (x *UserLoginReq) Reset() { *x = UserLoginReq{} if protoimpl.UnsafeEnabled { mi := &file_user_user_msg_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UserLoginReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*UserLoginReq) ProtoMessage() {} func (x *UserLoginReq) ProtoReflect() protoreflect.Message { mi := &file_user_user_msg_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UserLoginReq.ProtoReflect.Descriptor instead. func (*UserLoginReq) Descriptor() ([]byte, []int) { return file_user_user_msg_proto_rawDescGZIP(), []int{0} } func (x *UserLoginReq) GetAccount() string { if x != nil { return x.Account } return "" } func (x *UserLoginReq) GetSid() int32 { if x != nil { return x.Sid } return 0 } type UserLoginResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Data *DBUser `protobuf:"bytes,1,opt,name=data,proto3" json:"data"` } func (x *UserLoginResp) Reset() { *x = UserLoginResp{} if protoimpl.UnsafeEnabled { mi := &file_user_user_msg_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UserLoginResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*UserLoginResp) ProtoMessage() {} func (x *UserLoginResp) ProtoReflect() protoreflect.Message { mi := &file_user_user_msg_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UserLoginResp.ProtoReflect.Descriptor instead. func (*UserLoginResp) Descriptor() ([]byte, []int) { return file_user_user_msg_proto_rawDescGZIP(), []int{1} } func (x *UserLoginResp) GetData() *DBUser { if x != nil { return x.Data } return nil } type UserRegisterReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account"` Sid int32 `protobuf:"varint,2,opt,name=sid,proto3" json:"sid"` } func (x *UserRegisterReq) Reset() { *x = UserRegisterReq{} if protoimpl.UnsafeEnabled { mi := &file_user_user_msg_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UserRegisterReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*UserRegisterReq) ProtoMessage() {} func (x *UserRegisterReq) ProtoReflect() protoreflect.Message { mi := &file_user_user_msg_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UserRegisterReq.ProtoReflect.Descriptor instead. func (*UserRegisterReq) Descriptor() ([]byte, []int) { return file_user_user_msg_proto_rawDescGZIP(), []int{2} } func (x *UserRegisterReq) GetAccount() string { if x != nil { return x.Account } return "" } func (x *UserRegisterReq) GetSid() int32 { if x != nil { return x.Sid } return 0 } type UserRegisterRsp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Code ErrorCode `protobuf:"varint,1,opt,name=Code,proto3,enum=ErrorCode" json:"Code"` Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account"` } func (x *UserRegisterRsp) Reset() { *x = UserRegisterRsp{} if protoimpl.UnsafeEnabled { mi := &file_user_user_msg_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UserRegisterRsp) String() string { return protoimpl.X.MessageStringOf(x) } func (*UserRegisterRsp) ProtoMessage() {} func (x *UserRegisterRsp) ProtoReflect() protoreflect.Message { mi := &file_user_user_msg_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UserRegisterRsp.ProtoReflect.Descriptor instead. func (*UserRegisterRsp) Descriptor() ([]byte, []int) { return file_user_user_msg_proto_rawDescGZIP(), []int{3} } func (x *UserRegisterRsp) GetCode() ErrorCode { if x != nil { return x.Code } return ErrorCode_Success } func (x *UserRegisterRsp) GetAccount() string { if x != nil { return x.Account } return "" } type UserLoadRsp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Data *CacheUser `protobuf:"bytes,1,opt,name=data,proto3" json:"data"` } func (x *UserLoadRsp) Reset() { *x = UserLoadRsp{} if protoimpl.UnsafeEnabled { mi := &file_user_user_msg_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UserLoadRsp) String() string { return protoimpl.X.MessageStringOf(x) } func (*UserLoadRsp) ProtoMessage() {} func (x *UserLoadRsp) ProtoReflect() protoreflect.Message { mi := &file_user_user_msg_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UserLoadRsp.ProtoReflect.Descriptor instead. func (*UserLoadRsp) Descriptor() ([]byte, []int) { return file_user_user_msg_proto_rawDescGZIP(), []int{4} } func (x *UserLoadRsp) GetData() *CacheUser { if x != nil { return x.Data } return nil } //创角 type UserCreateReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields NickName string `protobuf:"bytes,1,opt,name=NickName,proto3" json:"NickName"` //昵称 } func (x *UserCreateReq) Reset() { *x = UserCreateReq{} if protoimpl.UnsafeEnabled { mi := &file_user_user_msg_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UserCreateReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*UserCreateReq) ProtoMessage() {} func (x *UserCreateReq) ProtoReflect() protoreflect.Message { mi := &file_user_user_msg_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UserCreateReq.ProtoReflect.Descriptor instead. func (*UserCreateReq) Descriptor() ([]byte, []int) { return file_user_user_msg_proto_rawDescGZIP(), []int{5} } func (x *UserCreateReq) GetNickName() string { if x != nil { return x.NickName } return "" } type UserCreateRsp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *UserCreateRsp) Reset() { *x = UserCreateRsp{} if protoimpl.UnsafeEnabled { mi := &file_user_user_msg_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UserCreateRsp) String() string { return protoimpl.X.MessageStringOf(x) } func (*UserCreateRsp) ProtoMessage() {} func (x *UserCreateRsp) ProtoReflect() protoreflect.Message { mi := &file_user_user_msg_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UserCreateRsp.ProtoReflect.Descriptor instead. func (*UserCreateRsp) Descriptor() ([]byte, []int) { return file_user_user_msg_proto_rawDescGZIP(), []int{6} } var File_user_user_msg_proto protoreflect.FileDescriptor var file_user_user_msg_proto_rawDesc = []byte{ 0x0a, 0x13, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3a, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x73, 0x69, 0x64, 0x22, 0x2c, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x3d, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x73, 0x69, 0x64, 0x22, 0x4b, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2d, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2b, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x4e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x4e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_user_user_msg_proto_rawDescOnce sync.Once file_user_user_msg_proto_rawDescData = file_user_user_msg_proto_rawDesc ) func file_user_user_msg_proto_rawDescGZIP() []byte { file_user_user_msg_proto_rawDescOnce.Do(func() { file_user_user_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_user_user_msg_proto_rawDescData) }) return file_user_user_msg_proto_rawDescData } var file_user_user_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_user_user_msg_proto_goTypes = []interface{}{ (*UserLoginReq)(nil), // 0: UserLoginReq (*UserLoginResp)(nil), // 1: UserLoginResp (*UserRegisterReq)(nil), // 2: UserRegisterReq (*UserRegisterRsp)(nil), // 3: UserRegisterRsp (*UserLoadRsp)(nil), // 4: UserLoadRsp (*UserCreateReq)(nil), // 5: UserCreateReq (*UserCreateRsp)(nil), // 6: UserCreateRsp (*DBUser)(nil), // 7: DBUser (ErrorCode)(0), // 8: ErrorCode (*CacheUser)(nil), // 9: CacheUser } var file_user_user_msg_proto_depIdxs = []int32{ 7, // 0: UserLoginResp.data:type_name -> DBUser 8, // 1: UserRegisterRsp.Code:type_name -> ErrorCode 9, // 2: UserLoadRsp.data:type_name -> CacheUser 3, // [3:3] is the sub-list for method output_type 3, // [3:3] 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_user_msg_proto_init() } func file_user_user_msg_proto_init() { if File_user_user_msg_proto != nil { return } file_errorcode_proto_init() file_user_user_db_proto_init() if !protoimpl.UnsafeEnabled { file_user_user_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UserLoginReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_user_user_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UserLoginResp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_user_user_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UserRegisterReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_user_user_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UserRegisterRsp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_user_user_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UserLoadRsp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_user_user_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UserCreateReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_user_user_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UserCreateRsp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_user_user_msg_proto_rawDesc, NumEnums: 0, NumMessages: 7, NumExtensions: 0, NumServices: 0, }, GoTypes: file_user_user_msg_proto_goTypes, DependencyIndexes: file_user_user_msg_proto_depIdxs, MessageInfos: file_user_user_msg_proto_msgTypes, }.Build() File_user_user_msg_proto = out.File file_user_user_msg_proto_rawDesc = nil file_user_user_msg_proto_goTypes = nil file_user_user_msg_proto_depIdxs = nil }