Documentation ¶
Index ¶
- func RegisterAssistantServer(s *grpc.Server, srv AssistantServer)
- type AssistantClient
- type AssistantMessage
- func (*AssistantMessage) Descriptor() ([]byte, []int)
- func (m *AssistantMessage) GetSentence() string
- func (*AssistantMessage) ProtoMessage()
- func (m *AssistantMessage) Reset()
- func (m *AssistantMessage) String() string
- func (m *AssistantMessage) XXX_DiscardUnknown()
- func (m *AssistantMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AssistantMessage) XXX_Merge(src proto.Message)
- func (m *AssistantMessage) XXX_Size() int
- func (m *AssistantMessage) XXX_Unmarshal(b []byte) error
- type AssistantServer
- type NLPSentenceRequest
- func (*NLPSentenceRequest) Descriptor() ([]byte, []int)
- func (m *NLPSentenceRequest) GetMessage() string
- func (m *NLPSentenceRequest) GetPreviousContext() []*TokenizedSentence
- func (m *NLPSentenceRequest) GetTime() string
- func (*NLPSentenceRequest) ProtoMessage()
- func (m *NLPSentenceRequest) Reset()
- func (m *NLPSentenceRequest) String() string
- func (m *NLPSentenceRequest) XXX_DiscardUnknown()
- func (m *NLPSentenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NLPSentenceRequest) XXX_Merge(src proto.Message)
- func (m *NLPSentenceRequest) XXX_Size() int
- func (m *NLPSentenceRequest) XXX_Unmarshal(b []byte) error
- type NLPSentenceResponse
- func (*NLPSentenceResponse) Descriptor() ([]byte, []int)
- func (m *NLPSentenceResponse) GetFact() []byte
- func (m *NLPSentenceResponse) GetTokens() []string
- func (*NLPSentenceResponse) ProtoMessage()
- func (m *NLPSentenceResponse) Reset()
- func (m *NLPSentenceResponse) String() string
- func (m *NLPSentenceResponse) XXX_DiscardUnknown()
- func (m *NLPSentenceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NLPSentenceResponse) XXX_Merge(src proto.Message)
- func (m *NLPSentenceResponse) XXX_Size() int
- func (m *NLPSentenceResponse) XXX_Unmarshal(b []byte) error
- type TokenizedSentence
- func (*TokenizedSentence) Descriptor() ([]byte, []int)
- func (m *TokenizedSentence) GetWord() []string
- func (*TokenizedSentence) ProtoMessage()
- func (m *TokenizedSentence) Reset()
- func (m *TokenizedSentence) String() string
- func (m *TokenizedSentence) XXX_DiscardUnknown()
- func (m *TokenizedSentence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenizedSentence) XXX_Merge(src proto.Message)
- func (m *TokenizedSentence) XXX_Size() int
- func (m *TokenizedSentence) XXX_Unmarshal(b []byte) error
- type UnimplementedAssistantServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAssistantServer ¶
func RegisterAssistantServer(s *grpc.Server, srv AssistantServer)
Types ¶
type AssistantClient ¶
type AssistantClient interface {
SentenceProcess(ctx context.Context, in *NLPSentenceRequest, opts ...grpc.CallOption) (*NLPSentenceResponse, error)
}
AssistantClient is the client API for Assistant service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAssistantClient ¶
func NewAssistantClient(cc *grpc.ClientConn) AssistantClient
type AssistantMessage ¶
type AssistantMessage struct { Sentence string `protobuf:"bytes,1,opt,name=sentence,proto3" json:"sentence,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AssistantMessage) Descriptor ¶
func (*AssistantMessage) Descriptor() ([]byte, []int)
func (*AssistantMessage) GetSentence ¶
func (m *AssistantMessage) GetSentence() string
func (*AssistantMessage) ProtoMessage ¶
func (*AssistantMessage) ProtoMessage()
func (*AssistantMessage) Reset ¶
func (m *AssistantMessage) Reset()
func (*AssistantMessage) String ¶
func (m *AssistantMessage) String() string
func (*AssistantMessage) XXX_DiscardUnknown ¶
func (m *AssistantMessage) XXX_DiscardUnknown()
func (*AssistantMessage) XXX_Marshal ¶
func (m *AssistantMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AssistantMessage) XXX_Merge ¶
func (m *AssistantMessage) XXX_Merge(src proto.Message)
func (*AssistantMessage) XXX_Size ¶
func (m *AssistantMessage) XXX_Size() int
func (*AssistantMessage) XXX_Unmarshal ¶
func (m *AssistantMessage) XXX_Unmarshal(b []byte) error
type AssistantServer ¶
type AssistantServer interface {
SentenceProcess(context.Context, *NLPSentenceRequest) (*NLPSentenceResponse, error)
}
AssistantServer is the server API for Assistant service.
type NLPSentenceRequest ¶
type NLPSentenceRequest struct { Time string `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` PreviousContext []*TokenizedSentence `protobuf:"bytes,3,rep,name=previousContext,proto3" json:"previousContext,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NLPSentenceRequest) Descriptor ¶
func (*NLPSentenceRequest) Descriptor() ([]byte, []int)
func (*NLPSentenceRequest) GetMessage ¶
func (m *NLPSentenceRequest) GetMessage() string
func (*NLPSentenceRequest) GetPreviousContext ¶
func (m *NLPSentenceRequest) GetPreviousContext() []*TokenizedSentence
func (*NLPSentenceRequest) GetTime ¶
func (m *NLPSentenceRequest) GetTime() string
func (*NLPSentenceRequest) ProtoMessage ¶
func (*NLPSentenceRequest) ProtoMessage()
func (*NLPSentenceRequest) Reset ¶
func (m *NLPSentenceRequest) Reset()
func (*NLPSentenceRequest) String ¶
func (m *NLPSentenceRequest) String() string
func (*NLPSentenceRequest) XXX_DiscardUnknown ¶
func (m *NLPSentenceRequest) XXX_DiscardUnknown()
func (*NLPSentenceRequest) XXX_Marshal ¶
func (m *NLPSentenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NLPSentenceRequest) XXX_Merge ¶
func (m *NLPSentenceRequest) XXX_Merge(src proto.Message)
func (*NLPSentenceRequest) XXX_Size ¶
func (m *NLPSentenceRequest) XXX_Size() int
func (*NLPSentenceRequest) XXX_Unmarshal ¶
func (m *NLPSentenceRequest) XXX_Unmarshal(b []byte) error
type NLPSentenceResponse ¶
type NLPSentenceResponse struct { Fact []byte `protobuf:"bytes,1,opt,name=fact,proto3" json:"fact,omitempty"` Tokens []string `protobuf:"bytes,2,rep,name=tokens,proto3" json:"tokens,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NLPSentenceResponse) Descriptor ¶
func (*NLPSentenceResponse) Descriptor() ([]byte, []int)
func (*NLPSentenceResponse) GetFact ¶
func (m *NLPSentenceResponse) GetFact() []byte
func (*NLPSentenceResponse) GetTokens ¶
func (m *NLPSentenceResponse) GetTokens() []string
func (*NLPSentenceResponse) ProtoMessage ¶
func (*NLPSentenceResponse) ProtoMessage()
func (*NLPSentenceResponse) Reset ¶
func (m *NLPSentenceResponse) Reset()
func (*NLPSentenceResponse) String ¶
func (m *NLPSentenceResponse) String() string
func (*NLPSentenceResponse) XXX_DiscardUnknown ¶
func (m *NLPSentenceResponse) XXX_DiscardUnknown()
func (*NLPSentenceResponse) XXX_Marshal ¶
func (m *NLPSentenceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NLPSentenceResponse) XXX_Merge ¶
func (m *NLPSentenceResponse) XXX_Merge(src proto.Message)
func (*NLPSentenceResponse) XXX_Size ¶
func (m *NLPSentenceResponse) XXX_Size() int
func (*NLPSentenceResponse) XXX_Unmarshal ¶
func (m *NLPSentenceResponse) XXX_Unmarshal(b []byte) error
type TokenizedSentence ¶
type TokenizedSentence struct { Word []string `protobuf:"bytes,1,rep,name=word,proto3" json:"word,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TokenizedSentence) Descriptor ¶
func (*TokenizedSentence) Descriptor() ([]byte, []int)
func (*TokenizedSentence) GetWord ¶
func (m *TokenizedSentence) GetWord() []string
func (*TokenizedSentence) ProtoMessage ¶
func (*TokenizedSentence) ProtoMessage()
func (*TokenizedSentence) Reset ¶
func (m *TokenizedSentence) Reset()
func (*TokenizedSentence) String ¶
func (m *TokenizedSentence) String() string
func (*TokenizedSentence) XXX_DiscardUnknown ¶
func (m *TokenizedSentence) XXX_DiscardUnknown()
func (*TokenizedSentence) XXX_Marshal ¶
func (m *TokenizedSentence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenizedSentence) XXX_Merge ¶
func (m *TokenizedSentence) XXX_Merge(src proto.Message)
func (*TokenizedSentence) XXX_Size ¶
func (m *TokenizedSentence) XXX_Size() int
func (*TokenizedSentence) XXX_Unmarshal ¶
func (m *TokenizedSentence) XXX_Unmarshal(b []byte) error
type UnimplementedAssistantServer ¶
type UnimplementedAssistantServer struct { }
UnimplementedAssistantServer can be embedded to have forward compatible implementations.
func (*UnimplementedAssistantServer) SentenceProcess ¶
func (*UnimplementedAssistantServer) SentenceProcess(ctx context.Context, req *NLPSentenceRequest) (*NLPSentenceResponse, error)
Click to show internal directories.
Click to hide internal directories.