// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: pkg/proto/service.proto package proto import ( context "context" proto "github.com/golang/protobuf/proto" 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) ) // This is a compile-time assertion that a sufficiently up-to-date version // of the legacy proto package is being used. const _ = proto.ProtoPackageIsVersion4 type Status struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` } func (x *Status) Reset() { *x = Status{} if protoimpl.UnsafeEnabled { mi := &file_pkg_proto_service_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Status) String() string { return protoimpl.X.MessageStringOf(x) } func (*Status) ProtoMessage() {} func (x *Status) ProtoReflect() protoreflect.Message { mi := &file_pkg_proto_service_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 Status.ProtoReflect.Descriptor instead. func (*Status) Descriptor() ([]byte, []int) { return file_pkg_proto_service_proto_rawDescGZIP(), []int{0} } func (x *Status) GetCode() int32 { if x != nil { return x.Code } return 0 } func (x *Status) GetMsg() string { if x != nil { return x.Msg } return "" } // 经纬度 type SemanticRequestLbs struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Longitude float64 `protobuf:"fixed64,1,opt,name=longitude,proto3" json:"longitude,omitempty"` Latitude float64 `protobuf:"fixed64,2,opt,name=latitude,proto3" json:"latitude,omitempty"` } func (x *SemanticRequestLbs) Reset() { *x = SemanticRequestLbs{} if protoimpl.UnsafeEnabled { mi := &file_pkg_proto_service_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SemanticRequestLbs) String() string { return protoimpl.X.MessageStringOf(x) } func (*SemanticRequestLbs) ProtoMessage() {} func (x *SemanticRequestLbs) ProtoReflect() protoreflect.Message { mi := &file_pkg_proto_service_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 SemanticRequestLbs.ProtoReflect.Descriptor instead. func (*SemanticRequestLbs) Descriptor() ([]byte, []int) { return file_pkg_proto_service_proto_rawDescGZIP(), []int{1} } func (x *SemanticRequestLbs) GetLongitude() float64 { if x != nil { return x.Longitude } return 0 } func (x *SemanticRequestLbs) GetLatitude() float64 { if x != nil { return x.Latitude } return 0 } type AddressInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Province string `protobuf:"bytes,1,opt,name=province,proto3" json:"province,omitempty"` City string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"` County string `protobuf:"bytes,3,opt,name=county,proto3" json:"county,omitempty"` } func (x *AddressInfo) Reset() { *x = AddressInfo{} if protoimpl.UnsafeEnabled { mi := &file_pkg_proto_service_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *AddressInfo) String() string { return protoimpl.X.MessageStringOf(x) } func (*AddressInfo) ProtoMessage() {} func (x *AddressInfo) ProtoReflect() protoreflect.Message { mi := &file_pkg_proto_service_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 AddressInfo.ProtoReflect.Descriptor instead. func (*AddressInfo) Descriptor() ([]byte, []int) { return file_pkg_proto_service_proto_rawDescGZIP(), []int{2} } func (x *AddressInfo) GetProvince() string { if x != nil { return x.Province } return "" } func (x *AddressInfo) GetCity() string { if x != nil { return x.City } return "" } func (x *AddressInfo) GetCounty() string { if x != nil { return x.County } return "" } type SemanticRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields MacWifi string `protobuf:"bytes,1,opt,name=macWifi,proto3" json:"macWifi,omitempty"` MacVoice string `protobuf:"bytes,2,opt,name=macVoice,proto3" json:"macVoice,omitempty"` Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"` TestID string `protobuf:"bytes,5,opt,name=testID,proto3" json:"testID,omitempty"` OriginQuery string `protobuf:"bytes,6,opt,name=originQuery,proto3" json:"originQuery,omitempty"` Mid string `protobuf:"bytes,7,opt,name=mid,proto3" json:"mid,omitempty"` RequestId string `protobuf:"bytes,8,opt,name=requestId,proto3" json:"requestId,omitempty"` Lbs *SemanticRequestLbs `protobuf:"bytes,9,opt,name=lbs,proto3" json:"lbs,omitempty"` Vender string `protobuf:"bytes,10,opt,name=vender,proto3" json:"vender,omitempty"` AppKey string `protobuf:"bytes,11,opt,name=appKey,proto3" json:"appKey,omitempty"` // 云小微 AccessToken string `protobuf:"bytes,12,opt,name=accessToken,proto3" json:"accessToken,omitempty"` Qua string `protobuf:"bytes,13,opt,name=qua,proto3" json:"qua,omitempty"` Auth string `protobuf:"bytes,14,opt,name=auth,proto3" json:"auth,omitempty"` Dsn string `protobuf:"bytes,15,opt,name=dsn,proto3" json:"dsn,omitempty"` Guid string `protobuf:"bytes,16,opt,name=guid,proto3" json:"guid,omitempty"` Exist bool `protobuf:"varint,17,opt,name=exist,proto3" json:"exist,omitempty"` // 授权信息是否存在 TRequestId string `protobuf:"bytes,18,opt,name=tRequestId,proto3" json:"tRequestId,omitempty"` // 腾讯v2的requestId RequestType string `protobuf:"bytes,19,opt,name=requestType,proto3" json:"requestType,omitempty"` // 腾讯nlp websocket RequestType CommType string `protobuf:"bytes,20,opt,name=commType,proto3" json:"commType,omitempty"` // 腾讯nlp websocket CommType CharacterID string `protobuf:"bytes,21,opt,name=characterID,proto3" json:"characterID,omitempty"` // 腾讯nlp websocket Common.CharacterID Event string `protobuf:"bytes,22,opt,name=event,proto3" json:"event,omitempty"` // 腾讯nlp websocket Semantic.Event Native *SemanticRequest_Native `protobuf:"bytes,23,opt,name=native,proto3" json:"native,omitempty"` // 腾讯nlp websocket Payload.Nativate SdkExtend *SemanticRequest_SDKExtend `protobuf:"bytes,24,opt,name=sdkExtend,proto3" json:"sdkExtend,omitempty"` // 腾讯nlp websocket Payload.SDKExtend AddressInfo *AddressInfo `protobuf:"bytes,25,opt,name=addressInfo,proto3" json:"addressInfo,omitempty"` Language string `protobuf:"bytes,26,opt,name=language,proto3" json:"language,omitempty"` HomeId string `protobuf:"bytes,27,opt,name=homeId,proto3" json:"homeId,omitempty"` } func (x *SemanticRequest) Reset() { *x = SemanticRequest{} if protoimpl.UnsafeEnabled { mi := &file_pkg_proto_service_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SemanticRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*SemanticRequest) ProtoMessage() {} func (x *SemanticRequest) ProtoReflect() protoreflect.Message { mi := &file_pkg_proto_service_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 SemanticRequest.ProtoReflect.Descriptor instead. func (*SemanticRequest) Descriptor() ([]byte, []int) { return file_pkg_proto_service_proto_rawDescGZIP(), []int{3} } func (x *SemanticRequest) GetMacWifi() string { if x != nil { return x.MacWifi } return "" } func (x *SemanticRequest) GetMacVoice() string { if x != nil { return x.MacVoice } return "" } func (x *SemanticRequest) GetQuery() string { if x != nil { return x.Query } return "" } func (x *SemanticRequest) GetIp() string { if x != nil { return x.Ip } return "" } func (x *SemanticRequest) GetTestID() string { if x != nil { return x.TestID } return "" } func (x *SemanticRequest) GetOriginQuery() string { if x != nil { return x.OriginQuery } return "" } func (x *SemanticRequest) GetMid() string { if x != nil { return x.Mid } return "" } func (x *SemanticRequest) GetRequestId() string { if x != nil { return x.RequestId } return "" } func (x *SemanticRequest) GetLbs() *SemanticRequestLbs { if x != nil { return x.Lbs } return nil } func (x *SemanticRequest) GetVender() string { if x != nil { return x.Vender } return "" } func (x *SemanticRequest) GetAppKey() string { if x != nil { return x.AppKey } return "" } func (x *SemanticRequest) GetAccessToken() string { if x != nil { return x.AccessToken } return "" } func (x *SemanticRequest) GetQua() string { if x != nil { return x.Qua } return "" } func (x *SemanticRequest) GetAuth() string { if x != nil { return x.Auth } return "" } func (x *SemanticRequest) GetDsn() string { if x != nil { return x.Dsn } return "" } func (x *SemanticRequest) GetGuid() string { if x != nil { return x.Guid } return "" } func (x *SemanticRequest) GetExist() bool { if x != nil { return x.Exist } return false } func (x *SemanticRequest) GetTRequestId() string { if x != nil { return x.TRequestId } return "" } func (x *SemanticRequest) GetRequestType() string { if x != nil { return x.RequestType } return "" } func (x *SemanticRequest) GetCommType() string { if x != nil { return x.CommType } return "" } func (x *SemanticRequest) GetCharacterID() string { if x != nil { return x.CharacterID } return "" } func (x *SemanticRequest) GetEvent() string { if x != nil { return x.Event } return "" } func (x *SemanticRequest) GetNative() *SemanticRequest_Native { if x != nil { return x.Native } return nil } func (x *SemanticRequest) GetSdkExtend() *SemanticRequest_SDKExtend { if x != nil { return x.SdkExtend } return nil } func (x *SemanticRequest) GetAddressInfo() *AddressInfo { if x != nil { return x.AddressInfo } return nil } func (x *SemanticRequest) GetLanguage() string { if x != nil { return x.Language } return "" } func (x *SemanticRequest) GetHomeId() string { if x != nil { return x.HomeId } return "" } type SemanticResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Data *SemanticData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` } func (x *SemanticResponse) Reset() { *x = SemanticResponse{} if protoimpl.UnsafeEnabled { mi := &file_pkg_proto_service_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SemanticResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*SemanticResponse) ProtoMessage() {} func (x *SemanticResponse) ProtoReflect() protoreflect.Message { mi := &file_pkg_proto_service_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 SemanticResponse.ProtoReflect.Descriptor instead. func (*SemanticResponse) Descriptor() ([]byte, []int) { return file_pkg_proto_service_proto_rawDescGZIP(), []int{4} } func (x *SemanticResponse) GetStatus() *Status { if x != nil { return x.Status } return nil } func (x *SemanticResponse) GetData() *SemanticData { if x != nil { return x.Data } return nil } type SemanticData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields SemanticRespJsonData string `protobuf:"bytes,1,opt,name=semanticRespJsonData,proto3" json:"semanticRespJsonData,omitempty"` } func (x *SemanticData) Reset() { *x = SemanticData{} if protoimpl.UnsafeEnabled { mi := &file_pkg_proto_service_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SemanticData) String() string { return protoimpl.X.MessageStringOf(x) } func (*SemanticData) ProtoMessage() {} func (x *SemanticData) ProtoReflect() protoreflect.Message { mi := &file_pkg_proto_service_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 SemanticData.ProtoReflect.Descriptor instead. func (*SemanticData) Descriptor() ([]byte, []int) { return file_pkg_proto_service_proto_rawDescGZIP(), []int{5} } func (x *SemanticData) GetSemanticRespJsonData() string { if x != nil { return x.SemanticRespJsonData } return "" } type TokenSearchRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Mac string `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"` RequestId string `protobuf:"bytes,2,opt,name=requestId,proto3" json:"requestId,omitempty"` Mid string `protobuf:"bytes,3,opt,name=mid,proto3" json:"mid,omitempty"` // mid Vender string `protobuf:"bytes,4,opt,name=vender,proto3" json:"vender,omitempty"` // 细分码,用于设备没授权的情况下给默认boot HomeId string `protobuf:"bytes,5,opt,name=homeId,proto3" json:"homeId,omitempty"` // 设备所属家庭id UserId string `protobuf:"bytes,6,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id } func (x *TokenSearchRequest) Reset() { *x = TokenSearchRequest{} if protoimpl.UnsafeEnabled { mi := &file_pkg_proto_service_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *TokenSearchRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*TokenSearchRequest) ProtoMessage() {} func (x *TokenSearchRequest) ProtoReflect() protoreflect.Message { mi := &file_pkg_proto_service_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 TokenSearchRequest.ProtoReflect.Descriptor instead. func (*TokenSearchRequest) Descriptor() ([]byte, []int) { return file_pkg_proto_service_proto_rawDescGZIP(), []int{6} } func (x *TokenSearchRequest) GetMac() string { if x != nil { return x.Mac } return "" } func (x *TokenSearchRequest) GetRequestId() string { if x != nil { return x.RequestId } return "" } func (x *TokenSearchRequest) GetMid() string { if x != nil { return x.Mid } return "" } func (x *TokenSearchRequest) GetVender() string { if x != nil { return x.Vender } return "" } func (x *TokenSearchRequest) GetHomeId() string { if x != nil { return x.HomeId } return "" } func (x *TokenSearchRequest) GetUserId() string { if x != nil { return x.UserId } return "" } // //data.uriType 取值说明: //QQMusic = 0 // qq音乐 //KugouMusic = 1 // 酷狗音乐 // //data.status 取值说明: //Unassigned = 0 //未分配 没有AppKey 没有token //Assigned = 1 //已分配 //Using = 2 //已授权,使用中 //Expired = 3 //过期 //Invalidation = 4 //异常失效 //Unbind = 5 //解除绑定 // //status.code //200 成功 //401 激活错误 //403 参数格式 //405 设备为激活 type TokenSearchResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Status *TokenSearchResponse_Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Data *TokenSearchResponse_TokenMemo `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` } func (x *TokenSearchResponse) Reset() { *x = TokenSearchResponse{} if protoimpl.UnsafeEnabled { mi := &file_pkg_proto_service_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *TokenSearchResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*TokenSearchResponse) ProtoMessage() {} func (x *TokenSearchResponse) ProtoReflect() protoreflect.Message { mi := &file_pkg_proto_service_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 TokenSearchResponse.ProtoReflect.Descriptor instead. func (*TokenSearchResponse) Descriptor() ([]byte, []int) { return file_pkg_proto_service_proto_rawDescGZIP(), []int{7} } func (x *TokenSearchResponse) GetStatus() *TokenSearchResponse_Status { if x != nil { return x.Status } return nil } func (x *TokenSearchResponse) GetData() *TokenSearchResponse_TokenMemo { if x != nil { return x.Data } return nil } type SemanticRequest_Native struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` SeqID string `protobuf:"bytes,2,opt,name=seqID,proto3" json:"seqID,omitempty"` Code int32 `protobuf:"varint,3,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` DataVersion string `protobuf:"bytes,5,opt,name=dataVersion,proto3" json:"dataVersion,omitempty"` Data *SemanticRequest_Native_Data `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` } func (x *SemanticRequest_Native) Reset() { *x = SemanticRequest_Native{} if protoimpl.UnsafeEnabled { mi := &file_pkg_proto_service_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SemanticRequest_Native) String() string { return protoimpl.X.MessageStringOf(x) } func (*SemanticRequest_Native) ProtoMessage() {} func (x *SemanticRequest_Native) ProtoReflect() protoreflect.Message { mi := &file_pkg_proto_service_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 SemanticRequest_Native.ProtoReflect.Descriptor instead. func (*SemanticRequest_Native) Descriptor() ([]byte, []int) { return file_pkg_proto_service_proto_rawDescGZIP(), []int{3, 0} } func (x *SemanticRequest_Native) GetName() string { if x != nil { return x.Name } return "" } func (x *SemanticRequest_Native) GetSeqID() string { if x != nil { return x.SeqID } return "" } func (x *SemanticRequest_Native) GetCode() int32 { if x != nil { return x.Code } return 0 } func (x *SemanticRequest_Native) GetMessage() string { if x != nil { return x.Message } return "" } func (x *SemanticRequest_Native) GetDataVersion() string { if x != nil { return x.DataVersion } return "" } func (x *SemanticRequest_Native) GetData() *SemanticRequest_Native_Data { if x != nil { return x.Data } return nil } type SemanticRequest_SDKExtend struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields CarDOA int32 `protobuf:"varint,1,opt,name=carDOA,proto3" json:"carDOA,omitempty"` LastRspType string `protobuf:"bytes,2,opt,name=lastRspType,proto3" json:"lastRspType,omitempty"` LastRspResult string `protobuf:"bytes,3,opt,name=lastRspResult,proto3" json:"lastRspResult,omitempty"` LastSessionStatus int32 `protobuf:"varint,4,opt,name=lastSessionStatus,proto3" json:"lastSessionStatus,omitempty"` LastCompleteCmdResult string `protobuf:"bytes,5,opt,name=lastCompleteCmdResult,proto3" json:"lastCompleteCmdResult,omitempty"` } func (x *SemanticRequest_SDKExtend) Reset() { *x = SemanticRequest_SDKExtend{} if protoimpl.UnsafeEnabled { mi := &file_pkg_proto_service_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SemanticRequest_SDKExtend) String() string { return protoimpl.X.MessageStringOf(x) } func (*SemanticRequest_SDKExtend) ProtoMessage() {} func (x *SemanticRequest_SDKExtend) ProtoReflect() protoreflect.Message { mi := &file_pkg_proto_service_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 SemanticRequest_SDKExtend.ProtoReflect.Descriptor instead. func (*SemanticRequest_SDKExtend) Descriptor() ([]byte, []int) { return file_pkg_proto_service_proto_rawDescGZIP(), []int{3, 1} } func (x *SemanticRequest_SDKExtend) GetCarDOA() int32 { if x != nil { return x.CarDOA } return 0 } func (x *SemanticRequest_SDKExtend) GetLastRspType() string { if x != nil { return x.LastRspType } return "" } func (x *SemanticRequest_SDKExtend) GetLastRspResult() string { if x != nil { return x.LastRspResult } return "" } func (x *SemanticRequest_SDKExtend) GetLastSessionStatus() int32 { if x != nil { return x.LastSessionStatus } return 0 } func (x *SemanticRequest_SDKExtend) GetLastCompleteCmdResult() string { if x != nil { return x.LastCompleteCmdResult } return "" } type SemanticRequest_Native_Data struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *SemanticRequest_Native_Data) Reset() { *x = SemanticRequest_Native_Data{} if protoimpl.UnsafeEnabled { mi := &file_pkg_proto_service_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SemanticRequest_Native_Data) String() string { return protoimpl.X.MessageStringOf(x) } func (*SemanticRequest_Native_Data) ProtoMessage() {} func (x *SemanticRequest_Native_Data) ProtoReflect() protoreflect.Message { mi := &file_pkg_proto_service_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 SemanticRequest_Native_Data.ProtoReflect.Descriptor instead. func (*SemanticRequest_Native_Data) Descriptor() ([]byte, []int) { return file_pkg_proto_service_proto_rawDescGZIP(), []int{3, 0, 0} } type TokenSearchResponse_Status struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` } func (x *TokenSearchResponse_Status) Reset() { *x = TokenSearchResponse_Status{} if protoimpl.UnsafeEnabled { mi := &file_pkg_proto_service_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *TokenSearchResponse_Status) String() string { return protoimpl.X.MessageStringOf(x) } func (*TokenSearchResponse_Status) ProtoMessage() {} func (x *TokenSearchResponse_Status) ProtoReflect() protoreflect.Message { mi := &file_pkg_proto_service_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 TokenSearchResponse_Status.ProtoReflect.Descriptor instead. func (*TokenSearchResponse_Status) Descriptor() ([]byte, []int) { return file_pkg_proto_service_proto_rawDescGZIP(), []int{7, 0} } func (x *TokenSearchResponse_Status) GetCode() int32 { if x != nil { return x.Code } return 0 } func (x *TokenSearchResponse_Status) GetMsg() string { if x != nil { return x.Msg } return "" } type TokenSearchResponse_TokenMemo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Dsn string `protobuf:"bytes,1,opt,name=dsn,proto3" json:"dsn,omitempty"` Authorization string `protobuf:"bytes,2,opt,name=authorization,proto3" json:"authorization,omitempty"` AccessToken string `protobuf:"bytes,3,opt,name=accessToken,proto3" json:"accessToken,omitempty"` AppKey string `protobuf:"bytes,4,opt,name=appKey,proto3" json:"appKey,omitempty"` Status int32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` UriType int32 `protobuf:"varint,6,opt,name=uriType,proto3" json:"uriType,omitempty"` HomeId string `protobuf:"bytes,7,opt,name=homeId,proto3" json:"homeId,omitempty"` // 设备所绑定家庭的 homeid } func (x *TokenSearchResponse_TokenMemo) Reset() { *x = TokenSearchResponse_TokenMemo{} if protoimpl.UnsafeEnabled { mi := &file_pkg_proto_service_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *TokenSearchResponse_TokenMemo) String() string { return protoimpl.X.MessageStringOf(x) } func (*TokenSearchResponse_TokenMemo) ProtoMessage() {} func (x *TokenSearchResponse_TokenMemo) ProtoReflect() protoreflect.Message { mi := &file_pkg_proto_service_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 TokenSearchResponse_TokenMemo.ProtoReflect.Descriptor instead. func (*TokenSearchResponse_TokenMemo) Descriptor() ([]byte, []int) { return file_pkg_proto_service_proto_rawDescGZIP(), []int{7, 1} } func (x *TokenSearchResponse_TokenMemo) GetDsn() string { if x != nil { return x.Dsn } return "" } func (x *TokenSearchResponse_TokenMemo) GetAuthorization() string { if x != nil { return x.Authorization } return "" } func (x *TokenSearchResponse_TokenMemo) GetAccessToken() string { if x != nil { return x.AccessToken } return "" } func (x *TokenSearchResponse_TokenMemo) GetAppKey() string { if x != nil { return x.AppKey } return "" } func (x *TokenSearchResponse_TokenMemo) GetStatus() int32 { if x != nil { return x.Status } return 0 } func (x *TokenSearchResponse_TokenMemo) GetUriType() int32 { if x != nil { return x.UriType } return 0 } func (x *TokenSearchResponse_TokenMemo) GetHomeId() string { if x != nil { return x.HomeId } return "" } var File_pkg_proto_service_proto protoreflect.FileDescriptor var file_pkg_proto_service_proto_rawDesc = []byte{ 0x0a, 0x17, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2e, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x4e, 0x0a, 0x12, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x62, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x22, 0x55, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x79, 0x22, 0xc6, 0x09, 0x0a, 0x0f, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x63, 0x57, 0x69, 0x66, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x61, 0x63, 0x57, 0x69, 0x66, 0x69, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x61, 0x63, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x63, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x65, 0x73, 0x74, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x65, 0x73, 0x74, 0x49, 0x44, 0x12, 0x20, 0x0a, 0x0b, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x03, 0x6c, 0x62, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x62, 0x73, 0x52, 0x03, 0x6c, 0x62, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x70, 0x70, 0x4b, 0x65, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x70, 0x70, 0x4b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x71, 0x75, 0x61, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x71, 0x75, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x73, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x73, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x67, 0x75, 0x69, 0x64, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x67, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x78, 0x69, 0x73, 0x74, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x65, 0x78, 0x69, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x49, 0x44, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x49, 0x44, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x52, 0x06, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x12, 0x3e, 0x0a, 0x09, 0x73, 0x64, 0x6b, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x44, 0x4b, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x09, 0x73, 0x64, 0x6b, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x12, 0x34, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x6f, 0x6d, 0x65, 0x49, 0x64, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x6f, 0x6d, 0x65, 0x49, 0x64, 0x1a, 0xc2, 0x01, 0x0a, 0x06, 0x4e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x65, 0x71, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x65, 0x71, 0x49, 0x44, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x06, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x1a, 0xcf, 0x01, 0x0a, 0x09, 0x53, 0x44, 0x4b, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x72, 0x44, 0x4f, 0x41, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x61, 0x72, 0x44, 0x4f, 0x41, 0x12, 0x20, 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x52, 0x73, 0x70, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x52, 0x73, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x52, 0x73, 0x70, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x52, 0x73, 0x70, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2c, 0x0a, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x34, 0x0a, 0x15, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6d, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6d, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x62, 0x0a, 0x10, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x27, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x42, 0x0a, 0x0c, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x44, 0x61, 0x74, 0x61, 0x12, 0x32, 0x0a, 0x14, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x4a, 0x73, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x4a, 0x73, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x22, 0x9e, 0x01, 0x0a, 0x12, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x61, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x61, 0x63, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x6f, 0x6d, 0x65, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x6f, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x84, 0x03, 0x0a, 0x13, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x38, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x2e, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x1a, 0xc7, 0x01, 0x0a, 0x09, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4d, 0x65, 0x6d, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x73, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x73, 0x6e, 0x12, 0x24, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x70, 0x70, 0x4b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x70, 0x70, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x72, 0x69, 0x54, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x75, 0x72, 0x69, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x6f, 0x6d, 0x65, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x6f, 0x6d, 0x65, 0x49, 0x64, 0x32, 0xa2, 0x01, 0x0a, 0x0a, 0x54, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x74, 0x4e, 0x6c, 0x75, 0x12, 0x44, 0x0a, 0x0f, 0x54, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x74, 0x4e, 0x6c, 0x75, 0x50, 0x61, 0x72, 0x73, 0x65, 0x12, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4e, 0x0a, 0x15, 0x54, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x74, 0x4e, 0x6c, 0x75, 0x50, 0x61, 0x72, 0x73, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x32, 0x59, 0x0a, 0x0b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x4a, 0x0a, 0x11, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x13, 0x5a, 0x11, 0x2e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_pkg_proto_service_proto_rawDescOnce sync.Once file_pkg_proto_service_proto_rawDescData = file_pkg_proto_service_proto_rawDesc ) func file_pkg_proto_service_proto_rawDescGZIP() []byte { file_pkg_proto_service_proto_rawDescOnce.Do(func() { file_pkg_proto_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_proto_service_proto_rawDescData) }) return file_pkg_proto_service_proto_rawDescData } var file_pkg_proto_service_proto_msgTypes = make([]protoimpl.MessageInfo, 13) var file_pkg_proto_service_proto_goTypes = []interface{}{ (*Status)(nil), // 0: proto.Status (*SemanticRequestLbs)(nil), // 1: proto.SemanticRequestLbs (*AddressInfo)(nil), // 2: proto.AddressInfo (*SemanticRequest)(nil), // 3: proto.SemanticRequest (*SemanticResponse)(nil), // 4: proto.SemanticResponse (*SemanticData)(nil), // 5: proto.SemanticData (*TokenSearchRequest)(nil), // 6: proto.TokenSearchRequest (*TokenSearchResponse)(nil), // 7: proto.TokenSearchResponse (*SemanticRequest_Native)(nil), // 8: proto.SemanticRequest.Native (*SemanticRequest_SDKExtend)(nil), // 9: proto.SemanticRequest.SDKExtend (*SemanticRequest_Native_Data)(nil), // 10: proto.SemanticRequest.Native.Data (*TokenSearchResponse_Status)(nil), // 11: proto.TokenSearchResponse.Status (*TokenSearchResponse_TokenMemo)(nil), // 12: proto.TokenSearchResponse.TokenMemo } var file_pkg_proto_service_proto_depIdxs = []int32{ 1, // 0: proto.SemanticRequest.lbs:type_name -> proto.SemanticRequestLbs 8, // 1: proto.SemanticRequest.native:type_name -> proto.SemanticRequest.Native 9, // 2: proto.SemanticRequest.sdkExtend:type_name -> proto.SemanticRequest.SDKExtend 2, // 3: proto.SemanticRequest.addressInfo:type_name -> proto.AddressInfo 0, // 4: proto.SemanticResponse.status:type_name -> proto.Status 5, // 5: proto.SemanticResponse.data:type_name -> proto.SemanticData 11, // 6: proto.TokenSearchResponse.status:type_name -> proto.TokenSearchResponse.Status 12, // 7: proto.TokenSearchResponse.data:type_name -> proto.TokenSearchResponse.TokenMemo 10, // 8: proto.SemanticRequest.Native.data:type_name -> proto.SemanticRequest.Native.Data 3, // 9: proto.TencentNlu.TencentNluParse:input_type -> proto.SemanticRequest 3, // 10: proto.TencentNlu.TencentNluParseStream:input_type -> proto.SemanticRequest 6, // 11: proto.TokenSearch.TokenSearchHandle:input_type -> proto.TokenSearchRequest 4, // 12: proto.TencentNlu.TencentNluParse:output_type -> proto.SemanticResponse 4, // 13: proto.TencentNlu.TencentNluParseStream:output_type -> proto.SemanticResponse 7, // 14: proto.TokenSearch.TokenSearchHandle:output_type -> proto.TokenSearchResponse 12, // [12:15] is the sub-list for method output_type 9, // [9:12] is the sub-list for method input_type 9, // [9:9] is the sub-list for extension type_name 9, // [9:9] is the sub-list for extension extendee 0, // [0:9] is the sub-list for field type_name } func init() { file_pkg_proto_service_proto_init() } func file_pkg_proto_service_proto_init() { if File_pkg_proto_service_proto != nil { return } if !protoimpl.UnsafeEnabled { file_pkg_proto_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Status); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pkg_proto_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SemanticRequestLbs); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pkg_proto_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddressInfo); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pkg_proto_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SemanticRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pkg_proto_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SemanticResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pkg_proto_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SemanticData); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pkg_proto_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TokenSearchRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pkg_proto_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TokenSearchResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pkg_proto_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SemanticRequest_Native); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pkg_proto_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SemanticRequest_SDKExtend); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pkg_proto_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SemanticRequest_Native_Data); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pkg_proto_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TokenSearchResponse_Status); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pkg_proto_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TokenSearchResponse_TokenMemo); 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_pkg_proto_service_proto_rawDesc, NumEnums: 0, NumMessages: 13, NumExtensions: 0, NumServices: 2, }, GoTypes: file_pkg_proto_service_proto_goTypes, DependencyIndexes: file_pkg_proto_service_proto_depIdxs, MessageInfos: file_pkg_proto_service_proto_msgTypes, }.Build() File_pkg_proto_service_proto = out.File file_pkg_proto_service_proto_rawDesc = nil file_pkg_proto_service_proto_goTypes = nil file_pkg_proto_service_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 // TencentNluClient is the client API for TencentNlu service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type TencentNluClient interface { TencentNluParse(ctx context.Context, in *SemanticRequest, opts ...grpc.CallOption) (*SemanticResponse, error) TencentNluParseStream(ctx context.Context, opts ...grpc.CallOption) (TencentNlu_TencentNluParseStreamClient, error) } type tencentNluClient struct { cc grpc.ClientConnInterface } func NewTencentNluClient(cc grpc.ClientConnInterface) TencentNluClient { return &tencentNluClient{cc} } func (c *tencentNluClient) TencentNluParse(ctx context.Context, in *SemanticRequest, opts ...grpc.CallOption) (*SemanticResponse, error) { out := new(SemanticResponse) err := c.cc.Invoke(ctx, "/proto.TencentNlu/TencentNluParse", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *tencentNluClient) TencentNluParseStream(ctx context.Context, opts ...grpc.CallOption) (TencentNlu_TencentNluParseStreamClient, error) { stream, err := c.cc.NewStream(ctx, &_TencentNlu_serviceDesc.Streams[0], "/proto.TencentNlu/TencentNluParseStream", opts...) if err != nil { return nil, err } x := &tencentNluTencentNluParseStreamClient{stream} return x, nil } type TencentNlu_TencentNluParseStreamClient interface { Send(*SemanticRequest) error Recv() (*SemanticResponse, error) grpc.ClientStream } type tencentNluTencentNluParseStreamClient struct { grpc.ClientStream } func (x *tencentNluTencentNluParseStreamClient) Send(m *SemanticRequest) error { return x.ClientStream.SendMsg(m) } func (x *tencentNluTencentNluParseStreamClient) Recv() (*SemanticResponse, error) { m := new(SemanticResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } // TencentNluServer is the server API for TencentNlu service. type TencentNluServer interface { TencentNluParse(context.Context, *SemanticRequest) (*SemanticResponse, error) TencentNluParseStream(TencentNlu_TencentNluParseStreamServer) error } // UnimplementedTencentNluServer can be embedded to have forward compatible implementations. type UnimplementedTencentNluServer struct { } func (*UnimplementedTencentNluServer) TencentNluParse(context.Context, *SemanticRequest) (*SemanticResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method TencentNluParse not implemented") } func (*UnimplementedTencentNluServer) TencentNluParseStream(TencentNlu_TencentNluParseStreamServer) error { return status.Errorf(codes.Unimplemented, "method TencentNluParseStream not implemented") } func RegisterTencentNluServer(s *grpc.Server, srv TencentNluServer) { s.RegisterService(&_TencentNlu_serviceDesc, srv) } func _TencentNlu_TencentNluParse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SemanticRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(TencentNluServer).TencentNluParse(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/proto.TencentNlu/TencentNluParse", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TencentNluServer).TencentNluParse(ctx, req.(*SemanticRequest)) } return interceptor(ctx, in, info, handler) } func _TencentNlu_TencentNluParseStream_Handler(srv interface{}, stream grpc.ServerStream) error { return srv.(TencentNluServer).TencentNluParseStream(&tencentNluTencentNluParseStreamServer{stream}) } type TencentNlu_TencentNluParseStreamServer interface { Send(*SemanticResponse) error Recv() (*SemanticRequest, error) grpc.ServerStream } type tencentNluTencentNluParseStreamServer struct { grpc.ServerStream } func (x *tencentNluTencentNluParseStreamServer) Send(m *SemanticResponse) error { return x.ServerStream.SendMsg(m) } func (x *tencentNluTencentNluParseStreamServer) Recv() (*SemanticRequest, error) { m := new(SemanticRequest) if err := x.ServerStream.RecvMsg(m); err != nil { return nil, err } return m, nil } var _TencentNlu_serviceDesc = grpc.ServiceDesc{ ServiceName: "proto.TencentNlu", HandlerType: (*TencentNluServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "TencentNluParse", Handler: _TencentNlu_TencentNluParse_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "TencentNluParseStream", Handler: _TencentNlu_TencentNluParseStream_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "pkg/proto/service.proto", } // TokenSearchClient is the client API for TokenSearch service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type TokenSearchClient interface { TokenSearchHandle(ctx context.Context, in *TokenSearchRequest, opts ...grpc.CallOption) (*TokenSearchResponse, error) } type tokenSearchClient struct { cc grpc.ClientConnInterface } func NewTokenSearchClient(cc grpc.ClientConnInterface) TokenSearchClient { return &tokenSearchClient{cc} } func (c *tokenSearchClient) TokenSearchHandle(ctx context.Context, in *TokenSearchRequest, opts ...grpc.CallOption) (*TokenSearchResponse, error) { out := new(TokenSearchResponse) err := c.cc.Invoke(ctx, "/proto.TokenSearch/TokenSearchHandle", in, out, opts...) if err != nil { return nil, err } return out, nil } // TokenSearchServer is the server API for TokenSearch service. type TokenSearchServer interface { TokenSearchHandle(context.Context, *TokenSearchRequest) (*TokenSearchResponse, error) } // UnimplementedTokenSearchServer can be embedded to have forward compatible implementations. type UnimplementedTokenSearchServer struct { } func (*UnimplementedTokenSearchServer) TokenSearchHandle(context.Context, *TokenSearchRequest) (*TokenSearchResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method TokenSearchHandle not implemented") } func RegisterTokenSearchServer(s *grpc.Server, srv TokenSearchServer) { s.RegisterService(&_TokenSearch_serviceDesc, srv) } func _TokenSearch_TokenSearchHandle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(TokenSearchRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(TokenSearchServer).TokenSearchHandle(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/proto.TokenSearch/TokenSearchHandle", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TokenSearchServer).TokenSearchHandle(ctx, req.(*TokenSearchRequest)) } return interceptor(ctx, in, info, handler) } var _TokenSearch_serviceDesc = grpc.ServiceDesc{ ServiceName: "proto.TokenSearch", HandlerType: (*TokenSearchServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "TokenSearchHandle", Handler: _TokenSearch_TokenSearchHandle_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/proto/service.proto", }