topfans/backend/pkg/proto/ai_chat/ai_chat.pb.go
2026-05-28 12:00:19 +08:00

727 lines
22 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v7.34.0
// source: ai_chat.proto
package ai_chat
import (
_ "google.golang.org/genproto/googleapis/api/annotations"
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 Message struct {
state protoimpl.MessageState `protogen:"open.v1"`
Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // "user" / "assistant"
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Message) Reset() {
*x = Message{}
mi := &file_ai_chat_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Message) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Message) ProtoMessage() {}
func (x *Message) ProtoReflect() protoreflect.Message {
mi := &file_ai_chat_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 Message.ProtoReflect.Descriptor instead.
func (*Message) Descriptor() ([]byte, []int) {
return file_ai_chat_proto_rawDescGZIP(), []int{0}
}
func (x *Message) GetRole() string {
if x != nil {
return x.Role
}
return ""
}
func (x *Message) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
type InitSessionRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InitSessionRequest) Reset() {
*x = InitSessionRequest{}
mi := &file_ai_chat_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InitSessionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InitSessionRequest) ProtoMessage() {}
func (x *InitSessionRequest) ProtoReflect() protoreflect.Message {
mi := &file_ai_chat_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 InitSessionRequest.ProtoReflect.Descriptor instead.
func (*InitSessionRequest) Descriptor() ([]byte, []int) {
return file_ai_chat_proto_rawDescGZIP(), []int{1}
}
func (x *InitSessionRequest) GetSessionId() string {
if x != nil {
return x.SessionId
}
return ""
}
func (x *InitSessionRequest) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
type InitSessionResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
WelcomeMessage string `protobuf:"bytes,1,opt,name=welcome_message,json=welcomeMessage,proto3" json:"welcome_message,omitempty"`
SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InitSessionResponse) Reset() {
*x = InitSessionResponse{}
mi := &file_ai_chat_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InitSessionResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InitSessionResponse) ProtoMessage() {}
func (x *InitSessionResponse) ProtoReflect() protoreflect.Message {
mi := &file_ai_chat_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 InitSessionResponse.ProtoReflect.Descriptor instead.
func (*InitSessionResponse) Descriptor() ([]byte, []int) {
return file_ai_chat_proto_rawDescGZIP(), []int{2}
}
func (x *InitSessionResponse) GetWelcomeMessage() string {
if x != nil {
return x.WelcomeMessage
}
return ""
}
func (x *InitSessionResponse) GetSessionId() string {
if x != nil {
return x.SessionId
}
return ""
}
type ChatMessageRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
PersonaId string `protobuf:"bytes,3,opt,name=persona_id,json=personaId,proto3" json:"persona_id,omitempty"` // 可选,空则用默认人设
UserId int64 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ChatMessageRequest) Reset() {
*x = ChatMessageRequest{}
mi := &file_ai_chat_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ChatMessageRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ChatMessageRequest) ProtoMessage() {}
func (x *ChatMessageRequest) ProtoReflect() protoreflect.Message {
mi := &file_ai_chat_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 ChatMessageRequest.ProtoReflect.Descriptor instead.
func (*ChatMessageRequest) Descriptor() ([]byte, []int) {
return file_ai_chat_proto_rawDescGZIP(), []int{3}
}
func (x *ChatMessageRequest) GetSessionId() string {
if x != nil {
return x.SessionId
}
return ""
}
func (x *ChatMessageRequest) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *ChatMessageRequest) GetPersonaId() string {
if x != nil {
return x.PersonaId
}
return ""
}
func (x *ChatMessageRequest) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
type ChatMessageResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
IsEnd bool `protobuf:"varint,3,opt,name=is_end,json=isEnd,proto3" json:"is_end,omitempty"`
Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ChatMessageResponse) Reset() {
*x = ChatMessageResponse{}
mi := &file_ai_chat_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ChatMessageResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ChatMessageResponse) ProtoMessage() {}
func (x *ChatMessageResponse) ProtoReflect() protoreflect.Message {
mi := &file_ai_chat_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 ChatMessageResponse.ProtoReflect.Descriptor instead.
func (*ChatMessageResponse) Descriptor() ([]byte, []int) {
return file_ai_chat_proto_rawDescGZIP(), []int{4}
}
func (x *ChatMessageResponse) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
func (x *ChatMessageResponse) GetSessionId() string {
if x != nil {
return x.SessionId
}
return ""
}
func (x *ChatMessageResponse) GetIsEnd() bool {
if x != nil {
return x.IsEnd
}
return false
}
func (x *ChatMessageResponse) GetError() string {
if x != nil {
return x.Error
}
return ""
}
type ChatHistoryRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` // 默认 20
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ChatHistoryRequest) Reset() {
*x = ChatHistoryRequest{}
mi := &file_ai_chat_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ChatHistoryRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ChatHistoryRequest) ProtoMessage() {}
func (x *ChatHistoryRequest) ProtoReflect() protoreflect.Message {
mi := &file_ai_chat_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 ChatHistoryRequest.ProtoReflect.Descriptor instead.
func (*ChatHistoryRequest) Descriptor() ([]byte, []int) {
return file_ai_chat_proto_rawDescGZIP(), []int{5}
}
func (x *ChatHistoryRequest) GetSessionId() string {
if x != nil {
return x.SessionId
}
return ""
}
func (x *ChatHistoryRequest) GetLimit() int32 {
if x != nil {
return x.Limit
}
return 0
}
type ChatHistoryResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
History []*Message `protobuf:"bytes,1,rep,name=history,proto3" json:"history,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ChatHistoryResponse) Reset() {
*x = ChatHistoryResponse{}
mi := &file_ai_chat_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ChatHistoryResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ChatHistoryResponse) ProtoMessage() {}
func (x *ChatHistoryResponse) ProtoReflect() protoreflect.Message {
mi := &file_ai_chat_proto_msgTypes[6]
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 ChatHistoryResponse.ProtoReflect.Descriptor instead.
func (*ChatHistoryResponse) Descriptor() ([]byte, []int) {
return file_ai_chat_proto_rawDescGZIP(), []int{6}
}
func (x *ChatHistoryResponse) GetHistory() []*Message {
if x != nil {
return x.History
}
return nil
}
type GetPersonasRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetPersonasRequest) Reset() {
*x = GetPersonasRequest{}
mi := &file_ai_chat_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetPersonasRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPersonasRequest) ProtoMessage() {}
func (x *GetPersonasRequest) ProtoReflect() protoreflect.Message {
mi := &file_ai_chat_proto_msgTypes[7]
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 GetPersonasRequest.ProtoReflect.Descriptor instead.
func (*GetPersonasRequest) Descriptor() ([]byte, []int) {
return file_ai_chat_proto_rawDescGZIP(), []int{7}
}
func (x *GetPersonasRequest) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
type PersonaListResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Personas []*PersonaInfo `protobuf:"bytes,1,rep,name=personas,proto3" json:"personas,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PersonaListResponse) Reset() {
*x = PersonaListResponse{}
mi := &file_ai_chat_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PersonaListResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PersonaListResponse) ProtoMessage() {}
func (x *PersonaListResponse) ProtoReflect() protoreflect.Message {
mi := &file_ai_chat_proto_msgTypes[8]
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 PersonaListResponse.ProtoReflect.Descriptor instead.
func (*PersonaListResponse) Descriptor() ([]byte, []int) {
return file_ai_chat_proto_rawDescGZIP(), []int{8}
}
func (x *PersonaListResponse) GetPersonas() []*PersonaInfo {
if x != nil {
return x.Personas
}
return nil
}
type PersonaInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
TalkStyle string `protobuf:"bytes,5,opt,name=talk_style,json=talkStyle,proto3" json:"talk_style,omitempty"`
IsDefault bool `protobuf:"varint,6,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"`
CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt int64 `protobuf:"varint,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PersonaInfo) Reset() {
*x = PersonaInfo{}
mi := &file_ai_chat_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PersonaInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PersonaInfo) ProtoMessage() {}
func (x *PersonaInfo) ProtoReflect() protoreflect.Message {
mi := &file_ai_chat_proto_msgTypes[9]
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 PersonaInfo.ProtoReflect.Descriptor instead.
func (*PersonaInfo) Descriptor() ([]byte, []int) {
return file_ai_chat_proto_rawDescGZIP(), []int{9}
}
func (x *PersonaInfo) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *PersonaInfo) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *PersonaInfo) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *PersonaInfo) GetAvatarUrl() string {
if x != nil {
return x.AvatarUrl
}
return ""
}
func (x *PersonaInfo) GetTalkStyle() string {
if x != nil {
return x.TalkStyle
}
return ""
}
func (x *PersonaInfo) GetIsDefault() bool {
if x != nil {
return x.IsDefault
}
return false
}
func (x *PersonaInfo) GetCreatedAt() int64 {
if x != nil {
return x.CreatedAt
}
return 0
}
func (x *PersonaInfo) GetUpdatedAt() int64 {
if x != nil {
return x.UpdatedAt
}
return 0
}
var File_ai_chat_proto protoreflect.FileDescriptor
const file_ai_chat_proto_rawDesc = "" +
"\n" +
"\rai_chat.proto\x12\x0ftopfans.ai_chat\x1a\x1cgoogle/api/annotations.proto\"7\n" +
"\aMessage\x12\x12\n" +
"\x04role\x18\x01 \x01(\tR\x04role\x12\x18\n" +
"\acontent\x18\x02 \x01(\tR\acontent\"L\n" +
"\x12InitSessionRequest\x12\x1d\n" +
"\n" +
"session_id\x18\x01 \x01(\tR\tsessionId\x12\x17\n" +
"\auser_id\x18\x02 \x01(\x03R\x06userId\"]\n" +
"\x13InitSessionResponse\x12'\n" +
"\x0fwelcome_message\x18\x01 \x01(\tR\x0ewelcomeMessage\x12\x1d\n" +
"\n" +
"session_id\x18\x02 \x01(\tR\tsessionId\"\x85\x01\n" +
"\x12ChatMessageRequest\x12\x1d\n" +
"\n" +
"session_id\x18\x01 \x01(\tR\tsessionId\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\x12\x1d\n" +
"\n" +
"persona_id\x18\x03 \x01(\tR\tpersonaId\x12\x17\n" +
"\auser_id\x18\x04 \x01(\x03R\x06userId\"{\n" +
"\x13ChatMessageResponse\x12\x18\n" +
"\acontent\x18\x01 \x01(\tR\acontent\x12\x1d\n" +
"\n" +
"session_id\x18\x02 \x01(\tR\tsessionId\x12\x15\n" +
"\x06is_end\x18\x03 \x01(\bR\x05isEnd\x12\x14\n" +
"\x05error\x18\x04 \x01(\tR\x05error\"I\n" +
"\x12ChatHistoryRequest\x12\x1d\n" +
"\n" +
"session_id\x18\x01 \x01(\tR\tsessionId\x12\x14\n" +
"\x05limit\x18\x02 \x01(\x05R\x05limit\"I\n" +
"\x13ChatHistoryResponse\x122\n" +
"\ahistory\x18\x01 \x03(\v2\x18.topfans.ai_chat.MessageR\ahistory\"-\n" +
"\x12GetPersonasRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\x03R\x06userId\"O\n" +
"\x13PersonaListResponse\x128\n" +
"\bpersonas\x18\x01 \x03(\v2\x1c.topfans.ai_chat.PersonaInfoR\bpersonas\"\xee\x01\n" +
"\vPersonaInfo\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
"\vdescription\x18\x03 \x01(\tR\vdescription\x12\x1d\n" +
"\n" +
"avatar_url\x18\x04 \x01(\tR\tavatarUrl\x12\x1d\n" +
"\n" +
"talk_style\x18\x05 \x01(\tR\ttalkStyle\x12\x1d\n" +
"\n" +
"is_default\x18\x06 \x01(\bR\tisDefault\x12\x1d\n" +
"\n" +
"created_at\x18\a \x01(\x03R\tcreatedAt\x12\x1d\n" +
"\n" +
"updated_at\x18\b \x01(\x03R\tupdatedAt2\xc9\x03\n" +
"\rAIChatService\x12X\n" +
"\vInitSession\x12#.topfans.ai_chat.InitSessionRequest\x1a$.topfans.ai_chat.InitSessionResponse\x12Z\n" +
"\vSendMessage\x12#.topfans.ai_chat.ChatMessageRequest\x1a$.topfans.ai_chat.ChatMessageResponse0\x01\x12\x85\x01\n" +
"\n" +
"GetHistory\x12#.topfans.ai_chat.ChatHistoryRequest\x1a$.topfans.ai_chat.ChatHistoryResponse\",\x82\xd3\xe4\x93\x02&\x12$/api/v1/ai-chat/history/{session_id}\x12z\n" +
"\vGetPersonas\x12#.topfans.ai_chat.GetPersonasRequest\x1a$.topfans.ai_chat.PersonaListResponse\" \x82\xd3\xe4\x93\x02\x1a\x12\x18/api/v1/ai-chat/personasB6Z4github.com/topfans/backend/pkg/proto/ai_chat;ai_chatb\x06proto3"
var (
file_ai_chat_proto_rawDescOnce sync.Once
file_ai_chat_proto_rawDescData []byte
)
func file_ai_chat_proto_rawDescGZIP() []byte {
file_ai_chat_proto_rawDescOnce.Do(func() {
file_ai_chat_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ai_chat_proto_rawDesc), len(file_ai_chat_proto_rawDesc)))
})
return file_ai_chat_proto_rawDescData
}
var file_ai_chat_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_ai_chat_proto_goTypes = []any{
(*Message)(nil), // 0: topfans.ai_chat.Message
(*InitSessionRequest)(nil), // 1: topfans.ai_chat.InitSessionRequest
(*InitSessionResponse)(nil), // 2: topfans.ai_chat.InitSessionResponse
(*ChatMessageRequest)(nil), // 3: topfans.ai_chat.ChatMessageRequest
(*ChatMessageResponse)(nil), // 4: topfans.ai_chat.ChatMessageResponse
(*ChatHistoryRequest)(nil), // 5: topfans.ai_chat.ChatHistoryRequest
(*ChatHistoryResponse)(nil), // 6: topfans.ai_chat.ChatHistoryResponse
(*GetPersonasRequest)(nil), // 7: topfans.ai_chat.GetPersonasRequest
(*PersonaListResponse)(nil), // 8: topfans.ai_chat.PersonaListResponse
(*PersonaInfo)(nil), // 9: topfans.ai_chat.PersonaInfo
}
var file_ai_chat_proto_depIdxs = []int32{
0, // 0: topfans.ai_chat.ChatHistoryResponse.history:type_name -> topfans.ai_chat.Message
9, // 1: topfans.ai_chat.PersonaListResponse.personas:type_name -> topfans.ai_chat.PersonaInfo
1, // 2: topfans.ai_chat.AIChatService.InitSession:input_type -> topfans.ai_chat.InitSessionRequest
3, // 3: topfans.ai_chat.AIChatService.SendMessage:input_type -> topfans.ai_chat.ChatMessageRequest
5, // 4: topfans.ai_chat.AIChatService.GetHistory:input_type -> topfans.ai_chat.ChatHistoryRequest
7, // 5: topfans.ai_chat.AIChatService.GetPersonas:input_type -> topfans.ai_chat.GetPersonasRequest
2, // 6: topfans.ai_chat.AIChatService.InitSession:output_type -> topfans.ai_chat.InitSessionResponse
4, // 7: topfans.ai_chat.AIChatService.SendMessage:output_type -> topfans.ai_chat.ChatMessageResponse
6, // 8: topfans.ai_chat.AIChatService.GetHistory:output_type -> topfans.ai_chat.ChatHistoryResponse
8, // 9: topfans.ai_chat.AIChatService.GetPersonas:output_type -> topfans.ai_chat.PersonaListResponse
6, // [6:10] is the sub-list for method output_type
2, // [2:6] 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_ai_chat_proto_init() }
func file_ai_chat_proto_init() {
if File_ai_chat_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_ai_chat_proto_rawDesc), len(file_ai_chat_proto_rawDesc)),
NumEnums: 0,
NumMessages: 10,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_ai_chat_proto_goTypes,
DependencyIndexes: file_ai_chat_proto_depIdxs,
MessageInfos: file_ai_chat_proto_msgTypes,
}.Build()
File_ai_chat_proto = out.File
file_ai_chat_proto_goTypes = nil
file_ai_chat_proto_depIdxs = nil
}