pb

package
v0.0.0-...-a9c0f88 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use IdResult.ProtoReflect.Descriptor instead.

func (*IdResult) GetId

func (x *IdResult) GetId() string

func (*IdResult) GetScore

func (x *IdResult) GetScore() float64

func (*IdResult) ProtoMessage

func (*IdResult) ProtoMessage()

func (*IdResult) ProtoReflect

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

func (*IdResult) Reset

func (x *IdResult) Reset()

func (*IdResult) String

func (x *IdResult) String() string

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.

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) DetectFast

Jump to

Keyboard shortcuts

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