translationsv1alpha1

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TranslationsService_TranslateTemplate_FullMethodName            = "/services.translations.v1alpha1.TranslationsService/TranslateTemplate"
	TranslationsService_ListTranslations_FullMethodName             = "/services.translations.v1alpha1.TranslationsService/ListTranslations"
	TranslationsService_ListLanguages_FullMethodName                = "/services.translations.v1alpha1.TranslationsService/ListLanguages"
	TranslationsService_ListContexts_FullMethodName                 = "/services.translations.v1alpha1.TranslationsService/ListContexts"
	TranslationsService_CreateTranslation_FullMethodName            = "/services.translations.v1alpha1.TranslationsService/CreateTranslation"
	TranslationsService_UpdateTranslation_FullMethodName            = "/services.translations.v1alpha1.TranslationsService/UpdateTranslation"
	TranslationsService_TriggerLLMTranslation_FullMethodName        = "/services.translations.v1alpha1.TranslationsService/TriggerLLMTranslation"
	TranslationsService_TriggerLLMTranslations_FullMethodName       = "/services.translations.v1alpha1.TranslationsService/TriggerLLMTranslations"
	TranslationsService_SetSystemMessage_FullMethodName             = "/services.translations.v1alpha1.TranslationsService/SetSystemMessage"
	TranslationsService_GetSystemMessage_FullMethodName             = "/services.translations.v1alpha1.TranslationsService/GetSystemMessage"
	TranslationsService_TestSystemMessage_FullMethodName            = "/services.translations.v1alpha1.TranslationsService/TestSystemMessage"
	TranslationsService_EnableContext_FullMethodName                = "/services.translations.v1alpha1.TranslationsService/EnableContext"
	TranslationsService_DisableContext_FullMethodName               = "/services.translations.v1alpha1.TranslationsService/DisableContext"
	TranslationsService_DeleteTranslationsByTemplate_FullMethodName = "/services.translations.v1alpha1.TranslationsService/DeleteTranslationsByTemplate"
	TranslationsService_BulkDeleteTranslations_FullMethodName       = "/services.translations.v1alpha1.TranslationsService/BulkDeleteTranslations"
)

Variables

View Source
var File_services_translations_v1alpha1_entities_proto protoreflect.FileDescriptor
View Source
var File_services_translations_v1alpha1_service_proto protoreflect.FileDescriptor
View Source
var TranslationsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "services.translations.v1alpha1.TranslationsService",
	HandlerType: (*TranslationsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "TranslateTemplate",
			Handler:    _TranslationsService_TranslateTemplate_Handler,
		},
		{
			MethodName: "ListTranslations",
			Handler:    _TranslationsService_ListTranslations_Handler,
		},
		{
			MethodName: "ListLanguages",
			Handler:    _TranslationsService_ListLanguages_Handler,
		},
		{
			MethodName: "ListContexts",
			Handler:    _TranslationsService_ListContexts_Handler,
		},
		{
			MethodName: "CreateTranslation",
			Handler:    _TranslationsService_CreateTranslation_Handler,
		},
		{
			MethodName: "UpdateTranslation",
			Handler:    _TranslationsService_UpdateTranslation_Handler,
		},
		{
			MethodName: "TriggerLLMTranslation",
			Handler:    _TranslationsService_TriggerLLMTranslation_Handler,
		},
		{
			MethodName: "TriggerLLMTranslations",
			Handler:    _TranslationsService_TriggerLLMTranslations_Handler,
		},
		{
			MethodName: "SetSystemMessage",
			Handler:    _TranslationsService_SetSystemMessage_Handler,
		},
		{
			MethodName: "GetSystemMessage",
			Handler:    _TranslationsService_GetSystemMessage_Handler,
		},
		{
			MethodName: "TestSystemMessage",
			Handler:    _TranslationsService_TestSystemMessage_Handler,
		},
		{
			MethodName: "EnableContext",
			Handler:    _TranslationsService_EnableContext_Handler,
		},
		{
			MethodName: "DisableContext",
			Handler:    _TranslationsService_DisableContext_Handler,
		},
		{
			MethodName: "DeleteTranslationsByTemplate",
			Handler:    _TranslationsService_DeleteTranslationsByTemplate_Handler,
		},
		{
			MethodName: "BulkDeleteTranslations",
			Handler:    _TranslationsService_BulkDeleteTranslations_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "services/translations/v1alpha1/service.proto",
}

TranslationsService_ServiceDesc is the grpc.ServiceDesc for TranslationsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTranslationsServiceServer

func RegisterTranslationsServiceServer(s grpc.ServiceRegistrar, srv TranslationsServiceServer)

Types

type BulkDeleteTranslationsRequest added in v1.8.13

type BulkDeleteTranslationsRequest struct {
	TranslationIds []string `protobuf:"bytes,1,rep,name=translation_ids,json=translationIds,proto3" json:"translation_ids,omitempty"`
	// contains filtered or unexported fields
}

Req/Res for bulk deleting translations

func (*BulkDeleteTranslationsRequest) Descriptor deprecated added in v1.8.13

func (*BulkDeleteTranslationsRequest) Descriptor() ([]byte, []int)

Deprecated: Use BulkDeleteTranslationsRequest.ProtoReflect.Descriptor instead.

func (*BulkDeleteTranslationsRequest) GetTranslationIds added in v1.8.13

func (x *BulkDeleteTranslationsRequest) GetTranslationIds() []string

func (*BulkDeleteTranslationsRequest) ProtoMessage added in v1.8.13

func (*BulkDeleteTranslationsRequest) ProtoMessage()

func (*BulkDeleteTranslationsRequest) ProtoReflect added in v1.8.13

func (*BulkDeleteTranslationsRequest) Reset added in v1.8.13

func (x *BulkDeleteTranslationsRequest) Reset()

func (*BulkDeleteTranslationsRequest) String added in v1.8.13

type BulkDeleteTranslationsResponse added in v1.8.13

type BulkDeleteTranslationsResponse struct {
	// contains filtered or unexported fields
}

func (*BulkDeleteTranslationsResponse) Descriptor deprecated added in v1.8.13

func (*BulkDeleteTranslationsResponse) Descriptor() ([]byte, []int)

Deprecated: Use BulkDeleteTranslationsResponse.ProtoReflect.Descriptor instead.

func (*BulkDeleteTranslationsResponse) ProtoMessage added in v1.8.13

func (*BulkDeleteTranslationsResponse) ProtoMessage()

func (*BulkDeleteTranslationsResponse) ProtoReflect added in v1.8.13

func (*BulkDeleteTranslationsResponse) Reset added in v1.8.13

func (x *BulkDeleteTranslationsResponse) Reset()

func (*BulkDeleteTranslationsResponse) String added in v1.8.13

type CreateTranslationRequest added in v1.8.24

type CreateTranslationRequest struct {

	// The context of the translation.
	Context string `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
	// The original template.
	Template string `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"`
	// The BCP 47 language tag of the translation.
	LanguageTag string `protobuf:"bytes,3,opt,name=language_tag,json=languageTag,proto3" json:"language_tag,omitempty"`
	// The new translation.
	Translation string `protobuf:"bytes,4,opt,name=translation,proto3" json:"translation,omitempty"`
	// contains filtered or unexported fields
}

CreateTranslationRequest is the request message for the CreateTranslation method. Takes a template, language and a new translation.

func (*CreateTranslationRequest) Descriptor deprecated added in v1.8.24

func (*CreateTranslationRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateTranslationRequest.ProtoReflect.Descriptor instead.

func (*CreateTranslationRequest) GetContext added in v1.8.24

func (x *CreateTranslationRequest) GetContext() string

func (*CreateTranslationRequest) GetLanguageTag added in v1.8.24

func (x *CreateTranslationRequest) GetLanguageTag() string

func (*CreateTranslationRequest) GetTemplate added in v1.8.24

func (x *CreateTranslationRequest) GetTemplate() string

func (*CreateTranslationRequest) GetTranslation added in v1.8.24

func (x *CreateTranslationRequest) GetTranslation() string

func (*CreateTranslationRequest) ProtoMessage added in v1.8.24

func (*CreateTranslationRequest) ProtoMessage()

func (*CreateTranslationRequest) ProtoReflect added in v1.8.24

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

func (*CreateTranslationRequest) Reset added in v1.8.24

func (x *CreateTranslationRequest) Reset()

func (*CreateTranslationRequest) String added in v1.8.24

func (x *CreateTranslationRequest) String() string

type CreateTranslationResponse added in v1.8.24

type CreateTranslationResponse struct {

	// The created translation.
	Translation *Translation `protobuf:"bytes,1,opt,name=translation,proto3" json:"translation,omitempty"`
	// contains filtered or unexported fields
}

CreateTranslationResponse is the response message for the CreateTranslation method.

func (*CreateTranslationResponse) Descriptor deprecated added in v1.8.24

func (*CreateTranslationResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateTranslationResponse.ProtoReflect.Descriptor instead.

func (*CreateTranslationResponse) GetTranslation added in v1.8.24

func (x *CreateTranslationResponse) GetTranslation() *Translation

func (*CreateTranslationResponse) ProtoMessage added in v1.8.24

func (*CreateTranslationResponse) ProtoMessage()

func (*CreateTranslationResponse) ProtoReflect added in v1.8.24

func (*CreateTranslationResponse) Reset added in v1.8.24

func (x *CreateTranslationResponse) Reset()

func (*CreateTranslationResponse) String added in v1.8.24

func (x *CreateTranslationResponse) String() string

type DeleteTranslationsByTemplateRequest added in v1.8.26

type DeleteTranslationsByTemplateRequest struct {

	// The original template for the translations.
	Template string `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
	// The context of the translation.
	Context string `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

Req/Res for deleting translations by template and context

func (*DeleteTranslationsByTemplateRequest) Descriptor deprecated added in v1.8.26

func (*DeleteTranslationsByTemplateRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteTranslationsByTemplateRequest.ProtoReflect.Descriptor instead.

func (*DeleteTranslationsByTemplateRequest) GetContext added in v1.8.26

func (*DeleteTranslationsByTemplateRequest) GetTemplate added in v1.8.26

func (*DeleteTranslationsByTemplateRequest) ProtoMessage added in v1.8.26

func (*DeleteTranslationsByTemplateRequest) ProtoMessage()

func (*DeleteTranslationsByTemplateRequest) ProtoReflect added in v1.8.26

func (*DeleteTranslationsByTemplateRequest) Reset added in v1.8.26

func (*DeleteTranslationsByTemplateRequest) String added in v1.8.26

type DeleteTranslationsByTemplateResponse added in v1.8.26

type DeleteTranslationsByTemplateResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteTranslationsByTemplateResponse) Descriptor deprecated added in v1.8.26

func (*DeleteTranslationsByTemplateResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteTranslationsByTemplateResponse.ProtoReflect.Descriptor instead.

func (*DeleteTranslationsByTemplateResponse) ProtoMessage added in v1.8.26

func (*DeleteTranslationsByTemplateResponse) ProtoMessage()

func (*DeleteTranslationsByTemplateResponse) ProtoReflect added in v1.8.26

func (*DeleteTranslationsByTemplateResponse) Reset added in v1.8.26

func (*DeleteTranslationsByTemplateResponse) String added in v1.8.26

type DisableContextRequest added in v1.8.13

type DisableContextRequest struct {
	Context string `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

Req/Res for disabling a context

func (*DisableContextRequest) Descriptor deprecated added in v1.8.13

func (*DisableContextRequest) Descriptor() ([]byte, []int)

Deprecated: Use DisableContextRequest.ProtoReflect.Descriptor instead.

func (*DisableContextRequest) GetContext added in v1.8.13

func (x *DisableContextRequest) GetContext() string

func (*DisableContextRequest) ProtoMessage added in v1.8.13

func (*DisableContextRequest) ProtoMessage()

func (*DisableContextRequest) ProtoReflect added in v1.8.13

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

func (*DisableContextRequest) Reset added in v1.8.13

func (x *DisableContextRequest) Reset()

func (*DisableContextRequest) String added in v1.8.13

func (x *DisableContextRequest) String() string

type DisableContextResponse added in v1.8.13

type DisableContextResponse struct {
	// contains filtered or unexported fields
}

func (*DisableContextResponse) Descriptor deprecated added in v1.8.13

func (*DisableContextResponse) Descriptor() ([]byte, []int)

Deprecated: Use DisableContextResponse.ProtoReflect.Descriptor instead.

func (*DisableContextResponse) ProtoMessage added in v1.8.13

func (*DisableContextResponse) ProtoMessage()

func (*DisableContextResponse) ProtoReflect added in v1.8.13

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

func (*DisableContextResponse) Reset added in v1.8.13

func (x *DisableContextResponse) Reset()

func (*DisableContextResponse) String added in v1.8.13

func (x *DisableContextResponse) String() string

type EnableContextRequest added in v1.8.13

type EnableContextRequest struct {
	Context string `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

Req/Res for enabling a context

func (*EnableContextRequest) Descriptor deprecated added in v1.8.13

func (*EnableContextRequest) Descriptor() ([]byte, []int)

Deprecated: Use EnableContextRequest.ProtoReflect.Descriptor instead.

func (*EnableContextRequest) GetContext added in v1.8.13

func (x *EnableContextRequest) GetContext() string

func (*EnableContextRequest) ProtoMessage added in v1.8.13

func (*EnableContextRequest) ProtoMessage()

func (*EnableContextRequest) ProtoReflect added in v1.8.13

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

func (*EnableContextRequest) Reset added in v1.8.13

func (x *EnableContextRequest) Reset()

func (*EnableContextRequest) String added in v1.8.13

func (x *EnableContextRequest) String() string

type EnableContextResponse added in v1.8.13

type EnableContextResponse struct {
	// contains filtered or unexported fields
}

func (*EnableContextResponse) Descriptor deprecated added in v1.8.13

func (*EnableContextResponse) Descriptor() ([]byte, []int)

Deprecated: Use EnableContextResponse.ProtoReflect.Descriptor instead.

func (*EnableContextResponse) ProtoMessage added in v1.8.13

func (*EnableContextResponse) ProtoMessage()

func (*EnableContextResponse) ProtoReflect added in v1.8.13

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

func (*EnableContextResponse) Reset added in v1.8.13

func (x *EnableContextResponse) Reset()

func (*EnableContextResponse) String added in v1.8.13

func (x *EnableContextResponse) String() string

type GetSystemMessageRequest added in v1.8.5

type GetSystemMessageRequest struct {

	// The context to get the system message for.
	Context string `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

GetSystemMessageRequest is the request message for the GetSystemMessage method. Takes a context and returns the system message.

func (*GetSystemMessageRequest) Descriptor deprecated added in v1.8.5

func (*GetSystemMessageRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSystemMessageRequest.ProtoReflect.Descriptor instead.

func (*GetSystemMessageRequest) GetContext added in v1.8.5

func (x *GetSystemMessageRequest) GetContext() string

func (*GetSystemMessageRequest) ProtoMessage added in v1.8.5

func (*GetSystemMessageRequest) ProtoMessage()

func (*GetSystemMessageRequest) ProtoReflect added in v1.8.5

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

func (*GetSystemMessageRequest) Reset added in v1.8.5

func (x *GetSystemMessageRequest) Reset()

func (*GetSystemMessageRequest) String added in v1.8.5

func (x *GetSystemMessageRequest) String() string

type GetSystemMessageResponse added in v1.8.5

type GetSystemMessageResponse struct {

	// The system message.
	SystemMessage string `protobuf:"bytes,1,opt,name=system_message,json=systemMessage,proto3" json:"system_message,omitempty"`
	// contains filtered or unexported fields
}

GetSystemMessageResponse is the response message for the GetSystemMessage method.

func (*GetSystemMessageResponse) Descriptor deprecated added in v1.8.5

func (*GetSystemMessageResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetSystemMessageResponse.ProtoReflect.Descriptor instead.

func (*GetSystemMessageResponse) GetSystemMessage added in v1.8.5

func (x *GetSystemMessageResponse) GetSystemMessage() string

func (*GetSystemMessageResponse) ProtoMessage added in v1.8.5

func (*GetSystemMessageResponse) ProtoMessage()

func (*GetSystemMessageResponse) ProtoReflect added in v1.8.5

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

func (*GetSystemMessageResponse) Reset added in v1.8.5

func (x *GetSystemMessageResponse) Reset()

func (*GetSystemMessageResponse) String added in v1.8.5

func (x *GetSystemMessageResponse) String() string

type ListContextsRequest added in v1.8.8

type ListContextsRequest struct {
	// contains filtered or unexported fields
}

Req/Res for listing contexts

func (*ListContextsRequest) Descriptor deprecated added in v1.8.8

func (*ListContextsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListContextsRequest.ProtoReflect.Descriptor instead.

func (*ListContextsRequest) ProtoMessage added in v1.8.8

func (*ListContextsRequest) ProtoMessage()

func (*ListContextsRequest) ProtoReflect added in v1.8.8

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

func (*ListContextsRequest) Reset added in v1.8.8

func (x *ListContextsRequest) Reset()

func (*ListContextsRequest) String added in v1.8.8

func (x *ListContextsRequest) String() string

type ListContextsResponse added in v1.8.8

type ListContextsResponse struct {

	// This is still populated for backwards compatibility
	Contexts             []string               `protobuf:"bytes,1,rep,name=contexts,proto3" json:"contexts,omitempty"` // Use ListContextsResponse.localization_contexts instead
	LocalizationContexts []*LocalizationContext `protobuf:"bytes,2,rep,name=localization_contexts,json=localizationContexts,proto3" json:"localization_contexts,omitempty"`
	// contains filtered or unexported fields
}

func (*ListContextsResponse) Descriptor deprecated added in v1.8.8

func (*ListContextsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListContextsResponse.ProtoReflect.Descriptor instead.

func (*ListContextsResponse) GetContexts added in v1.8.8

func (x *ListContextsResponse) GetContexts() []string

func (*ListContextsResponse) GetLocalizationContexts added in v1.8.13

func (x *ListContextsResponse) GetLocalizationContexts() []*LocalizationContext

func (*ListContextsResponse) ProtoMessage added in v1.8.8

func (*ListContextsResponse) ProtoMessage()

func (*ListContextsResponse) ProtoReflect added in v1.8.8

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

func (*ListContextsResponse) Reset added in v1.8.8

func (x *ListContextsResponse) Reset()

func (*ListContextsResponse) String added in v1.8.8

func (x *ListContextsResponse) String() string

type ListLanguagesRequest added in v1.8.7

type ListLanguagesRequest struct {
	// contains filtered or unexported fields
}

Req/Res for listing languages

func (*ListLanguagesRequest) Descriptor deprecated added in v1.8.7

func (*ListLanguagesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListLanguagesRequest.ProtoReflect.Descriptor instead.

func (*ListLanguagesRequest) ProtoMessage added in v1.8.7

func (*ListLanguagesRequest) ProtoMessage()

func (*ListLanguagesRequest) ProtoReflect added in v1.8.7

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

func (*ListLanguagesRequest) Reset added in v1.8.7

func (x *ListLanguagesRequest) Reset()

func (*ListLanguagesRequest) String added in v1.8.7

func (x *ListLanguagesRequest) String() string

type ListLanguagesResponse added in v1.8.7

type ListLanguagesResponse struct {
	Languages []*LocalizationLanguage `protobuf:"bytes,1,rep,name=languages,proto3" json:"languages,omitempty"`
	// contains filtered or unexported fields
}

func (*ListLanguagesResponse) Descriptor deprecated added in v1.8.7

func (*ListLanguagesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListLanguagesResponse.ProtoReflect.Descriptor instead.

func (*ListLanguagesResponse) GetLanguages added in v1.8.7

func (x *ListLanguagesResponse) GetLanguages() []*LocalizationLanguage

func (*ListLanguagesResponse) ProtoMessage added in v1.8.7

func (*ListLanguagesResponse) ProtoMessage()

func (*ListLanguagesResponse) ProtoReflect added in v1.8.7

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

func (*ListLanguagesResponse) Reset added in v1.8.7

func (x *ListLanguagesResponse) Reset()

func (*ListLanguagesResponse) String added in v1.8.7

func (x *ListLanguagesResponse) String() string

type ListTranslationsRequest added in v1.8.5

type ListTranslationsRequest struct {

	// The context of the translations.
	Context string `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
	// The BCP 47 language tag of the translations.
	LanguageTag string `protobuf:"bytes,2,opt,name=language_tag,json=languageTag,proto3" json:"language_tag,omitempty"`
	// contains filtered or unexported fields
}

ListTranslationsRequest is the request message for the ListTranslations method. Takes a context and language tag and returns all translations.

func (*ListTranslationsRequest) Descriptor deprecated added in v1.8.5

func (*ListTranslationsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListTranslationsRequest.ProtoReflect.Descriptor instead.

func (*ListTranslationsRequest) GetContext added in v1.8.5

func (x *ListTranslationsRequest) GetContext() string

func (*ListTranslationsRequest) GetLanguageTag added in v1.8.5

func (x *ListTranslationsRequest) GetLanguageTag() string

func (*ListTranslationsRequest) ProtoMessage added in v1.8.5

func (*ListTranslationsRequest) ProtoMessage()

func (*ListTranslationsRequest) ProtoReflect added in v1.8.5

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

func (*ListTranslationsRequest) Reset added in v1.8.5

func (x *ListTranslationsRequest) Reset()

func (*ListTranslationsRequest) String added in v1.8.5

func (x *ListTranslationsRequest) String() string

type ListTranslationsResponse added in v1.8.5

type ListTranslationsResponse struct {
	Translations []*Translation `protobuf:"bytes,1,rep,name=translations,proto3" json:"translations,omitempty"`
	// contains filtered or unexported fields
}

ListTranslationsResponse is the response message for the ListTranslations method.

func (*ListTranslationsResponse) Descriptor deprecated added in v1.8.5

func (*ListTranslationsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListTranslationsResponse.ProtoReflect.Descriptor instead.

func (*ListTranslationsResponse) GetTranslations added in v1.8.5

func (x *ListTranslationsResponse) GetTranslations() []*Translation

func (*ListTranslationsResponse) ProtoMessage added in v1.8.5

func (*ListTranslationsResponse) ProtoMessage()

func (*ListTranslationsResponse) ProtoReflect added in v1.8.5

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

func (*ListTranslationsResponse) Reset added in v1.8.5

func (x *ListTranslationsResponse) Reset()

func (*ListTranslationsResponse) String added in v1.8.5

func (x *ListTranslationsResponse) String() string

type LocalizationContext added in v1.8.13

type LocalizationContext struct {

	// The context.
	Context string `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
	// The system message.
	SystemMessage string `protobuf:"bytes,2,opt,name=system_message,json=systemMessage,proto3" json:"system_message,omitempty"` // API not enabled for v1 of localization
	// The enabled status of the context.
	Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

The core context object for localization

func (*LocalizationContext) Descriptor deprecated added in v1.8.13

func (*LocalizationContext) Descriptor() ([]byte, []int)

Deprecated: Use LocalizationContext.ProtoReflect.Descriptor instead.

func (*LocalizationContext) GetContext added in v1.8.13

func (x *LocalizationContext) GetContext() string

func (*LocalizationContext) GetEnabled added in v1.8.13

func (x *LocalizationContext) GetEnabled() bool

func (*LocalizationContext) GetSystemMessage added in v1.8.13

func (x *LocalizationContext) GetSystemMessage() string

func (*LocalizationContext) ProtoMessage added in v1.8.13

func (*LocalizationContext) ProtoMessage()

func (*LocalizationContext) ProtoReflect added in v1.8.13

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

func (*LocalizationContext) Reset added in v1.8.13

func (x *LocalizationContext) Reset()

func (*LocalizationContext) String added in v1.8.13

func (x *LocalizationContext) String() string

type LocalizationLanguage added in v1.8.7

type LocalizationLanguage struct {

	// The BCP 47 language tag.
	LanguageTag string `protobuf:"bytes,1,opt,name=language_tag,json=languageTag,proto3" json:"language_tag,omitempty"`
	// The name of the language.
	EnglishName string `protobuf:"bytes,2,opt,name=english_name,json=englishName,proto3" json:"english_name,omitempty"`
	// contains filtered or unexported fields
}

The core language object for localization

func (*LocalizationLanguage) Descriptor deprecated added in v1.8.7

func (*LocalizationLanguage) Descriptor() ([]byte, []int)

Deprecated: Use LocalizationLanguage.ProtoReflect.Descriptor instead.

func (*LocalizationLanguage) GetEnglishName added in v1.8.7

func (x *LocalizationLanguage) GetEnglishName() string

func (*LocalizationLanguage) GetLanguageTag added in v1.8.7

func (x *LocalizationLanguage) GetLanguageTag() string

func (*LocalizationLanguage) ProtoMessage added in v1.8.7

func (*LocalizationLanguage) ProtoMessage()

func (*LocalizationLanguage) ProtoReflect added in v1.8.7

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

func (*LocalizationLanguage) Reset added in v1.8.7

func (x *LocalizationLanguage) Reset()

func (*LocalizationLanguage) String added in v1.8.7

func (x *LocalizationLanguage) String() string

type SetSystemMessageRequest added in v1.8.5

type SetSystemMessageRequest struct {

	// The context to set the system message for.
	Context string `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
	// The system message.
	SystemMessage string `protobuf:"bytes,2,opt,name=system_message,json=systemMessage,proto3" json:"system_message,omitempty"`
	// contains filtered or unexported fields
}

SetSystemMessageRequest is the request message for the SetSystemMessage method. Takes a context and a system message.

func (*SetSystemMessageRequest) Descriptor deprecated added in v1.8.5

func (*SetSystemMessageRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetSystemMessageRequest.ProtoReflect.Descriptor instead.

func (*SetSystemMessageRequest) GetContext added in v1.8.5

func (x *SetSystemMessageRequest) GetContext() string

func (*SetSystemMessageRequest) GetSystemMessage added in v1.8.5

func (x *SetSystemMessageRequest) GetSystemMessage() string

func (*SetSystemMessageRequest) ProtoMessage added in v1.8.5

func (*SetSystemMessageRequest) ProtoMessage()

func (*SetSystemMessageRequest) ProtoReflect added in v1.8.5

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

func (*SetSystemMessageRequest) Reset added in v1.8.5

func (x *SetSystemMessageRequest) Reset()

func (*SetSystemMessageRequest) String added in v1.8.5

func (x *SetSystemMessageRequest) String() string

type SetSystemMessageResponse added in v1.8.5

type SetSystemMessageResponse struct {
	// contains filtered or unexported fields
}

SetSystemMessageResponse is the response message for the SetSystemMessage method.

func (*SetSystemMessageResponse) Descriptor deprecated added in v1.8.5

func (*SetSystemMessageResponse) Descriptor() ([]byte, []int)

Deprecated: Use SetSystemMessageResponse.ProtoReflect.Descriptor instead.

func (*SetSystemMessageResponse) ProtoMessage added in v1.8.5

func (*SetSystemMessageResponse) ProtoMessage()

func (*SetSystemMessageResponse) ProtoReflect added in v1.8.5

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

func (*SetSystemMessageResponse) Reset added in v1.8.5

func (x *SetSystemMessageResponse) Reset()

func (*SetSystemMessageResponse) String added in v1.8.5

func (x *SetSystemMessageResponse) String() string

type TestSystemMessageRequest added in v1.8.5

type TestSystemMessageRequest struct {

	// The system message to test.
	SystemMessage string `protobuf:"bytes,1,opt,name=system_message,json=systemMessage,proto3" json:"system_message,omitempty"`
	// The template to test.
	Template string `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"`
	// The BCP 47 language tag of the translation.
	LanguageTag string `protobuf:"bytes,3,opt,name=language_tag,json=languageTag,proto3" json:"language_tag,omitempty"`
	// contains filtered or unexported fields
}

TestSystemMessageRequest is the request message for the TestSystemMessage method. Takes a system message, template, and language tag and returns the translation.

func (*TestSystemMessageRequest) Descriptor deprecated added in v1.8.5

func (*TestSystemMessageRequest) Descriptor() ([]byte, []int)

Deprecated: Use TestSystemMessageRequest.ProtoReflect.Descriptor instead.

func (*TestSystemMessageRequest) GetLanguageTag added in v1.8.5

func (x *TestSystemMessageRequest) GetLanguageTag() string

func (*TestSystemMessageRequest) GetSystemMessage added in v1.8.5

func (x *TestSystemMessageRequest) GetSystemMessage() string

func (*TestSystemMessageRequest) GetTemplate added in v1.8.5

func (x *TestSystemMessageRequest) GetTemplate() string

func (*TestSystemMessageRequest) ProtoMessage added in v1.8.5

func (*TestSystemMessageRequest) ProtoMessage()

func (*TestSystemMessageRequest) ProtoReflect added in v1.8.5

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

func (*TestSystemMessageRequest) Reset added in v1.8.5

func (x *TestSystemMessageRequest) Reset()

func (*TestSystemMessageRequest) String added in v1.8.5

func (x *TestSystemMessageRequest) String() string

type TestSystemMessageResponse added in v1.8.5

type TestSystemMessageResponse struct {

	// The translation.
	Translation string `protobuf:"bytes,1,opt,name=translation,proto3" json:"translation,omitempty"`
	// contains filtered or unexported fields
}

TestSystemMessageResponse is the response message for the TestSystemMessage method.

func (*TestSystemMessageResponse) Descriptor deprecated added in v1.8.5

func (*TestSystemMessageResponse) Descriptor() ([]byte, []int)

Deprecated: Use TestSystemMessageResponse.ProtoReflect.Descriptor instead.

func (*TestSystemMessageResponse) GetTranslation added in v1.8.5

func (x *TestSystemMessageResponse) GetTranslation() string

func (*TestSystemMessageResponse) ProtoMessage added in v1.8.5

func (*TestSystemMessageResponse) ProtoMessage()

func (*TestSystemMessageResponse) ProtoReflect added in v1.8.5

func (*TestSystemMessageResponse) Reset added in v1.8.5

func (x *TestSystemMessageResponse) Reset()

func (*TestSystemMessageResponse) String added in v1.8.5

func (x *TestSystemMessageResponse) String() string

type TranslateTemplateRequest

type TranslateTemplateRequest struct {

	// The template to translate.
	Template string `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
	// The context of the template.
	Context string `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

TranslateTemplateRequest is the request message for the Translate method. Takes a template, context, and translates to all available languages.

func (*TranslateTemplateRequest) Descriptor deprecated

func (*TranslateTemplateRequest) Descriptor() ([]byte, []int)

Deprecated: Use TranslateTemplateRequest.ProtoReflect.Descriptor instead.

func (*TranslateTemplateRequest) GetContext

func (x *TranslateTemplateRequest) GetContext() string

func (*TranslateTemplateRequest) GetTemplate

func (x *TranslateTemplateRequest) GetTemplate() string

func (*TranslateTemplateRequest) ProtoMessage

func (*TranslateTemplateRequest) ProtoMessage()

func (*TranslateTemplateRequest) ProtoReflect

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

func (*TranslateTemplateRequest) Reset

func (x *TranslateTemplateRequest) Reset()

func (*TranslateTemplateRequest) String

func (x *TranslateTemplateRequest) String() string

type TranslateTemplateResponse

type TranslateTemplateResponse struct {
	Translations []*Translation `protobuf:"bytes,1,rep,name=translations,proto3" json:"translations,omitempty"`
	// contains filtered or unexported fields
}

TranslateTemplateResponse is the response message for the Translate method.

func (*TranslateTemplateResponse) Descriptor deprecated

func (*TranslateTemplateResponse) Descriptor() ([]byte, []int)

Deprecated: Use TranslateTemplateResponse.ProtoReflect.Descriptor instead.

func (*TranslateTemplateResponse) GetTranslations

func (x *TranslateTemplateResponse) GetTranslations() []*Translation

func (*TranslateTemplateResponse) ProtoMessage

func (*TranslateTemplateResponse) ProtoMessage()

func (*TranslateTemplateResponse) ProtoReflect

func (*TranslateTemplateResponse) Reset

func (x *TranslateTemplateResponse) Reset()

func (*TranslateTemplateResponse) String

func (x *TranslateTemplateResponse) String() string

type Translation

type Translation struct {

	// The ID of the translation.
	TranslationId string `protobuf:"bytes,1,opt,name=translation_id,json=translationId,proto3" json:"translation_id,omitempty"`
	// The template.
	Template string `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"`
	// The context of the template.
	Context string `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"`
	// The BCP 47 language tag of the translation.
	LanguageTag string `protobuf:"bytes,4,opt,name=language_tag,json=languageTag,proto3" json:"language_tag,omitempty"`
	// The LLM translation.
	LlmTranslation string `protobuf:"bytes,5,opt,name=llm_translation,json=llmTranslation,proto3" json:"llm_translation,omitempty"`
	// The manual translation if exixts.
	ManualTranslation string `protobuf:"bytes,6,opt,name=manual_translation,json=manualTranslation,proto3" json:"manual_translation,omitempty"`
	// Creation time of the translation.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// contains filtered or unexported fields
}

Translation is the core entity of the translation service.

func (*Translation) Descriptor deprecated

func (*Translation) Descriptor() ([]byte, []int)

Deprecated: Use Translation.ProtoReflect.Descriptor instead.

func (*Translation) GetContext

func (x *Translation) GetContext() string

func (*Translation) GetCreateTime added in v1.8.13

func (x *Translation) GetCreateTime() *timestamppb.Timestamp

func (*Translation) GetLanguageTag

func (x *Translation) GetLanguageTag() string

func (*Translation) GetLlmTranslation

func (x *Translation) GetLlmTranslation() string

func (*Translation) GetManualTranslation

func (x *Translation) GetManualTranslation() string

func (*Translation) GetTemplate

func (x *Translation) GetTemplate() string

func (*Translation) GetTranslationId

func (x *Translation) GetTranslationId() string

func (*Translation) ProtoMessage

func (*Translation) ProtoMessage()

func (*Translation) ProtoReflect

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

func (*Translation) Reset

func (x *Translation) Reset()

func (*Translation) String

func (x *Translation) String() string

type TranslationsServiceClient

type TranslationsServiceClient interface {
	// Translate a template for a given context and language.
	// Required permissions:
	//
	//	Any Authenticated User
	//
	// Errors:
	//   - grpc.AlreadyExists : This template is already translated for the given context and language.
	//   - grpc.InvalidArgument: The request is not valid.
	TranslateTemplate(ctx context.Context, in *TranslateTemplateRequest, opts ...grpc.CallOption) (*TranslateTemplateResponse, error)
	// Lists translations by context/language
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	//   - grpc.NotFound: No templates found for the given context and language.
	ListTranslations(ctx context.Context, in *ListTranslationsRequest, opts ...grpc.CallOption) (*ListTranslationsResponse, error)
	// Lists localization languages
	// Required permissions:
	//   - Any Authenticated User
	ListLanguages(ctx context.Context, in *ListLanguagesRequest, opts ...grpc.CallOption) (*ListLanguagesResponse, error)
	// Lists localization contexts
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	ListContexts(ctx context.Context, in *ListContextsRequest, opts ...grpc.CallOption) (*ListContextsResponse, error)
	// Creates a new Translation
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	//   - grpc.AlreadyExists: The template already exists for the given context and language (use override method).
	CreateTranslation(ctx context.Context, in *CreateTranslationRequest, opts ...grpc.CallOption) (*CreateTranslationResponse, error)
	// Overrides the translation for a given translationID
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	UpdateTranslation(ctx context.Context, in *UpdateTranslationRequest, opts ...grpc.CallOption) (*UpdateTranslationResponse, error)
	// Re-run the LLM translation for a given translationID
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	TriggerLLMTranslation(ctx context.Context, in *TriggerLLMTranslationRequest, opts ...grpc.CallOption) (*TriggerLLMTranslationResponse, error)
	// re-run all translations for a given context (WARNING - this should be ran sparingly as it is a heavy operation and costs money)
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	TriggerLLMTranslations(ctx context.Context, in *TriggerLLMTranslationsRequest, opts ...grpc.CallOption) (*TriggerLLMTranslationsResponse, error)
	// set/get context system message to give more tuned LLMs when translating for that context (WARNING - this overrides the previous system message for the context if exists)
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	SetSystemMessage(ctx context.Context, in *SetSystemMessageRequest, opts ...grpc.CallOption) (*SetSystemMessageResponse, error)
	GetSystemMessage(ctx context.Context, in *GetSystemMessageRequest, opts ...grpc.CallOption) (*GetSystemMessageResponse, error)
	// Gives a translation for a system message, template and language with no side effects (Used for testing system messages)
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	TestSystemMessage(ctx context.Context, in *TestSystemMessageRequest, opts ...grpc.CallOption) (*TestSystemMessageResponse, error)
	// enable a context for LLM translations
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	//   - grpc.NotFound: No context found
	EnableContext(ctx context.Context, in *EnableContextRequest, opts ...grpc.CallOption) (*EnableContextResponse, error)
	// disable a context for LLM translations
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	DisableContext(ctx context.Context, in *DisableContextRequest, opts ...grpc.CallOption) (*DisableContextResponse, error)
	// Delete translations by template and context
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	//   - grpc.NotFound: No translations found for the given template and context.
	DeleteTranslationsByTemplate(ctx context.Context, in *DeleteTranslationsByTemplateRequest, opts ...grpc.CallOption) (*DeleteTranslationsByTemplateResponse, error)
	// Bulk delete translations
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	BulkDeleteTranslations(ctx context.Context, in *BulkDeleteTranslationsRequest, opts ...grpc.CallOption) (*BulkDeleteTranslationsResponse, error)
}

TranslationsServiceClient is the client API for TranslationsService 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.

type TranslationsServiceServer

type TranslationsServiceServer interface {
	// Translate a template for a given context and language.
	// Required permissions:
	//
	//	Any Authenticated User
	//
	// Errors:
	//   - grpc.AlreadyExists : This template is already translated for the given context and language.
	//   - grpc.InvalidArgument: The request is not valid.
	TranslateTemplate(context.Context, *TranslateTemplateRequest) (*TranslateTemplateResponse, error)
	// Lists translations by context/language
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	//   - grpc.NotFound: No templates found for the given context and language.
	ListTranslations(context.Context, *ListTranslationsRequest) (*ListTranslationsResponse, error)
	// Lists localization languages
	// Required permissions:
	//   - Any Authenticated User
	ListLanguages(context.Context, *ListLanguagesRequest) (*ListLanguagesResponse, error)
	// Lists localization contexts
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	ListContexts(context.Context, *ListContextsRequest) (*ListContextsResponse, error)
	// Creates a new Translation
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	//   - grpc.AlreadyExists: The template already exists for the given context and language (use override method).
	CreateTranslation(context.Context, *CreateTranslationRequest) (*CreateTranslationResponse, error)
	// Overrides the translation for a given translationID
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	UpdateTranslation(context.Context, *UpdateTranslationRequest) (*UpdateTranslationResponse, error)
	// Re-run the LLM translation for a given translationID
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	TriggerLLMTranslation(context.Context, *TriggerLLMTranslationRequest) (*TriggerLLMTranslationResponse, error)
	// re-run all translations for a given context (WARNING - this should be ran sparingly as it is a heavy operation and costs money)
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	TriggerLLMTranslations(context.Context, *TriggerLLMTranslationsRequest) (*TriggerLLMTranslationsResponse, error)
	// set/get context system message to give more tuned LLMs when translating for that context (WARNING - this overrides the previous system message for the context if exists)
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	SetSystemMessage(context.Context, *SetSystemMessageRequest) (*SetSystemMessageResponse, error)
	GetSystemMessage(context.Context, *GetSystemMessageRequest) (*GetSystemMessageResponse, error)
	// Gives a translation for a system message, template and language with no side effects (Used for testing system messages)
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	TestSystemMessage(context.Context, *TestSystemMessageRequest) (*TestSystemMessageResponse, error)
	// enable a context for LLM translations
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	//   - grpc.NotFound: No context found
	EnableContext(context.Context, *EnableContextRequest) (*EnableContextResponse, error)
	// disable a context for LLM translations
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	DisableContext(context.Context, *DisableContextRequest) (*DisableContextResponse, error)
	// Delete translations by template and context
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	//   - grpc.NotFound: No translations found for the given template and context.
	DeleteTranslationsByTemplate(context.Context, *DeleteTranslationsByTemplateRequest) (*DeleteTranslationsByTemplateResponse, error)
	// Bulk delete translations
	// Required permissions:
	//   - PERMISSION_CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.InvalidArgument: The request is not valid.
	BulkDeleteTranslations(context.Context, *BulkDeleteTranslationsRequest) (*BulkDeleteTranslationsResponse, error)
	// contains filtered or unexported methods
}

TranslationsServiceServer is the server API for TranslationsService service. All implementations must embed UnimplementedTranslationsServiceServer for forward compatibility.

type TriggerLLMTranslationRequest added in v1.8.5

type TriggerLLMTranslationRequest struct {

	// The ID of the translation to trigger the LLM translation.
	TranslationId string `protobuf:"bytes,1,opt,name=translation_id,json=translationId,proto3" json:"translation_id,omitempty"`
	// contains filtered or unexported fields
}

TriggerLLMTranslationRequest is the request message for the TriggerLLMTranslation method. Takes a translation ID and triggers the LLM translation.

func (*TriggerLLMTranslationRequest) Descriptor deprecated added in v1.8.5

func (*TriggerLLMTranslationRequest) Descriptor() ([]byte, []int)

Deprecated: Use TriggerLLMTranslationRequest.ProtoReflect.Descriptor instead.

func (*TriggerLLMTranslationRequest) GetTranslationId added in v1.8.5

func (x *TriggerLLMTranslationRequest) GetTranslationId() string

func (*TriggerLLMTranslationRequest) ProtoMessage added in v1.8.5

func (*TriggerLLMTranslationRequest) ProtoMessage()

func (*TriggerLLMTranslationRequest) ProtoReflect added in v1.8.5

func (*TriggerLLMTranslationRequest) Reset added in v1.8.5

func (x *TriggerLLMTranslationRequest) Reset()

func (*TriggerLLMTranslationRequest) String added in v1.8.5

type TriggerLLMTranslationResponse added in v1.8.5

type TriggerLLMTranslationResponse struct {

	// The updated translation.
	Translation *Translation `protobuf:"bytes,1,opt,name=translation,proto3" json:"translation,omitempty"`
	// contains filtered or unexported fields
}

TriggerLLMTranslationResponse is the response message for the TriggerLLMTranslation method.

func (*TriggerLLMTranslationResponse) Descriptor deprecated added in v1.8.5

func (*TriggerLLMTranslationResponse) Descriptor() ([]byte, []int)

Deprecated: Use TriggerLLMTranslationResponse.ProtoReflect.Descriptor instead.

func (*TriggerLLMTranslationResponse) GetTranslation added in v1.8.5

func (x *TriggerLLMTranslationResponse) GetTranslation() *Translation

func (*TriggerLLMTranslationResponse) ProtoMessage added in v1.8.5

func (*TriggerLLMTranslationResponse) ProtoMessage()

func (*TriggerLLMTranslationResponse) ProtoReflect added in v1.8.5

func (*TriggerLLMTranslationResponse) Reset added in v1.8.5

func (x *TriggerLLMTranslationResponse) Reset()

func (*TriggerLLMTranslationResponse) String added in v1.8.5

type TriggerLLMTranslationsRequest added in v1.8.5

type TriggerLLMTranslationsRequest struct {

	// The context to trigger the LLM translations for.
	Context string `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

TriggerLLMTranslationsRequest is the request message for the TriggerLLMTranslations method.

func (*TriggerLLMTranslationsRequest) Descriptor deprecated added in v1.8.5

func (*TriggerLLMTranslationsRequest) Descriptor() ([]byte, []int)

Deprecated: Use TriggerLLMTranslationsRequest.ProtoReflect.Descriptor instead.

func (*TriggerLLMTranslationsRequest) GetContext added in v1.8.5

func (x *TriggerLLMTranslationsRequest) GetContext() string

func (*TriggerLLMTranslationsRequest) ProtoMessage added in v1.8.5

func (*TriggerLLMTranslationsRequest) ProtoMessage()

func (*TriggerLLMTranslationsRequest) ProtoReflect added in v1.8.5

func (*TriggerLLMTranslationsRequest) Reset added in v1.8.5

func (x *TriggerLLMTranslationsRequest) Reset()

func (*TriggerLLMTranslationsRequest) String added in v1.8.5

type TriggerLLMTranslationsResponse added in v1.8.5

type TriggerLLMTranslationsResponse struct {
	// contains filtered or unexported fields
}

func (*TriggerLLMTranslationsResponse) Descriptor deprecated added in v1.8.5

func (*TriggerLLMTranslationsResponse) Descriptor() ([]byte, []int)

Deprecated: Use TriggerLLMTranslationsResponse.ProtoReflect.Descriptor instead.

func (*TriggerLLMTranslationsResponse) ProtoMessage added in v1.8.5

func (*TriggerLLMTranslationsResponse) ProtoMessage()

func (*TriggerLLMTranslationsResponse) ProtoReflect added in v1.8.5

func (*TriggerLLMTranslationsResponse) Reset added in v1.8.5

func (x *TriggerLLMTranslationsResponse) Reset()

func (*TriggerLLMTranslationsResponse) String added in v1.8.5

type UnimplementedTranslationsServiceServer

type UnimplementedTranslationsServiceServer struct{}

UnimplementedTranslationsServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedTranslationsServiceServer) BulkDeleteTranslations added in v1.8.13

func (UnimplementedTranslationsServiceServer) CreateTranslation added in v1.8.24

func (UnimplementedTranslationsServiceServer) DeleteTranslationsByTemplate added in v1.8.26

func (UnimplementedTranslationsServiceServer) DisableContext added in v1.8.13

func (UnimplementedTranslationsServiceServer) EnableContext added in v1.8.13

func (UnimplementedTranslationsServiceServer) GetSystemMessage added in v1.8.5

func (UnimplementedTranslationsServiceServer) ListContexts added in v1.8.8

func (UnimplementedTranslationsServiceServer) ListLanguages added in v1.8.7

func (UnimplementedTranslationsServiceServer) ListTranslations added in v1.8.5

func (UnimplementedTranslationsServiceServer) SetSystemMessage added in v1.8.5

func (UnimplementedTranslationsServiceServer) TestSystemMessage added in v1.8.5

func (UnimplementedTranslationsServiceServer) TranslateTemplate

func (UnimplementedTranslationsServiceServer) TriggerLLMTranslation added in v1.8.5

func (UnimplementedTranslationsServiceServer) TriggerLLMTranslations added in v1.8.5

func (UnimplementedTranslationsServiceServer) UpdateTranslation added in v1.8.5

type UnsafeTranslationsServiceServer

type UnsafeTranslationsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeTranslationsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TranslationsServiceServer will result in compilation errors.

type UpdateTranslationRequest added in v1.8.5

type UpdateTranslationRequest struct {

	// The ID of the translation to update.
	TranslationId string `protobuf:"bytes,1,opt,name=translation_id,json=translationId,proto3" json:"translation_id,omitempty"`
	// The new translation.
	Translation string `protobuf:"bytes,2,opt,name=translation,proto3" json:"translation,omitempty"`
	// contains filtered or unexported fields
}

UpdateTranslationRequest is the request message for the UpdateTranslation method. Takes a translation ID and a new translation.

func (*UpdateTranslationRequest) Descriptor deprecated added in v1.8.5

func (*UpdateTranslationRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateTranslationRequest.ProtoReflect.Descriptor instead.

func (*UpdateTranslationRequest) GetTranslation added in v1.8.5

func (x *UpdateTranslationRequest) GetTranslation() string

func (*UpdateTranslationRequest) GetTranslationId added in v1.8.5

func (x *UpdateTranslationRequest) GetTranslationId() string

func (*UpdateTranslationRequest) ProtoMessage added in v1.8.5

func (*UpdateTranslationRequest) ProtoMessage()

func (*UpdateTranslationRequest) ProtoReflect added in v1.8.5

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

func (*UpdateTranslationRequest) Reset added in v1.8.5

func (x *UpdateTranslationRequest) Reset()

func (*UpdateTranslationRequest) String added in v1.8.5

func (x *UpdateTranslationRequest) String() string

type UpdateTranslationResponse added in v1.8.5

type UpdateTranslationResponse struct {

	// The updated translation.
	Translation *Translation `protobuf:"bytes,1,opt,name=translation,proto3" json:"translation,omitempty"`
	// contains filtered or unexported fields
}

UpdateTranslationResponse is the response message for the UpdateTranslation method.

func (*UpdateTranslationResponse) Descriptor deprecated added in v1.8.5

func (*UpdateTranslationResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateTranslationResponse.ProtoReflect.Descriptor instead.

func (*UpdateTranslationResponse) GetTranslation added in v1.8.5

func (x *UpdateTranslationResponse) GetTranslation() *Translation

func (*UpdateTranslationResponse) ProtoMessage added in v1.8.5

func (*UpdateTranslationResponse) ProtoMessage()

func (*UpdateTranslationResponse) ProtoReflect added in v1.8.5

func (*UpdateTranslationResponse) Reset added in v1.8.5

func (x *UpdateTranslationResponse) Reset()

func (*UpdateTranslationResponse) String added in v1.8.5

func (x *UpdateTranslationResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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