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

package translate

import (
	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 TranslatedText struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Translated text.
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// The language code of the source 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.
	DetectedLanguageCode string `protobuf:"bytes,2,opt,name=detected_language_code,json=detectedLanguageCode,proto3" json:"detected_language_code,omitempty"`
	unknownFields        protoimpl.UnknownFields
	sizeCache            protoimpl.SizeCache
}

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

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

func (*TranslatedText) ProtoMessage() {}

func (x *TranslatedText) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_translate_v2_translation_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 TranslatedText.ProtoReflect.Descriptor instead.
func (*TranslatedText) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_translate_v2_translation_proto_rawDescGZIP(), []int{0}
}

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

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

type Language struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The language code.
	// 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.
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	// The name of the language (for example, “ English “).
	Name          string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Language) ProtoMessage() {}

func (x *Language) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_translate_v2_translation_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 Language.ProtoReflect.Descriptor instead.
func (*Language) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_translate_v2_translation_proto_rawDescGZIP(), []int{1}
}

func (x *Language) GetCode() string {
	if x != nil {
		return x.Code
	}
	return ""
}

func (x *Language) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

var File_yandex_cloud_ai_translate_v2_translation_proto protoreflect.FileDescriptor

const file_yandex_cloud_ai_translate_v2_translation_proto_rawDesc = "" +
	"\n" +
	".yandex/cloud/ai/translate/v2/translation.proto\x12\x1cyandex.cloud.ai.translate.v2\"Z\n" +
	"\x0eTranslatedText\x12\x12\n" +
	"\x04text\x18\x01 \x01(\tR\x04text\x124\n" +
	"\x16detected_language_code\x18\x02 \x01(\tR\x14detectedLanguageCode\"2\n" +
	"\bLanguage\x12\x12\n" +
	"\x04code\x18\x01 \x01(\tR\x04code\x12\x12\n" +
	"\x04name\x18\x02 \x01(\tR\x04nameBn\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_proto_rawDescOnce sync.Once
	file_yandex_cloud_ai_translate_v2_translation_proto_rawDescData []byte
)

func file_yandex_cloud_ai_translate_v2_translation_proto_rawDescGZIP() []byte {
	file_yandex_cloud_ai_translate_v2_translation_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_ai_translate_v2_translation_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_ai_translate_v2_translation_proto_rawDesc), len(file_yandex_cloud_ai_translate_v2_translation_proto_rawDesc)))
	})
	return file_yandex_cloud_ai_translate_v2_translation_proto_rawDescData
}

var file_yandex_cloud_ai_translate_v2_translation_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_ai_translate_v2_translation_proto_goTypes = []any{
	(*TranslatedText)(nil), // 0: yandex.cloud.ai.translate.v2.TranslatedText
	(*Language)(nil),       // 1: yandex.cloud.ai.translate.v2.Language
}
var file_yandex_cloud_ai_translate_v2_translation_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_yandex_cloud_ai_translate_v2_translation_proto_init() }
func file_yandex_cloud_ai_translate_v2_translation_proto_init() {
	if File_yandex_cloud_ai_translate_v2_translation_proto != nil {
		return
	}
	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_proto_rawDesc), len(file_yandex_cloud_ai_translate_v2_translation_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_ai_translate_v2_translation_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_ai_translate_v2_translation_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_ai_translate_v2_translation_proto_msgTypes,
	}.Build()
	File_yandex_cloud_ai_translate_v2_translation_proto = out.File
	file_yandex_cloud_ai_translate_v2_translation_proto_goTypes = nil
	file_yandex_cloud_ai_translate_v2_translation_proto_depIdxs = nil
}
