// 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 //捕羊大赛邀请 ChatType_Questionnaire ChatType = 7 //问答分享 ) // 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", 7: "Questionnaire", } ChatType_value = map[string]int32{ "Text": 0, "Moonfantasy": 1, "Share": 2, "HeroShare": 3, "EquipmentShare": 4, "ItemShare": 5, "Parkour": 6, "Questionnaire": 7, } ) 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"` //消息类型 Suser *BaseUserInfo `protobuf:"bytes,4,opt,name=suser,proto3" json:"suser"` //发起者信息 Ruid string `protobuf:"bytes,5,opt,name=ruid,proto3" json:"ruid"` //接收用户id channel == Private 有效 ChannelId int32 `protobuf:"varint,6,opt,name=channelId,proto3" json:"channelId" bson:"channelId"` //ID跨服频道 频道Id UnionId string `protobuf:"bytes,7,opt,name=unionId,proto3" json:"unionId"` //@go_tags(`bson:"unionId"`)工会id Stag string `protobuf:"bytes,8,opt,name=stag,proto3" json:"stag"` //区服id Content string `protobuf:"bytes,9,opt,name=content,proto3" json:"content"` //内容 Ctime int64 `protobuf:"varint,10,opt,name=ctime,proto3" json:"ctime"` //创建时间 AppendInt int64 `protobuf:"varint,11,opt,name=appendInt,proto3" json:"appendInt" bson:"appendInt"` //聊天附加数据 AppendStr string `protobuf:"bytes,12,opt,name=appendStr,proto3" json:"appendStr" bson:"appendStr"` //聊天附加数据 AppendBool string `protobuf:"bytes,13,opt,name=appendBool,proto3" json:"appendBool" bson:"appendBool"` //聊天附加数据 AppendBytes []byte `protobuf:"bytes,14,opt,name=appendBytes,proto3" json:"appendBytes" bson:"appendBytes"` //聊天附加数据 Display bool `protobuf:"varint,15,opt,name=display,proto3" json:"display"` //@go_tags(`bson:"display"`)是否显示到跑马灯 AppendStrs []string `protobuf:"bytes,16,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) GetSuser() *BaseUserInfo { if x != nil { return x.Suser } return nil } 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) 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, 0x1a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xce, 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, 0x23, 0x0a, 0x05, 0x73, 0x75, 0x73, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x73, 0x75, 0x73, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x75, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x75, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x18, 0x06, 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, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x61, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x74, 0x61, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0a, 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, 0x0b, 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, 0x0c, 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, 0x0d, 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, 0x0e, 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, 0x0f, 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, 0x10, 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, 0x82, 0x01, 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, 0x12, 0x11, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x6e, 0x61, 0x69, 0x72, 0x65, 0x10, 0x07, 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 (*BaseUserInfo)(nil), // 3: BaseUserInfo } var file_chat_chat_db_proto_depIdxs = []int32{ 0, // 0: DBChat.channel:type_name -> ChatChannel 1, // 1: DBChat.ctype:type_name -> ChatType 3, // 2: DBChat.suser:type_name -> BaseUserInfo 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_chat_chat_db_proto_init() } func file_chat_chat_db_proto_init() { if File_chat_chat_db_proto != nil { return } file_comm_proto_init() 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 }