// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.4 // source: knowledge.proto package knowledge import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" 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 Question struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields XId string `protobuf:"bytes,1,opt,name=_id,json=Id,proto3" json:"_id,omitempty"` Question string `protobuf:"bytes,2,opt,name=question,proto3" json:"question,omitempty"` Answer string `protobuf:"bytes,3,opt,name=answer,proto3" json:"answer,omitempty"` } func (x *Question) Reset() { *x = Question{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Question) String() string { return protoimpl.X.MessageStringOf(x) } func (*Question) ProtoMessage() {} func (x *Question) ProtoReflect() protoreflect.Message { mi := &file_knowledge_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 Question.ProtoReflect.Descriptor instead. func (*Question) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{0} } func (x *Question) GetXId() string { if x != nil { return x.XId } return "" } func (x *Question) GetQuestion() string { if x != nil { return x.Question } return "" } func (x *Question) GetAnswer() string { if x != nil { return x.Answer } return "" } type AddRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"` Answer string `protobuf:"bytes,2,opt,name=answer,proto3" json:"answer,omitempty"` EntId int64 `protobuf:"varint,3,opt,name=entId,proto3" json:"entId,omitempty"` AppId string `protobuf:"bytes,4,opt,name=appId,proto3" json:"appId,omitempty"` EntUserId int64 `protobuf:"varint,5,opt,name=entUserId,proto3" json:"entUserId,omitempty"` } func (x *AddRequest) Reset() { *x = AddRequest{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *AddRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*AddRequest) ProtoMessage() {} func (x *AddRequest) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[1] 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 AddRequest.ProtoReflect.Descriptor instead. func (*AddRequest) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{1} } func (x *AddRequest) GetQuestion() string { if x != nil { return x.Question } return "" } func (x *AddRequest) GetAnswer() string { if x != nil { return x.Answer } return "" } func (x *AddRequest) GetEntId() int64 { if x != nil { return x.EntId } return 0 } func (x *AddRequest) GetAppId() string { if x != nil { return x.AppId } return "" } func (x *AddRequest) GetEntUserId() int64 { if x != nil { return x.EntUserId } return 0 } type AddResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码 ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息 Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //响应内容 } func (x *AddResponse) Reset() { *x = AddResponse{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *AddResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*AddResponse) ProtoMessage() {} func (x *AddResponse) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[2] 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 AddResponse.ProtoReflect.Descriptor instead. func (*AddResponse) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{2} } func (x *AddResponse) GetErrorCode() int64 { if x != nil { return x.ErrorCode } return 0 } func (x *AddResponse) GetErrorMsg() string { if x != nil { return x.ErrorMsg } return "" } func (x *AddResponse) GetData() string { if x != nil { return x.Data } return "" } type FindAnswerReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"` RobotEntId string `protobuf:"bytes,2,opt,name=robotEntId,proto3" json:"robotEntId,omitempty"` //机器人的企业id Type int64 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` // 1文字 2语音 } func (x *FindAnswerReq) Reset() { *x = FindAnswerReq{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *FindAnswerReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindAnswerReq) ProtoMessage() {} func (x *FindAnswerReq) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[3] 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 FindAnswerReq.ProtoReflect.Descriptor instead. func (*FindAnswerReq) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{3} } func (x *FindAnswerReq) GetQuestion() string { if x != nil { return x.Question } return "" } func (x *FindAnswerReq) GetRobotEntId() string { if x != nil { return x.RobotEntId } return "" } func (x *FindAnswerReq) GetType() int64 { if x != nil { return x.Type } return 0 } type FindAnswerResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码 ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息 Data *Question `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //响应内容 } func (x *FindAnswerResp) Reset() { *x = FindAnswerResp{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *FindAnswerResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindAnswerResp) ProtoMessage() {} func (x *FindAnswerResp) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[4] 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 FindAnswerResp.ProtoReflect.Descriptor instead. func (*FindAnswerResp) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{4} } func (x *FindAnswerResp) GetErrorCode() int64 { if x != nil { return x.ErrorCode } return 0 } func (x *FindAnswerResp) GetErrorMsg() string { if x != nil { return x.ErrorMsg } return "" } func (x *FindAnswerResp) GetData() *Question { if x != nil { return x.Data } return nil } type RecommendAnswerResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码 ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息 Data []*Question `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` //响应内容 } func (x *RecommendAnswerResp) Reset() { *x = RecommendAnswerResp{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *RecommendAnswerResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*RecommendAnswerResp) ProtoMessage() {} func (x *RecommendAnswerResp) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[5] 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 RecommendAnswerResp.ProtoReflect.Descriptor instead. func (*RecommendAnswerResp) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{5} } func (x *RecommendAnswerResp) GetErrorCode() int64 { if x != nil { return x.ErrorCode } return 0 } func (x *RecommendAnswerResp) GetErrorMsg() string { if x != nil { return x.ErrorMsg } return "" } func (x *RecommendAnswerResp) GetData() []*Question { if x != nil { return x.Data } return nil } type ListData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Data []*KnowledgeEntity `protobuf:"bytes,2,rep,name=Data,proto3" json:"Data,omitempty"` } func (x *ListData) Reset() { *x = ListData{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ListData) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListData) ProtoMessage() {} func (x *ListData) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[6] 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 ListData.ProtoReflect.Descriptor instead. func (*ListData) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{6} } func (x *ListData) GetTotal() int64 { if x != nil { return x.Total } return 0 } func (x *ListData) GetData() []*KnowledgeEntity { if x != nil { return x.Data } return nil } type ListRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields PageSize int64 `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //每页数据量,默认10 PageIndex int64 `protobuf:"varint,2,opt,name=pageIndex,proto3" json:"pageIndex,omitempty"` //页码;默认第一页 EntId int64 `protobuf:"varint,3,opt,name=entId,proto3" json:"entId,omitempty"` //租户id } func (x *ListRequest) Reset() { *x = ListRequest{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ListRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListRequest) ProtoMessage() {} func (x *ListRequest) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[7] 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 ListRequest.ProtoReflect.Descriptor instead. func (*ListRequest) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{7} } func (x *ListRequest) GetPageSize() int64 { if x != nil { return x.PageSize } return 0 } func (x *ListRequest) GetPageIndex() int64 { if x != nil { return x.PageIndex } return 0 } func (x *ListRequest) GetEntId() int64 { if x != nil { return x.EntId } return 0 } type ListResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码 ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息 Data *ListData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //响应内容 } func (x *ListResponse) Reset() { *x = ListResponse{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ListResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListResponse) ProtoMessage() {} func (x *ListResponse) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[8] 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 ListResponse.ProtoReflect.Descriptor instead. func (*ListResponse) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{8} } func (x *ListResponse) GetErrorCode() int64 { if x != nil { return x.ErrorCode } return 0 } func (x *ListResponse) GetErrorMsg() string { if x != nil { return x.ErrorMsg } return "" } func (x *ListResponse) GetData() *ListData { if x != nil { return x.Data } return nil } type KnowledgeEntity struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"` //问题 Answer string `protobuf:"bytes,2,opt,name=answer,proto3" json:"answer,omitempty"` //答案 AnswerId int64 `protobuf:"varint,3,opt,name=answerId,proto3" json:"answerId,omitempty"` //答案标识 State int64 `protobuf:"varint,4,opt,name=state,proto3" json:"state,omitempty"` //知识状态0无效1有效 Person string `protobuf:"bytes,5,opt,name=person,proto3" json:"person,omitempty"` //人员姓名 KnowledgeId int64 `protobuf:"varint,6,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"` } func (x *KnowledgeEntity) Reset() { *x = KnowledgeEntity{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *KnowledgeEntity) String() string { return protoimpl.X.MessageStringOf(x) } func (*KnowledgeEntity) ProtoMessage() {} func (x *KnowledgeEntity) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[9] 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 KnowledgeEntity.ProtoReflect.Descriptor instead. func (*KnowledgeEntity) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{9} } func (x *KnowledgeEntity) GetQuestion() string { if x != nil { return x.Question } return "" } func (x *KnowledgeEntity) GetAnswer() string { if x != nil { return x.Answer } return "" } func (x *KnowledgeEntity) GetAnswerId() int64 { if x != nil { return x.AnswerId } return 0 } func (x *KnowledgeEntity) GetState() int64 { if x != nil { return x.State } return 0 } func (x *KnowledgeEntity) GetPerson() string { if x != nil { return x.Person } return "" } func (x *KnowledgeEntity) GetKnowledgeId() int64 { if x != nil { return x.KnowledgeId } return 0 } type KnowledgeEditReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"` //问题 Answer string `protobuf:"bytes,2,opt,name=answer,proto3" json:"answer,omitempty"` //答案 AnswerId int64 `protobuf:"varint,3,opt,name=answerId,proto3" json:"answerId,omitempty"` //答案标识 EntUserId int64 `protobuf:"varint,5,opt,name=entUserId,proto3" json:"entUserId,omitempty"` EntId int64 `protobuf:"varint,6,opt,name=entId,proto3" json:"entId,omitempty"` //企业id KnowledgeId int64 `protobuf:"varint,7,opt,name=knowledgeId,proto3" json:"knowledgeId,omitempty"` //知识库id AppId string `protobuf:"bytes,8,opt,name=appId,proto3" json:"appId,omitempty"` } func (x *KnowledgeEditReq) Reset() { *x = KnowledgeEditReq{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *KnowledgeEditReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*KnowledgeEditReq) ProtoMessage() {} func (x *KnowledgeEditReq) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[10] 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 KnowledgeEditReq.ProtoReflect.Descriptor instead. func (*KnowledgeEditReq) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{10} } func (x *KnowledgeEditReq) GetQuestion() string { if x != nil { return x.Question } return "" } func (x *KnowledgeEditReq) GetAnswer() string { if x != nil { return x.Answer } return "" } func (x *KnowledgeEditReq) GetAnswerId() int64 { if x != nil { return x.AnswerId } return 0 } func (x *KnowledgeEditReq) GetEntUserId() int64 { if x != nil { return x.EntUserId } return 0 } func (x *KnowledgeEditReq) GetEntId() int64 { if x != nil { return x.EntId } return 0 } func (x *KnowledgeEditReq) GetKnowledgeId() int64 { if x != nil { return x.KnowledgeId } return 0 } func (x *KnowledgeEditReq) GetAppId() string { if x != nil { return x.AppId } return "" } type InfoResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码 ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息 Data *KnowledgeEntity `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //响应内容 } func (x *InfoResponse) Reset() { *x = InfoResponse{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *InfoResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*InfoResponse) ProtoMessage() {} func (x *InfoResponse) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[11] 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 InfoResponse.ProtoReflect.Descriptor instead. func (*InfoResponse) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{11} } func (x *InfoResponse) GetErrorCode() int64 { if x != nil { return x.ErrorCode } return 0 } func (x *InfoResponse) GetErrorMsg() string { if x != nil { return x.ErrorMsg } return "" } func (x *InfoResponse) GetData() *KnowledgeEntity { if x != nil { return x.Data } return nil } type KnowledgeDelReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields AnswerId int64 `protobuf:"varint,1,opt,name=answerId,proto3" json:"answerId,omitempty"` } func (x *KnowledgeDelReq) Reset() { *x = KnowledgeDelReq{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *KnowledgeDelReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*KnowledgeDelReq) ProtoMessage() {} func (x *KnowledgeDelReq) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[12] 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 KnowledgeDelReq.ProtoReflect.Descriptor instead. func (*KnowledgeDelReq) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{12} } func (x *KnowledgeDelReq) GetAnswerId() int64 { if x != nil { return x.AnswerId } return 0 } type CommonPhrasesAddReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Classify string `protobuf:"bytes,2,opt,name=classify,proto3" json:"classify,omitempty"` //分类 Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` //话术内容 EntId int64 `protobuf:"varint,4,opt,name=entId,proto3" json:"entId,omitempty"` //企业id AppId string `protobuf:"bytes,5,opt,name=appId,proto3" json:"appId,omitempty"` EntUserId int64 `protobuf:"varint,6,opt,name=entUserId,proto3" json:"entUserId,omitempty"` } func (x *CommonPhrasesAddReq) Reset() { *x = CommonPhrasesAddReq{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CommonPhrasesAddReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*CommonPhrasesAddReq) ProtoMessage() {} func (x *CommonPhrasesAddReq) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[13] 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 CommonPhrasesAddReq.ProtoReflect.Descriptor instead. func (*CommonPhrasesAddReq) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{13} } func (x *CommonPhrasesAddReq) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *CommonPhrasesAddReq) GetClassify() string { if x != nil { return x.Classify } return "" } func (x *CommonPhrasesAddReq) GetContent() string { if x != nil { return x.Content } return "" } func (x *CommonPhrasesAddReq) GetEntId() int64 { if x != nil { return x.EntId } return 0 } func (x *CommonPhrasesAddReq) GetAppId() string { if x != nil { return x.AppId } return "" } func (x *CommonPhrasesAddReq) GetEntUserId() int64 { if x != nil { return x.EntUserId } return 0 } type CommonPhrasesInfoReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` } func (x *CommonPhrasesInfoReq) Reset() { *x = CommonPhrasesInfoReq{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CommonPhrasesInfoReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*CommonPhrasesInfoReq) ProtoMessage() {} func (x *CommonPhrasesInfoReq) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[14] 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 CommonPhrasesInfoReq.ProtoReflect.Descriptor instead. func (*CommonPhrasesInfoReq) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{14} } func (x *CommonPhrasesInfoReq) GetId() int64 { if x != nil { return x.Id } return 0 } type CommonPhrasesListReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields PageSize int64 `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //每页数据量 PageIndex int64 `protobuf:"varint,2,opt,name=pageIndex,proto3" json:"pageIndex,omitempty"` //页码;默认第一页 EntId int64 `protobuf:"varint,3,opt,name=entId,proto3" json:"entId,omitempty"` //企业id AppId string `protobuf:"bytes,4,opt,name=appId,proto3" json:"appId,omitempty"` } func (x *CommonPhrasesListReq) Reset() { *x = CommonPhrasesListReq{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CommonPhrasesListReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*CommonPhrasesListReq) ProtoMessage() {} func (x *CommonPhrasesListReq) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[15] 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 CommonPhrasesListReq.ProtoReflect.Descriptor instead. func (*CommonPhrasesListReq) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{15} } func (x *CommonPhrasesListReq) GetPageSize() int64 { if x != nil { return x.PageSize } return 0 } func (x *CommonPhrasesListReq) GetPageIndex() int64 { if x != nil { return x.PageIndex } return 0 } func (x *CommonPhrasesListReq) GetEntId() int64 { if x != nil { return x.EntId } return 0 } func (x *CommonPhrasesListReq) GetAppId() string { if x != nil { return x.AppId } return "" } type CommonPhrases struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Classify string `protobuf:"bytes,2,opt,name=classify,proto3" json:"classify,omitempty"` //分类 Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` //话术内容 } func (x *CommonPhrases) Reset() { *x = CommonPhrases{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CommonPhrases) String() string { return protoimpl.X.MessageStringOf(x) } func (*CommonPhrases) ProtoMessage() {} func (x *CommonPhrases) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[16] 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 CommonPhrases.ProtoReflect.Descriptor instead. func (*CommonPhrases) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{16} } func (x *CommonPhrases) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *CommonPhrases) GetClassify() string { if x != nil { return x.Classify } return "" } func (x *CommonPhrases) GetContent() string { if x != nil { return x.Content } return "" } type CommonPhrasesInfoResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码 ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息 Data *CommonPhrases `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` } func (x *CommonPhrasesInfoResp) Reset() { *x = CommonPhrasesInfoResp{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CommonPhrasesInfoResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*CommonPhrasesInfoResp) ProtoMessage() {} func (x *CommonPhrasesInfoResp) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[17] 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 CommonPhrasesInfoResp.ProtoReflect.Descriptor instead. func (*CommonPhrasesInfoResp) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{17} } func (x *CommonPhrasesInfoResp) GetErrorCode() int64 { if x != nil { return x.ErrorCode } return 0 } func (x *CommonPhrasesInfoResp) GetErrorMsg() string { if x != nil { return x.ErrorMsg } return "" } func (x *CommonPhrasesInfoResp) GetData() *CommonPhrases { if x != nil { return x.Data } return nil } type CommonPhrasesList struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Data []*CommonPhrases `protobuf:"bytes,2,rep,name=Data,proto3" json:"Data,omitempty"` } func (x *CommonPhrasesList) Reset() { *x = CommonPhrasesList{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CommonPhrasesList) String() string { return protoimpl.X.MessageStringOf(x) } func (*CommonPhrasesList) ProtoMessage() {} func (x *CommonPhrasesList) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[18] 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 CommonPhrasesList.ProtoReflect.Descriptor instead. func (*CommonPhrasesList) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{18} } func (x *CommonPhrasesList) GetTotal() int64 { if x != nil { return x.Total } return 0 } func (x *CommonPhrasesList) GetData() []*CommonPhrases { if x != nil { return x.Data } return nil } type CommonPhrasesListResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码 ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息 Data *CommonPhrasesList `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //响应内容 } func (x *CommonPhrasesListResp) Reset() { *x = CommonPhrasesListResp{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CommonPhrasesListResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*CommonPhrasesListResp) ProtoMessage() {} func (x *CommonPhrasesListResp) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[19] 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 CommonPhrasesListResp.ProtoReflect.Descriptor instead. func (*CommonPhrasesListResp) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{19} } func (x *CommonPhrasesListResp) GetErrorCode() int64 { if x != nil { return x.ErrorCode } return 0 } func (x *CommonPhrasesListResp) GetErrorMsg() string { if x != nil { return x.ErrorMsg } return "" } func (x *CommonPhrasesListResp) GetData() *CommonPhrasesList { if x != nil { return x.Data } return nil } type CommonPhrasesClassListReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` EntId int64 `protobuf:"varint,2,opt,name=entId,proto3" json:"entId,omitempty"` //企业id AppId string `protobuf:"bytes,3,opt,name=appId,proto3" json:"appId,omitempty"` } func (x *CommonPhrasesClassListReq) Reset() { *x = CommonPhrasesClassListReq{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CommonPhrasesClassListReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*CommonPhrasesClassListReq) ProtoMessage() {} func (x *CommonPhrasesClassListReq) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[20] 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 CommonPhrasesClassListReq.ProtoReflect.Descriptor instead. func (*CommonPhrasesClassListReq) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{20} } func (x *CommonPhrasesClassListReq) GetQuery() string { if x != nil { return x.Query } return "" } func (x *CommonPhrasesClassListReq) GetEntId() int64 { if x != nil { return x.EntId } return 0 } func (x *CommonPhrasesClassListReq) GetAppId() string { if x != nil { return x.AppId } return "" } type Content struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` } func (x *Content) Reset() { *x = Content{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Content) String() string { return protoimpl.X.MessageStringOf(x) } func (*Content) ProtoMessage() {} func (x *Content) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[21] 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 Content.ProtoReflect.Descriptor instead. func (*Content) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{21} } func (x *Content) GetContent() string { if x != nil { return x.Content } return "" } type CommonPhrasesClassListData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Classify string `protobuf:"bytes,1,opt,name=classify,proto3" json:"classify,omitempty"` ClassList []*Content `protobuf:"bytes,2,rep,name=classList,proto3" json:"classList,omitempty"` } func (x *CommonPhrasesClassListData) Reset() { *x = CommonPhrasesClassListData{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CommonPhrasesClassListData) String() string { return protoimpl.X.MessageStringOf(x) } func (*CommonPhrasesClassListData) ProtoMessage() {} func (x *CommonPhrasesClassListData) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[22] 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 CommonPhrasesClassListData.ProtoReflect.Descriptor instead. func (*CommonPhrasesClassListData) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{22} } func (x *CommonPhrasesClassListData) GetClassify() string { if x != nil { return x.Classify } return "" } func (x *CommonPhrasesClassListData) GetClassList() []*Content { if x != nil { return x.ClassList } return nil } type CommonPhrasesClassListResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码 ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息 Data []*CommonPhrasesClassListData `protobuf:"bytes,3,rep,name=Data,proto3" json:"Data,omitempty"` } func (x *CommonPhrasesClassListResp) Reset() { *x = CommonPhrasesClassListResp{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CommonPhrasesClassListResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*CommonPhrasesClassListResp) ProtoMessage() {} func (x *CommonPhrasesClassListResp) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[23] 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 CommonPhrasesClassListResp.ProtoReflect.Descriptor instead. func (*CommonPhrasesClassListResp) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{23} } func (x *CommonPhrasesClassListResp) GetErrorCode() int64 { if x != nil { return x.ErrorCode } return 0 } func (x *CommonPhrasesClassListResp) GetErrorMsg() string { if x != nil { return x.ErrorMsg } return "" } func (x *CommonPhrasesClassListResp) GetData() []*CommonPhrasesClassListData { if x != nil { return x.Data } return nil } type CommonPhraseQueryReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` EntId int64 `protobuf:"varint,2,opt,name=entId,proto3" json:"entId,omitempty"` AppId string `protobuf:"bytes,3,opt,name=appId,proto3" json:"appId,omitempty"` } func (x *CommonPhraseQueryReq) Reset() { *x = CommonPhraseQueryReq{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CommonPhraseQueryReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*CommonPhraseQueryReq) ProtoMessage() {} func (x *CommonPhraseQueryReq) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[24] 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 CommonPhraseQueryReq.ProtoReflect.Descriptor instead. func (*CommonPhraseQueryReq) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{24} } func (x *CommonPhraseQueryReq) GetQuery() string { if x != nil { return x.Query } return "" } func (x *CommonPhraseQueryReq) GetEntId() int64 { if x != nil { return x.EntId } return 0 } func (x *CommonPhraseQueryReq) GetAppId() string { if x != nil { return x.AppId } return "" } type CommonPhraseQueryResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` //响应代码 ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` //响应消息 Data []*Content `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` } func (x *CommonPhraseQueryResp) Reset() { *x = CommonPhraseQueryResp{} if protoimpl.UnsafeEnabled { mi := &file_knowledge_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CommonPhraseQueryResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*CommonPhraseQueryResp) ProtoMessage() {} func (x *CommonPhraseQueryResp) ProtoReflect() protoreflect.Message { mi := &file_knowledge_proto_msgTypes[25] 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 CommonPhraseQueryResp.ProtoReflect.Descriptor instead. func (*CommonPhraseQueryResp) Descriptor() ([]byte, []int) { return file_knowledge_proto_rawDescGZIP(), []int{25} } func (x *CommonPhraseQueryResp) GetErrorCode() int64 { if x != nil { return x.ErrorCode } return 0 } func (x *CommonPhraseQueryResp) GetErrorMsg() string { if x != nil { return x.ErrorMsg } return "" } func (x *CommonPhraseQueryResp) GetData() []*Content { if x != nil { return x.Data } return nil } var File_knowledge_proto protoreflect.FileDescriptor var file_knowledge_proto_rawDesc = []byte{ 0x0a, 0x0f, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x22, 0x4f, 0x0a, 0x08, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0f, 0x0a, 0x03, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x22, 0x8a, 0x01, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x5d, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x5f, 0x0a, 0x0d, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x6f, 0x62, 0x6f, 0x74, 0x45, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x6f, 0x62, 0x6f, 0x74, 0x45, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x74, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x26, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x79, 0x0a, 0x13, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x26, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x4f, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x2d, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x22, 0x5d, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x72, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x26, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xb1, 0x01, 0x0a, 0x0f, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x49, 0x64, 0x22, 0xce, 0x01, 0x0a, 0x10, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x45, 0x64, 0x69, 0x74, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x22, 0x79, 0x0a, 0x0c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x2d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2d, 0x0a, 0x0f, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x44, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x22, 0xa5, 0x01, 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x26, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0x7c, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x22, 0x55, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x80, 0x01, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x2b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x56, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x2b, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x22, 0x84, 0x01, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x2f, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x5d, 0x0a, 0x19, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x22, 0x23, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x69, 0x0a, 0x1a, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x79, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x92, 0x01, 0x0a, 0x1a, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x38, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x22, 0x58, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x22, 0x7a, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0xd9, 0x07, 0x0a, 0x09, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x12, 0x3b, 0x0a, 0x0c, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x41, 0x64, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x45, 0x64, 0x69, 0x74, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x45, 0x64, 0x69, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x19, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x0c, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x44, 0x65, 0x6c, 0x12, 0x19, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x44, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x17, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x49, 0x0a, 0x0f, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x17, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x48, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x41, 0x64, 0x64, 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x54, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x49, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x44, 0x65, 0x6c, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x23, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x24, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x54, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_knowledge_proto_rawDescOnce sync.Once file_knowledge_proto_rawDescData = file_knowledge_proto_rawDesc ) func file_knowledge_proto_rawDescGZIP() []byte { file_knowledge_proto_rawDescOnce.Do(func() { file_knowledge_proto_rawDescData = protoimpl.X.CompressGZIP(file_knowledge_proto_rawDescData) }) return file_knowledge_proto_rawDescData } var file_knowledge_proto_msgTypes = make([]protoimpl.MessageInfo, 26) var file_knowledge_proto_goTypes = []interface{}{ (*Question)(nil), // 0: template.Question (*AddRequest)(nil), // 1: template.AddRequest (*AddResponse)(nil), // 2: template.AddResponse (*FindAnswerReq)(nil), // 3: template.FindAnswerReq (*FindAnswerResp)(nil), // 4: template.FindAnswerResp (*RecommendAnswerResp)(nil), // 5: template.RecommendAnswerResp (*ListData)(nil), // 6: template.ListData (*ListRequest)(nil), // 7: template.ListRequest (*ListResponse)(nil), // 8: template.ListResponse (*KnowledgeEntity)(nil), // 9: template.KnowledgeEntity (*KnowledgeEditReq)(nil), // 10: template.KnowledgeEditReq (*InfoResponse)(nil), // 11: template.InfoResponse (*KnowledgeDelReq)(nil), // 12: template.KnowledgeDelReq (*CommonPhrasesAddReq)(nil), // 13: template.CommonPhrasesAddReq (*CommonPhrasesInfoReq)(nil), // 14: template.CommonPhrasesInfoReq (*CommonPhrasesListReq)(nil), // 15: template.CommonPhrasesListReq (*CommonPhrases)(nil), // 16: template.CommonPhrases (*CommonPhrasesInfoResp)(nil), // 17: template.CommonPhrasesInfoResp (*CommonPhrasesList)(nil), // 18: template.CommonPhrasesList (*CommonPhrasesListResp)(nil), // 19: template.CommonPhrasesListResp (*CommonPhrasesClassListReq)(nil), // 20: template.CommonPhrasesClassListReq (*Content)(nil), // 21: template.Content (*CommonPhrasesClassListData)(nil), // 22: template.CommonPhrasesClassListData (*CommonPhrasesClassListResp)(nil), // 23: template.CommonPhrasesClassListResp (*CommonPhraseQueryReq)(nil), // 24: template.CommonPhraseQueryReq (*CommonPhraseQueryResp)(nil), // 25: template.CommonPhraseQueryResp } var file_knowledge_proto_depIdxs = []int32{ 0, // 0: template.FindAnswerResp.data:type_name -> template.Question 0, // 1: template.RecommendAnswerResp.data:type_name -> template.Question 9, // 2: template.ListData.Data:type_name -> template.KnowledgeEntity 6, // 3: template.ListResponse.data:type_name -> template.ListData 9, // 4: template.InfoResponse.data:type_name -> template.KnowledgeEntity 16, // 5: template.CommonPhrasesInfoResp.data:type_name -> template.CommonPhrases 16, // 6: template.CommonPhrasesList.Data:type_name -> template.CommonPhrases 18, // 7: template.CommonPhrasesListResp.data:type_name -> template.CommonPhrasesList 21, // 8: template.CommonPhrasesClassListData.classList:type_name -> template.Content 22, // 9: template.CommonPhrasesClassListResp.Data:type_name -> template.CommonPhrasesClassListData 21, // 10: template.CommonPhraseQueryResp.data:type_name -> template.Content 1, // 11: template.knowledge.KnowledgeAdd:input_type -> template.AddRequest 7, // 12: template.knowledge.KnowledgeList:input_type -> template.ListRequest 10, // 13: template.knowledge.KnowledgeEdit:input_type -> template.KnowledgeEditReq 9, // 14: template.knowledge.KnowledgeInfo:input_type -> template.KnowledgeEntity 12, // 15: template.knowledge.KnowledgeDel:input_type -> template.KnowledgeDelReq 3, // 16: template.knowledge.FindAnswer:input_type -> template.FindAnswerReq 3, // 17: template.knowledge.RecommendAnswer:input_type -> template.FindAnswerReq 13, // 18: template.knowledge.CommonPhrasesAdd:input_type -> template.CommonPhrasesAddReq 14, // 19: template.knowledge.CommonPhrasesInfo:input_type -> template.CommonPhrasesInfoReq 15, // 20: template.knowledge.CommonPhrasesList:input_type -> template.CommonPhrasesListReq 14, // 21: template.knowledge.CommonPhrasesDel:input_type -> template.CommonPhrasesInfoReq 20, // 22: template.knowledge.CommonPhraseClassList:input_type -> template.CommonPhrasesClassListReq 24, // 23: template.knowledge.CommonPhraseQuery:input_type -> template.CommonPhraseQueryReq 2, // 24: template.knowledge.KnowledgeAdd:output_type -> template.AddResponse 8, // 25: template.knowledge.KnowledgeList:output_type -> template.ListResponse 2, // 26: template.knowledge.KnowledgeEdit:output_type -> template.AddResponse 11, // 27: template.knowledge.KnowledgeInfo:output_type -> template.InfoResponse 2, // 28: template.knowledge.KnowledgeDel:output_type -> template.AddResponse 4, // 29: template.knowledge.FindAnswer:output_type -> template.FindAnswerResp 5, // 30: template.knowledge.RecommendAnswer:output_type -> template.RecommendAnswerResp 2, // 31: template.knowledge.CommonPhrasesAdd:output_type -> template.AddResponse 17, // 32: template.knowledge.CommonPhrasesInfo:output_type -> template.CommonPhrasesInfoResp 19, // 33: template.knowledge.CommonPhrasesList:output_type -> template.CommonPhrasesListResp 2, // 34: template.knowledge.CommonPhrasesDel:output_type -> template.AddResponse 23, // 35: template.knowledge.CommonPhraseClassList:output_type -> template.CommonPhrasesClassListResp 25, // 36: template.knowledge.CommonPhraseQuery:output_type -> template.CommonPhraseQueryResp 24, // [24:37] is the sub-list for method output_type 11, // [11:24] is the sub-list for method input_type 11, // [11:11] is the sub-list for extension type_name 11, // [11:11] is the sub-list for extension extendee 0, // [0:11] is the sub-list for field type_name } func init() { file_knowledge_proto_init() } func file_knowledge_proto_init() { if File_knowledge_proto != nil { return } if !protoimpl.UnsafeEnabled { file_knowledge_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Question); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FindAnswerReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FindAnswerResp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RecommendAnswerResp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListData); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*KnowledgeEntity); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*KnowledgeEditReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*InfoResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*KnowledgeDelReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CommonPhrasesAddReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CommonPhrasesInfoReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CommonPhrasesListReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CommonPhrases); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CommonPhrasesInfoResp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CommonPhrasesList); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CommonPhrasesListResp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CommonPhrasesClassListReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Content); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CommonPhrasesClassListData); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CommonPhrasesClassListResp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CommonPhraseQueryReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_knowledge_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CommonPhraseQueryResp); 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_knowledge_proto_rawDesc, NumEnums: 0, NumMessages: 26, NumExtensions: 0, NumServices: 1, }, GoTypes: file_knowledge_proto_goTypes, DependencyIndexes: file_knowledge_proto_depIdxs, MessageInfos: file_knowledge_proto_msgTypes, }.Build() File_knowledge_proto = out.File file_knowledge_proto_rawDesc = nil file_knowledge_proto_goTypes = nil file_knowledge_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion6 // KnowledgeClient is the client API for Knowledge service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type KnowledgeClient interface { //知识新增 KnowledgeAdd(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error) //知识列表 KnowledgeList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) //知识编辑 KnowledgeEdit(ctx context.Context, in *KnowledgeEditReq, opts ...grpc.CallOption) (*AddResponse, error) //知识详情 KnowledgeInfo(ctx context.Context, in *KnowledgeEntity, opts ...grpc.CallOption) (*InfoResponse, error) //知识删除 KnowledgeDel(ctx context.Context, in *KnowledgeDelReq, opts ...grpc.CallOption) (*AddResponse, error) //根据问题匹配答案 FindAnswer(ctx context.Context, in *FindAnswerReq, opts ...grpc.CallOption) (*FindAnswerResp, error) //推荐答案 RecommendAnswer(ctx context.Context, in *FindAnswerReq, opts ...grpc.CallOption) (*RecommendAnswerResp, error) //客服话术添加、编辑 CommonPhrasesAdd(ctx context.Context, in *CommonPhrasesAddReq, opts ...grpc.CallOption) (*AddResponse, error) //客服话术详情 CommonPhrasesInfo(ctx context.Context, in *CommonPhrasesInfoReq, opts ...grpc.CallOption) (*CommonPhrasesInfoResp, error) //客服话术列表 CommonPhrasesList(ctx context.Context, in *CommonPhrasesListReq, opts ...grpc.CallOption) (*CommonPhrasesListResp, error) //客服话术删除 CommonPhrasesDel(ctx context.Context, in *CommonPhrasesInfoReq, opts ...grpc.CallOption) (*AddResponse, error) //客服话术分类查询 CommonPhraseClassList(ctx context.Context, in *CommonPhrasesClassListReq, opts ...grpc.CallOption) (*CommonPhrasesClassListResp, error) //客服输入文字,匹配话术 CommonPhraseQuery(ctx context.Context, in *CommonPhraseQueryReq, opts ...grpc.CallOption) (*CommonPhraseQueryResp, error) } type knowledgeClient struct { cc grpc.ClientConnInterface } func NewKnowledgeClient(cc grpc.ClientConnInterface) KnowledgeClient { return &knowledgeClient{cc} } func (c *knowledgeClient) KnowledgeAdd(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error) { out := new(AddResponse) err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeAdd", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *knowledgeClient) KnowledgeList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) { out := new(ListResponse) err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *knowledgeClient) KnowledgeEdit(ctx context.Context, in *KnowledgeEditReq, opts ...grpc.CallOption) (*AddResponse, error) { out := new(AddResponse) err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeEdit", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *knowledgeClient) KnowledgeInfo(ctx context.Context, in *KnowledgeEntity, opts ...grpc.CallOption) (*InfoResponse, error) { out := new(InfoResponse) err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeInfo", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *knowledgeClient) KnowledgeDel(ctx context.Context, in *KnowledgeDelReq, opts ...grpc.CallOption) (*AddResponse, error) { out := new(AddResponse) err := c.cc.Invoke(ctx, "/template.knowledge/KnowledgeDel", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *knowledgeClient) FindAnswer(ctx context.Context, in *FindAnswerReq, opts ...grpc.CallOption) (*FindAnswerResp, error) { out := new(FindAnswerResp) err := c.cc.Invoke(ctx, "/template.knowledge/FindAnswer", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *knowledgeClient) RecommendAnswer(ctx context.Context, in *FindAnswerReq, opts ...grpc.CallOption) (*RecommendAnswerResp, error) { out := new(RecommendAnswerResp) err := c.cc.Invoke(ctx, "/template.knowledge/RecommendAnswer", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *knowledgeClient) CommonPhrasesAdd(ctx context.Context, in *CommonPhrasesAddReq, opts ...grpc.CallOption) (*AddResponse, error) { out := new(AddResponse) err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhrasesAdd", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *knowledgeClient) CommonPhrasesInfo(ctx context.Context, in *CommonPhrasesInfoReq, opts ...grpc.CallOption) (*CommonPhrasesInfoResp, error) { out := new(CommonPhrasesInfoResp) err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhrasesInfo", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *knowledgeClient) CommonPhrasesList(ctx context.Context, in *CommonPhrasesListReq, opts ...grpc.CallOption) (*CommonPhrasesListResp, error) { out := new(CommonPhrasesListResp) err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhrasesList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *knowledgeClient) CommonPhrasesDel(ctx context.Context, in *CommonPhrasesInfoReq, opts ...grpc.CallOption) (*AddResponse, error) { out := new(AddResponse) err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhrasesDel", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *knowledgeClient) CommonPhraseClassList(ctx context.Context, in *CommonPhrasesClassListReq, opts ...grpc.CallOption) (*CommonPhrasesClassListResp, error) { out := new(CommonPhrasesClassListResp) err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhraseClassList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *knowledgeClient) CommonPhraseQuery(ctx context.Context, in *CommonPhraseQueryReq, opts ...grpc.CallOption) (*CommonPhraseQueryResp, error) { out := new(CommonPhraseQueryResp) err := c.cc.Invoke(ctx, "/template.knowledge/CommonPhraseQuery", in, out, opts...) if err != nil { return nil, err } return out, nil } // KnowledgeServer is the server API for Knowledge service. type KnowledgeServer interface { //知识新增 KnowledgeAdd(context.Context, *AddRequest) (*AddResponse, error) //知识列表 KnowledgeList(context.Context, *ListRequest) (*ListResponse, error) //知识编辑 KnowledgeEdit(context.Context, *KnowledgeEditReq) (*AddResponse, error) //知识详情 KnowledgeInfo(context.Context, *KnowledgeEntity) (*InfoResponse, error) //知识删除 KnowledgeDel(context.Context, *KnowledgeDelReq) (*AddResponse, error) //根据问题匹配答案 FindAnswer(context.Context, *FindAnswerReq) (*FindAnswerResp, error) //推荐答案 RecommendAnswer(context.Context, *FindAnswerReq) (*RecommendAnswerResp, error) //客服话术添加、编辑 CommonPhrasesAdd(context.Context, *CommonPhrasesAddReq) (*AddResponse, error) //客服话术详情 CommonPhrasesInfo(context.Context, *CommonPhrasesInfoReq) (*CommonPhrasesInfoResp, error) //客服话术列表 CommonPhrasesList(context.Context, *CommonPhrasesListReq) (*CommonPhrasesListResp, error) //客服话术删除 CommonPhrasesDel(context.Context, *CommonPhrasesInfoReq) (*AddResponse, error) //客服话术分类查询 CommonPhraseClassList(context.Context, *CommonPhrasesClassListReq) (*CommonPhrasesClassListResp, error) //客服输入文字,匹配话术 CommonPhraseQuery(context.Context, *CommonPhraseQueryReq) (*CommonPhraseQueryResp, error) } // UnimplementedKnowledgeServer can be embedded to have forward compatible implementations. type UnimplementedKnowledgeServer struct { } func (*UnimplementedKnowledgeServer) KnowledgeAdd(context.Context, *AddRequest) (*AddResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method KnowledgeAdd not implemented") } func (*UnimplementedKnowledgeServer) KnowledgeList(context.Context, *ListRequest) (*ListResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method KnowledgeList not implemented") } func (*UnimplementedKnowledgeServer) KnowledgeEdit(context.Context, *KnowledgeEditReq) (*AddResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method KnowledgeEdit not implemented") } func (*UnimplementedKnowledgeServer) KnowledgeInfo(context.Context, *KnowledgeEntity) (*InfoResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method KnowledgeInfo not implemented") } func (*UnimplementedKnowledgeServer) KnowledgeDel(context.Context, *KnowledgeDelReq) (*AddResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method KnowledgeDel not implemented") } func (*UnimplementedKnowledgeServer) FindAnswer(context.Context, *FindAnswerReq) (*FindAnswerResp, error) { return nil, status.Errorf(codes.Unimplemented, "method FindAnswer not implemented") } func (*UnimplementedKnowledgeServer) RecommendAnswer(context.Context, *FindAnswerReq) (*RecommendAnswerResp, error) { return nil, status.Errorf(codes.Unimplemented, "method RecommendAnswer not implemented") } func (*UnimplementedKnowledgeServer) CommonPhrasesAdd(context.Context, *CommonPhrasesAddReq) (*AddResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CommonPhrasesAdd not implemented") } func (*UnimplementedKnowledgeServer) CommonPhrasesInfo(context.Context, *CommonPhrasesInfoReq) (*CommonPhrasesInfoResp, error) { return nil, status.Errorf(codes.Unimplemented, "method CommonPhrasesInfo not implemented") } func (*UnimplementedKnowledgeServer) CommonPhrasesList(context.Context, *CommonPhrasesListReq) (*CommonPhrasesListResp, error) { return nil, status.Errorf(codes.Unimplemented, "method CommonPhrasesList not implemented") } func (*UnimplementedKnowledgeServer) CommonPhrasesDel(context.Context, *CommonPhrasesInfoReq) (*AddResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CommonPhrasesDel not implemented") } func (*UnimplementedKnowledgeServer) CommonPhraseClassList(context.Context, *CommonPhrasesClassListReq) (*CommonPhrasesClassListResp, error) { return nil, status.Errorf(codes.Unimplemented, "method CommonPhraseClassList not implemented") } func (*UnimplementedKnowledgeServer) CommonPhraseQuery(context.Context, *CommonPhraseQueryReq) (*CommonPhraseQueryResp, error) { return nil, status.Errorf(codes.Unimplemented, "method CommonPhraseQuery not implemented") } func RegisterKnowledgeServer(s *grpc.Server, srv KnowledgeServer) { s.RegisterService(&_Knowledge_serviceDesc, srv) } func _Knowledge_KnowledgeAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AddRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(KnowledgeServer).KnowledgeAdd(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/template.knowledge/KnowledgeAdd", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KnowledgeServer).KnowledgeAdd(ctx, req.(*AddRequest)) } return interceptor(ctx, in, info, handler) } func _Knowledge_KnowledgeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(KnowledgeServer).KnowledgeList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/template.knowledge/KnowledgeList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KnowledgeServer).KnowledgeList(ctx, req.(*ListRequest)) } return interceptor(ctx, in, info, handler) } func _Knowledge_KnowledgeEdit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(KnowledgeEditReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(KnowledgeServer).KnowledgeEdit(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/template.knowledge/KnowledgeEdit", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KnowledgeServer).KnowledgeEdit(ctx, req.(*KnowledgeEditReq)) } return interceptor(ctx, in, info, handler) } func _Knowledge_KnowledgeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(KnowledgeEntity) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(KnowledgeServer).KnowledgeInfo(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/template.knowledge/KnowledgeInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KnowledgeServer).KnowledgeInfo(ctx, req.(*KnowledgeEntity)) } return interceptor(ctx, in, info, handler) } func _Knowledge_KnowledgeDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(KnowledgeDelReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(KnowledgeServer).KnowledgeDel(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/template.knowledge/KnowledgeDel", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KnowledgeServer).KnowledgeDel(ctx, req.(*KnowledgeDelReq)) } return interceptor(ctx, in, info, handler) } func _Knowledge_FindAnswer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FindAnswerReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(KnowledgeServer).FindAnswer(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/template.knowledge/FindAnswer", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KnowledgeServer).FindAnswer(ctx, req.(*FindAnswerReq)) } return interceptor(ctx, in, info, handler) } func _Knowledge_RecommendAnswer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FindAnswerReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(KnowledgeServer).RecommendAnswer(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/template.knowledge/RecommendAnswer", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KnowledgeServer).RecommendAnswer(ctx, req.(*FindAnswerReq)) } return interceptor(ctx, in, info, handler) } func _Knowledge_CommonPhrasesAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CommonPhrasesAddReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(KnowledgeServer).CommonPhrasesAdd(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/template.knowledge/CommonPhrasesAdd", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KnowledgeServer).CommonPhrasesAdd(ctx, req.(*CommonPhrasesAddReq)) } return interceptor(ctx, in, info, handler) } func _Knowledge_CommonPhrasesInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CommonPhrasesInfoReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(KnowledgeServer).CommonPhrasesInfo(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/template.knowledge/CommonPhrasesInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KnowledgeServer).CommonPhrasesInfo(ctx, req.(*CommonPhrasesInfoReq)) } return interceptor(ctx, in, info, handler) } func _Knowledge_CommonPhrasesList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CommonPhrasesListReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(KnowledgeServer).CommonPhrasesList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/template.knowledge/CommonPhrasesList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KnowledgeServer).CommonPhrasesList(ctx, req.(*CommonPhrasesListReq)) } return interceptor(ctx, in, info, handler) } func _Knowledge_CommonPhrasesDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CommonPhrasesInfoReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(KnowledgeServer).CommonPhrasesDel(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/template.knowledge/CommonPhrasesDel", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KnowledgeServer).CommonPhrasesDel(ctx, req.(*CommonPhrasesInfoReq)) } return interceptor(ctx, in, info, handler) } func _Knowledge_CommonPhraseClassList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CommonPhrasesClassListReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(KnowledgeServer).CommonPhraseClassList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/template.knowledge/CommonPhraseClassList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KnowledgeServer).CommonPhraseClassList(ctx, req.(*CommonPhrasesClassListReq)) } return interceptor(ctx, in, info, handler) } func _Knowledge_CommonPhraseQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CommonPhraseQueryReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(KnowledgeServer).CommonPhraseQuery(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/template.knowledge/CommonPhraseQuery", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KnowledgeServer).CommonPhraseQuery(ctx, req.(*CommonPhraseQueryReq)) } return interceptor(ctx, in, info, handler) } var _Knowledge_serviceDesc = grpc.ServiceDesc{ ServiceName: "template.knowledge", HandlerType: (*KnowledgeServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "KnowledgeAdd", Handler: _Knowledge_KnowledgeAdd_Handler, }, { MethodName: "KnowledgeList", Handler: _Knowledge_KnowledgeList_Handler, }, { MethodName: "KnowledgeEdit", Handler: _Knowledge_KnowledgeEdit_Handler, }, { MethodName: "KnowledgeInfo", Handler: _Knowledge_KnowledgeInfo_Handler, }, { MethodName: "KnowledgeDel", Handler: _Knowledge_KnowledgeDel_Handler, }, { MethodName: "FindAnswer", Handler: _Knowledge_FindAnswer_Handler, }, { MethodName: "RecommendAnswer", Handler: _Knowledge_RecommendAnswer_Handler, }, { MethodName: "CommonPhrasesAdd", Handler: _Knowledge_CommonPhrasesAdd_Handler, }, { MethodName: "CommonPhrasesInfo", Handler: _Knowledge_CommonPhrasesInfo_Handler, }, { MethodName: "CommonPhrasesList", Handler: _Knowledge_CommonPhrasesList_Handler, }, { MethodName: "CommonPhrasesDel", Handler: _Knowledge_CommonPhrasesDel_Handler, }, { MethodName: "CommonPhraseClassList", Handler: _Knowledge_CommonPhraseClassList_Handler, }, { MethodName: "CommonPhraseQuery", Handler: _Knowledge_CommonPhraseQuery_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "knowledge.proto", }