game/common/proto/pb/user.pb.go

272 lines
7.4 KiB
Go
Raw Normal View History

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
2025-06-07 01:58:14 +08:00
// protoc-gen-go v1.36.6
// protoc v6.31.0
// source: user.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
2025-06-07 01:58:14 +08:00
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 ChatUser struct {
2025-06-07 01:58:14 +08:00
state protoimpl.MessageState `protogen:"open.v1"`
2025-06-14 12:31:57 +08:00
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称
Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` // 头像
AvatarFrame string `protobuf:"bytes,4,opt,name=avatarFrame,proto3" json:"avatarFrame,omitempty"` // 头像框
VipLevel string `protobuf:"bytes,5,opt,name=vipLevel,proto3" json:"vipLevel,omitempty"` // vip等级
2025-06-06 20:02:58 +08:00
unknownFields protoimpl.UnknownFields
2025-06-07 01:58:14 +08:00
sizeCache protoimpl.SizeCache
}
func (x *ChatUser) Reset() {
*x = ChatUser{}
2025-06-07 01:58:14 +08:00
mi := &file_user_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ChatUser) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ChatUser) ProtoMessage() {}
func (x *ChatUser) ProtoReflect() protoreflect.Message {
mi := &file_user_proto_msgTypes[0]
2025-06-07 01:58:14 +08:00
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 ChatUser.ProtoReflect.Descriptor instead.
func (*ChatUser) Descriptor() ([]byte, []int) {
return file_user_proto_rawDescGZIP(), []int{0}
}
func (x *ChatUser) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
func (x *ChatUser) GetNickname() string {
if x != nil {
return x.Nickname
}
return ""
}
func (x *ChatUser) GetAvatar() string {
if x != nil {
return x.Avatar
}
return ""
}
func (x *ChatUser) GetAvatarFrame() string {
if x != nil {
return x.AvatarFrame
}
return ""
}
func (x *ChatUser) GetVipLevel() string {
if x != nil {
return x.VipLevel
}
return ""
}
2025-06-07 22:53:54 +08:00
// 房间内的玩家数据
type GameUser struct {
state protoimpl.MessageState `protogen:"open.v1"`
2025-06-14 12:31:57 +08:00
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称
Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` // 头像
AvatarFrame string `protobuf:"bytes,4,opt,name=avatarFrame,proto3" json:"avatarFrame,omitempty"` // 头像框
VipLevel int32 `protobuf:"varint,5,opt,name=vipLevel,proto3" json:"vipLevel,omitempty"` // vip等级
VipExp int32 `protobuf:"varint,6,opt,name=vipExp,proto3" json:"vipExp,omitempty"` // vip经验
Seat int64 `protobuf:"varint,20,opt,name=seat,proto3" json:"seat,omitempty"` // 座位
Gold int64 `protobuf:"varint,25,opt,name=gold,proto3" json:"gold,omitempty"` // 金币
2025-06-07 22:53:54 +08:00
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GameUser) Reset() {
*x = GameUser{}
mi := &file_user_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GameUser) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GameUser) ProtoMessage() {}
func (x *GameUser) ProtoReflect() protoreflect.Message {
mi := &file_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 GameUser.ProtoReflect.Descriptor instead.
func (*GameUser) Descriptor() ([]byte, []int) {
return file_user_proto_rawDescGZIP(), []int{1}
}
func (x *GameUser) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
func (x *GameUser) GetNickname() string {
if x != nil {
return x.Nickname
}
return ""
}
func (x *GameUser) GetAvatar() string {
if x != nil {
return x.Avatar
}
return ""
}
func (x *GameUser) GetAvatarFrame() string {
if x != nil {
return x.AvatarFrame
}
return ""
}
func (x *GameUser) GetVipLevel() int32 {
if x != nil {
return x.VipLevel
}
return 0
}
func (x *GameUser) GetVipExp() int32 {
if x != nil {
return x.VipExp
}
return 0
}
func (x *GameUser) GetSeat() int64 {
if x != nil {
return x.Seat
}
return 0
}
func (x *GameUser) GetGold() int64 {
if x != nil {
return x.Gold
}
return 0
}
var File_user_proto protoreflect.FileDescriptor
2025-06-07 01:58:14 +08:00
const file_user_proto_rawDesc = "" +
"\n" +
"\n" +
2025-06-14 12:31:57 +08:00
"user.proto\x12\x02pb\"\x94\x01\n" +
"\bChatUser\x12\x16\n" +
"\x06userId\x18\x01 \x01(\x03R\x06userId\x12\x1a\n" +
2025-06-07 01:58:14 +08:00
"\bnickname\x18\x02 \x01(\tR\bnickname\x12\x16\n" +
2025-06-14 12:31:57 +08:00
"\x06avatar\x18\x03 \x01(\tR\x06avatar\x12 \n" +
"\vavatarFrame\x18\x04 \x01(\tR\vavatarFrame\x12\x1a\n" +
"\bvipLevel\x18\x05 \x01(\tR\bvipLevel\"\xd4\x01\n" +
"\bGameUser\x12\x16\n" +
"\x06userId\x18\x01 \x01(\x03R\x06userId\x12\x1a\n" +
2025-06-07 22:53:54 +08:00
"\bnickname\x18\x02 \x01(\tR\bnickname\x12\x16\n" +
2025-06-14 12:31:57 +08:00
"\x06avatar\x18\x03 \x01(\tR\x06avatar\x12 \n" +
"\vavatarFrame\x18\x04 \x01(\tR\vavatarFrame\x12\x1a\n" +
"\bvipLevel\x18\x05 \x01(\x05R\bvipLevel\x12\x16\n" +
"\x06vipExp\x18\x06 \x01(\x05R\x06vipExp\x12\x12\n" +
2025-06-07 22:53:54 +08:00
"\x04seat\x18\x14 \x01(\x03R\x04seat\x12\x12\n" +
"\x04gold\x18\x19 \x01(\x03R\x04goldB\x11Z\x0fcommon/proto/pbb\x06proto3"
var (
file_user_proto_rawDescOnce sync.Once
2025-06-07 01:58:14 +08:00
file_user_proto_rawDescData []byte
)
func file_user_proto_rawDescGZIP() []byte {
file_user_proto_rawDescOnce.Do(func() {
2025-06-07 01:58:14 +08:00
file_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_user_proto_rawDesc), len(file_user_proto_rawDesc)))
})
return file_user_proto_rawDescData
}
2025-06-07 22:53:54 +08:00
var file_user_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
2025-06-07 01:58:14 +08:00
var file_user_proto_goTypes = []any{
(*ChatUser)(nil), // 0: pb.ChatUser
2025-06-07 22:53:54 +08:00
(*GameUser)(nil), // 1: pb.GameUser
}
var file_user_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_user_proto_init() }
func file_user_proto_init() {
if File_user_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
2025-06-07 01:58:14 +08:00
RawDescriptor: unsafe.Slice(unsafe.StringData(file_user_proto_rawDesc), len(file_user_proto_rawDesc)),
NumEnums: 0,
2025-06-07 22:53:54 +08:00
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_user_proto_goTypes,
DependencyIndexes: file_user_proto_depIdxs,
MessageInfos: file_user_proto_msgTypes,
}.Build()
File_user_proto = out.File
file_user_proto_goTypes = nil
file_user_proto_depIdxs = nil
}