Documentation ¶
Index ¶
- Variables
- func RegisterTranslatorAdminServer(s grpc.ServiceRegistrar, srv TranslatorAdminServer)
- func RegisterTranslatorUserServer(s grpc.ServiceRegistrar, srv TranslatorUserServer)
- type DictionaryLookupParameter
- func (*DictionaryLookupParameter) Descriptor() ([]byte, []int)deprecated
- func (x *DictionaryLookupParameter) GetFromLang2() string
- func (x *DictionaryLookupParameter) GetText() string
- func (x *DictionaryLookupParameter) GetToLang2() string
- func (*DictionaryLookupParameter) ProtoMessage()
- func (x *DictionaryLookupParameter) ProtoReflect() protoreflect.Message
- func (x *DictionaryLookupParameter) Reset()
- func (x *DictionaryLookupParameter) String() string
- type DictionaryLookupResponse
- func (*DictionaryLookupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DictionaryLookupResponse) GetResult() *DictionaryResponse
- func (*DictionaryLookupResponse) ProtoMessage()
- func (x *DictionaryLookupResponse) ProtoReflect() protoreflect.Message
- func (x *DictionaryLookupResponse) Reset()
- func (x *DictionaryLookupResponse) String() string
- type DictionaryLookupResponses
- func (*DictionaryLookupResponses) Descriptor() ([]byte, []int)deprecated
- func (x *DictionaryLookupResponses) GetResults() []*DictionaryResponse
- func (*DictionaryLookupResponses) ProtoMessage()
- func (x *DictionaryLookupResponses) ProtoReflect() protoreflect.Message
- func (x *DictionaryLookupResponses) Reset()
- func (x *DictionaryLookupResponses) String() string
- type DictionaryLookupWithPosParameter
- func (*DictionaryLookupWithPosParameter) Descriptor() ([]byte, []int)deprecated
- func (x *DictionaryLookupWithPosParameter) GetFromLang2() string
- func (x *DictionaryLookupWithPosParameter) GetPos() int32
- func (x *DictionaryLookupWithPosParameter) GetText() string
- func (x *DictionaryLookupWithPosParameter) GetToLang2() string
- func (*DictionaryLookupWithPosParameter) ProtoMessage()
- func (x *DictionaryLookupWithPosParameter) ProtoReflect() protoreflect.Message
- func (x *DictionaryLookupWithPosParameter) Reset()
- func (x *DictionaryLookupWithPosParameter) String() string
- type DictionaryResponse
- func (*DictionaryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DictionaryResponse) GetLang2() string
- func (x *DictionaryResponse) GetPos() int32
- func (x *DictionaryResponse) GetProvider() string
- func (x *DictionaryResponse) GetText() string
- func (x *DictionaryResponse) GetTranslated() string
- func (*DictionaryResponse) ProtoMessage()
- func (x *DictionaryResponse) ProtoReflect() protoreflect.Message
- func (x *DictionaryResponse) Reset()
- func (x *DictionaryResponse) String() string
- type TranslationAddParameter
- func (*TranslationAddParameter) Descriptor() ([]byte, []int)deprecated
- func (x *TranslationAddParameter) GetLang2() string
- func (x *TranslationAddParameter) GetPos() int32
- func (x *TranslationAddParameter) GetText() string
- func (x *TranslationAddParameter) GetTranslated() string
- func (*TranslationAddParameter) ProtoMessage()
- func (x *TranslationAddParameter) ProtoReflect() protoreflect.Message
- func (x *TranslationAddParameter) Reset()
- func (x *TranslationAddParameter) String() string
- type TranslationAddResponse
- type TranslationFindByTextAndPosParameter
- func (*TranslationFindByTextAndPosParameter) Descriptor() ([]byte, []int)deprecated
- func (x *TranslationFindByTextAndPosParameter) GetLang2() string
- func (x *TranslationFindByTextAndPosParameter) GetPos() int32
- func (x *TranslationFindByTextAndPosParameter) GetText() string
- func (*TranslationFindByTextAndPosParameter) ProtoMessage()
- func (x *TranslationFindByTextAndPosParameter) ProtoReflect() protoreflect.Message
- func (x *TranslationFindByTextAndPosParameter) Reset()
- func (x *TranslationFindByTextAndPosParameter) String() string
- type TranslationFindByTextParameter
- func (*TranslationFindByTextParameter) Descriptor() ([]byte, []int)deprecated
- func (x *TranslationFindByTextParameter) GetLang2() string
- func (x *TranslationFindByTextParameter) GetText() string
- func (*TranslationFindByTextParameter) ProtoMessage()
- func (x *TranslationFindByTextParameter) ProtoReflect() protoreflect.Message
- func (x *TranslationFindByTextParameter) Reset()
- func (x *TranslationFindByTextParameter) String() string
- type TranslationFindParameter
- func (*TranslationFindParameter) Descriptor() ([]byte, []int)deprecated
- func (x *TranslationFindParameter) GetLang2() string
- func (x *TranslationFindParameter) GetLetter() string
- func (*TranslationFindParameter) ProtoMessage()
- func (x *TranslationFindParameter) ProtoReflect() protoreflect.Message
- func (x *TranslationFindParameter) Reset()
- func (x *TranslationFindParameter) String() string
- type TranslationFindResposne
- func (*TranslationFindResposne) Descriptor() ([]byte, []int)deprecated
- func (x *TranslationFindResposne) GetResults() []*TranslationResponse
- func (*TranslationFindResposne) ProtoMessage()
- func (x *TranslationFindResposne) ProtoReflect() protoreflect.Message
- func (x *TranslationFindResposne) Reset()
- func (x *TranslationFindResposne) String() string
- type TranslationRemoveParameter
- func (*TranslationRemoveParameter) Descriptor() ([]byte, []int)deprecated
- func (x *TranslationRemoveParameter) GetLang2() string
- func (x *TranslationRemoveParameter) GetPos() int32
- func (x *TranslationRemoveParameter) GetText() string
- func (*TranslationRemoveParameter) ProtoMessage()
- func (x *TranslationRemoveParameter) ProtoReflect() protoreflect.Message
- func (x *TranslationRemoveParameter) Reset()
- func (x *TranslationRemoveParameter) String() string
- type TranslationRemoveResponse
- type TranslationResponse
- func (*TranslationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TranslationResponse) GetLang2() string
- func (x *TranslationResponse) GetPos() int32
- func (x *TranslationResponse) GetProvider() string
- func (x *TranslationResponse) GetText() string
- func (x *TranslationResponse) GetTranslated() string
- func (*TranslationResponse) ProtoMessage()
- func (x *TranslationResponse) ProtoReflect() protoreflect.Message
- func (x *TranslationResponse) Reset()
- func (x *TranslationResponse) String() string
- type TranslationUpdateParameter
- func (*TranslationUpdateParameter) Descriptor() ([]byte, []int)deprecated
- func (x *TranslationUpdateParameter) GetLang2() string
- func (x *TranslationUpdateParameter) GetPos() int32
- func (x *TranslationUpdateParameter) GetText() string
- func (x *TranslationUpdateParameter) GetTranslated() string
- func (*TranslationUpdateParameter) ProtoMessage()
- func (x *TranslationUpdateParameter) ProtoReflect() protoreflect.Message
- func (x *TranslationUpdateParameter) Reset()
- func (x *TranslationUpdateParameter) String() string
- type TranslationUpdateResponse
- type TranslatorAdminClient
- type TranslatorAdminServer
- type TranslatorUserClient
- type TranslatorUserServer
- type UnimplementedTranslatorAdminServer
- func (UnimplementedTranslatorAdminServer) AddTranslation(context.Context, *TranslationAddParameter) (*TranslationAddResponse, error)
- func (UnimplementedTranslatorAdminServer) FindTranslationByTextAndPos(context.Context, *TranslationFindByTextAndPosParameter) (*TranslationResponse, error)
- func (UnimplementedTranslatorAdminServer) FindTranslationsByFirstLetter(context.Context, *TranslationFindParameter) (*TranslationFindResposne, error)
- func (UnimplementedTranslatorAdminServer) FindTranslationsByText(context.Context, *TranslationFindByTextParameter) (*TranslationFindResposne, error)
- func (UnimplementedTranslatorAdminServer) RemoveTranslation(context.Context, *TranslationRemoveParameter) (*TranslationRemoveResponse, error)
- func (UnimplementedTranslatorAdminServer) UpdateTranslation(context.Context, *TranslationUpdateParameter) (*TranslationAddResponse, error)
- type UnimplementedTranslatorUserServer
- type UnsafeTranslatorAdminServer
- type UnsafeTranslatorUserServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_translator_admin_proto protoreflect.FileDescriptor
var File_proto_translator_user_proto protoreflect.FileDescriptor
var TranslatorAdmin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.TranslatorAdmin", HandlerType: (*TranslatorAdminServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindTranslationsByFirstLetter", Handler: _TranslatorAdmin_FindTranslationsByFirstLetter_Handler, }, { MethodName: "FindTranslationByTextAndPos", Handler: _TranslatorAdmin_FindTranslationByTextAndPos_Handler, }, { MethodName: "FindTranslationsByText", Handler: _TranslatorAdmin_FindTranslationsByText_Handler, }, { MethodName: "AddTranslation", Handler: _TranslatorAdmin_AddTranslation_Handler, }, { MethodName: "UpdateTranslation", Handler: _TranslatorAdmin_UpdateTranslation_Handler, }, { MethodName: "RemoveTranslation", Handler: _TranslatorAdmin_RemoveTranslation_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/translator_admin.proto", }
TranslatorAdmin_ServiceDesc is the grpc.ServiceDesc for TranslatorAdmin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var TranslatorUser_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.TranslatorUser", HandlerType: (*TranslatorUserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DictionaryLookup", Handler: _TranslatorUser_DictionaryLookup_Handler, }, { MethodName: "DictionaryLookupWithPos", Handler: _TranslatorUser_DictionaryLookupWithPos_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/translator_user.proto", }
TranslatorUser_ServiceDesc is the grpc.ServiceDesc for TranslatorUser service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTranslatorAdminServer ¶
func RegisterTranslatorAdminServer(s grpc.ServiceRegistrar, srv TranslatorAdminServer)
func RegisterTranslatorUserServer ¶
func RegisterTranslatorUserServer(s grpc.ServiceRegistrar, srv TranslatorUserServer)
Types ¶
type DictionaryLookupParameter ¶
type DictionaryLookupParameter struct { FromLang2 string `protobuf:"bytes,1,opt,name=fromLang2,proto3" json:"fromLang2,omitempty"` ToLang2 string `protobuf:"bytes,2,opt,name=toLang2,proto3" json:"toLang2,omitempty"` Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
func (*DictionaryLookupParameter) Descriptor
deprecated
func (*DictionaryLookupParameter) Descriptor() ([]byte, []int)
Deprecated: Use DictionaryLookupParameter.ProtoReflect.Descriptor instead.
func (*DictionaryLookupParameter) GetFromLang2 ¶
func (x *DictionaryLookupParameter) GetFromLang2() string
func (*DictionaryLookupParameter) GetText ¶
func (x *DictionaryLookupParameter) GetText() string
func (*DictionaryLookupParameter) GetToLang2 ¶
func (x *DictionaryLookupParameter) GetToLang2() string
func (*DictionaryLookupParameter) ProtoMessage ¶
func (*DictionaryLookupParameter) ProtoMessage()
func (*DictionaryLookupParameter) ProtoReflect ¶
func (x *DictionaryLookupParameter) ProtoReflect() protoreflect.Message
func (*DictionaryLookupParameter) Reset ¶
func (x *DictionaryLookupParameter) Reset()
func (*DictionaryLookupParameter) String ¶
func (x *DictionaryLookupParameter) String() string
type DictionaryLookupResponse ¶
type DictionaryLookupResponse struct { Result *DictionaryResponse `protobuf:"bytes,1,opt,name=Result,proto3" json:"Result,omitempty"` // contains filtered or unexported fields }
func (*DictionaryLookupResponse) Descriptor
deprecated
func (*DictionaryLookupResponse) Descriptor() ([]byte, []int)
Deprecated: Use DictionaryLookupResponse.ProtoReflect.Descriptor instead.
func (*DictionaryLookupResponse) GetResult ¶
func (x *DictionaryLookupResponse) GetResult() *DictionaryResponse
func (*DictionaryLookupResponse) ProtoMessage ¶
func (*DictionaryLookupResponse) ProtoMessage()
func (*DictionaryLookupResponse) ProtoReflect ¶
func (x *DictionaryLookupResponse) ProtoReflect() protoreflect.Message
func (*DictionaryLookupResponse) Reset ¶
func (x *DictionaryLookupResponse) Reset()
func (*DictionaryLookupResponse) String ¶
func (x *DictionaryLookupResponse) String() string
type DictionaryLookupResponses ¶
type DictionaryLookupResponses struct { Results []*DictionaryResponse `protobuf:"bytes,1,rep,name=Results,proto3" json:"Results,omitempty"` // contains filtered or unexported fields }
func (*DictionaryLookupResponses) Descriptor
deprecated
func (*DictionaryLookupResponses) Descriptor() ([]byte, []int)
Deprecated: Use DictionaryLookupResponses.ProtoReflect.Descriptor instead.
func (*DictionaryLookupResponses) GetResults ¶
func (x *DictionaryLookupResponses) GetResults() []*DictionaryResponse
func (*DictionaryLookupResponses) ProtoMessage ¶
func (*DictionaryLookupResponses) ProtoMessage()
func (*DictionaryLookupResponses) ProtoReflect ¶
func (x *DictionaryLookupResponses) ProtoReflect() protoreflect.Message
func (*DictionaryLookupResponses) Reset ¶
func (x *DictionaryLookupResponses) Reset()
func (*DictionaryLookupResponses) String ¶
func (x *DictionaryLookupResponses) String() string
type DictionaryLookupWithPosParameter ¶
type DictionaryLookupWithPosParameter struct { FromLang2 string `protobuf:"bytes,1,opt,name=fromLang2,proto3" json:"fromLang2,omitempty"` ToLang2 string `protobuf:"bytes,2,opt,name=toLang2,proto3" json:"toLang2,omitempty"` Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` Pos int32 `protobuf:"varint,4,opt,name=pos,proto3" json:"pos,omitempty"` // contains filtered or unexported fields }
func (*DictionaryLookupWithPosParameter) Descriptor
deprecated
func (*DictionaryLookupWithPosParameter) Descriptor() ([]byte, []int)
Deprecated: Use DictionaryLookupWithPosParameter.ProtoReflect.Descriptor instead.
func (*DictionaryLookupWithPosParameter) GetFromLang2 ¶
func (x *DictionaryLookupWithPosParameter) GetFromLang2() string
func (*DictionaryLookupWithPosParameter) GetPos ¶
func (x *DictionaryLookupWithPosParameter) GetPos() int32
func (*DictionaryLookupWithPosParameter) GetText ¶
func (x *DictionaryLookupWithPosParameter) GetText() string
func (*DictionaryLookupWithPosParameter) GetToLang2 ¶
func (x *DictionaryLookupWithPosParameter) GetToLang2() string
func (*DictionaryLookupWithPosParameter) ProtoMessage ¶
func (*DictionaryLookupWithPosParameter) ProtoMessage()
func (*DictionaryLookupWithPosParameter) ProtoReflect ¶
func (x *DictionaryLookupWithPosParameter) ProtoReflect() protoreflect.Message
func (*DictionaryLookupWithPosParameter) Reset ¶
func (x *DictionaryLookupWithPosParameter) Reset()
func (*DictionaryLookupWithPosParameter) String ¶
func (x *DictionaryLookupWithPosParameter) String() string
type DictionaryResponse ¶
type DictionaryResponse struct { Lang2 string `protobuf:"bytes,1,opt,name=lang2,proto3" json:"lang2,omitempty"` Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` Pos int32 `protobuf:"varint,3,opt,name=pos,proto3" json:"pos,omitempty"` Translated string `protobuf:"bytes,4,opt,name=translated,proto3" json:"translated,omitempty"` Provider string `protobuf:"bytes,5,opt,name=provider,proto3" json:"provider,omitempty"` // contains filtered or unexported fields }
func (*DictionaryResponse) Descriptor
deprecated
func (*DictionaryResponse) Descriptor() ([]byte, []int)
Deprecated: Use DictionaryResponse.ProtoReflect.Descriptor instead.
func (*DictionaryResponse) GetLang2 ¶
func (x *DictionaryResponse) GetLang2() string
func (*DictionaryResponse) GetPos ¶
func (x *DictionaryResponse) GetPos() int32
func (*DictionaryResponse) GetProvider ¶
func (x *DictionaryResponse) GetProvider() string
func (*DictionaryResponse) GetText ¶
func (x *DictionaryResponse) GetText() string
func (*DictionaryResponse) GetTranslated ¶
func (x *DictionaryResponse) GetTranslated() string
func (*DictionaryResponse) ProtoMessage ¶
func (*DictionaryResponse) ProtoMessage()
func (*DictionaryResponse) ProtoReflect ¶
func (x *DictionaryResponse) ProtoReflect() protoreflect.Message
func (*DictionaryResponse) Reset ¶
func (x *DictionaryResponse) Reset()
func (*DictionaryResponse) String ¶
func (x *DictionaryResponse) String() string
type TranslationAddParameter ¶
type TranslationAddParameter struct { Lang2 string `protobuf:"bytes,1,opt,name=lang2,proto3" json:"lang2,omitempty"` Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` Pos int32 `protobuf:"varint,3,opt,name=pos,proto3" json:"pos,omitempty"` Translated string `protobuf:"bytes,4,opt,name=translated,proto3" json:"translated,omitempty"` // contains filtered or unexported fields }
func (*TranslationAddParameter) Descriptor
deprecated
func (*TranslationAddParameter) Descriptor() ([]byte, []int)
Deprecated: Use TranslationAddParameter.ProtoReflect.Descriptor instead.
func (*TranslationAddParameter) GetLang2 ¶
func (x *TranslationAddParameter) GetLang2() string
func (*TranslationAddParameter) GetPos ¶
func (x *TranslationAddParameter) GetPos() int32
func (*TranslationAddParameter) GetText ¶
func (x *TranslationAddParameter) GetText() string
func (*TranslationAddParameter) GetTranslated ¶
func (x *TranslationAddParameter) GetTranslated() string
func (*TranslationAddParameter) ProtoMessage ¶
func (*TranslationAddParameter) ProtoMessage()
func (*TranslationAddParameter) ProtoReflect ¶
func (x *TranslationAddParameter) ProtoReflect() protoreflect.Message
func (*TranslationAddParameter) Reset ¶
func (x *TranslationAddParameter) Reset()
func (*TranslationAddParameter) String ¶
func (x *TranslationAddParameter) String() string
type TranslationAddResponse ¶
type TranslationAddResponse struct {
// contains filtered or unexported fields
}
func (*TranslationAddResponse) Descriptor
deprecated
func (*TranslationAddResponse) Descriptor() ([]byte, []int)
Deprecated: Use TranslationAddResponse.ProtoReflect.Descriptor instead.
func (*TranslationAddResponse) ProtoMessage ¶
func (*TranslationAddResponse) ProtoMessage()
func (*TranslationAddResponse) ProtoReflect ¶
func (x *TranslationAddResponse) ProtoReflect() protoreflect.Message
func (*TranslationAddResponse) Reset ¶
func (x *TranslationAddResponse) Reset()
func (*TranslationAddResponse) String ¶
func (x *TranslationAddResponse) String() string
type TranslationFindByTextAndPosParameter ¶
type TranslationFindByTextAndPosParameter struct { Lang2 string `protobuf:"bytes,1,opt,name=lang2,proto3" json:"lang2,omitempty"` Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` Pos int32 `protobuf:"varint,3,opt,name=pos,proto3" json:"pos,omitempty"` // contains filtered or unexported fields }
func (*TranslationFindByTextAndPosParameter) Descriptor
deprecated
func (*TranslationFindByTextAndPosParameter) Descriptor() ([]byte, []int)
Deprecated: Use TranslationFindByTextAndPosParameter.ProtoReflect.Descriptor instead.
func (*TranslationFindByTextAndPosParameter) GetLang2 ¶
func (x *TranslationFindByTextAndPosParameter) GetLang2() string
func (*TranslationFindByTextAndPosParameter) GetPos ¶
func (x *TranslationFindByTextAndPosParameter) GetPos() int32
func (*TranslationFindByTextAndPosParameter) GetText ¶
func (x *TranslationFindByTextAndPosParameter) GetText() string
func (*TranslationFindByTextAndPosParameter) ProtoMessage ¶
func (*TranslationFindByTextAndPosParameter) ProtoMessage()
func (*TranslationFindByTextAndPosParameter) ProtoReflect ¶
func (x *TranslationFindByTextAndPosParameter) ProtoReflect() protoreflect.Message
func (*TranslationFindByTextAndPosParameter) Reset ¶
func (x *TranslationFindByTextAndPosParameter) Reset()
func (*TranslationFindByTextAndPosParameter) String ¶
func (x *TranslationFindByTextAndPosParameter) String() string
type TranslationFindByTextParameter ¶
type TranslationFindByTextParameter struct { Lang2 string `protobuf:"bytes,1,opt,name=lang2,proto3" json:"lang2,omitempty"` Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
func (*TranslationFindByTextParameter) Descriptor
deprecated
func (*TranslationFindByTextParameter) Descriptor() ([]byte, []int)
Deprecated: Use TranslationFindByTextParameter.ProtoReflect.Descriptor instead.
func (*TranslationFindByTextParameter) GetLang2 ¶
func (x *TranslationFindByTextParameter) GetLang2() string
func (*TranslationFindByTextParameter) GetText ¶
func (x *TranslationFindByTextParameter) GetText() string
func (*TranslationFindByTextParameter) ProtoMessage ¶
func (*TranslationFindByTextParameter) ProtoMessage()
func (*TranslationFindByTextParameter) ProtoReflect ¶
func (x *TranslationFindByTextParameter) ProtoReflect() protoreflect.Message
func (*TranslationFindByTextParameter) Reset ¶
func (x *TranslationFindByTextParameter) Reset()
func (*TranslationFindByTextParameter) String ¶
func (x *TranslationFindByTextParameter) String() string
type TranslationFindParameter ¶
type TranslationFindParameter struct { Lang2 string `protobuf:"bytes,1,opt,name=lang2,proto3" json:"lang2,omitempty"` Letter string `protobuf:"bytes,2,opt,name=letter,proto3" json:"letter,omitempty"` // contains filtered or unexported fields }
func (*TranslationFindParameter) Descriptor
deprecated
func (*TranslationFindParameter) Descriptor() ([]byte, []int)
Deprecated: Use TranslationFindParameter.ProtoReflect.Descriptor instead.
func (*TranslationFindParameter) GetLang2 ¶
func (x *TranslationFindParameter) GetLang2() string
func (*TranslationFindParameter) GetLetter ¶
func (x *TranslationFindParameter) GetLetter() string
func (*TranslationFindParameter) ProtoMessage ¶
func (*TranslationFindParameter) ProtoMessage()
func (*TranslationFindParameter) ProtoReflect ¶
func (x *TranslationFindParameter) ProtoReflect() protoreflect.Message
func (*TranslationFindParameter) Reset ¶
func (x *TranslationFindParameter) Reset()
func (*TranslationFindParameter) String ¶
func (x *TranslationFindParameter) String() string
type TranslationFindResposne ¶
type TranslationFindResposne struct { Results []*TranslationResponse `protobuf:"bytes,1,rep,name=Results,proto3" json:"Results,omitempty"` // contains filtered or unexported fields }
func (*TranslationFindResposne) Descriptor
deprecated
func (*TranslationFindResposne) Descriptor() ([]byte, []int)
Deprecated: Use TranslationFindResposne.ProtoReflect.Descriptor instead.
func (*TranslationFindResposne) GetResults ¶
func (x *TranslationFindResposne) GetResults() []*TranslationResponse
func (*TranslationFindResposne) ProtoMessage ¶
func (*TranslationFindResposne) ProtoMessage()
func (*TranslationFindResposne) ProtoReflect ¶
func (x *TranslationFindResposne) ProtoReflect() protoreflect.Message
func (*TranslationFindResposne) Reset ¶
func (x *TranslationFindResposne) Reset()
func (*TranslationFindResposne) String ¶
func (x *TranslationFindResposne) String() string
type TranslationRemoveParameter ¶
type TranslationRemoveParameter struct { Lang2 string `protobuf:"bytes,1,opt,name=lang2,proto3" json:"lang2,omitempty"` Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` Pos int32 `protobuf:"varint,3,opt,name=pos,proto3" json:"pos,omitempty"` // contains filtered or unexported fields }
func (*TranslationRemoveParameter) Descriptor
deprecated
func (*TranslationRemoveParameter) Descriptor() ([]byte, []int)
Deprecated: Use TranslationRemoveParameter.ProtoReflect.Descriptor instead.
func (*TranslationRemoveParameter) GetLang2 ¶
func (x *TranslationRemoveParameter) GetLang2() string
func (*TranslationRemoveParameter) GetPos ¶
func (x *TranslationRemoveParameter) GetPos() int32
func (*TranslationRemoveParameter) GetText ¶
func (x *TranslationRemoveParameter) GetText() string
func (*TranslationRemoveParameter) ProtoMessage ¶
func (*TranslationRemoveParameter) ProtoMessage()
func (*TranslationRemoveParameter) ProtoReflect ¶
func (x *TranslationRemoveParameter) ProtoReflect() protoreflect.Message
func (*TranslationRemoveParameter) Reset ¶
func (x *TranslationRemoveParameter) Reset()
func (*TranslationRemoveParameter) String ¶
func (x *TranslationRemoveParameter) String() string
type TranslationRemoveResponse ¶
type TranslationRemoveResponse struct {
// contains filtered or unexported fields
}
func (*TranslationRemoveResponse) Descriptor
deprecated
func (*TranslationRemoveResponse) Descriptor() ([]byte, []int)
Deprecated: Use TranslationRemoveResponse.ProtoReflect.Descriptor instead.
func (*TranslationRemoveResponse) ProtoMessage ¶
func (*TranslationRemoveResponse) ProtoMessage()
func (*TranslationRemoveResponse) ProtoReflect ¶
func (x *TranslationRemoveResponse) ProtoReflect() protoreflect.Message
func (*TranslationRemoveResponse) Reset ¶
func (x *TranslationRemoveResponse) Reset()
func (*TranslationRemoveResponse) String ¶
func (x *TranslationRemoveResponse) String() string
type TranslationResponse ¶
type TranslationResponse struct { Lang2 string `protobuf:"bytes,1,opt,name=lang2,proto3" json:"lang2,omitempty"` Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` Pos int32 `protobuf:"varint,3,opt,name=pos,proto3" json:"pos,omitempty"` Translated string `protobuf:"bytes,4,opt,name=translated,proto3" json:"translated,omitempty"` Provider string `protobuf:"bytes,5,opt,name=provider,proto3" json:"provider,omitempty"` // contains filtered or unexported fields }
func (*TranslationResponse) Descriptor
deprecated
func (*TranslationResponse) Descriptor() ([]byte, []int)
Deprecated: Use TranslationResponse.ProtoReflect.Descriptor instead.
func (*TranslationResponse) GetLang2 ¶
func (x *TranslationResponse) GetLang2() string
func (*TranslationResponse) GetPos ¶
func (x *TranslationResponse) GetPos() int32
func (*TranslationResponse) GetProvider ¶
func (x *TranslationResponse) GetProvider() string
func (*TranslationResponse) GetText ¶
func (x *TranslationResponse) GetText() string
func (*TranslationResponse) GetTranslated ¶
func (x *TranslationResponse) GetTranslated() string
func (*TranslationResponse) ProtoMessage ¶
func (*TranslationResponse) ProtoMessage()
func (*TranslationResponse) ProtoReflect ¶
func (x *TranslationResponse) ProtoReflect() protoreflect.Message
func (*TranslationResponse) Reset ¶
func (x *TranslationResponse) Reset()
func (*TranslationResponse) String ¶
func (x *TranslationResponse) String() string
type TranslationUpdateParameter ¶
type TranslationUpdateParameter struct { Lang2 string `protobuf:"bytes,1,opt,name=lang2,proto3" json:"lang2,omitempty"` Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` Pos int32 `protobuf:"varint,3,opt,name=pos,proto3" json:"pos,omitempty"` Translated string `protobuf:"bytes,4,opt,name=translated,proto3" json:"translated,omitempty"` // contains filtered or unexported fields }
func (*TranslationUpdateParameter) Descriptor
deprecated
func (*TranslationUpdateParameter) Descriptor() ([]byte, []int)
Deprecated: Use TranslationUpdateParameter.ProtoReflect.Descriptor instead.
func (*TranslationUpdateParameter) GetLang2 ¶
func (x *TranslationUpdateParameter) GetLang2() string
func (*TranslationUpdateParameter) GetPos ¶
func (x *TranslationUpdateParameter) GetPos() int32
func (*TranslationUpdateParameter) GetText ¶
func (x *TranslationUpdateParameter) GetText() string
func (*TranslationUpdateParameter) GetTranslated ¶
func (x *TranslationUpdateParameter) GetTranslated() string
func (*TranslationUpdateParameter) ProtoMessage ¶
func (*TranslationUpdateParameter) ProtoMessage()
func (*TranslationUpdateParameter) ProtoReflect ¶
func (x *TranslationUpdateParameter) ProtoReflect() protoreflect.Message
func (*TranslationUpdateParameter) Reset ¶
func (x *TranslationUpdateParameter) Reset()
func (*TranslationUpdateParameter) String ¶
func (x *TranslationUpdateParameter) String() string
type TranslationUpdateResponse ¶
type TranslationUpdateResponse struct {
// contains filtered or unexported fields
}
func (*TranslationUpdateResponse) Descriptor
deprecated
func (*TranslationUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use TranslationUpdateResponse.ProtoReflect.Descriptor instead.
func (*TranslationUpdateResponse) ProtoMessage ¶
func (*TranslationUpdateResponse) ProtoMessage()
func (*TranslationUpdateResponse) ProtoReflect ¶
func (x *TranslationUpdateResponse) ProtoReflect() protoreflect.Message
func (*TranslationUpdateResponse) Reset ¶
func (x *TranslationUpdateResponse) Reset()
func (*TranslationUpdateResponse) String ¶
func (x *TranslationUpdateResponse) String() string
type TranslatorAdminClient ¶
type TranslatorAdminClient interface { FindTranslationsByFirstLetter(ctx context.Context, in *TranslationFindParameter, opts ...grpc.CallOption) (*TranslationFindResposne, error) FindTranslationByTextAndPos(ctx context.Context, in *TranslationFindByTextAndPosParameter, opts ...grpc.CallOption) (*TranslationResponse, error) FindTranslationsByText(ctx context.Context, in *TranslationFindByTextParameter, opts ...grpc.CallOption) (*TranslationFindResposne, error) AddTranslation(ctx context.Context, in *TranslationAddParameter, opts ...grpc.CallOption) (*TranslationAddResponse, error) UpdateTranslation(ctx context.Context, in *TranslationUpdateParameter, opts ...grpc.CallOption) (*TranslationAddResponse, error) RemoveTranslation(ctx context.Context, in *TranslationRemoveParameter, opts ...grpc.CallOption) (*TranslationRemoveResponse, error) }
TranslatorAdminClient is the client API for TranslatorAdmin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTranslatorAdminClient ¶
func NewTranslatorAdminClient(cc grpc.ClientConnInterface) TranslatorAdminClient
type TranslatorAdminServer ¶
type TranslatorAdminServer interface { FindTranslationsByFirstLetter(context.Context, *TranslationFindParameter) (*TranslationFindResposne, error) FindTranslationByTextAndPos(context.Context, *TranslationFindByTextAndPosParameter) (*TranslationResponse, error) FindTranslationsByText(context.Context, *TranslationFindByTextParameter) (*TranslationFindResposne, error) AddTranslation(context.Context, *TranslationAddParameter) (*TranslationAddResponse, error) UpdateTranslation(context.Context, *TranslationUpdateParameter) (*TranslationAddResponse, error) RemoveTranslation(context.Context, *TranslationRemoveParameter) (*TranslationRemoveResponse, error) // contains filtered or unexported methods }
TranslatorAdminServer is the server API for TranslatorAdmin service. All implementations must embed UnimplementedTranslatorAdminServer for forward compatibility
type TranslatorUserClient ¶
type TranslatorUserClient interface { DictionaryLookup(ctx context.Context, in *DictionaryLookupParameter, opts ...grpc.CallOption) (*DictionaryLookupResponses, error) DictionaryLookupWithPos(ctx context.Context, in *DictionaryLookupWithPosParameter, opts ...grpc.CallOption) (*DictionaryLookupResponse, error) }
TranslatorUserClient is the client API for TranslatorUser service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTranslatorUserClient ¶
func NewTranslatorUserClient(cc grpc.ClientConnInterface) TranslatorUserClient
type TranslatorUserServer ¶
type TranslatorUserServer interface { DictionaryLookup(context.Context, *DictionaryLookupParameter) (*DictionaryLookupResponses, error) DictionaryLookupWithPos(context.Context, *DictionaryLookupWithPosParameter) (*DictionaryLookupResponse, error) // contains filtered or unexported methods }
TranslatorUserServer is the server API for TranslatorUser service. All implementations must embed UnimplementedTranslatorUserServer for forward compatibility
type UnimplementedTranslatorAdminServer ¶
type UnimplementedTranslatorAdminServer struct { }
UnimplementedTranslatorAdminServer must be embedded to have forward compatible implementations.
func (UnimplementedTranslatorAdminServer) AddTranslation ¶
func (UnimplementedTranslatorAdminServer) AddTranslation(context.Context, *TranslationAddParameter) (*TranslationAddResponse, error)
func (UnimplementedTranslatorAdminServer) FindTranslationByTextAndPos ¶
func (UnimplementedTranslatorAdminServer) FindTranslationByTextAndPos(context.Context, *TranslationFindByTextAndPosParameter) (*TranslationResponse, error)
func (UnimplementedTranslatorAdminServer) FindTranslationsByFirstLetter ¶
func (UnimplementedTranslatorAdminServer) FindTranslationsByFirstLetter(context.Context, *TranslationFindParameter) (*TranslationFindResposne, error)
func (UnimplementedTranslatorAdminServer) FindTranslationsByText ¶
func (UnimplementedTranslatorAdminServer) FindTranslationsByText(context.Context, *TranslationFindByTextParameter) (*TranslationFindResposne, error)
func (UnimplementedTranslatorAdminServer) RemoveTranslation ¶
func (UnimplementedTranslatorAdminServer) RemoveTranslation(context.Context, *TranslationRemoveParameter) (*TranslationRemoveResponse, error)
func (UnimplementedTranslatorAdminServer) UpdateTranslation ¶
func (UnimplementedTranslatorAdminServer) UpdateTranslation(context.Context, *TranslationUpdateParameter) (*TranslationAddResponse, error)
type UnimplementedTranslatorUserServer ¶
type UnimplementedTranslatorUserServer struct { }
UnimplementedTranslatorUserServer must be embedded to have forward compatible implementations.
func (UnimplementedTranslatorUserServer) DictionaryLookup ¶
func (UnimplementedTranslatorUserServer) DictionaryLookup(context.Context, *DictionaryLookupParameter) (*DictionaryLookupResponses, error)
func (UnimplementedTranslatorUserServer) DictionaryLookupWithPos ¶
func (UnimplementedTranslatorUserServer) DictionaryLookupWithPos(context.Context, *DictionaryLookupWithPosParameter) (*DictionaryLookupResponse, error)
type UnsafeTranslatorAdminServer ¶
type UnsafeTranslatorAdminServer interface {
// contains filtered or unexported methods
}
UnsafeTranslatorAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TranslatorAdminServer will result in compilation errors.
type UnsafeTranslatorUserServer ¶
type UnsafeTranslatorUserServer interface {
// contains filtered or unexported methods
}
UnsafeTranslatorUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TranslatorUserServer will result in compilation errors.