dreamfactory_cmd/pb/chat_db.pb.go
2023-06-09 21:58:02 +08:00

451 lines
15 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.20.0
// source: chat/chat_db.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 ChatChannel int32
const (
ChatChannel_World ChatChannel = 0 //世界频道
ChatChannel_Union ChatChannel = 1 //工会频道
ChatChannel_Private ChatChannel = 2 //私有频道
ChatChannel_CrossServer ChatChannel = 3 //跨服频道
ChatChannel_System ChatChannel = 4 //系统频道
)
// Enum value maps for ChatChannel.
var (
ChatChannel_name = map[int32]string{
0: "World",
1: "Union",
2: "Private",
3: "CrossServer",
4: "System",
}
ChatChannel_value = map[string]int32{
"World": 0,
"Union": 1,
"Private": 2,
"CrossServer": 3,
"System": 4,
}
)
func (x ChatChannel) Enum() *ChatChannel {
p := new(ChatChannel)
*p = x
return p
}
func (x ChatChannel) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ChatChannel) Descriptor() protoreflect.EnumDescriptor {
return file_chat_chat_db_proto_enumTypes[0].Descriptor()
}
func (ChatChannel) Type() protoreflect.EnumType {
return &file_chat_chat_db_proto_enumTypes[0]
}
func (x ChatChannel) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ChatChannel.Descriptor instead.
func (ChatChannel) EnumDescriptor() ([]byte, []int) {
return file_chat_chat_db_proto_rawDescGZIP(), []int{0}
}
//聊天消息类型
type ChatType int32
const (
ChatType_Text ChatType = 0 //文泵聊天消息
ChatType_Moonfantasy ChatType = 1 //月子秘境消息
ChatType_Share ChatType = 2 //分享类型
ChatType_HeroShare ChatType = 3 //英雄分享
ChatType_EquipmentShare ChatType = 4 //装备分享
ChatType_ItemShare ChatType = 5 //道具分享
ChatType_Parkour ChatType = 6 //捕羊大赛邀请
)
// Enum value maps for ChatType.
var (
ChatType_name = map[int32]string{
0: "Text",
1: "Moonfantasy",
2: "Share",
3: "HeroShare",
4: "EquipmentShare",
5: "ItemShare",
6: "Parkour",
}
ChatType_value = map[string]int32{
"Text": 0,
"Moonfantasy": 1,
"Share": 2,
"HeroShare": 3,
"EquipmentShare": 4,
"ItemShare": 5,
"Parkour": 6,
}
)
func (x ChatType) Enum() *ChatType {
p := new(ChatType)
*p = x
return p
}
func (x ChatType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ChatType) Descriptor() protoreflect.EnumDescriptor {
return file_chat_chat_db_proto_enumTypes[1].Descriptor()
}
func (ChatType) Type() protoreflect.EnumType {
return &file_chat_chat_db_proto_enumTypes[1]
}
func (x ChatType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ChatType.Descriptor instead.
func (ChatType) EnumDescriptor() ([]byte, []int) {
return file_chat_chat_db_proto_rawDescGZIP(), []int{1}
}
type DBChat struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` //ID
Channel ChatChannel `protobuf:"varint,2,opt,name=channel,proto3,enum=ChatChannel" json:"channel"` //频道
Ctype ChatType `protobuf:"varint,3,opt,name=ctype,proto3,enum=ChatType" json:"ctype"` //消息类型
Suid string `protobuf:"bytes,4,opt,name=suid,proto3" json:"suid"` //发送用户id
Slv int32 `protobuf:"varint,5,opt,name=slv,proto3" json:"slv"` //发送者等级
Ruid string `protobuf:"bytes,6,opt,name=ruid,proto3" json:"ruid"` //接收用户id channel == Private 有效
ChannelId int32 `protobuf:"varint,7,opt,name=channelId,proto3" json:"channelId" bson:"channelId"` //ID跨服频道 频道Id
UnionId string `protobuf:"bytes,8,opt,name=unionId,proto3" json:"unionId"` //@go_tags(`bson:"unionId"`)工会id
Stag string `protobuf:"bytes,9,opt,name=stag,proto3" json:"stag"` //区服id
Avatar string `protobuf:"bytes,10,opt,name=avatar,proto3" json:"avatar"` //用户头像
Uname string `protobuf:"bytes,11,opt,name=uname,proto3" json:"uname"` //用户名
Content string `protobuf:"bytes,12,opt,name=content,proto3" json:"content"` //内容
Ctime int64 `protobuf:"varint,13,opt,name=ctime,proto3" json:"ctime"` //创建时间
AppendInt int64 `protobuf:"varint,14,opt,name=appendInt,proto3" json:"appendInt" bson:"appendInt"` //聊天附加数据
AppendStr string `protobuf:"bytes,15,opt,name=appendStr,proto3" json:"appendStr" bson:"appendStr"` //聊天附加数据
AppendBool string `protobuf:"bytes,16,opt,name=appendBool,proto3" json:"appendBool" bson:"appendBool"` //聊天附加数据
AppendBytes []byte `protobuf:"bytes,17,opt,name=appendBytes,proto3" json:"appendBytes" bson:"appendBytes"` //聊天附加数据
Display bool `protobuf:"varint,18,opt,name=display,proto3" json:"display"` //@go_tags(`bson:"display"`)是否显示到跑马灯
AppendStrs []string `protobuf:"bytes,19,rep,name=appendStrs,proto3" json:"appendStrs" bson:"appendStrs"` //聊天附加数据
}
func (x *DBChat) Reset() {
*x = DBChat{}
if protoimpl.UnsafeEnabled {
mi := &file_chat_chat_db_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DBChat) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DBChat) ProtoMessage() {}
func (x *DBChat) ProtoReflect() protoreflect.Message {
mi := &file_chat_chat_db_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 DBChat.ProtoReflect.Descriptor instead.
func (*DBChat) Descriptor() ([]byte, []int) {
return file_chat_chat_db_proto_rawDescGZIP(), []int{0}
}
func (x *DBChat) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *DBChat) GetChannel() ChatChannel {
if x != nil {
return x.Channel
}
return ChatChannel_World
}
func (x *DBChat) GetCtype() ChatType {
if x != nil {
return x.Ctype
}
return ChatType_Text
}
func (x *DBChat) GetSuid() string {
if x != nil {
return x.Suid
}
return ""
}
func (x *DBChat) GetSlv() int32 {
if x != nil {
return x.Slv
}
return 0
}
func (x *DBChat) GetRuid() string {
if x != nil {
return x.Ruid
}
return ""
}
func (x *DBChat) GetChannelId() int32 {
if x != nil {
return x.ChannelId
}
return 0
}
func (x *DBChat) GetUnionId() string {
if x != nil {
return x.UnionId
}
return ""
}
func (x *DBChat) GetStag() string {
if x != nil {
return x.Stag
}
return ""
}
func (x *DBChat) GetAvatar() string {
if x != nil {
return x.Avatar
}
return ""
}
func (x *DBChat) GetUname() string {
if x != nil {
return x.Uname
}
return ""
}
func (x *DBChat) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
func (x *DBChat) GetCtime() int64 {
if x != nil {
return x.Ctime
}
return 0
}
func (x *DBChat) GetAppendInt() int64 {
if x != nil {
return x.AppendInt
}
return 0
}
func (x *DBChat) GetAppendStr() string {
if x != nil {
return x.AppendStr
}
return ""
}
func (x *DBChat) GetAppendBool() string {
if x != nil {
return x.AppendBool
}
return ""
}
func (x *DBChat) GetAppendBytes() []byte {
if x != nil {
return x.AppendBytes
}
return nil
}
func (x *DBChat) GetDisplay() bool {
if x != nil {
return x.Display
}
return false
}
func (x *DBChat) GetAppendStrs() []string {
if x != nil {
return x.AppendStrs
}
return nil
}
var File_chat_chat_db_proto protoreflect.FileDescriptor
var file_chat_chat_db_proto_rawDesc = []byte{
0x0a, 0x12, 0x63, 0x68, 0x61, 0x74, 0x2f, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x64, 0x62, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfd, 0x03, 0x0a, 0x06, 0x44, 0x42, 0x43, 0x68, 0x61, 0x74, 0x12,
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
0x26, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e,
0x32, 0x0c, 0x2e, 0x43, 0x68, 0x61, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x07,
0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x1f, 0x0a, 0x05, 0x63, 0x74, 0x79, 0x70, 0x65,
0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x43, 0x68, 0x61, 0x74, 0x54, 0x79, 0x70,
0x65, 0x52, 0x05, 0x63, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x75, 0x69, 0x64,
0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x75, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03,
0x73, 0x6c, 0x76, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x73, 0x6c, 0x76, 0x12, 0x12,
0x0a, 0x04, 0x72, 0x75, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x75,
0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x18,
0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64,
0x12, 0x18, 0x0a, 0x07, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28,
0x09, 0x52, 0x07, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74,
0x61, 0x67, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x74, 0x61, 0x67, 0x12, 0x16,
0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x75, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07,
0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63,
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x18,
0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09,
0x61, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52,
0x09, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x70,
0x70, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x72, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61,
0x70, 0x70, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x65,
0x6e, 0x64, 0x42, 0x6f, 0x6f, 0x6c, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70,
0x70, 0x65, 0x6e, 0x64, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x65,
0x6e, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x61,
0x70, 0x70, 0x65, 0x6e, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69,
0x73, 0x70, 0x6c, 0x61, 0x79, 0x18, 0x12, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x69, 0x73,
0x70, 0x6c, 0x61, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x53, 0x74,
0x72, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x64,
0x53, 0x74, 0x72, 0x73, 0x2a, 0x4d, 0x0a, 0x0b, 0x43, 0x68, 0x61, 0x74, 0x43, 0x68, 0x61, 0x6e,
0x6e, 0x65, 0x6c, 0x12, 0x09, 0x0a, 0x05, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x10, 0x00, 0x12, 0x09,
0x0a, 0x05, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x72, 0x69,
0x76, 0x61, 0x74, 0x65, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x53,
0x65, 0x72, 0x76, 0x65, 0x72, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x79, 0x73, 0x74, 0x65,
0x6d, 0x10, 0x04, 0x2a, 0x6f, 0x0a, 0x08, 0x43, 0x68, 0x61, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12,
0x08, 0x0a, 0x04, 0x54, 0x65, 0x78, 0x74, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x6f, 0x6f,
0x6e, 0x66, 0x61, 0x6e, 0x74, 0x61, 0x73, 0x79, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x68,
0x61, 0x72, 0x65, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x65, 0x72, 0x6f, 0x53, 0x68, 0x61,
0x72, 0x65, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e,
0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x10, 0x04, 0x12, 0x0d, 0x0a, 0x09, 0x49, 0x74, 0x65, 0x6d,
0x53, 0x68, 0x61, 0x72, 0x65, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x61, 0x72, 0x6b, 0x6f,
0x75, 0x72, 0x10, 0x06, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
var (
file_chat_chat_db_proto_rawDescOnce sync.Once
file_chat_chat_db_proto_rawDescData = file_chat_chat_db_proto_rawDesc
)
func file_chat_chat_db_proto_rawDescGZIP() []byte {
file_chat_chat_db_proto_rawDescOnce.Do(func() {
file_chat_chat_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_chat_chat_db_proto_rawDescData)
})
return file_chat_chat_db_proto_rawDescData
}
var file_chat_chat_db_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_chat_chat_db_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_chat_chat_db_proto_goTypes = []interface{}{
(ChatChannel)(0), // 0: ChatChannel
(ChatType)(0), // 1: ChatType
(*DBChat)(nil), // 2: DBChat
}
var file_chat_chat_db_proto_depIdxs = []int32{
0, // 0: DBChat.channel:type_name -> ChatChannel
1, // 1: DBChat.ctype:type_name -> ChatType
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_chat_chat_db_proto_init() }
func file_chat_chat_db_proto_init() {
if File_chat_chat_db_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_chat_chat_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DBChat); 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_chat_chat_db_proto_rawDesc,
NumEnums: 2,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_chat_chat_db_proto_goTypes,
DependencyIndexes: file_chat_chat_db_proto_depIdxs,
EnumInfos: file_chat_chat_db_proto_enumTypes,
MessageInfos: file_chat_chat_db_proto_msgTypes,
}.Build()
File_chat_chat_db_proto = out.File
file_chat_chat_db_proto_rawDesc = nil
file_chat_chat_db_proto_goTypes = nil
file_chat_chat_db_proto_depIdxs = nil
}