// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc v6.31.0 // source: login.proto package pb 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 C2SUserLogin struct { state protoimpl.MessageState `protogen:"open.v1"` Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // 用户名 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // 密码或token Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` DeviceId string `protobuf:"bytes,4,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id Version string `protobuf:"bytes,10,opt,name=version,proto3" json:"version,omitempty"` // 版本 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *C2SUserLogin) Reset() { *x = C2SUserLogin{} mi := &file_login_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *C2SUserLogin) String() string { return protoimpl.X.MessageStringOf(x) } func (*C2SUserLogin) ProtoMessage() {} func (x *C2SUserLogin) ProtoReflect() protoreflect.Message { mi := &file_login_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 C2SUserLogin.ProtoReflect.Descriptor instead. func (*C2SUserLogin) Descriptor() ([]byte, []int) { return file_login_proto_rawDescGZIP(), []int{0} } func (x *C2SUserLogin) GetUsername() string { if x != nil { return x.Username } return "" } func (x *C2SUserLogin) GetPassword() string { if x != nil { return x.Password } return "" } func (x *C2SUserLogin) GetIp() string { if x != nil { return x.Ip } return "" } func (x *C2SUserLogin) GetDeviceId() string { if x != nil { return x.DeviceId } return "" } func (x *C2SUserLogin) GetVersion() string { if x != nil { return x.Version } return "" } type S2CUserLogin struct { state protoimpl.MessageState `protogen:"open.v1"` Code ErrCode `protobuf:"varint,1,opt,name=code,proto3,enum=pb.ErrCode" json:"code,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // token unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *S2CUserLogin) Reset() { *x = S2CUserLogin{} mi := &file_login_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *S2CUserLogin) String() string { return protoimpl.X.MessageStringOf(x) } func (*S2CUserLogin) ProtoMessage() {} func (x *S2CUserLogin) ProtoReflect() protoreflect.Message { mi := &file_login_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 S2CUserLogin.ProtoReflect.Descriptor instead. func (*S2CUserLogin) Descriptor() ([]byte, []int) { return file_login_proto_rawDescGZIP(), []int{1} } func (x *S2CUserLogin) GetCode() ErrCode { if x != nil { return x.Code } return ErrCode_OK } func (x *S2CUserLogin) GetUserId() int64 { if x != nil { return x.UserId } return 0 } func (x *S2CUserLogin) GetToken() string { if x != nil { return x.Token } return "" } // 上线通知 type NtfUserOnline struct { state protoimpl.MessageState `protogen:"open.v1"` UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 玩家id unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *NtfUserOnline) Reset() { *x = NtfUserOnline{} mi := &file_login_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *NtfUserOnline) String() string { return protoimpl.X.MessageStringOf(x) } func (*NtfUserOnline) ProtoMessage() {} func (x *NtfUserOnline) ProtoReflect() protoreflect.Message { mi := &file_login_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 NtfUserOnline.ProtoReflect.Descriptor instead. func (*NtfUserOnline) Descriptor() ([]byte, []int) { return file_login_proto_rawDescGZIP(), []int{2} } func (x *NtfUserOnline) GetUserId() int64 { if x != nil { return x.UserId } return 0 } // 玩家登陆 type C2SUserLogout struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *C2SUserLogout) Reset() { *x = C2SUserLogout{} mi := &file_login_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *C2SUserLogout) String() string { return protoimpl.X.MessageStringOf(x) } func (*C2SUserLogout) ProtoMessage() {} func (x *C2SUserLogout) ProtoReflect() protoreflect.Message { mi := &file_login_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 C2SUserLogout.ProtoReflect.Descriptor instead. func (*C2SUserLogout) Descriptor() ([]byte, []int) { return file_login_proto_rawDescGZIP(), []int{3} } type S2CUserLogout struct { state protoimpl.MessageState `protogen:"open.v1"` Code ErrCode `protobuf:"varint,1,opt,name=code,proto3,enum=pb.ErrCode" json:"code,omitempty"` // 登出原因 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *S2CUserLogout) Reset() { *x = S2CUserLogout{} mi := &file_login_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *S2CUserLogout) String() string { return protoimpl.X.MessageStringOf(x) } func (*S2CUserLogout) ProtoMessage() {} func (x *S2CUserLogout) ProtoReflect() protoreflect.Message { mi := &file_login_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 S2CUserLogout.ProtoReflect.Descriptor instead. func (*S2CUserLogout) Descriptor() ([]byte, []int) { return file_login_proto_rawDescGZIP(), []int{4} } func (x *S2CUserLogout) GetCode() ErrCode { if x != nil { return x.Code } return ErrCode_OK } // 下线通知 type NtfUserOffline struct { state protoimpl.MessageState `protogen:"open.v1"` UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 玩家id unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *NtfUserOffline) Reset() { *x = NtfUserOffline{} mi := &file_login_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *NtfUserOffline) String() string { return protoimpl.X.MessageStringOf(x) } func (*NtfUserOffline) ProtoMessage() {} func (x *NtfUserOffline) ProtoReflect() protoreflect.Message { mi := &file_login_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 NtfUserOffline.ProtoReflect.Descriptor instead. func (*NtfUserOffline) Descriptor() ([]byte, []int) { return file_login_proto_rawDescGZIP(), []int{5} } func (x *NtfUserOffline) GetUserId() int64 { if x != nil { return x.UserId } return 0 } var File_login_proto protoreflect.FileDescriptor const file_login_proto_rawDesc = "" + "\n" + "\vlogin.proto\x12\x02pb\x1a\n" + "code.proto\"\x8d\x01\n" + "\fC2SUserLogin\x12\x1a\n" + "\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" + "\bpassword\x18\x02 \x01(\tR\bpassword\x12\x0e\n" + "\x02ip\x18\x03 \x01(\tR\x02ip\x12\x1b\n" + "\tdevice_id\x18\x04 \x01(\tR\bdeviceId\x12\x18\n" + "\aversion\x18\n" + " \x01(\tR\aversion\"^\n" + "\fS2CUserLogin\x12\x1f\n" + "\x04code\x18\x01 \x01(\x0e2\v.pb.ErrCodeR\x04code\x12\x17\n" + "\auser_id\x18\x02 \x01(\x03R\x06userId\x12\x14\n" + "\x05token\x18\x03 \x01(\tR\x05token\"(\n" + "\rNtfUserOnline\x12\x17\n" + "\auser_id\x18\x02 \x01(\x03R\x06userId\"\x0f\n" + "\rC2SUserLogout\"0\n" + "\rS2CUserLogout\x12\x1f\n" + "\x04code\x18\x01 \x01(\x0e2\v.pb.ErrCodeR\x04code\")\n" + "\x0eNtfUserOffline\x12\x17\n" + "\auser_id\x18\x02 \x01(\x03R\x06userIdB\x11Z\x0fcommon/proto/pbb\x06proto3" var ( file_login_proto_rawDescOnce sync.Once file_login_proto_rawDescData []byte ) func file_login_proto_rawDescGZIP() []byte { file_login_proto_rawDescOnce.Do(func() { file_login_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_login_proto_rawDesc), len(file_login_proto_rawDesc))) }) return file_login_proto_rawDescData } var file_login_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_login_proto_goTypes = []any{ (*C2SUserLogin)(nil), // 0: pb.C2SUserLogin (*S2CUserLogin)(nil), // 1: pb.S2CUserLogin (*NtfUserOnline)(nil), // 2: pb.NtfUserOnline (*C2SUserLogout)(nil), // 3: pb.C2SUserLogout (*S2CUserLogout)(nil), // 4: pb.S2CUserLogout (*NtfUserOffline)(nil), // 5: pb.NtfUserOffline (ErrCode)(0), // 6: pb.ErrCode } var file_login_proto_depIdxs = []int32{ 6, // 0: pb.S2CUserLogin.code:type_name -> pb.ErrCode 6, // 1: pb.S2CUserLogout.code:type_name -> pb.ErrCode 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension extendee 0, // [0:2] is the sub-list for field type_name } func init() { file_login_proto_init() } func file_login_proto_init() { if File_login_proto != nil { return } file_code_proto_init() type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_login_proto_rawDesc), len(file_login_proto_rawDesc)), NumEnums: 0, NumMessages: 6, NumExtensions: 0, NumServices: 0, }, GoTypes: file_login_proto_goTypes, DependencyIndexes: file_login_proto_depIdxs, MessageInfos: file_login_proto_msgTypes, }.Build() File_login_proto = out.File file_login_proto_goTypes = nil file_login_proto_depIdxs = nil }