chatbot

package
v0.3.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChatAppType_name = map[int32]string{
		0: "CAT_TELEGRAM",
		1: "CAT_COOLQ",
	}
	ChatAppType_value = map[string]int32{
		"CAT_TELEGRAM": 0,
		"CAT_COOLQ":    1,
	}
)

Enum value maps for ChatAppType.

View Source
var (
	AppCtrlType_name = map[int32]string{
		0: "ACT_JOINCHANNEL",
	}
	AppCtrlType_value = map[string]int32{
		"ACT_JOINCHANNEL": 0,
	}
)

Enum value maps for AppCtrlType.

View Source
var File_chatbot_proto protoreflect.FileDescriptor

Functions

func RegisterChatBotServiceServer

func RegisterChatBotServiceServer(s *grpc.Server, srv ChatBotServiceServer)

func RegisterChatBotUserServiceServer

func RegisterChatBotUserServiceServer(s *grpc.Server, srv ChatBotUserServiceServer)

Types

type AppChannelInfo

type AppChannelInfo struct {
	App             ChatAppType `protobuf:"varint,1,opt,name=app,proto3,enum=chatbotpb.ChatAppType" json:"app,omitempty"`
	UsernameAppServ string      `protobuf:"bytes,2,opt,name=usernameAppServ,proto3" json:"usernameAppServ,omitempty"`
	Channelid       string      `protobuf:"bytes,3,opt,name=channelid,proto3" json:"channelid,omitempty"`
	Channelname     string      `protobuf:"bytes,4,opt,name=channelname,proto3" json:"channelname,omitempty"`
	// contains filtered or unexported fields
}

AppChannelInfo - app channel info

func (*AppChannelInfo) Descriptor deprecated

func (*AppChannelInfo) Descriptor() ([]byte, []int)

Deprecated: Use AppChannelInfo.ProtoReflect.Descriptor instead.

func (*AppChannelInfo) GetApp

func (x *AppChannelInfo) GetApp() ChatAppType

func (*AppChannelInfo) GetChannelid

func (x *AppChannelInfo) GetChannelid() string

func (*AppChannelInfo) GetChannelname

func (x *AppChannelInfo) GetChannelname() string

func (*AppChannelInfo) GetUsernameAppServ

func (x *AppChannelInfo) GetUsernameAppServ() string

func (*AppChannelInfo) ProtoMessage

func (*AppChannelInfo) ProtoMessage()

func (*AppChannelInfo) ProtoReflect

func (x *AppChannelInfo) ProtoReflect() protoreflect.Message

func (*AppChannelInfo) Reset

func (x *AppChannelInfo) Reset()

func (*AppChannelInfo) String

func (x *AppChannelInfo) String() string

type AppCtrlData

type AppCtrlData struct {
	CtrlID  int64           `protobuf:"varint,1,opt,name=ctrlID,proto3" json:"ctrlID,omitempty"`
	Act     AppCtrlType     `protobuf:"varint,2,opt,name=act,proto3,enum=chatbotpb.AppCtrlType" json:"act,omitempty"`
	Channel *AppChannelInfo `protobuf:"bytes,3,opt,name=channel,proto3" json:"channel,omitempty"`
	// contains filtered or unexported fields
}

AppCtrlData - app control data

func (*AppCtrlData) Descriptor deprecated

func (*AppCtrlData) Descriptor() ([]byte, []int)

Deprecated: Use AppCtrlData.ProtoReflect.Descriptor instead.

func (*AppCtrlData) GetAct

func (x *AppCtrlData) GetAct() AppCtrlType

func (*AppCtrlData) GetChannel

func (x *AppCtrlData) GetChannel() *AppChannelInfo

func (*AppCtrlData) GetCtrlID

func (x *AppCtrlData) GetCtrlID() int64

func (*AppCtrlData) ProtoMessage

func (*AppCtrlData) ProtoMessage()

func (*AppCtrlData) ProtoReflect

func (x *AppCtrlData) ProtoReflect() protoreflect.Message

func (*AppCtrlData) Reset

func (x *AppCtrlData) Reset()

func (*AppCtrlData) String

func (x *AppCtrlData) String() string

type AppCtrlResult

type AppCtrlResult struct {
	CtrlID     int64        `protobuf:"varint,1,opt,name=ctrlID,proto3" json:"ctrlID,omitempty"`
	Token      string       `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Ctrl       *AppCtrlData `protobuf:"bytes,3,opt,name=ctrl,proto3" json:"ctrl,omitempty"`
	ResultCode int32        `protobuf:"varint,4,opt,name=resultCode,proto3" json:"resultCode,omitempty"`
	// contains filtered or unexported fields
}

AppCtrlResult - app control result

func (*AppCtrlResult) Descriptor deprecated

func (*AppCtrlResult) Descriptor() ([]byte, []int)

Deprecated: Use AppCtrlResult.ProtoReflect.Descriptor instead.

func (*AppCtrlResult) GetCtrl

func (x *AppCtrlResult) GetCtrl() *AppCtrlData

func (*AppCtrlResult) GetCtrlID

func (x *AppCtrlResult) GetCtrlID() int64

func (*AppCtrlResult) GetResultCode

func (x *AppCtrlResult) GetResultCode() int32

func (*AppCtrlResult) GetToken

func (x *AppCtrlResult) GetToken() string

func (*AppCtrlResult) ProtoMessage

func (*AppCtrlResult) ProtoMessage()

func (*AppCtrlResult) ProtoReflect

func (x *AppCtrlResult) ProtoReflect() protoreflect.Message

func (*AppCtrlResult) Reset

func (x *AppCtrlResult) Reset()

func (*AppCtrlResult) String

func (x *AppCtrlResult) String() string

type AppCtrlType

type AppCtrlType int32

AppCtrlType - app control type

const (
	AppCtrlType_ACT_JOINCHANNEL AppCtrlType = 0
)

func (AppCtrlType) Descriptor

func (AppCtrlType) Enum

func (x AppCtrlType) Enum() *AppCtrlType

func (AppCtrlType) EnumDescriptor deprecated

func (AppCtrlType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AppCtrlType.Descriptor instead.

func (AppCtrlType) Number

func (x AppCtrlType) Number() protoreflect.EnumNumber

func (AppCtrlType) String

func (x AppCtrlType) String() string

func (AppCtrlType) Type

type AppGroupInfo

type AppGroupInfo struct {
	App             ChatAppType `protobuf:"varint,1,opt,name=app,proto3,enum=chatbotpb.ChatAppType" json:"app,omitempty"`
	UsernameAppServ string      `protobuf:"bytes,2,opt,name=usernameAppServ,proto3" json:"usernameAppServ,omitempty"`
	Groupid         string      `protobuf:"bytes,3,opt,name=groupid,proto3" json:"groupid,omitempty"`
	Groupname       string      `protobuf:"bytes,4,opt,name=groupname,proto3" json:"groupname,omitempty"`
	// contains filtered or unexported fields
}

AppGroupInfo - app group info

func (*AppGroupInfo) Descriptor deprecated

func (*AppGroupInfo) Descriptor() ([]byte, []int)

Deprecated: Use AppGroupInfo.ProtoReflect.Descriptor instead.

func (*AppGroupInfo) GetApp

func (x *AppGroupInfo) GetApp() ChatAppType

func (*AppGroupInfo) GetGroupid

func (x *AppGroupInfo) GetGroupid() string

func (*AppGroupInfo) GetGroupname

func (x *AppGroupInfo) GetGroupname() string

func (*AppGroupInfo) GetUsernameAppServ

func (x *AppGroupInfo) GetUsernameAppServ() string

func (*AppGroupInfo) ProtoMessage

func (*AppGroupInfo) ProtoMessage()

func (*AppGroupInfo) ProtoReflect

func (x *AppGroupInfo) ProtoReflect() protoreflect.Message

func (*AppGroupInfo) Reset

func (x *AppGroupInfo) Reset()

func (*AppGroupInfo) String

func (x *AppGroupInfo) String() string

type AppServInfo

type AppServInfo struct {
	Token     string      `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	AppType   ChatAppType `protobuf:"varint,2,opt,name=appType,proto3,enum=chatbotpb.ChatAppType" json:"appType,omitempty"`
	Username  string      `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	Sessionid string      `protobuf:"bytes,4,opt,name=sessionid,proto3" json:"sessionid,omitempty"`
	// contains filtered or unexported fields
}

AppServInfo - app server info

func (*AppServInfo) Descriptor deprecated

func (*AppServInfo) Descriptor() ([]byte, []int)

Deprecated: Use AppServInfo.ProtoReflect.Descriptor instead.

func (*AppServInfo) GetAppType

func (x *AppServInfo) GetAppType() ChatAppType

func (*AppServInfo) GetSessionid

func (x *AppServInfo) GetSessionid() string

func (*AppServInfo) GetToken

func (x *AppServInfo) GetToken() string

func (*AppServInfo) GetUsername

func (x *AppServInfo) GetUsername() string

func (*AppServInfo) ProtoMessage

func (*AppServInfo) ProtoMessage()

func (*AppServInfo) ProtoReflect

func (x *AppServInfo) ProtoReflect() protoreflect.Message

func (*AppServInfo) Reset

func (x *AppServInfo) Reset()

func (*AppServInfo) String

func (x *AppServInfo) String() string

type ChatAppType

type ChatAppType int32

ChatAppType - chat app type

const (
	ChatAppType_CAT_TELEGRAM ChatAppType = 0
	ChatAppType_CAT_COOLQ    ChatAppType = 1
)

func (ChatAppType) Descriptor

func (ChatAppType) Enum

func (x ChatAppType) Enum() *ChatAppType

func (ChatAppType) EnumDescriptor deprecated

func (ChatAppType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ChatAppType.Descriptor instead.

func (ChatAppType) Number

func (x ChatAppType) Number() protoreflect.EnumNumber

func (ChatAppType) String

func (x ChatAppType) String() string

func (ChatAppType) Type

type ChatBotServInfo

type ChatBotServInfo struct {
	Token     string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	SessionID string `protobuf:"bytes,2,opt,name=sessionID,proto3" json:"sessionID,omitempty"`
	ServName  string `protobuf:"bytes,3,opt,name=servName,proto3" json:"servName,omitempty"`
	// contains filtered or unexported fields
}

ChatBotServInfo - ChatBot service infomation

func (*ChatBotServInfo) Descriptor deprecated

func (*ChatBotServInfo) Descriptor() ([]byte, []int)

Deprecated: Use ChatBotServInfo.ProtoReflect.Descriptor instead.

func (*ChatBotServInfo) GetServName

func (x *ChatBotServInfo) GetServName() string

func (*ChatBotServInfo) GetSessionID

func (x *ChatBotServInfo) GetSessionID() string

func (*ChatBotServInfo) GetToken

func (x *ChatBotServInfo) GetToken() string

func (*ChatBotServInfo) ProtoMessage

func (*ChatBotServInfo) ProtoMessage()

func (*ChatBotServInfo) ProtoReflect

func (x *ChatBotServInfo) ProtoReflect() protoreflect.Message

func (*ChatBotServInfo) Reset

func (x *ChatBotServInfo) Reset()

func (*ChatBotServInfo) String

func (x *ChatBotServInfo) String() string

type ChatBotServiceClient

type ChatBotServiceClient interface {
	// registerAppService - register app service
	RegisterAppService(ctx context.Context, in *RegisterAppService, opts ...grpc.CallOption) (*ReplyRegisterAppService, error)
	// sendChat - send chat
	SendChat(ctx context.Context, opts ...grpc.CallOption) (ChatBotService_SendChatClient, error)
	// requestChat - request chat
	RequestChat(ctx context.Context, in *RequestChatData, opts ...grpc.CallOption) (ChatBotService_RequestChatClient, error)
	// requestCtrl - request control
	RequestCtrl(ctx context.Context, in *RequestCtrlData, opts ...grpc.CallOption) (*AppCtrlData, error)
	// sendCtrlResult - send control result
	SendCtrlResult(ctx context.Context, in *AppCtrlResult, opts ...grpc.CallOption) (*SCRResult, error)
}

ChatBotServiceClient is the client API for ChatBotService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ChatBotServiceServer

type ChatBotServiceServer interface {
	// registerAppService - register app service
	RegisterAppService(context.Context, *RegisterAppService) (*ReplyRegisterAppService, error)
	// sendChat - send chat
	SendChat(ChatBotService_SendChatServer) error
	// requestChat - request chat
	RequestChat(*RequestChatData, ChatBotService_RequestChatServer) error
	// requestCtrl - request control
	RequestCtrl(context.Context, *RequestCtrlData) (*AppCtrlData, error)
	// sendCtrlResult - send control result
	SendCtrlResult(context.Context, *AppCtrlResult) (*SCRResult, error)
}

ChatBotServiceServer is the server API for ChatBotService service.

type ChatBotService_RequestChatClient

type ChatBotService_RequestChatClient interface {
	Recv() (*ChatMsgStream, error)
	grpc.ClientStream
}

type ChatBotService_RequestChatServer

type ChatBotService_RequestChatServer interface {
	Send(*ChatMsgStream) error
	grpc.ServerStream
}

type ChatBotService_SendChatClient

type ChatBotService_SendChatClient interface {
	Send(*ChatMsgStream) error
	Recv() (*ChatMsgStream, error)
	grpc.ClientStream
}

type ChatBotService_SendChatServer

type ChatBotService_SendChatServer interface {
	Send(*ChatMsgStream) error
	Recv() (*ChatMsgStream, error)
	grpc.ServerStream
}

type ChatBotUserServiceClient

type ChatBotUserServiceClient interface {
	// getUserInfo - register app service
	RegisterChatBotServ(ctx context.Context, in *RegisterChatBotServ, opts ...grpc.CallOption) (*ReplyRegisterChatBotServ, error)
}

ChatBotUserServiceClient is the client API for ChatBotUserService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ChatBotUserServiceServer

type ChatBotUserServiceServer interface {
	// getUserInfo - register app service
	RegisterChatBotServ(context.Context, *RegisterChatBotServ) (*ReplyRegisterChatBotServ, error)
}

ChatBotUserServiceServer is the server API for ChatBotUserService service.

type ChatMsg

type ChatMsg struct {
	Msg string        `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	Uai *UserAppInfo  `protobuf:"bytes,2,opt,name=uai,proto3" json:"uai,omitempty"`
	Agi *AppGroupInfo `protobuf:"bytes,3,opt,name=agi,proto3" json:"agi,omitempty"`
	// Deprecated: Do not use.
	Filename string `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"`
	// Deprecated: Do not use.
	FileData  []byte `protobuf:"bytes,5,opt,name=fileData,proto3" json:"fileData,omitempty"`
	Error     string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"`
	Token     string `protobuf:"bytes,7,opt,name=token,proto3" json:"token,omitempty"`
	SessionID string `protobuf:"bytes,8,opt,name=sessionID,proto3" json:"sessionID,omitempty"`
	// Deprecated: Do not use.
	FileType string    `protobuf:"bytes,9,opt,name=fileType,proto3" json:"fileType,omitempty"`
	File     *FileData `protobuf:"bytes,10,opt,name=file,proto3" json:"file,omitempty"`
	// contains filtered or unexported fields
}

ChatMsg - chat message

func (*ChatMsg) Descriptor deprecated

func (*ChatMsg) Descriptor() ([]byte, []int)

Deprecated: Use ChatMsg.ProtoReflect.Descriptor instead.

func (*ChatMsg) GetAgi

func (x *ChatMsg) GetAgi() *AppGroupInfo

func (*ChatMsg) GetError

func (x *ChatMsg) GetError() string

func (*ChatMsg) GetFile

func (x *ChatMsg) GetFile() *FileData

func (*ChatMsg) GetFileData deprecated

func (x *ChatMsg) GetFileData() []byte

Deprecated: Do not use.

func (*ChatMsg) GetFileType deprecated

func (x *ChatMsg) GetFileType() string

Deprecated: Do not use.

func (*ChatMsg) GetFilename deprecated

func (x *ChatMsg) GetFilename() string

Deprecated: Do not use.

func (*ChatMsg) GetMsg

func (x *ChatMsg) GetMsg() string

func (*ChatMsg) GetSessionID

func (x *ChatMsg) GetSessionID() string

func (*ChatMsg) GetToken

func (x *ChatMsg) GetToken() string

func (*ChatMsg) GetUai

func (x *ChatMsg) GetUai() *UserAppInfo

func (*ChatMsg) ProtoMessage

func (*ChatMsg) ProtoMessage()

func (*ChatMsg) ProtoReflect

func (x *ChatMsg) ProtoReflect() protoreflect.Message

func (*ChatMsg) Reset

func (x *ChatMsg) Reset()

func (*ChatMsg) String

func (x *ChatMsg) String() string

type ChatMsgStream

type ChatMsgStream struct {

	// totalLength - If the message is too long, it will send data in multiple msg, this is the total length.
	TotalLength int32 `protobuf:"varint,1,opt,name=totalLength,proto3" json:"totalLength,omitempty"`
	// curStart - The starting point of the current data (in bytes).
	CurStart int32 `protobuf:"varint,2,opt,name=curStart,proto3" json:"curStart,omitempty"`
	// curLength - The length of the current data (in bytes).
	CurLength int32 `protobuf:"varint,3,opt,name=curLength,proto3" json:"curLength,omitempty"`
	// hashData - This is the hash of each paragraph.
	HashData string `protobuf:"bytes,4,opt,name=hashData,proto3" json:"hashData,omitempty"`
	// totalHashData - If multiple messages return data, this is the hash value of all data, only sent in the last message.
	TotalHashData string `protobuf:"bytes,5,opt,name=totalHashData,proto3" json:"totalHashData,omitempty"`
	// data
	Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
	// error
	Error string `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"`
	// token
	Token string `protobuf:"bytes,8,opt,name=token,proto3" json:"token,omitempty"`
	// sessionID
	SessionID string `protobuf:"bytes,9,opt,name=sessionID,proto3" json:"sessionID,omitempty"`
	// chat
	Chat *ChatMsg `protobuf:"bytes,10,opt,name=chat,proto3" json:"chat,omitempty"`
	// isNoMsg - no msg
	IsNoMsg bool `protobuf:"varint,11,opt,name=isNoMsg,proto3" json:"isNoMsg,omitempty"`
	// contains filtered or unexported fields
}

ChatMsgStream - chat message stream

func (*ChatMsgStream) Descriptor deprecated

func (*ChatMsgStream) Descriptor() ([]byte, []int)

Deprecated: Use ChatMsgStream.ProtoReflect.Descriptor instead.

func (*ChatMsgStream) GetChat

func (x *ChatMsgStream) GetChat() *ChatMsg

func (*ChatMsgStream) GetCurLength

func (x *ChatMsgStream) GetCurLength() int32

func (*ChatMsgStream) GetCurStart

func (x *ChatMsgStream) GetCurStart() int32

func (*ChatMsgStream) GetData

func (x *ChatMsgStream) GetData() []byte

func (*ChatMsgStream) GetError

func (x *ChatMsgStream) GetError() string

func (*ChatMsgStream) GetHashData

func (x *ChatMsgStream) GetHashData() string

func (*ChatMsgStream) GetIsNoMsg added in v0.3.10

func (x *ChatMsgStream) GetIsNoMsg() bool

func (*ChatMsgStream) GetSessionID

func (x *ChatMsgStream) GetSessionID() string

func (*ChatMsgStream) GetToken

func (x *ChatMsgStream) GetToken() string

func (*ChatMsgStream) GetTotalHashData

func (x *ChatMsgStream) GetTotalHashData() string

func (*ChatMsgStream) GetTotalLength

func (x *ChatMsgStream) GetTotalLength() int32

func (*ChatMsgStream) ProtoMessage

func (*ChatMsgStream) ProtoMessage()

func (*ChatMsgStream) ProtoReflect

func (x *ChatMsgStream) ProtoReflect() protoreflect.Message

func (*ChatMsgStream) Reset

func (x *ChatMsgStream) Reset()

func (*ChatMsgStream) String

func (x *ChatMsgStream) String() string

type FileData

type FileData struct {
	Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
	FileData []byte `protobuf:"bytes,2,opt,name=fileData,proto3" json:"fileData,omitempty"`
	FileType string `protobuf:"bytes,3,opt,name=fileType,proto3" json:"fileType,omitempty"`
	// contains filtered or unexported fields
}

FileData - file data

func (*FileData) Descriptor deprecated

func (*FileData) Descriptor() ([]byte, []int)

Deprecated: Use FileData.ProtoReflect.Descriptor instead.

func (*FileData) GetFileData

func (x *FileData) GetFileData() []byte

func (*FileData) GetFileType

func (x *FileData) GetFileType() string

func (*FileData) GetFilename

func (x *FileData) GetFilename() string

func (*FileData) ProtoMessage

func (*FileData) ProtoMessage()

func (*FileData) ProtoReflect

func (x *FileData) ProtoReflect() protoreflect.Message

func (*FileData) Reset

func (x *FileData) Reset()

func (*FileData) String

func (x *FileData) String() string

type RegisterAppService

type RegisterAppService struct {
	AppServ *AppServInfo `protobuf:"bytes,1,opt,name=appServ,proto3" json:"appServ,omitempty"`
	// contains filtered or unexported fields
}

RegisterAppService - register app service

func (*RegisterAppService) Descriptor deprecated

func (*RegisterAppService) Descriptor() ([]byte, []int)

Deprecated: Use RegisterAppService.ProtoReflect.Descriptor instead.

func (*RegisterAppService) GetAppServ

func (x *RegisterAppService) GetAppServ() *AppServInfo

func (*RegisterAppService) ProtoMessage

func (*RegisterAppService) ProtoMessage()

func (*RegisterAppService) ProtoReflect

func (x *RegisterAppService) ProtoReflect() protoreflect.Message

func (*RegisterAppService) Reset

func (x *RegisterAppService) Reset()

func (*RegisterAppService) String

func (x *RegisterAppService) String() string

type RegisterChatBotServ

type RegisterChatBotServ struct {
	ServInfo *ChatBotServInfo `protobuf:"bytes,1,opt,name=servInfo,proto3" json:"servInfo,omitempty"`
	// contains filtered or unexported fields
}

RegisterChatBotServ - register chatbot service

func (*RegisterChatBotServ) Descriptor deprecated

func (*RegisterChatBotServ) Descriptor() ([]byte, []int)

Deprecated: Use RegisterChatBotServ.ProtoReflect.Descriptor instead.

func (*RegisterChatBotServ) GetServInfo

func (x *RegisterChatBotServ) GetServInfo() *ChatBotServInfo

func (*RegisterChatBotServ) ProtoMessage

func (*RegisterChatBotServ) ProtoMessage()

func (*RegisterChatBotServ) ProtoReflect

func (x *RegisterChatBotServ) ProtoReflect() protoreflect.Message

func (*RegisterChatBotServ) Reset

func (x *RegisterChatBotServ) Reset()

func (*RegisterChatBotServ) String

func (x *RegisterChatBotServ) String() string

type ReplyRegisterAppService

type ReplyRegisterAppService struct {
	AppType   ChatAppType `protobuf:"varint,1,opt,name=appType,proto3,enum=chatbotpb.ChatAppType" json:"appType,omitempty"`
	Error     string      `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	SessionID string      `protobuf:"bytes,3,opt,name=sessionID,proto3" json:"sessionID,omitempty"`
	// contains filtered or unexported fields
}

ReplyRegisterAppService - reply RegisterAppService

func (*ReplyRegisterAppService) Descriptor deprecated

func (*ReplyRegisterAppService) Descriptor() ([]byte, []int)

Deprecated: Use ReplyRegisterAppService.ProtoReflect.Descriptor instead.

func (*ReplyRegisterAppService) GetAppType

func (x *ReplyRegisterAppService) GetAppType() ChatAppType

func (*ReplyRegisterAppService) GetError

func (x *ReplyRegisterAppService) GetError() string

func (*ReplyRegisterAppService) GetSessionID

func (x *ReplyRegisterAppService) GetSessionID() string

func (*ReplyRegisterAppService) ProtoMessage

func (*ReplyRegisterAppService) ProtoMessage()

func (*ReplyRegisterAppService) ProtoReflect

func (x *ReplyRegisterAppService) ProtoReflect() protoreflect.Message

func (*ReplyRegisterAppService) Reset

func (x *ReplyRegisterAppService) Reset()

func (*ReplyRegisterAppService) String

func (x *ReplyRegisterAppService) String() string

type ReplyRegisterChatBotServ

type ReplyRegisterChatBotServ struct {
	Token     string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	SessionID string `protobuf:"bytes,2,opt,name=sessionID,proto3" json:"sessionID,omitempty"`
	Error     string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

ReplyRegisterChatBotServ - reply RegisterChatBotServ

func (*ReplyRegisterChatBotServ) Descriptor deprecated

func (*ReplyRegisterChatBotServ) Descriptor() ([]byte, []int)

Deprecated: Use ReplyRegisterChatBotServ.ProtoReflect.Descriptor instead.

func (*ReplyRegisterChatBotServ) GetError

func (x *ReplyRegisterChatBotServ) GetError() string

func (*ReplyRegisterChatBotServ) GetSessionID

func (x *ReplyRegisterChatBotServ) GetSessionID() string

func (*ReplyRegisterChatBotServ) GetToken

func (x *ReplyRegisterChatBotServ) GetToken() string

func (*ReplyRegisterChatBotServ) ProtoMessage

func (*ReplyRegisterChatBotServ) ProtoMessage()

func (*ReplyRegisterChatBotServ) ProtoReflect

func (x *ReplyRegisterChatBotServ) ProtoReflect() protoreflect.Message

func (*ReplyRegisterChatBotServ) Reset

func (x *ReplyRegisterChatBotServ) Reset()

func (*ReplyRegisterChatBotServ) String

func (x *ReplyRegisterChatBotServ) String() string

type RequestChatData

type RequestChatData struct {
	Token     string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	SessionID string `protobuf:"bytes,2,opt,name=sessionID,proto3" json:"sessionID,omitempty"`
	// contains filtered or unexported fields
}

RequestChatData - request chat data

func (*RequestChatData) Descriptor deprecated

func (*RequestChatData) Descriptor() ([]byte, []int)

Deprecated: Use RequestChatData.ProtoReflect.Descriptor instead.

func (*RequestChatData) GetSessionID

func (x *RequestChatData) GetSessionID() string

func (*RequestChatData) GetToken

func (x *RequestChatData) GetToken() string

func (*RequestChatData) ProtoMessage

func (*RequestChatData) ProtoMessage()

func (*RequestChatData) ProtoReflect

func (x *RequestChatData) ProtoReflect() protoreflect.Message

func (*RequestChatData) Reset

func (x *RequestChatData) Reset()

func (*RequestChatData) String

func (x *RequestChatData) String() string

type RequestCtrlData

type RequestCtrlData struct {
	LastCtrlID int64  `protobuf:"varint,1,opt,name=lastCtrlID,proto3" json:"lastCtrlID,omitempty"`
	Token      string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

RequestCtrlData - request app control data

func (*RequestCtrlData) Descriptor deprecated

func (*RequestCtrlData) Descriptor() ([]byte, []int)

Deprecated: Use RequestCtrlData.ProtoReflect.Descriptor instead.

func (*RequestCtrlData) GetLastCtrlID

func (x *RequestCtrlData) GetLastCtrlID() int64

func (*RequestCtrlData) GetToken

func (x *RequestCtrlData) GetToken() string

func (*RequestCtrlData) ProtoMessage

func (*RequestCtrlData) ProtoMessage()

func (*RequestCtrlData) ProtoReflect

func (x *RequestCtrlData) ProtoReflect() protoreflect.Message

func (*RequestCtrlData) Reset

func (x *RequestCtrlData) Reset()

func (*RequestCtrlData) String

func (x *RequestCtrlData) String() string

type SCRResult

type SCRResult struct {
	CtrlID     int64 `protobuf:"varint,1,opt,name=ctrlID,proto3" json:"ctrlID,omitempty"`
	ResultCode int32 `protobuf:"varint,2,opt,name=resultCode,proto3" json:"resultCode,omitempty"`
	// contains filtered or unexported fields
}

SCRResult - result for sendctrlresult

func (*SCRResult) Descriptor deprecated

func (*SCRResult) Descriptor() ([]byte, []int)

Deprecated: Use SCRResult.ProtoReflect.Descriptor instead.

func (*SCRResult) GetCtrlID

func (x *SCRResult) GetCtrlID() int64

func (*SCRResult) GetResultCode

func (x *SCRResult) GetResultCode() int32

func (*SCRResult) ProtoMessage

func (*SCRResult) ProtoMessage()

func (*SCRResult) ProtoReflect

func (x *SCRResult) ProtoReflect() protoreflect.Message

func (*SCRResult) Reset

func (x *SCRResult) Reset()

func (*SCRResult) String

func (x *SCRResult) String() string

type UnimplementedChatBotServiceServer

type UnimplementedChatBotServiceServer struct {
}

UnimplementedChatBotServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedChatBotServiceServer) RegisterAppService

func (*UnimplementedChatBotServiceServer) RequestChat

func (*UnimplementedChatBotServiceServer) RequestCtrl

func (*UnimplementedChatBotServiceServer) SendChat

func (*UnimplementedChatBotServiceServer) SendCtrlResult

type UnimplementedChatBotUserServiceServer

type UnimplementedChatBotUserServiceServer struct {
}

UnimplementedChatBotUserServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedChatBotUserServiceServer) RegisterChatBotServ

type UserAppInfo

type UserAppInfo struct {
	App             ChatAppType `protobuf:"varint,1,opt,name=app,proto3,enum=chatbotpb.ChatAppType" json:"app,omitempty"`
	Appuid          string      `protobuf:"bytes,2,opt,name=appuid,proto3" json:"appuid,omitempty"`
	Appuname        string      `protobuf:"bytes,3,opt,name=appuname,proto3" json:"appuname,omitempty"`
	Chatnums        int32       `protobuf:"varint,4,opt,name=chatnums,proto3" json:"chatnums,omitempty"`
	UsernameAppServ string      `protobuf:"bytes,5,opt,name=usernameAppServ,proto3" json:"usernameAppServ,omitempty"`
	Lang            string      `protobuf:"bytes,6,opt,name=lang,proto3" json:"lang,omitempty"`
	// contains filtered or unexported fields
}

UserAppInfo - user app info

func (*UserAppInfo) Descriptor deprecated

func (*UserAppInfo) Descriptor() ([]byte, []int)

Deprecated: Use UserAppInfo.ProtoReflect.Descriptor instead.

func (*UserAppInfo) GetApp

func (x *UserAppInfo) GetApp() ChatAppType

func (*UserAppInfo) GetAppuid

func (x *UserAppInfo) GetAppuid() string

func (*UserAppInfo) GetAppuname

func (x *UserAppInfo) GetAppuname() string

func (*UserAppInfo) GetChatnums

func (x *UserAppInfo) GetChatnums() int32

func (*UserAppInfo) GetLang

func (x *UserAppInfo) GetLang() string

func (*UserAppInfo) GetUsernameAppServ

func (x *UserAppInfo) GetUsernameAppServ() string

func (*UserAppInfo) ProtoMessage

func (*UserAppInfo) ProtoMessage()

func (*UserAppInfo) ProtoReflect

func (x *UserAppInfo) ProtoReflect() protoreflect.Message

func (*UserAppInfo) Reset

func (x *UserAppInfo) Reset()

func (*UserAppInfo) String

func (x *UserAppInfo) String() string

type UserInfo

type UserInfo struct {
	Uid      int64          `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
	Name     string         `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Apps     []*UserAppInfo `protobuf:"bytes,3,rep,name=apps,proto3" json:"apps,omitempty"`
	Tags     []string       `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"`
	Language string         `protobuf:"bytes,5,opt,name=language,proto3" json:"language,omitempty"`
	Money    int64          `protobuf:"varint,10,opt,name=money,proto3" json:"money,omitempty"`
	// contains filtered or unexported fields
}

UserInfo - user info

func (*UserInfo) Descriptor deprecated

func (*UserInfo) Descriptor() ([]byte, []int)

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetApps

func (x *UserInfo) GetApps() []*UserAppInfo

func (*UserInfo) GetLanguage

func (x *UserInfo) GetLanguage() string

func (*UserInfo) GetMoney

func (x *UserInfo) GetMoney() int64

func (*UserInfo) GetName

func (x *UserInfo) GetName() string

func (*UserInfo) GetTags

func (x *UserInfo) GetTags() []string

func (*UserInfo) GetUid

func (x *UserInfo) GetUid() int64

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) ProtoReflect

func (x *UserInfo) ProtoReflect() protoreflect.Message

func (*UserInfo) Reset

func (x *UserInfo) Reset()

func (*UserInfo) String

func (x *UserInfo) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL