// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/ai/translate/v2/translation_service.proto

package translate

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type TranslateRequest_Format int32

const (
	TranslateRequest_FORMAT_UNSPECIFIED TranslateRequest_Format = 0
	// Text without markup. Default value.
	TranslateRequest_PLAIN_TEXT TranslateRequest_Format = 1
	// Text in the HTML format.
	TranslateRequest_HTML TranslateRequest_Format = 2
)

// Enum value maps for TranslateRequest_Format.
var (
	TranslateRequest_Format_name = map[int32]string{
		0: "FORMAT_UNSPECIFIED",
		1: "PLAIN_TEXT",
		2: "HTML",
	}
	TranslateRequest_Format_value = map[string]int32{
		"FORMAT_UNSPECIFIED": 0,
		"PLAIN_TEXT":         1,
		"HTML":               2,
	}
)

func (x TranslateRequest_Format) Enum() *TranslateRequest_Format {
	p := new(TranslateRequest_Format)
	*p = x
	return p
}

func (x TranslateRequest_Format) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (TranslateRequest_Format) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_ai_translate_v2_translation_service_proto_enumTypes[0].Descriptor()
}

func (TranslateRequest_Format) Type() protoreflect.EnumType {
	return &file_yandex_cloud_ai_translate_v2_translation_service_proto_enumTypes[0]
}

func (x TranslateRequest_Format) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use TranslateRequest_Format.Descriptor instead.
func (TranslateRequest_Format) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDescGZIP(), []int{0, 0}
}

type TranslateRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The text language to translate from.
	// Most languages are specified in [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format (for example, “ ru “), but the field are not limited to it.
	//
	// Required for translating with [glossary](/docs/translate/concepts/glossary).
	SourceLanguageCode string `protobuf:"bytes,1,opt,name=source_language_code,json=sourceLanguageCode,proto3" json:"source_language_code,omitempty"`
	// The target language to translate the text.
	// Most languages are specified in [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format (for example, “ ru “), but the field are not limited to it.
	TargetLanguageCode string `protobuf:"bytes,2,opt,name=target_language_code,json=targetLanguageCode,proto3" json:"target_language_code,omitempty"`
	// Format of the text to be translated.
	Format TranslateRequest_Format `protobuf:"varint,3,opt,name=format,proto3,enum=yandex.cloud.ai.translate.v2.TranslateRequest_Format" json:"format,omitempty"`
	// Array of the strings to translate.
	// The maximum total length of all strings is 10000 characters.
	Texts []string `protobuf:"bytes,4,rep,name=texts,proto3" json:"texts,omitempty"`
	// ID of the folder to which you have access.
	// Required for authorization with a [user account](/docs/iam/concepts/users/accounts).
	// Do not specify this field if you make the request on behalf of a [service account](/docs/iam/concepts/users/accounts#sa).
	FolderId string `protobuf:"bytes,5,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// Model ID if you use custom model.
	Model string `protobuf:"bytes,6,opt,name=model,proto3" json:"model,omitempty"`
	// Glossary to be applied for the translation. For more information, see [Glossaries](/docs/translate/concepts/glossary).
	GlossaryConfig *TranslateGlossaryConfig `protobuf:"bytes,7,opt,name=glossary_config,json=glossaryConfig,proto3" json:"glossary_config,omitempty"`
	// Enable spell checking.
	Speller       bool `protobuf:"varint,8,opt,name=speller,proto3" json:"speller,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *TranslateRequest) Reset() {
	*x = TranslateRequest{}
	mi := &file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *TranslateRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*TranslateRequest) ProtoMessage() {}

func (x *TranslateRequest) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use TranslateRequest.ProtoReflect.Descriptor instead.
func (*TranslateRequest) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDescGZIP(), []int{0}
}

func (x *TranslateRequest) GetSourceLanguageCode() string {
	if x != nil {
		return x.SourceLanguageCode
	}
	return ""
}

func (x *TranslateRequest) GetTargetLanguageCode() string {
	if x != nil {
		return x.TargetLanguageCode
	}
	return ""
}

func (x *TranslateRequest) GetFormat() TranslateRequest_Format {
	if x != nil {
		return x.Format
	}
	return TranslateRequest_FORMAT_UNSPECIFIED
}

func (x *TranslateRequest) GetTexts() []string {
	if x != nil {
		return x.Texts
	}
	return nil
}

func (x *TranslateRequest) GetFolderId() string {
	if x != nil {
		return x.FolderId
	}
	return ""
}

func (x *TranslateRequest) GetModel() string {
	if x != nil {
		return x.Model
	}
	return ""
}

func (x *TranslateRequest) GetGlossaryConfig() *TranslateGlossaryConfig {
	if x != nil {
		return x.GlossaryConfig
	}
	return nil
}

func (x *TranslateRequest) GetSpeller() bool {
	if x != nil {
		return x.Speller
	}
	return false
}

type TranslateGlossaryConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to GlossarySource:
	//
	//	*TranslateGlossaryConfig_GlossaryData
	GlossarySource isTranslateGlossaryConfig_GlossarySource `protobuf_oneof:"glossary_source"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

func (x *TranslateGlossaryConfig) Reset() {
	*x = TranslateGlossaryConfig{}
	mi := &file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *TranslateGlossaryConfig) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*TranslateGlossaryConfig) ProtoMessage() {}

func (x *TranslateGlossaryConfig) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use TranslateGlossaryConfig.ProtoReflect.Descriptor instead.
func (*TranslateGlossaryConfig) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDescGZIP(), []int{1}
}

func (x *TranslateGlossaryConfig) GetGlossarySource() isTranslateGlossaryConfig_GlossarySource {
	if x != nil {
		return x.GlossarySource
	}
	return nil
}

func (x *TranslateGlossaryConfig) GetGlossaryData() *GlossaryData {
	if x != nil {
		if x, ok := x.GlossarySource.(*TranslateGlossaryConfig_GlossaryData); ok {
			return x.GlossaryData
		}
	}
	return nil
}

type isTranslateGlossaryConfig_GlossarySource interface {
	isTranslateGlossaryConfig_GlossarySource()
}

type TranslateGlossaryConfig_GlossaryData struct {
	// Pass glossary data in the request. Currently, the only way to pass glossary.
	GlossaryData *GlossaryData `protobuf:"bytes,1,opt,name=glossary_data,json=glossaryData,proto3,oneof"`
}

func (*TranslateGlossaryConfig_GlossaryData) isTranslateGlossaryConfig_GlossarySource() {}

type GlossaryData struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Array of text pairs.
	//
	// The maximum total length of all source texts is 10000 characters.
	// The maximum total length of all translated texts is 10000 characters.
	GlossaryPairs []*GlossaryPair `protobuf:"bytes,1,rep,name=glossary_pairs,json=glossaryPairs,proto3" json:"glossary_pairs,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GlossaryData) Reset() {
	*x = GlossaryData{}
	mi := &file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GlossaryData) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GlossaryData) ProtoMessage() {}

func (x *GlossaryData) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use GlossaryData.ProtoReflect.Descriptor instead.
func (*GlossaryData) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDescGZIP(), []int{2}
}

func (x *GlossaryData) GetGlossaryPairs() []*GlossaryPair {
	if x != nil {
		return x.GlossaryPairs
	}
	return nil
}

type GlossaryPair struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Text in the source language.
	SourceText string `protobuf:"bytes,1,opt,name=source_text,json=sourceText,proto3" json:"source_text,omitempty"`
	// Text in the target language.
	TranslatedText string `protobuf:"bytes,2,opt,name=translated_text,json=translatedText,proto3" json:"translated_text,omitempty"`
	// Allows to add translations for specific terms to [neuroglossaries](/docs/translate/concepts/glossary#word-forms).
	Exact         bool `protobuf:"varint,3,opt,name=exact,proto3" json:"exact,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GlossaryPair) Reset() {
	*x = GlossaryPair{}
	mi := &file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GlossaryPair) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GlossaryPair) ProtoMessage() {}

func (x *GlossaryPair) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes[3]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use GlossaryPair.ProtoReflect.Descriptor instead.
func (*GlossaryPair) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDescGZIP(), []int{3}
}

func (x *GlossaryPair) GetSourceText() string {
	if x != nil {
		return x.SourceText
	}
	return ""
}

func (x *GlossaryPair) GetTranslatedText() string {
	if x != nil {
		return x.TranslatedText
	}
	return ""
}

func (x *GlossaryPair) GetExact() bool {
	if x != nil {
		return x.Exact
	}
	return false
}

type TranslateResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Array of the translations.
	Translations  []*TranslatedText `protobuf:"bytes,1,rep,name=translations,proto3" json:"translations,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *TranslateResponse) Reset() {
	*x = TranslateResponse{}
	mi := &file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *TranslateResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*TranslateResponse) ProtoMessage() {}

func (x *TranslateResponse) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes[4]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use TranslateResponse.ProtoReflect.Descriptor instead.
func (*TranslateResponse) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDescGZIP(), []int{4}
}

func (x *TranslateResponse) GetTranslations() []*TranslatedText {
	if x != nil {
		return x.Translations
	}
	return nil
}

type DetectLanguageRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The text to detect the language for.
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// List of the most likely languages. These languages will be given preference when detecting the text language.
	// Most languages are specified in [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format (for example, “ ru “), but the field are not limited to it.
	//
	// To get the list of supported languages, use a [TranslationService.ListLanguages] request.
	LanguageCodeHints []string `protobuf:"bytes,2,rep,name=language_code_hints,json=languageCodeHints,proto3" json:"language_code_hints,omitempty"`
	// ID of the folder to which you have access.
	// Required for authorization with a user account.
	// Don't specify this field if you make the request on behalf of a service account.
	FolderId      string `protobuf:"bytes,3,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DetectLanguageRequest) Reset() {
	*x = DetectLanguageRequest{}
	mi := &file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *DetectLanguageRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*DetectLanguageRequest) ProtoMessage() {}

func (x *DetectLanguageRequest) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes[5]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use DetectLanguageRequest.ProtoReflect.Descriptor instead.
func (*DetectLanguageRequest) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDescGZIP(), []int{5}
}

func (x *DetectLanguageRequest) GetText() string {
	if x != nil {
		return x.Text
	}
	return ""
}

func (x *DetectLanguageRequest) GetLanguageCodeHints() []string {
	if x != nil {
		return x.LanguageCodeHints
	}
	return nil
}

func (x *DetectLanguageRequest) GetFolderId() string {
	if x != nil {
		return x.FolderId
	}
	return ""
}

type DetectLanguageResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Most languages are specified in [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format (for example, “ ru “), but the field are not limited to it.
	//
	// To get the language name, use a [TranslationService.ListLanguages] request.
	LanguageCode  string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DetectLanguageResponse) Reset() {
	*x = DetectLanguageResponse{}
	mi := &file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *DetectLanguageResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*DetectLanguageResponse) ProtoMessage() {}

func (x *DetectLanguageResponse) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes[6]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use DetectLanguageResponse.ProtoReflect.Descriptor instead.
func (*DetectLanguageResponse) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDescGZIP(), []int{6}
}

func (x *DetectLanguageResponse) GetLanguageCode() string {
	if x != nil {
		return x.LanguageCode
	}
	return ""
}

type ListLanguagesRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the folder to which you have access.
	// Required for authorization with a [user account](/docs/iam/concepts/users/accounts).
	// Do not specify this field if you make the request on behalf of a [service account](/docs/iam/concepts/users/accounts#sa).
	FolderId      string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListLanguagesRequest) Reset() {
	*x = ListLanguagesRequest{}
	mi := &file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes[7]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListLanguagesRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListLanguagesRequest) ProtoMessage() {}

func (x *ListLanguagesRequest) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes[7]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListLanguagesRequest.ProtoReflect.Descriptor instead.
func (*ListLanguagesRequest) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDescGZIP(), []int{7}
}

func (x *ListLanguagesRequest) GetFolderId() string {
	if x != nil {
		return x.FolderId
	}
	return ""
}

type ListLanguagesResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// List of supported languages.
	Languages     []*Language `protobuf:"bytes,1,rep,name=languages,proto3" json:"languages,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListLanguagesResponse) Reset() {
	*x = ListLanguagesResponse{}
	mi := &file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes[8]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListLanguagesResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListLanguagesResponse) ProtoMessage() {}

func (x *ListLanguagesResponse) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes[8]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListLanguagesResponse.ProtoReflect.Descriptor instead.
func (*ListLanguagesResponse) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDescGZIP(), []int{8}
}

func (x *ListLanguagesResponse) GetLanguages() []*Language {
	if x != nil {
		return x.Languages
	}
	return nil
}

var File_yandex_cloud_ai_translate_v2_translation_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDesc = "" +
	"\n" +
	"6yandex/cloud/ai/translate/v2/translation_service.proto\x12\x1cyandex.cloud.ai.translate.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1dyandex/cloud/validation.proto\x1a.yandex/cloud/ai/translate/v2/translation.proto\"\xf6\x03\n" +
	"\x10TranslateRequest\x129\n" +
	"\x14source_language_code\x18\x01 \x01(\tB\a\x8a\xc81\x03<=3R\x12sourceLanguageCode\x12=\n" +
	"\x14target_language_code\x18\x02 \x01(\tB\v\xe8\xc71\x01\x8a\xc81\x03<=3R\x12targetLanguageCode\x12M\n" +
	"\x06format\x18\x03 \x01(\x0e25.yandex.cloud.ai.translate.v2.TranslateRequest.FormatR\x06format\x12\x1c\n" +
	"\x05texts\x18\x04 \x03(\tB\x06\x82\xc81\x02>0R\x05texts\x12%\n" +
	"\tfolder_id\x18\x05 \x01(\tB\b\x8a\xc81\x04<=50R\bfolderId\x12\x1e\n" +
	"\x05model\x18\x06 \x01(\tB\b\x8a\xc81\x04<=50R\x05model\x12^\n" +
	"\x0fglossary_config\x18\a \x01(\v25.yandex.cloud.ai.translate.v2.TranslateGlossaryConfigR\x0eglossaryConfig\x12\x18\n" +
	"\aspeller\x18\b \x01(\bR\aspeller\":\n" +
	"\x06Format\x12\x16\n" +
	"\x12FORMAT_UNSPECIFIED\x10\x00\x12\x0e\n" +
	"\n" +
	"PLAIN_TEXT\x10\x01\x12\b\n" +
	"\x04HTML\x10\x02\"\x85\x01\n" +
	"\x17TranslateGlossaryConfig\x12Q\n" +
	"\rglossary_data\x18\x01 \x01(\v2*.yandex.cloud.ai.translate.v2.GlossaryDataH\x00R\fglossaryDataB\x17\n" +
	"\x0fglossary_source\x12\x04\xc0\xc11\x01\"k\n" +
	"\fGlossaryData\x12[\n" +
	"\x0eglossary_pairs\x18\x01 \x03(\v2*.yandex.cloud.ai.translate.v2.GlossaryPairB\b\x82\xc81\x041-50R\rglossaryPairs\"z\n" +
	"\fGlossaryPair\x12%\n" +
	"\vsource_text\x18\x01 \x01(\tB\x04\xe8\xc71\x01R\n" +
	"sourceText\x12-\n" +
	"\x0ftranslated_text\x18\x02 \x01(\tB\x04\xe8\xc71\x01R\x0etranslatedText\x12\x14\n" +
	"\x05exact\x18\x03 \x01(\bR\x05exact\"e\n" +
	"\x11TranslateResponse\x12P\n" +
	"\ftranslations\x18\x01 \x03(\v2,.yandex.cloud.ai.translate.v2.TranslatedTextR\ftranslations\"\xa3\x01\n" +
	"\x15DetectLanguageRequest\x12\"\n" +
	"\x04text\x18\x01 \x01(\tB\x0e\xe8\xc71\x01\x8a\xc81\x06<=1000R\x04text\x12?\n" +
	"\x13language_code_hints\x18\x02 \x03(\tB\x0f\x82\xc81\x04<=10\x8a\xc81\x03<=3R\x11languageCodeHints\x12%\n" +
	"\tfolder_id\x18\x03 \x01(\tB\b\x8a\xc81\x04<=50R\bfolderId\"=\n" +
	"\x16DetectLanguageResponse\x12#\n" +
	"\rlanguage_code\x18\x01 \x01(\tR\flanguageCode\"=\n" +
	"\x14ListLanguagesRequest\x12%\n" +
	"\tfolder_id\x18\x01 \x01(\tB\b\x8a\xc81\x04<=50R\bfolderId\"]\n" +
	"\x15ListLanguagesResponse\x12D\n" +
	"\tlanguages\x18\x01 \x03(\v2&.yandex.cloud.ai.translate.v2.LanguageR\tlanguages2\xe5\x03\n" +
	"\x12TranslationService\x12\x90\x01\n" +
	"\tTranslate\x12..yandex.cloud.ai.translate.v2.TranslateRequest\x1a/.yandex.cloud.ai.translate.v2.TranslateResponse\"\"\x82\xd3\xe4\x93\x02\x1c:\x01*\"\x17/translate/v2/translate\x12\x9c\x01\n" +
	"\x0eDetectLanguage\x123.yandex.cloud.ai.translate.v2.DetectLanguageRequest\x1a4.yandex.cloud.ai.translate.v2.DetectLanguageResponse\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/translate/v2/detect\x12\x9c\x01\n" +
	"\rListLanguages\x122.yandex.cloud.ai.translate.v2.ListLanguagesRequest\x1a3.yandex.cloud.ai.translate.v2.ListLanguagesResponse\"\"\x82\xd3\xe4\x93\x02\x1c:\x01*\"\x17/translate/v2/languagesBn\n" +
	" yandex.cloud.api.ai.translate.v2ZJgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/translate/v2;translateb\x06proto3"

var (
	file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDescData []byte
)

func file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDesc), len(file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDesc)))
	})
	return file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDescData
}

var file_yandex_cloud_ai_translate_v2_translation_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_yandex_cloud_ai_translate_v2_translation_service_proto_goTypes = []any{
	(TranslateRequest_Format)(0),    // 0: yandex.cloud.ai.translate.v2.TranslateRequest.Format
	(*TranslateRequest)(nil),        // 1: yandex.cloud.ai.translate.v2.TranslateRequest
	(*TranslateGlossaryConfig)(nil), // 2: yandex.cloud.ai.translate.v2.TranslateGlossaryConfig
	(*GlossaryData)(nil),            // 3: yandex.cloud.ai.translate.v2.GlossaryData
	(*GlossaryPair)(nil),            // 4: yandex.cloud.ai.translate.v2.GlossaryPair
	(*TranslateResponse)(nil),       // 5: yandex.cloud.ai.translate.v2.TranslateResponse
	(*DetectLanguageRequest)(nil),   // 6: yandex.cloud.ai.translate.v2.DetectLanguageRequest
	(*DetectLanguageResponse)(nil),  // 7: yandex.cloud.ai.translate.v2.DetectLanguageResponse
	(*ListLanguagesRequest)(nil),    // 8: yandex.cloud.ai.translate.v2.ListLanguagesRequest
	(*ListLanguagesResponse)(nil),   // 9: yandex.cloud.ai.translate.v2.ListLanguagesResponse
	(*TranslatedText)(nil),          // 10: yandex.cloud.ai.translate.v2.TranslatedText
	(*Language)(nil),                // 11: yandex.cloud.ai.translate.v2.Language
}
var file_yandex_cloud_ai_translate_v2_translation_service_proto_depIdxs = []int32{
	0,  // 0: yandex.cloud.ai.translate.v2.TranslateRequest.format:type_name -> yandex.cloud.ai.translate.v2.TranslateRequest.Format
	2,  // 1: yandex.cloud.ai.translate.v2.TranslateRequest.glossary_config:type_name -> yandex.cloud.ai.translate.v2.TranslateGlossaryConfig
	3,  // 2: yandex.cloud.ai.translate.v2.TranslateGlossaryConfig.glossary_data:type_name -> yandex.cloud.ai.translate.v2.GlossaryData
	4,  // 3: yandex.cloud.ai.translate.v2.GlossaryData.glossary_pairs:type_name -> yandex.cloud.ai.translate.v2.GlossaryPair
	10, // 4: yandex.cloud.ai.translate.v2.TranslateResponse.translations:type_name -> yandex.cloud.ai.translate.v2.TranslatedText
	11, // 5: yandex.cloud.ai.translate.v2.ListLanguagesResponse.languages:type_name -> yandex.cloud.ai.translate.v2.Language
	1,  // 6: yandex.cloud.ai.translate.v2.TranslationService.Translate:input_type -> yandex.cloud.ai.translate.v2.TranslateRequest
	6,  // 7: yandex.cloud.ai.translate.v2.TranslationService.DetectLanguage:input_type -> yandex.cloud.ai.translate.v2.DetectLanguageRequest
	8,  // 8: yandex.cloud.ai.translate.v2.TranslationService.ListLanguages:input_type -> yandex.cloud.ai.translate.v2.ListLanguagesRequest
	5,  // 9: yandex.cloud.ai.translate.v2.TranslationService.Translate:output_type -> yandex.cloud.ai.translate.v2.TranslateResponse
	7,  // 10: yandex.cloud.ai.translate.v2.TranslationService.DetectLanguage:output_type -> yandex.cloud.ai.translate.v2.DetectLanguageResponse
	9,  // 11: yandex.cloud.ai.translate.v2.TranslationService.ListLanguages:output_type -> yandex.cloud.ai.translate.v2.ListLanguagesResponse
	9,  // [9:12] is the sub-list for method output_type
	6,  // [6:9] is the sub-list for method input_type
	6,  // [6:6] is the sub-list for extension type_name
	6,  // [6:6] is the sub-list for extension extendee
	0,  // [0:6] is the sub-list for field type_name
}

func init() { file_yandex_cloud_ai_translate_v2_translation_service_proto_init() }
func file_yandex_cloud_ai_translate_v2_translation_service_proto_init() {
	if File_yandex_cloud_ai_translate_v2_translation_service_proto != nil {
		return
	}
	file_yandex_cloud_ai_translate_v2_translation_proto_init()
	file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes[1].OneofWrappers = []any{
		(*TranslateGlossaryConfig_GlossaryData)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDesc), len(file_yandex_cloud_ai_translate_v2_translation_service_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   9,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_ai_translate_v2_translation_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_ai_translate_v2_translation_service_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_ai_translate_v2_translation_service_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_ai_translate_v2_translation_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_ai_translate_v2_translation_service_proto = out.File
	file_yandex_cloud_ai_translate_v2_translation_service_proto_goTypes = nil
	file_yandex_cloud_ai_translate_v2_translation_service_proto_depIdxs = nil
}
