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

package ocr

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 Angle int32

const (
	Angle_ANGLE_UNSPECIFIED Angle = 0
	Angle_ANGLE_0           Angle = 1
	Angle_ANGLE_90          Angle = 2
	Angle_ANGLE_180         Angle = 3
	Angle_ANGLE_270         Angle = 4
)

// Enum value maps for Angle.
var (
	Angle_name = map[int32]string{
		0: "ANGLE_UNSPECIFIED",
		1: "ANGLE_0",
		2: "ANGLE_90",
		3: "ANGLE_180",
		4: "ANGLE_270",
	}
	Angle_value = map[string]int32{
		"ANGLE_UNSPECIFIED": 0,
		"ANGLE_0":           1,
		"ANGLE_90":          2,
		"ANGLE_180":         3,
		"ANGLE_270":         4,
	}
)

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

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

func (Angle) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_ai_ocr_v1_ocr_proto_enumTypes[0].Descriptor()
}

func (Angle) Type() protoreflect.EnumType {
	return &file_yandex_cloud_ai_ocr_v1_ocr_proto_enumTypes[0]
}

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

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

type LayoutType int32

const (
	LayoutType_LAYOUT_TYPE_UNSPECIFIED    LayoutType = 0
	LayoutType_LAYOUT_TYPE_UNKNOWN        LayoutType = 1
	LayoutType_LAYOUT_TYPE_TEXT           LayoutType = 2
	LayoutType_LAYOUT_TYPE_HEADER         LayoutType = 3
	LayoutType_LAYOUT_TYPE_SECTION_HEADER LayoutType = 4
	LayoutType_LAYOUT_TYPE_FOOTER         LayoutType = 5
	LayoutType_LAYOUT_TYPE_FOOTNOTE       LayoutType = 6
	LayoutType_LAYOUT_TYPE_PICTURE        LayoutType = 7
	LayoutType_LAYOUT_TYPE_CAPTION        LayoutType = 8
	LayoutType_LAYOUT_TYPE_TITLE          LayoutType = 9
	LayoutType_LAYOUT_TYPE_LIST           LayoutType = 10
)

// Enum value maps for LayoutType.
var (
	LayoutType_name = map[int32]string{
		0:  "LAYOUT_TYPE_UNSPECIFIED",
		1:  "LAYOUT_TYPE_UNKNOWN",
		2:  "LAYOUT_TYPE_TEXT",
		3:  "LAYOUT_TYPE_HEADER",
		4:  "LAYOUT_TYPE_SECTION_HEADER",
		5:  "LAYOUT_TYPE_FOOTER",
		6:  "LAYOUT_TYPE_FOOTNOTE",
		7:  "LAYOUT_TYPE_PICTURE",
		8:  "LAYOUT_TYPE_CAPTION",
		9:  "LAYOUT_TYPE_TITLE",
		10: "LAYOUT_TYPE_LIST",
	}
	LayoutType_value = map[string]int32{
		"LAYOUT_TYPE_UNSPECIFIED":    0,
		"LAYOUT_TYPE_UNKNOWN":        1,
		"LAYOUT_TYPE_TEXT":           2,
		"LAYOUT_TYPE_HEADER":         3,
		"LAYOUT_TYPE_SECTION_HEADER": 4,
		"LAYOUT_TYPE_FOOTER":         5,
		"LAYOUT_TYPE_FOOTNOTE":       6,
		"LAYOUT_TYPE_PICTURE":        7,
		"LAYOUT_TYPE_CAPTION":        8,
		"LAYOUT_TYPE_TITLE":          9,
		"LAYOUT_TYPE_LIST":           10,
	}
)

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

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

func (LayoutType) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_ai_ocr_v1_ocr_proto_enumTypes[1].Descriptor()
}

func (LayoutType) Type() protoreflect.EnumType {
	return &file_yandex_cloud_ai_ocr_v1_ocr_proto_enumTypes[1]
}

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

// Deprecated: Use LayoutType.Descriptor instead.
func (LayoutType) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDescGZIP(), []int{1}
}

type Polygon struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The bounding polygon vertices.
	Vertices      []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Polygon) ProtoMessage() {}

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

func (x *Polygon) GetVertices() []*Vertex {
	if x != nil {
		return x.Vertices
	}
	return nil
}

type Vertex struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// X coordinate in pixels.
	X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	// Y coordinate in pixels.
	Y             int64 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Vertex) ProtoMessage() {}

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

func (x *Vertex) GetX() int64 {
	if x != nil {
		return x.X
	}
	return 0
}

func (x *Vertex) GetY() int64 {
	if x != nil {
		return x.Y
	}
	return 0
}

type TextAnnotation struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Page width in pixels.
	Width int64 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
	// Page height in pixels.
	Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// Recognized text blocks in this page.
	Blocks []*Block `protobuf:"bytes,3,rep,name=blocks,proto3" json:"blocks,omitempty"`
	// Recognized entities.
	Entities []*Entity `protobuf:"bytes,4,rep,name=entities,proto3" json:"entities,omitempty"`
	Tables   []*Table  `protobuf:"bytes,5,rep,name=tables,proto3" json:"tables,omitempty"`
	// Full text recognized from image.
	FullText string `protobuf:"bytes,6,opt,name=full_text,json=fullText,proto3" json:"full_text,omitempty"`
	// Angle of image rotation.
	Rotate Angle `protobuf:"varint,7,opt,name=rotate,proto3,enum=yandex.cloud.ai.ocr.v1.Angle" json:"rotate,omitempty"`
	// Full markdown (without pictures inside) from image. Available only in markdown and math-markdown models.
	Markdown string `protobuf:"bytes,8,opt,name=markdown,proto3" json:"markdown,omitempty"`
	// List of pictures locations from image.
	Pictures      []*Picture `protobuf:"bytes,9,rep,name=pictures,proto3" json:"pictures,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*TextAnnotation) ProtoMessage() {}

func (x *TextAnnotation) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_ocr_v1_ocr_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 TextAnnotation.ProtoReflect.Descriptor instead.
func (*TextAnnotation) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDescGZIP(), []int{2}
}

func (x *TextAnnotation) GetWidth() int64 {
	if x != nil {
		return x.Width
	}
	return 0
}

func (x *TextAnnotation) GetHeight() int64 {
	if x != nil {
		return x.Height
	}
	return 0
}

func (x *TextAnnotation) GetBlocks() []*Block {
	if x != nil {
		return x.Blocks
	}
	return nil
}

func (x *TextAnnotation) GetEntities() []*Entity {
	if x != nil {
		return x.Entities
	}
	return nil
}

func (x *TextAnnotation) GetTables() []*Table {
	if x != nil {
		return x.Tables
	}
	return nil
}

func (x *TextAnnotation) GetFullText() string {
	if x != nil {
		return x.FullText
	}
	return ""
}

func (x *TextAnnotation) GetRotate() Angle {
	if x != nil {
		return x.Rotate
	}
	return Angle_ANGLE_UNSPECIFIED
}

func (x *TextAnnotation) GetMarkdown() string {
	if x != nil {
		return x.Markdown
	}
	return ""
}

func (x *TextAnnotation) GetPictures() []*Picture {
	if x != nil {
		return x.Pictures
	}
	return nil
}

type Entity struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Entity name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Recognized entity text.
	Text          string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Entity) ProtoMessage() {}

func (x *Entity) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_ocr_v1_ocr_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 Entity.ProtoReflect.Descriptor instead.
func (*Entity) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDescGZIP(), []int{3}
}

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

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

type Block struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Area on the page where the text block is located.
	BoundingBox *Polygon `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
	// Recognized lines in this block.
	Lines []*Line `protobuf:"bytes,2,rep,name=lines,proto3" json:"lines,omitempty"`
	// A list of detected languages
	Languages []*Block_DetectedLanguage `protobuf:"bytes,3,rep,name=languages,proto3" json:"languages,omitempty"`
	// Block position from full_text string.
	TextSegments []*TextSegments `protobuf:"bytes,4,rep,name=text_segments,json=textSegments,proto3" json:"text_segments,omitempty"`
	// Block layout type.
	LayoutType    LayoutType `protobuf:"varint,5,opt,name=layout_type,json=layoutType,proto3,enum=yandex.cloud.ai.ocr.v1.LayoutType" json:"layout_type,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Block) ProtoMessage() {}

func (x *Block) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_ocr_v1_ocr_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 Block.ProtoReflect.Descriptor instead.
func (*Block) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDescGZIP(), []int{4}
}

func (x *Block) GetBoundingBox() *Polygon {
	if x != nil {
		return x.BoundingBox
	}
	return nil
}

func (x *Block) GetLines() []*Line {
	if x != nil {
		return x.Lines
	}
	return nil
}

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

func (x *Block) GetTextSegments() []*TextSegments {
	if x != nil {
		return x.TextSegments
	}
	return nil
}

func (x *Block) GetLayoutType() LayoutType {
	if x != nil {
		return x.LayoutType
	}
	return LayoutType_LAYOUT_TYPE_UNSPECIFIED
}

type Line struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Area on the page where the line is located.
	BoundingBox *Polygon `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
	// Recognized text.
	Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// Recognized words.
	Words []*Word `protobuf:"bytes,3,rep,name=words,proto3" json:"words,omitempty"`
	// Line position from full_text string.
	TextSegments []*TextSegments `protobuf:"bytes,4,rep,name=text_segments,json=textSegments,proto3" json:"text_segments,omitempty"`
	// Angle of line rotation.
	Orientation   Angle `protobuf:"varint,5,opt,name=orientation,proto3,enum=yandex.cloud.ai.ocr.v1.Angle" json:"orientation,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Line) ProtoMessage() {}

func (x *Line) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_ocr_v1_ocr_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 Line.ProtoReflect.Descriptor instead.
func (*Line) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDescGZIP(), []int{5}
}

func (x *Line) GetBoundingBox() *Polygon {
	if x != nil {
		return x.BoundingBox
	}
	return nil
}

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

func (x *Line) GetWords() []*Word {
	if x != nil {
		return x.Words
	}
	return nil
}

func (x *Line) GetTextSegments() []*TextSegments {
	if x != nil {
		return x.TextSegments
	}
	return nil
}

func (x *Line) GetOrientation() Angle {
	if x != nil {
		return x.Orientation
	}
	return Angle_ANGLE_UNSPECIFIED
}

type Word struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Area on the page where the word is located.
	BoundingBox *Polygon `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
	// Recognized word value.
	Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// ID of the recognized word in entities array.
	EntityIndex int64 `protobuf:"varint,3,opt,name=entity_index,json=entityIndex,proto3" json:"entity_index,omitempty"`
	// Word position from full_text string.
	TextSegments  []*TextSegments `protobuf:"bytes,4,rep,name=text_segments,json=textSegments,proto3" json:"text_segments,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Word) ProtoMessage() {}

func (x *Word) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_ocr_v1_ocr_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 Word.ProtoReflect.Descriptor instead.
func (*Word) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDescGZIP(), []int{6}
}

func (x *Word) GetBoundingBox() *Polygon {
	if x != nil {
		return x.BoundingBox
	}
	return nil
}

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

func (x *Word) GetEntityIndex() int64 {
	if x != nil {
		return x.EntityIndex
	}
	return 0
}

func (x *Word) GetTextSegments() []*TextSegments {
	if x != nil {
		return x.TextSegments
	}
	return nil
}

type TextSegments struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Start character position from full_text string.
	StartIndex int64 `protobuf:"varint,1,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"`
	// Text segment length.
	Length        int64 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*TextSegments) ProtoMessage() {}

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

func (x *TextSegments) GetStartIndex() int64 {
	if x != nil {
		return x.StartIndex
	}
	return 0
}

func (x *TextSegments) GetLength() int64 {
	if x != nil {
		return x.Length
	}
	return 0
}

type Table struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Area on the page where the table is located.
	BoundingBox *Polygon `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
	// Number of rows in table.
	RowCount int64 `protobuf:"varint,2,opt,name=row_count,json=rowCount,proto3" json:"row_count,omitempty"`
	// Number of columns in table.
	ColumnCount int64 `protobuf:"varint,3,opt,name=column_count,json=columnCount,proto3" json:"column_count,omitempty"`
	// Table cells.
	Cells         []*TableCell `protobuf:"bytes,4,rep,name=cells,proto3" json:"cells,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Table) ProtoMessage() {}

func (x *Table) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_ocr_v1_ocr_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 Table.ProtoReflect.Descriptor instead.
func (*Table) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDescGZIP(), []int{8}
}

func (x *Table) GetBoundingBox() *Polygon {
	if x != nil {
		return x.BoundingBox
	}
	return nil
}

func (x *Table) GetRowCount() int64 {
	if x != nil {
		return x.RowCount
	}
	return 0
}

func (x *Table) GetColumnCount() int64 {
	if x != nil {
		return x.ColumnCount
	}
	return 0
}

func (x *Table) GetCells() []*TableCell {
	if x != nil {
		return x.Cells
	}
	return nil
}

type TableCell struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Area on the page where the table cell is located.
	BoundingBox *Polygon `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
	// Row index.
	RowIndex int64 `protobuf:"varint,2,opt,name=row_index,json=rowIndex,proto3" json:"row_index,omitempty"`
	// Column index.
	ColumnIndex int64 `protobuf:"varint,3,opt,name=column_index,json=columnIndex,proto3" json:"column_index,omitempty"`
	// Column span.
	ColumnSpan int64 `protobuf:"varint,4,opt,name=column_span,json=columnSpan,proto3" json:"column_span,omitempty"`
	// Row span.
	RowSpan int64 `protobuf:"varint,5,opt,name=row_span,json=rowSpan,proto3" json:"row_span,omitempty"`
	// Text in cell.
	Text string `protobuf:"bytes,6,opt,name=text,proto3" json:"text,omitempty"`
	// Table cell position from full_text string.
	TextSegments  []*TextSegments `protobuf:"bytes,7,rep,name=text_segments,json=textSegments,proto3" json:"text_segments,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *TableCell) Reset() {
	*x = TableCell{}
	mi := &file_yandex_cloud_ai_ocr_v1_ocr_proto_msgTypes[9]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*TableCell) ProtoMessage() {}

func (x *TableCell) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_ocr_v1_ocr_proto_msgTypes[9]
	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 TableCell.ProtoReflect.Descriptor instead.
func (*TableCell) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDescGZIP(), []int{9}
}

func (x *TableCell) GetBoundingBox() *Polygon {
	if x != nil {
		return x.BoundingBox
	}
	return nil
}

func (x *TableCell) GetRowIndex() int64 {
	if x != nil {
		return x.RowIndex
	}
	return 0
}

func (x *TableCell) GetColumnIndex() int64 {
	if x != nil {
		return x.ColumnIndex
	}
	return 0
}

func (x *TableCell) GetColumnSpan() int64 {
	if x != nil {
		return x.ColumnSpan
	}
	return 0
}

func (x *TableCell) GetRowSpan() int64 {
	if x != nil {
		return x.RowSpan
	}
	return 0
}

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

func (x *TableCell) GetTextSegments() []*TextSegments {
	if x != nil {
		return x.TextSegments
	}
	return nil
}

type Picture struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Area on the page where the picture is located.
	BoundingBox *Polygon `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
	// Confidence score of picture location.
	Score         float64 `protobuf:"fixed64,2,opt,name=score,proto3" json:"score,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Picture) Reset() {
	*x = Picture{}
	mi := &file_yandex_cloud_ai_ocr_v1_ocr_proto_msgTypes[10]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Picture) ProtoMessage() {}

func (x *Picture) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_ocr_v1_ocr_proto_msgTypes[10]
	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 Picture.ProtoReflect.Descriptor instead.
func (*Picture) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDescGZIP(), []int{10}
}

func (x *Picture) GetBoundingBox() *Polygon {
	if x != nil {
		return x.BoundingBox
	}
	return nil
}

func (x *Picture) GetScore() float64 {
	if x != nil {
		return x.Score
	}
	return 0
}

type Block_DetectedLanguage struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Detected language code.
	LanguageCode  string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Block_DetectedLanguage) Reset() {
	*x = Block_DetectedLanguage{}
	mi := &file_yandex_cloud_ai_ocr_v1_ocr_proto_msgTypes[11]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Block_DetectedLanguage) ProtoMessage() {}

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

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

var File_yandex_cloud_ai_ocr_v1_ocr_proto protoreflect.FileDescriptor

const file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDesc = "" +
	"\n" +
	" yandex/cloud/ai/ocr/v1/ocr.proto\x12\x16yandex.cloud.ai.ocr.v1\"E\n" +
	"\aPolygon\x12:\n" +
	"\bvertices\x18\x01 \x03(\v2\x1e.yandex.cloud.ai.ocr.v1.VertexR\bvertices\"$\n" +
	"\x06Vertex\x12\f\n" +
	"\x01x\x18\x01 \x01(\x03R\x01x\x12\f\n" +
	"\x01y\x18\x02 \x01(\x03R\x01y\"\x95\x03\n" +
	"\x0eTextAnnotation\x12\x14\n" +
	"\x05width\x18\x01 \x01(\x03R\x05width\x12\x16\n" +
	"\x06height\x18\x02 \x01(\x03R\x06height\x125\n" +
	"\x06blocks\x18\x03 \x03(\v2\x1d.yandex.cloud.ai.ocr.v1.BlockR\x06blocks\x12:\n" +
	"\bentities\x18\x04 \x03(\v2\x1e.yandex.cloud.ai.ocr.v1.EntityR\bentities\x125\n" +
	"\x06tables\x18\x05 \x03(\v2\x1d.yandex.cloud.ai.ocr.v1.TableR\x06tables\x12\x1b\n" +
	"\tfull_text\x18\x06 \x01(\tR\bfullText\x125\n" +
	"\x06rotate\x18\a \x01(\x0e2\x1d.yandex.cloud.ai.ocr.v1.AngleR\x06rotate\x12\x1a\n" +
	"\bmarkdown\x18\b \x01(\tR\bmarkdown\x12;\n" +
	"\bpictures\x18\t \x03(\v2\x1f.yandex.cloud.ai.ocr.v1.PictureR\bpictures\"0\n" +
	"\x06Entity\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
	"\x04text\x18\x02 \x01(\tR\x04text\"\x96\x03\n" +
	"\x05Block\x12B\n" +
	"\fbounding_box\x18\x01 \x01(\v2\x1f.yandex.cloud.ai.ocr.v1.PolygonR\vboundingBox\x122\n" +
	"\x05lines\x18\x02 \x03(\v2\x1c.yandex.cloud.ai.ocr.v1.LineR\x05lines\x12L\n" +
	"\tlanguages\x18\x03 \x03(\v2..yandex.cloud.ai.ocr.v1.Block.DetectedLanguageR\tlanguages\x12I\n" +
	"\rtext_segments\x18\x04 \x03(\v2$.yandex.cloud.ai.ocr.v1.TextSegmentsR\ftextSegments\x12C\n" +
	"\vlayout_type\x18\x05 \x01(\x0e2\".yandex.cloud.ai.ocr.v1.LayoutTypeR\n" +
	"layoutType\x1a7\n" +
	"\x10DetectedLanguage\x12#\n" +
	"\rlanguage_code\x18\x01 \x01(\tR\flanguageCode\"\x9e\x02\n" +
	"\x04Line\x12B\n" +
	"\fbounding_box\x18\x01 \x01(\v2\x1f.yandex.cloud.ai.ocr.v1.PolygonR\vboundingBox\x12\x12\n" +
	"\x04text\x18\x02 \x01(\tR\x04text\x122\n" +
	"\x05words\x18\x03 \x03(\v2\x1c.yandex.cloud.ai.ocr.v1.WordR\x05words\x12I\n" +
	"\rtext_segments\x18\x04 \x03(\v2$.yandex.cloud.ai.ocr.v1.TextSegmentsR\ftextSegments\x12?\n" +
	"\vorientation\x18\x05 \x01(\x0e2\x1d.yandex.cloud.ai.ocr.v1.AngleR\vorientation\"\xcc\x01\n" +
	"\x04Word\x12B\n" +
	"\fbounding_box\x18\x01 \x01(\v2\x1f.yandex.cloud.ai.ocr.v1.PolygonR\vboundingBox\x12\x12\n" +
	"\x04text\x18\x02 \x01(\tR\x04text\x12!\n" +
	"\fentity_index\x18\x03 \x01(\x03R\ventityIndex\x12I\n" +
	"\rtext_segments\x18\x04 \x03(\v2$.yandex.cloud.ai.ocr.v1.TextSegmentsR\ftextSegments\"G\n" +
	"\fTextSegments\x12\x1f\n" +
	"\vstart_index\x18\x01 \x01(\x03R\n" +
	"startIndex\x12\x16\n" +
	"\x06length\x18\x02 \x01(\x03R\x06length\"\xc4\x01\n" +
	"\x05Table\x12B\n" +
	"\fbounding_box\x18\x01 \x01(\v2\x1f.yandex.cloud.ai.ocr.v1.PolygonR\vboundingBox\x12\x1b\n" +
	"\trow_count\x18\x02 \x01(\x03R\browCount\x12!\n" +
	"\fcolumn_count\x18\x03 \x01(\x03R\vcolumnCount\x127\n" +
	"\x05cells\x18\x04 \x03(\v2!.yandex.cloud.ai.ocr.v1.TableCellR\x05cells\"\xaa\x02\n" +
	"\tTableCell\x12B\n" +
	"\fbounding_box\x18\x01 \x01(\v2\x1f.yandex.cloud.ai.ocr.v1.PolygonR\vboundingBox\x12\x1b\n" +
	"\trow_index\x18\x02 \x01(\x03R\browIndex\x12!\n" +
	"\fcolumn_index\x18\x03 \x01(\x03R\vcolumnIndex\x12\x1f\n" +
	"\vcolumn_span\x18\x04 \x01(\x03R\n" +
	"columnSpan\x12\x19\n" +
	"\brow_span\x18\x05 \x01(\x03R\arowSpan\x12\x12\n" +
	"\x04text\x18\x06 \x01(\tR\x04text\x12I\n" +
	"\rtext_segments\x18\a \x03(\v2$.yandex.cloud.ai.ocr.v1.TextSegmentsR\ftextSegments\"c\n" +
	"\aPicture\x12B\n" +
	"\fbounding_box\x18\x01 \x01(\v2\x1f.yandex.cloud.ai.ocr.v1.PolygonR\vboundingBox\x12\x14\n" +
	"\x05score\x18\x02 \x01(\x01R\x05score*W\n" +
	"\x05Angle\x12\x15\n" +
	"\x11ANGLE_UNSPECIFIED\x10\x00\x12\v\n" +
	"\aANGLE_0\x10\x01\x12\f\n" +
	"\bANGLE_90\x10\x02\x12\r\n" +
	"\tANGLE_180\x10\x03\x12\r\n" +
	"\tANGLE_270\x10\x04*\xa1\x02\n" +
	"\n" +
	"LayoutType\x12\x1b\n" +
	"\x17LAYOUT_TYPE_UNSPECIFIED\x10\x00\x12\x17\n" +
	"\x13LAYOUT_TYPE_UNKNOWN\x10\x01\x12\x14\n" +
	"\x10LAYOUT_TYPE_TEXT\x10\x02\x12\x16\n" +
	"\x12LAYOUT_TYPE_HEADER\x10\x03\x12\x1e\n" +
	"\x1aLAYOUT_TYPE_SECTION_HEADER\x10\x04\x12\x16\n" +
	"\x12LAYOUT_TYPE_FOOTER\x10\x05\x12\x18\n" +
	"\x14LAYOUT_TYPE_FOOTNOTE\x10\x06\x12\x17\n" +
	"\x13LAYOUT_TYPE_PICTURE\x10\a\x12\x17\n" +
	"\x13LAYOUT_TYPE_CAPTION\x10\b\x12\x15\n" +
	"\x11LAYOUT_TYPE_TITLE\x10\t\x12\x14\n" +
	"\x10LAYOUT_TYPE_LIST\x10\n" +
	"B\\\n" +
	"\x1ayandex.cloud.api.ai.ocr.v1Z>github.com/yandex-cloud/go-genproto/yandex/cloud/ai/ocr/v1;ocrb\x06proto3"

var (
	file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDescOnce sync.Once
	file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDescData []byte
)

func file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDescGZIP() []byte {
	file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDesc), len(file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDesc)))
	})
	return file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDescData
}

var file_yandex_cloud_ai_ocr_v1_ocr_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_yandex_cloud_ai_ocr_v1_ocr_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_yandex_cloud_ai_ocr_v1_ocr_proto_goTypes = []any{
	(Angle)(0),                     // 0: yandex.cloud.ai.ocr.v1.Angle
	(LayoutType)(0),                // 1: yandex.cloud.ai.ocr.v1.LayoutType
	(*Polygon)(nil),                // 2: yandex.cloud.ai.ocr.v1.Polygon
	(*Vertex)(nil),                 // 3: yandex.cloud.ai.ocr.v1.Vertex
	(*TextAnnotation)(nil),         // 4: yandex.cloud.ai.ocr.v1.TextAnnotation
	(*Entity)(nil),                 // 5: yandex.cloud.ai.ocr.v1.Entity
	(*Block)(nil),                  // 6: yandex.cloud.ai.ocr.v1.Block
	(*Line)(nil),                   // 7: yandex.cloud.ai.ocr.v1.Line
	(*Word)(nil),                   // 8: yandex.cloud.ai.ocr.v1.Word
	(*TextSegments)(nil),           // 9: yandex.cloud.ai.ocr.v1.TextSegments
	(*Table)(nil),                  // 10: yandex.cloud.ai.ocr.v1.Table
	(*TableCell)(nil),              // 11: yandex.cloud.ai.ocr.v1.TableCell
	(*Picture)(nil),                // 12: yandex.cloud.ai.ocr.v1.Picture
	(*Block_DetectedLanguage)(nil), // 13: yandex.cloud.ai.ocr.v1.Block.DetectedLanguage
}
var file_yandex_cloud_ai_ocr_v1_ocr_proto_depIdxs = []int32{
	3,  // 0: yandex.cloud.ai.ocr.v1.Polygon.vertices:type_name -> yandex.cloud.ai.ocr.v1.Vertex
	6,  // 1: yandex.cloud.ai.ocr.v1.TextAnnotation.blocks:type_name -> yandex.cloud.ai.ocr.v1.Block
	5,  // 2: yandex.cloud.ai.ocr.v1.TextAnnotation.entities:type_name -> yandex.cloud.ai.ocr.v1.Entity
	10, // 3: yandex.cloud.ai.ocr.v1.TextAnnotation.tables:type_name -> yandex.cloud.ai.ocr.v1.Table
	0,  // 4: yandex.cloud.ai.ocr.v1.TextAnnotation.rotate:type_name -> yandex.cloud.ai.ocr.v1.Angle
	12, // 5: yandex.cloud.ai.ocr.v1.TextAnnotation.pictures:type_name -> yandex.cloud.ai.ocr.v1.Picture
	2,  // 6: yandex.cloud.ai.ocr.v1.Block.bounding_box:type_name -> yandex.cloud.ai.ocr.v1.Polygon
	7,  // 7: yandex.cloud.ai.ocr.v1.Block.lines:type_name -> yandex.cloud.ai.ocr.v1.Line
	13, // 8: yandex.cloud.ai.ocr.v1.Block.languages:type_name -> yandex.cloud.ai.ocr.v1.Block.DetectedLanguage
	9,  // 9: yandex.cloud.ai.ocr.v1.Block.text_segments:type_name -> yandex.cloud.ai.ocr.v1.TextSegments
	1,  // 10: yandex.cloud.ai.ocr.v1.Block.layout_type:type_name -> yandex.cloud.ai.ocr.v1.LayoutType
	2,  // 11: yandex.cloud.ai.ocr.v1.Line.bounding_box:type_name -> yandex.cloud.ai.ocr.v1.Polygon
	8,  // 12: yandex.cloud.ai.ocr.v1.Line.words:type_name -> yandex.cloud.ai.ocr.v1.Word
	9,  // 13: yandex.cloud.ai.ocr.v1.Line.text_segments:type_name -> yandex.cloud.ai.ocr.v1.TextSegments
	0,  // 14: yandex.cloud.ai.ocr.v1.Line.orientation:type_name -> yandex.cloud.ai.ocr.v1.Angle
	2,  // 15: yandex.cloud.ai.ocr.v1.Word.bounding_box:type_name -> yandex.cloud.ai.ocr.v1.Polygon
	9,  // 16: yandex.cloud.ai.ocr.v1.Word.text_segments:type_name -> yandex.cloud.ai.ocr.v1.TextSegments
	2,  // 17: yandex.cloud.ai.ocr.v1.Table.bounding_box:type_name -> yandex.cloud.ai.ocr.v1.Polygon
	11, // 18: yandex.cloud.ai.ocr.v1.Table.cells:type_name -> yandex.cloud.ai.ocr.v1.TableCell
	2,  // 19: yandex.cloud.ai.ocr.v1.TableCell.bounding_box:type_name -> yandex.cloud.ai.ocr.v1.Polygon
	9,  // 20: yandex.cloud.ai.ocr.v1.TableCell.text_segments:type_name -> yandex.cloud.ai.ocr.v1.TextSegments
	2,  // 21: yandex.cloud.ai.ocr.v1.Picture.bounding_box:type_name -> yandex.cloud.ai.ocr.v1.Polygon
	22, // [22:22] is the sub-list for method output_type
	22, // [22:22] is the sub-list for method input_type
	22, // [22:22] is the sub-list for extension type_name
	22, // [22:22] is the sub-list for extension extendee
	0,  // [0:22] is the sub-list for field type_name
}

func init() { file_yandex_cloud_ai_ocr_v1_ocr_proto_init() }
func file_yandex_cloud_ai_ocr_v1_ocr_proto_init() {
	if File_yandex_cloud_ai_ocr_v1_ocr_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_ocr_v1_ocr_proto_rawDesc), len(file_yandex_cloud_ai_ocr_v1_ocr_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   12,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_ai_ocr_v1_ocr_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_ai_ocr_v1_ocr_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_ai_ocr_v1_ocr_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_ai_ocr_v1_ocr_proto_msgTypes,
	}.Build()
	File_yandex_cloud_ai_ocr_v1_ocr_proto = out.File
	file_yandex_cloud_ai_ocr_v1_ocr_proto_goTypes = nil
	file_yandex_cloud_ai_ocr_v1_ocr_proto_depIdxs = nil
}
