You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
762 lines
25 KiB
762 lines
25 KiB
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.6
|
|
// protoc v7.34.1
|
|
// source: user/user_msg_v2.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)
|
|
)
|
|
|
|
// 获取 app 的环境变量
|
|
type UserGetAppConfigV2Req struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserGetAppConfigV2Req) Reset() {
|
|
*x = UserGetAppConfigV2Req{}
|
|
mi := &file_user_user_msg_v2_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserGetAppConfigV2Req) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserGetAppConfigV2Req) ProtoMessage() {}
|
|
|
|
func (x *UserGetAppConfigV2Req) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_user_msg_v2_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 UserGetAppConfigV2Req.ProtoReflect.Descriptor instead.
|
|
func (*UserGetAppConfigV2Req) Descriptor() ([]byte, []int) {
|
|
return file_user_user_msg_v2_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
// 获取 app 的环境变量
|
|
type UserGetAppConfigV2Resp struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Env map[string]string `protobuf:"bytes,1,rep,name=env,proto3" json:"env" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` //@go_tags(`json:"env"`) 時間
|
|
Agents []*DBAgent `protobuf:"bytes,2,rep,name=agents,proto3" json:"agents"` //@go_tags(`json:"agents"`) 時間
|
|
Mcps map[string]*McpServer `protobuf:"bytes,3,rep,name=mcps,proto3" json:"mcps" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` //@go_tags(`json:"mcps"`) 時間
|
|
Products []*DBProduct `protobuf:"bytes,4,rep,name=products,proto3" json:"products"` //@go_tags(`json:"products"`) 時間
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserGetAppConfigV2Resp) Reset() {
|
|
*x = UserGetAppConfigV2Resp{}
|
|
mi := &file_user_user_msg_v2_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserGetAppConfigV2Resp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserGetAppConfigV2Resp) ProtoMessage() {}
|
|
|
|
func (x *UserGetAppConfigV2Resp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_user_msg_v2_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 UserGetAppConfigV2Resp.ProtoReflect.Descriptor instead.
|
|
func (*UserGetAppConfigV2Resp) Descriptor() ([]byte, []int) {
|
|
return file_user_user_msg_v2_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *UserGetAppConfigV2Resp) GetEnv() map[string]string {
|
|
if x != nil {
|
|
return x.Env
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserGetAppConfigV2Resp) GetAgents() []*DBAgent {
|
|
if x != nil {
|
|
return x.Agents
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserGetAppConfigV2Resp) GetMcps() map[string]*McpServer {
|
|
if x != nil {
|
|
return x.Mcps
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserGetAppConfigV2Resp) GetProducts() []*DBProduct {
|
|
if x != nil {
|
|
return x.Products
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 获取第三方服务列表(后台「第三方服务配置」下发;凭据已按用户区域合并并解密为明文,整体响应经网关 AES-CBC 加密)
|
|
type UserGetThirdSvcsReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids"` //@go_tags(`json:"ids"`) 按服务 id 过滤;空=全部启用的服务
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserGetThirdSvcsReq) Reset() {
|
|
*x = UserGetThirdSvcsReq{}
|
|
mi := &file_user_user_msg_v2_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserGetThirdSvcsReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserGetThirdSvcsReq) ProtoMessage() {}
|
|
|
|
func (x *UserGetThirdSvcsReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_user_msg_v2_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 UserGetThirdSvcsReq.ProtoReflect.Descriptor instead.
|
|
func (*UserGetThirdSvcsReq) Descriptor() ([]byte, []int) {
|
|
return file_user_user_msg_v2_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *UserGetThirdSvcsReq) GetIds() []string {
|
|
if x != nil {
|
|
return x.Ids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 第三方服务下发项
|
|
type ThirdSvcItem struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` //@go_tags(`json:"id"`) 服务 id
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` //@go_tags(`json:"name"`) 名称
|
|
Provider string `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider"` //@go_tags(`json:"provider"`) 供应商标识
|
|
Categories string `protobuf:"bytes,4,opt,name=categories,proto3" json:"categories"` //@go_tags(`json:"categories"`) 类别(逗号分隔)
|
|
Fields map[string]string `protobuf:"bytes,5,rep,name=fields,proto3" json:"fields" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` //@go_tags(`json:"fields"`) 区域合并+解密后的明文字段
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ThirdSvcItem) Reset() {
|
|
*x = ThirdSvcItem{}
|
|
mi := &file_user_user_msg_v2_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ThirdSvcItem) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ThirdSvcItem) ProtoMessage() {}
|
|
|
|
func (x *ThirdSvcItem) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_user_msg_v2_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 ThirdSvcItem.ProtoReflect.Descriptor instead.
|
|
func (*ThirdSvcItem) Descriptor() ([]byte, []int) {
|
|
return file_user_user_msg_v2_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *ThirdSvcItem) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ThirdSvcItem) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ThirdSvcItem) GetProvider() string {
|
|
if x != nil {
|
|
return x.Provider
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ThirdSvcItem) GetCategories() string {
|
|
if x != nil {
|
|
return x.Categories
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ThirdSvcItem) GetFields() map[string]string {
|
|
if x != nil {
|
|
return x.Fields
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UserGetThirdSvcsResp struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Svcs []*ThirdSvcItem `protobuf:"bytes,1,rep,name=svcs,proto3" json:"svcs"` //@go_tags(`json:"svcs"`) 服务列表
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserGetThirdSvcsResp) Reset() {
|
|
*x = UserGetThirdSvcsResp{}
|
|
mi := &file_user_user_msg_v2_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserGetThirdSvcsResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserGetThirdSvcsResp) ProtoMessage() {}
|
|
|
|
func (x *UserGetThirdSvcsResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_user_msg_v2_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 UserGetThirdSvcsResp.ProtoReflect.Descriptor instead.
|
|
func (*UserGetThirdSvcsResp) Descriptor() ([]byte, []int) {
|
|
return file_user_user_msg_v2_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *UserGetThirdSvcsResp) GetSvcs() []*ThirdSvcItem {
|
|
if x != nil {
|
|
return x.Svcs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 获取 agent 列表(后台「Agent 配置」下发;整体响应经网关 AES-CBC 加密)
|
|
type UserGetAgentsReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserGetAgentsReq) Reset() {
|
|
*x = UserGetAgentsReq{}
|
|
mi := &file_user_user_msg_v2_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserGetAgentsReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserGetAgentsReq) ProtoMessage() {}
|
|
|
|
func (x *UserGetAgentsReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_user_msg_v2_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 UserGetAgentsReq.ProtoReflect.Descriptor instead.
|
|
func (*UserGetAgentsReq) Descriptor() ([]byte, []int) {
|
|
return file_user_user_msg_v2_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
// 音色覆盖项(语言+性别 → 具体音色名)
|
|
type AgentVoiceItem struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language"` //@go_tags(`json:"language"`) BCP-47 语言
|
|
Gender int32 `protobuf:"varint,2,opt,name=gender,proto3" json:"gender"` //@go_tags(`json:"gender"`) 1男 2女 0不限
|
|
Voice string `protobuf:"bytes,3,opt,name=voice,proto3" json:"voice"` //@go_tags(`json:"voice"`) provider 音色名
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AgentVoiceItem) Reset() {
|
|
*x = AgentVoiceItem{}
|
|
mi := &file_user_user_msg_v2_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AgentVoiceItem) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AgentVoiceItem) ProtoMessage() {}
|
|
|
|
func (x *AgentVoiceItem) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_user_msg_v2_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 AgentVoiceItem.ProtoReflect.Descriptor instead.
|
|
func (*AgentVoiceItem) Descriptor() ([]byte, []int) {
|
|
return file_user_user_msg_v2_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *AgentVoiceItem) GetLanguage() string {
|
|
if x != nil {
|
|
return x.Language
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AgentVoiceItem) GetGender() int32 {
|
|
if x != nil {
|
|
return x.Gender
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AgentVoiceItem) GetVoice() string {
|
|
if x != nil {
|
|
return x.Voice
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// agent 下发项(服务编排字段引用 ThirdSvcItem.id)
|
|
type AgentItem struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` //@go_tags(`json:"id"`) agent id
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` //@go_tags(`json:"name"`) 名称
|
|
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type"` //@go_tags(`json:"type"`) chat|translate|sts-chat|ast-translate
|
|
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description"` //@go_tags(`json:"description"`) 描述
|
|
Avatarurl string `protobuf:"bytes,5,opt,name=avatarurl,proto3" json:"avatar_url"` //@go_tags(`json:"avatar_url"`) 头像
|
|
Sttsvcid string `protobuf:"bytes,6,opt,name=sttsvcid,proto3" json:"stt_svc_id"` //@go_tags(`json:"stt_svc_id"`) 识别服务
|
|
Llmsvcid string `protobuf:"bytes,7,opt,name=llmsvcid,proto3" json:"llm_svc_id"` //@go_tags(`json:"llm_svc_id"`) 大模型服务
|
|
Ttssvcid string `protobuf:"bytes,8,opt,name=ttssvcid,proto3" json:"tts_svc_id"` //@go_tags(`json:"tts_svc_id"`) 合成服务
|
|
Mtsvcid string `protobuf:"bytes,9,opt,name=mtsvcid,proto3" json:"mt_svc_id"` //@go_tags(`json:"mt_svc_id"`) 翻译服务
|
|
Stssvcid string `protobuf:"bytes,10,opt,name=stssvcid,proto3" json:"sts_svc_id"` //@go_tags(`json:"sts_svc_id"`) 端到端对话服务
|
|
Astsvcid string `protobuf:"bytes,11,opt,name=astsvcid,proto3" json:"ast_svc_id"` //@go_tags(`json:"ast_svc_id"`) 端到端翻译服务
|
|
Systemprompt string `protobuf:"bytes,12,opt,name=systemprompt,proto3" json:"system_prompt"` //@go_tags(`json:"system_prompt"`) 系统提示词
|
|
Gender int32 `protobuf:"varint,13,opt,name=gender,proto3" json:"gender"` //@go_tags(`json:"gender"`) 0未定 1男 2女
|
|
Greetingenabled bool `protobuf:"varint,14,opt,name=greetingenabled,proto3" json:"greeting_enabled"` //@go_tags(`json:"greeting_enabled"`) 开场白开关
|
|
Greetingtext string `protobuf:"bytes,15,opt,name=greetingtext,proto3" json:"greeting_text"` //@go_tags(`json:"greeting_text"`) 开场白
|
|
Supportlangs string `protobuf:"bytes,16,opt,name=supportlangs,proto3" json:"support_langs"` //@go_tags(`json:"support_langs"`) 支持语言(逗号分隔 BCP-47)
|
|
Defaultlang string `protobuf:"bytes,17,opt,name=defaultlang,proto3" json:"default_lang"` //@go_tags(`json:"default_lang"`) 默认语言
|
|
Voicemap []*AgentVoiceItem `protobuf:"bytes,18,rep,name=voicemap,proto3" json:"voice_map"` //@go_tags(`json:"voice_map"`) 音色覆盖
|
|
Sort int32 `protobuf:"varint,19,opt,name=sort,proto3" json:"sort"` //@go_tags(`json:"sort"`) 排序
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AgentItem) Reset() {
|
|
*x = AgentItem{}
|
|
mi := &file_user_user_msg_v2_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AgentItem) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AgentItem) ProtoMessage() {}
|
|
|
|
func (x *AgentItem) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_user_msg_v2_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 AgentItem.ProtoReflect.Descriptor instead.
|
|
func (*AgentItem) Descriptor() ([]byte, []int) {
|
|
return file_user_user_msg_v2_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *AgentItem) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AgentItem) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AgentItem) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AgentItem) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AgentItem) GetAvatarurl() string {
|
|
if x != nil {
|
|
return x.Avatarurl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AgentItem) GetSttsvcid() string {
|
|
if x != nil {
|
|
return x.Sttsvcid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AgentItem) GetLlmsvcid() string {
|
|
if x != nil {
|
|
return x.Llmsvcid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AgentItem) GetTtssvcid() string {
|
|
if x != nil {
|
|
return x.Ttssvcid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AgentItem) GetMtsvcid() string {
|
|
if x != nil {
|
|
return x.Mtsvcid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AgentItem) GetStssvcid() string {
|
|
if x != nil {
|
|
return x.Stssvcid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AgentItem) GetAstsvcid() string {
|
|
if x != nil {
|
|
return x.Astsvcid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AgentItem) GetSystemprompt() string {
|
|
if x != nil {
|
|
return x.Systemprompt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AgentItem) GetGender() int32 {
|
|
if x != nil {
|
|
return x.Gender
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AgentItem) GetGreetingenabled() bool {
|
|
if x != nil {
|
|
return x.Greetingenabled
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *AgentItem) GetGreetingtext() string {
|
|
if x != nil {
|
|
return x.Greetingtext
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AgentItem) GetSupportlangs() string {
|
|
if x != nil {
|
|
return x.Supportlangs
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AgentItem) GetDefaultlang() string {
|
|
if x != nil {
|
|
return x.Defaultlang
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AgentItem) GetVoicemap() []*AgentVoiceItem {
|
|
if x != nil {
|
|
return x.Voicemap
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AgentItem) GetSort() int32 {
|
|
if x != nil {
|
|
return x.Sort
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UserGetAgentsResp struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Agents []*AgentItem `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents"` //@go_tags(`json:"agents"`) agent 列表
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserGetAgentsResp) Reset() {
|
|
*x = UserGetAgentsResp{}
|
|
mi := &file_user_user_msg_v2_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserGetAgentsResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserGetAgentsResp) ProtoMessage() {}
|
|
|
|
func (x *UserGetAgentsResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_user_msg_v2_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 UserGetAgentsResp.ProtoReflect.Descriptor instead.
|
|
func (*UserGetAgentsResp) Descriptor() ([]byte, []int) {
|
|
return file_user_user_msg_v2_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *UserGetAgentsResp) GetAgents() []*AgentItem {
|
|
if x != nil {
|
|
return x.Agents
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_user_user_msg_v2_proto protoreflect.FileDescriptor
|
|
|
|
const file_user_user_msg_v2_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x16user/user_msg_v2.proto\x1a\x13user/user_msg.proto\x1a\bdb.proto\"\x17\n" +
|
|
"\x15UserGetAppConfigV2Req\"\xca\x02\n" +
|
|
"\x16UserGetAppConfigV2Resp\x122\n" +
|
|
"\x03env\x18\x01 \x03(\v2 .UserGetAppConfigV2Resp.EnvEntryR\x03env\x12 \n" +
|
|
"\x06agents\x18\x02 \x03(\v2\b.DBAgentR\x06agents\x125\n" +
|
|
"\x04mcps\x18\x03 \x03(\v2!.UserGetAppConfigV2Resp.McpsEntryR\x04mcps\x12&\n" +
|
|
"\bproducts\x18\x04 \x03(\v2\n" +
|
|
".DBProductR\bproducts\x1a6\n" +
|
|
"\bEnvEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1aC\n" +
|
|
"\tMcpsEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12 \n" +
|
|
"\x05value\x18\x02 \x01(\v2\n" +
|
|
".McpServerR\x05value:\x028\x01\"'\n" +
|
|
"\x13UserGetThirdSvcsReq\x12\x10\n" +
|
|
"\x03ids\x18\x01 \x03(\tR\x03ids\"\xdc\x01\n" +
|
|
"\fThirdSvcItem\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1a\n" +
|
|
"\bprovider\x18\x03 \x01(\tR\bprovider\x12\x1e\n" +
|
|
"\n" +
|
|
"categories\x18\x04 \x01(\tR\n" +
|
|
"categories\x121\n" +
|
|
"\x06fields\x18\x05 \x03(\v2\x19.ThirdSvcItem.FieldsEntryR\x06fields\x1a9\n" +
|
|
"\vFieldsEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"9\n" +
|
|
"\x14UserGetThirdSvcsResp\x12!\n" +
|
|
"\x04svcs\x18\x01 \x03(\v2\r.ThirdSvcItemR\x04svcs\"\x12\n" +
|
|
"\x10UserGetAgentsReq\"Z\n" +
|
|
"\x0eAgentVoiceItem\x12\x1a\n" +
|
|
"\blanguage\x18\x01 \x01(\tR\blanguage\x12\x16\n" +
|
|
"\x06gender\x18\x02 \x01(\x05R\x06gender\x12\x14\n" +
|
|
"\x05voice\x18\x03 \x01(\tR\x05voice\"\xba\x04\n" +
|
|
"\tAgentItem\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04type\x18\x03 \x01(\tR\x04type\x12 \n" +
|
|
"\vdescription\x18\x04 \x01(\tR\vdescription\x12\x1c\n" +
|
|
"\tavatarurl\x18\x05 \x01(\tR\tavatarurl\x12\x1a\n" +
|
|
"\bsttsvcid\x18\x06 \x01(\tR\bsttsvcid\x12\x1a\n" +
|
|
"\bllmsvcid\x18\a \x01(\tR\bllmsvcid\x12\x1a\n" +
|
|
"\bttssvcid\x18\b \x01(\tR\bttssvcid\x12\x18\n" +
|
|
"\amtsvcid\x18\t \x01(\tR\amtsvcid\x12\x1a\n" +
|
|
"\bstssvcid\x18\n" +
|
|
" \x01(\tR\bstssvcid\x12\x1a\n" +
|
|
"\bastsvcid\x18\v \x01(\tR\bastsvcid\x12\"\n" +
|
|
"\fsystemprompt\x18\f \x01(\tR\fsystemprompt\x12\x16\n" +
|
|
"\x06gender\x18\r \x01(\x05R\x06gender\x12(\n" +
|
|
"\x0fgreetingenabled\x18\x0e \x01(\bR\x0fgreetingenabled\x12\"\n" +
|
|
"\fgreetingtext\x18\x0f \x01(\tR\fgreetingtext\x12\"\n" +
|
|
"\fsupportlangs\x18\x10 \x01(\tR\fsupportlangs\x12 \n" +
|
|
"\vdefaultlang\x18\x11 \x01(\tR\vdefaultlang\x12+\n" +
|
|
"\bvoicemap\x18\x12 \x03(\v2\x0f.AgentVoiceItemR\bvoicemap\x12\x12\n" +
|
|
"\x04sort\x18\x13 \x01(\x05R\x04sort\"7\n" +
|
|
"\x11UserGetAgentsResp\x12\"\n" +
|
|
"\x06agents\x18\x01 \x03(\v2\n" +
|
|
".AgentItemR\x06agentsB\x06Z\x04.;pbb\x06proto3"
|
|
|
|
var (
|
|
file_user_user_msg_v2_proto_rawDescOnce sync.Once
|
|
file_user_user_msg_v2_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_user_user_msg_v2_proto_rawDescGZIP() []byte {
|
|
file_user_user_msg_v2_proto_rawDescOnce.Do(func() {
|
|
file_user_user_msg_v2_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_user_user_msg_v2_proto_rawDesc), len(file_user_user_msg_v2_proto_rawDesc)))
|
|
})
|
|
return file_user_user_msg_v2_proto_rawDescData
|
|
}
|
|
|
|
var file_user_user_msg_v2_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
|
var file_user_user_msg_v2_proto_goTypes = []any{
|
|
(*UserGetAppConfigV2Req)(nil), // 0: UserGetAppConfigV2Req
|
|
(*UserGetAppConfigV2Resp)(nil), // 1: UserGetAppConfigV2Resp
|
|
(*UserGetThirdSvcsReq)(nil), // 2: UserGetThirdSvcsReq
|
|
(*ThirdSvcItem)(nil), // 3: ThirdSvcItem
|
|
(*UserGetThirdSvcsResp)(nil), // 4: UserGetThirdSvcsResp
|
|
(*UserGetAgentsReq)(nil), // 5: UserGetAgentsReq
|
|
(*AgentVoiceItem)(nil), // 6: AgentVoiceItem
|
|
(*AgentItem)(nil), // 7: AgentItem
|
|
(*UserGetAgentsResp)(nil), // 8: UserGetAgentsResp
|
|
nil, // 9: UserGetAppConfigV2Resp.EnvEntry
|
|
nil, // 10: UserGetAppConfigV2Resp.McpsEntry
|
|
nil, // 11: ThirdSvcItem.FieldsEntry
|
|
(*DBAgent)(nil), // 12: DBAgent
|
|
(*DBProduct)(nil), // 13: DBProduct
|
|
(*McpServer)(nil), // 14: McpServer
|
|
}
|
|
var file_user_user_msg_v2_proto_depIdxs = []int32{
|
|
9, // 0: UserGetAppConfigV2Resp.env:type_name -> UserGetAppConfigV2Resp.EnvEntry
|
|
12, // 1: UserGetAppConfigV2Resp.agents:type_name -> DBAgent
|
|
10, // 2: UserGetAppConfigV2Resp.mcps:type_name -> UserGetAppConfigV2Resp.McpsEntry
|
|
13, // 3: UserGetAppConfigV2Resp.products:type_name -> DBProduct
|
|
11, // 4: ThirdSvcItem.fields:type_name -> ThirdSvcItem.FieldsEntry
|
|
3, // 5: UserGetThirdSvcsResp.svcs:type_name -> ThirdSvcItem
|
|
6, // 6: AgentItem.voicemap:type_name -> AgentVoiceItem
|
|
7, // 7: UserGetAgentsResp.agents:type_name -> AgentItem
|
|
14, // 8: UserGetAppConfigV2Resp.McpsEntry.value:type_name -> McpServer
|
|
9, // [9:9] is the sub-list for method output_type
|
|
9, // [9:9] is the sub-list for method input_type
|
|
9, // [9:9] is the sub-list for extension type_name
|
|
9, // [9:9] is the sub-list for extension extendee
|
|
0, // [0:9] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_user_user_msg_v2_proto_init() }
|
|
func file_user_user_msg_v2_proto_init() {
|
|
if File_user_user_msg_v2_proto != nil {
|
|
return
|
|
}
|
|
file_user_user_msg_proto_init()
|
|
file_db_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_user_user_msg_v2_proto_rawDesc), len(file_user_user_msg_v2_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 12,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_user_user_msg_v2_proto_goTypes,
|
|
DependencyIndexes: file_user_user_msg_v2_proto_depIdxs,
|
|
MessageInfos: file_user_user_msg_v2_proto_msgTypes,
|
|
}.Build()
|
|
File_user_user_msg_v2_proto = out.File
|
|
file_user_user_msg_v2_proto_goTypes = nil
|
|
file_user_user_msg_v2_proto_depIdxs = nil
|
|
}
|
|
|