Documentation ¶
Index ¶
- Variables
- func RegisterLanguageIdServiceServer(s *grpc.Server, srv LanguageIdServiceServer)
- type IdResult
- type LanguageIdRequest
- func (*LanguageIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LanguageIdRequest) GetIncludeScores() bool
- func (x *LanguageIdRequest) GetInput() string
- func (x *LanguageIdRequest) GetMaxSampleCount() int32
- func (x *LanguageIdRequest) GetTrGroup() bool
- func (*LanguageIdRequest) ProtoMessage()
- func (x *LanguageIdRequest) ProtoReflect() protoreflect.Message
- func (x *LanguageIdRequest) Reset()
- func (x *LanguageIdRequest) String() string
- type LanguageIdResponse
- func (*LanguageIdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LanguageIdResponse) GetIdResult() []*IdResult
- func (x *LanguageIdResponse) GetLangId() string
- func (*LanguageIdResponse) ProtoMessage()
- func (x *LanguageIdResponse) ProtoReflect() protoreflect.Message
- func (x *LanguageIdResponse) Reset()
- func (x *LanguageIdResponse) String() string
- type LanguageIdServiceClient
- type LanguageIdServiceServer
- type UnimplementedLanguageIdServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_language_id_proto protoreflect.FileDescriptor
Functions ¶
func RegisterLanguageIdServiceServer ¶
func RegisterLanguageIdServiceServer(s *grpc.Server, srv LanguageIdServiceServer)
Types ¶
type IdResult ¶
type IdResult struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Score float64 `protobuf:"fixed64,2,opt,name=score,proto3" json:"score,omitempty"` // contains filtered or unexported fields }
func (*IdResult) Descriptor
deprecated
func (*IdResult) ProtoMessage ¶
func (*IdResult) ProtoMessage()
func (*IdResult) ProtoReflect ¶
func (x *IdResult) ProtoReflect() protoreflect.Message
type LanguageIdRequest ¶
type LanguageIdRequest struct { Input string `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` MaxSampleCount int32 `protobuf:"varint,2,opt,name=maxSampleCount,proto3" json:"maxSampleCount,omitempty"` TrGroup bool `protobuf:"varint,3,opt,name=trGroup,proto3" json:"trGroup,omitempty"` IncludeScores bool `protobuf:"varint,4,opt,name=includeScores,proto3" json:"includeScores,omitempty"` // contains filtered or unexported fields }
func (*LanguageIdRequest) Descriptor
deprecated
func (*LanguageIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use LanguageIdRequest.ProtoReflect.Descriptor instead.
func (*LanguageIdRequest) GetIncludeScores ¶
func (x *LanguageIdRequest) GetIncludeScores() bool
func (*LanguageIdRequest) GetInput ¶
func (x *LanguageIdRequest) GetInput() string
func (*LanguageIdRequest) GetMaxSampleCount ¶
func (x *LanguageIdRequest) GetMaxSampleCount() int32
func (*LanguageIdRequest) GetTrGroup ¶
func (x *LanguageIdRequest) GetTrGroup() bool
func (*LanguageIdRequest) ProtoMessage ¶
func (*LanguageIdRequest) ProtoMessage()
func (*LanguageIdRequest) ProtoReflect ¶
func (x *LanguageIdRequest) ProtoReflect() protoreflect.Message
func (*LanguageIdRequest) Reset ¶
func (x *LanguageIdRequest) Reset()
func (*LanguageIdRequest) String ¶
func (x *LanguageIdRequest) String() string
type LanguageIdResponse ¶
type LanguageIdResponse struct { LangId string `protobuf:"bytes,1,opt,name=langId,proto3" json:"langId,omitempty"` IdResult []*IdResult `protobuf:"bytes,2,rep,name=idResult,proto3" json:"idResult,omitempty"` // contains filtered or unexported fields }
func (*LanguageIdResponse) Descriptor
deprecated
func (*LanguageIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use LanguageIdResponse.ProtoReflect.Descriptor instead.
func (*LanguageIdResponse) GetIdResult ¶
func (x *LanguageIdResponse) GetIdResult() []*IdResult
func (*LanguageIdResponse) GetLangId ¶
func (x *LanguageIdResponse) GetLangId() string
func (*LanguageIdResponse) ProtoMessage ¶
func (*LanguageIdResponse) ProtoMessage()
func (*LanguageIdResponse) ProtoReflect ¶
func (x *LanguageIdResponse) ProtoReflect() protoreflect.Message
func (*LanguageIdResponse) Reset ¶
func (x *LanguageIdResponse) Reset()
func (*LanguageIdResponse) String ¶
func (x *LanguageIdResponse) String() string
type LanguageIdServiceClient ¶
type LanguageIdServiceClient interface { Detect(ctx context.Context, in *LanguageIdRequest, opts ...grpc.CallOption) (*LanguageIdResponse, error) DetectFast(ctx context.Context, in *LanguageIdRequest, opts ...grpc.CallOption) (*LanguageIdResponse, error) }
LanguageIdServiceClient is the client API for LanguageIdService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLanguageIdServiceClient ¶
func NewLanguageIdServiceClient(cc grpc.ClientConnInterface) LanguageIdServiceClient
type LanguageIdServiceServer ¶
type LanguageIdServiceServer interface { Detect(context.Context, *LanguageIdRequest) (*LanguageIdResponse, error) DetectFast(context.Context, *LanguageIdRequest) (*LanguageIdResponse, error) }
LanguageIdServiceServer is the server API for LanguageIdService service.
type UnimplementedLanguageIdServiceServer ¶
type UnimplementedLanguageIdServiceServer struct { }
UnimplementedLanguageIdServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedLanguageIdServiceServer) Detect ¶
func (*UnimplementedLanguageIdServiceServer) Detect(context.Context, *LanguageIdRequest) (*LanguageIdResponse, error)
func (*UnimplementedLanguageIdServiceServer) DetectFast ¶
func (*UnimplementedLanguageIdServiceServer) DetectFast(context.Context, *LanguageIdRequest) (*LanguageIdResponse, error)
Click to show internal directories.
Click to hide internal directories.