1// Copyright 2019 Google LLC. 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14// 15 16// Code generated by protoc-gen-go. DO NOT EDIT. 17// versions: 18// protoc-gen-go v1.22.0 19// protoc v3.11.2 20// source: google/cloud/vision/v1p4beta1/text_annotation.proto 21 22package vision 23 24import ( 25 reflect "reflect" 26 sync "sync" 27 28 proto "github.com/golang/protobuf/proto" 29 _ "google.golang.org/genproto/googleapis/api/annotations" 30 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 31 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 32) 33 34const ( 35 // Verify that this generated code is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 37 // Verify that runtime/protoimpl is sufficiently up-to-date. 38 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 39) 40 41// This is a compile-time assertion that a sufficiently up-to-date version 42// of the legacy proto package is being used. 43const _ = proto.ProtoPackageIsVersion4 44 45// Enum to denote the type of break found. New line, space etc. 46type TextAnnotation_DetectedBreak_BreakType int32 47 48const ( 49 // Unknown break label type. 50 TextAnnotation_DetectedBreak_UNKNOWN TextAnnotation_DetectedBreak_BreakType = 0 51 // Regular space. 52 TextAnnotation_DetectedBreak_SPACE TextAnnotation_DetectedBreak_BreakType = 1 53 // Sure space (very wide). 54 TextAnnotation_DetectedBreak_SURE_SPACE TextAnnotation_DetectedBreak_BreakType = 2 55 // Line-wrapping break. 56 TextAnnotation_DetectedBreak_EOL_SURE_SPACE TextAnnotation_DetectedBreak_BreakType = 3 57 // End-line hyphen that is not present in text; does not co-occur with 58 // `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`. 59 TextAnnotation_DetectedBreak_HYPHEN TextAnnotation_DetectedBreak_BreakType = 4 60 // Line break that ends a paragraph. 61 TextAnnotation_DetectedBreak_LINE_BREAK TextAnnotation_DetectedBreak_BreakType = 5 62) 63 64// Enum value maps for TextAnnotation_DetectedBreak_BreakType. 65var ( 66 TextAnnotation_DetectedBreak_BreakType_name = map[int32]string{ 67 0: "UNKNOWN", 68 1: "SPACE", 69 2: "SURE_SPACE", 70 3: "EOL_SURE_SPACE", 71 4: "HYPHEN", 72 5: "LINE_BREAK", 73 } 74 TextAnnotation_DetectedBreak_BreakType_value = map[string]int32{ 75 "UNKNOWN": 0, 76 "SPACE": 1, 77 "SURE_SPACE": 2, 78 "EOL_SURE_SPACE": 3, 79 "HYPHEN": 4, 80 "LINE_BREAK": 5, 81 } 82) 83 84func (x TextAnnotation_DetectedBreak_BreakType) Enum() *TextAnnotation_DetectedBreak_BreakType { 85 p := new(TextAnnotation_DetectedBreak_BreakType) 86 *p = x 87 return p 88} 89 90func (x TextAnnotation_DetectedBreak_BreakType) String() string { 91 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 92} 93 94func (TextAnnotation_DetectedBreak_BreakType) Descriptor() protoreflect.EnumDescriptor { 95 return file_google_cloud_vision_v1p4beta1_text_annotation_proto_enumTypes[0].Descriptor() 96} 97 98func (TextAnnotation_DetectedBreak_BreakType) Type() protoreflect.EnumType { 99 return &file_google_cloud_vision_v1p4beta1_text_annotation_proto_enumTypes[0] 100} 101 102func (x TextAnnotation_DetectedBreak_BreakType) Number() protoreflect.EnumNumber { 103 return protoreflect.EnumNumber(x) 104} 105 106// Deprecated: Use TextAnnotation_DetectedBreak_BreakType.Descriptor instead. 107func (TextAnnotation_DetectedBreak_BreakType) EnumDescriptor() ([]byte, []int) { 108 return file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDescGZIP(), []int{0, 1, 0} 109} 110 111// Type of a block (text, image etc) as identified by OCR. 112type Block_BlockType int32 113 114const ( 115 // Unknown block type. 116 Block_UNKNOWN Block_BlockType = 0 117 // Regular text block. 118 Block_TEXT Block_BlockType = 1 119 // Table block. 120 Block_TABLE Block_BlockType = 2 121 // Image block. 122 Block_PICTURE Block_BlockType = 3 123 // Horizontal/vertical line box. 124 Block_RULER Block_BlockType = 4 125 // Barcode block. 126 Block_BARCODE Block_BlockType = 5 127) 128 129// Enum value maps for Block_BlockType. 130var ( 131 Block_BlockType_name = map[int32]string{ 132 0: "UNKNOWN", 133 1: "TEXT", 134 2: "TABLE", 135 3: "PICTURE", 136 4: "RULER", 137 5: "BARCODE", 138 } 139 Block_BlockType_value = map[string]int32{ 140 "UNKNOWN": 0, 141 "TEXT": 1, 142 "TABLE": 2, 143 "PICTURE": 3, 144 "RULER": 4, 145 "BARCODE": 5, 146 } 147) 148 149func (x Block_BlockType) Enum() *Block_BlockType { 150 p := new(Block_BlockType) 151 *p = x 152 return p 153} 154 155func (x Block_BlockType) String() string { 156 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 157} 158 159func (Block_BlockType) Descriptor() protoreflect.EnumDescriptor { 160 return file_google_cloud_vision_v1p4beta1_text_annotation_proto_enumTypes[1].Descriptor() 161} 162 163func (Block_BlockType) Type() protoreflect.EnumType { 164 return &file_google_cloud_vision_v1p4beta1_text_annotation_proto_enumTypes[1] 165} 166 167func (x Block_BlockType) Number() protoreflect.EnumNumber { 168 return protoreflect.EnumNumber(x) 169} 170 171// Deprecated: Use Block_BlockType.Descriptor instead. 172func (Block_BlockType) EnumDescriptor() ([]byte, []int) { 173 return file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDescGZIP(), []int{2, 0} 174} 175 176// TextAnnotation contains a structured representation of OCR extracted text. 177// The hierarchy of an OCR extracted text structure is like this: 178// TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol 179// Each structural component, starting from Page, may further have their own 180// properties. Properties describe detected languages, breaks etc.. Please refer 181// to the 182// [TextAnnotation.TextProperty][google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty] 183// message definition below for more detail. 184type TextAnnotation struct { 185 state protoimpl.MessageState 186 sizeCache protoimpl.SizeCache 187 unknownFields protoimpl.UnknownFields 188 189 // List of pages detected by OCR. 190 Pages []*Page `protobuf:"bytes,1,rep,name=pages,proto3" json:"pages,omitempty"` 191 // UTF-8 text detected on the pages. 192 Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` 193} 194 195func (x *TextAnnotation) Reset() { 196 *x = TextAnnotation{} 197 if protoimpl.UnsafeEnabled { 198 mi := &file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[0] 199 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 200 ms.StoreMessageInfo(mi) 201 } 202} 203 204func (x *TextAnnotation) String() string { 205 return protoimpl.X.MessageStringOf(x) 206} 207 208func (*TextAnnotation) ProtoMessage() {} 209 210func (x *TextAnnotation) ProtoReflect() protoreflect.Message { 211 mi := &file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[0] 212 if protoimpl.UnsafeEnabled && x != nil { 213 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 214 if ms.LoadMessageInfo() == nil { 215 ms.StoreMessageInfo(mi) 216 } 217 return ms 218 } 219 return mi.MessageOf(x) 220} 221 222// Deprecated: Use TextAnnotation.ProtoReflect.Descriptor instead. 223func (*TextAnnotation) Descriptor() ([]byte, []int) { 224 return file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDescGZIP(), []int{0} 225} 226 227func (x *TextAnnotation) GetPages() []*Page { 228 if x != nil { 229 return x.Pages 230 } 231 return nil 232} 233 234func (x *TextAnnotation) GetText() string { 235 if x != nil { 236 return x.Text 237 } 238 return "" 239} 240 241// Detected page from OCR. 242type Page struct { 243 state protoimpl.MessageState 244 sizeCache protoimpl.SizeCache 245 unknownFields protoimpl.UnknownFields 246 247 // Additional information detected on the page. 248 Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"` 249 // Page width. For PDFs the unit is points. For images (including 250 // TIFFs) the unit is pixels. 251 Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"` 252 // Page height. For PDFs the unit is points. For images (including 253 // TIFFs) the unit is pixels. 254 Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` 255 // List of blocks of text, images etc on this page. 256 Blocks []*Block `protobuf:"bytes,4,rep,name=blocks,proto3" json:"blocks,omitempty"` 257 // Confidence of the OCR results on the page. Range [0, 1]. 258 Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"` 259} 260 261func (x *Page) Reset() { 262 *x = Page{} 263 if protoimpl.UnsafeEnabled { 264 mi := &file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[1] 265 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 266 ms.StoreMessageInfo(mi) 267 } 268} 269 270func (x *Page) String() string { 271 return protoimpl.X.MessageStringOf(x) 272} 273 274func (*Page) ProtoMessage() {} 275 276func (x *Page) ProtoReflect() protoreflect.Message { 277 mi := &file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[1] 278 if protoimpl.UnsafeEnabled && x != nil { 279 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 280 if ms.LoadMessageInfo() == nil { 281 ms.StoreMessageInfo(mi) 282 } 283 return ms 284 } 285 return mi.MessageOf(x) 286} 287 288// Deprecated: Use Page.ProtoReflect.Descriptor instead. 289func (*Page) Descriptor() ([]byte, []int) { 290 return file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDescGZIP(), []int{1} 291} 292 293func (x *Page) GetProperty() *TextAnnotation_TextProperty { 294 if x != nil { 295 return x.Property 296 } 297 return nil 298} 299 300func (x *Page) GetWidth() int32 { 301 if x != nil { 302 return x.Width 303 } 304 return 0 305} 306 307func (x *Page) GetHeight() int32 { 308 if x != nil { 309 return x.Height 310 } 311 return 0 312} 313 314func (x *Page) GetBlocks() []*Block { 315 if x != nil { 316 return x.Blocks 317 } 318 return nil 319} 320 321func (x *Page) GetConfidence() float32 { 322 if x != nil { 323 return x.Confidence 324 } 325 return 0 326} 327 328// Logical element on the page. 329type Block struct { 330 state protoimpl.MessageState 331 sizeCache protoimpl.SizeCache 332 unknownFields protoimpl.UnknownFields 333 334 // Additional information detected for the block. 335 Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"` 336 // The bounding box for the block. 337 // The vertices are in the order of top-left, top-right, bottom-right, 338 // bottom-left. When a rotation of the bounding box is detected the rotation 339 // is represented as around the top-left corner as defined when the text is 340 // read in the 'natural' orientation. 341 // For example: 342 // 343 // * when the text is horizontal it might look like: 344 // 345 // 0----1 346 // | | 347 // 3----2 348 // 349 // * when it's rotated 180 degrees around the top-left corner it becomes: 350 // 351 // 2----3 352 // | | 353 // 1----0 354 // 355 // and the vertex order will still be (0, 1, 2, 3). 356 BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"` 357 // List of paragraphs in this block (if this blocks is of type text). 358 Paragraphs []*Paragraph `protobuf:"bytes,3,rep,name=paragraphs,proto3" json:"paragraphs,omitempty"` 359 // Detected block type (text, image etc) for this block. 360 BlockType Block_BlockType `protobuf:"varint,4,opt,name=block_type,json=blockType,proto3,enum=google.cloud.vision.v1p4beta1.Block_BlockType" json:"block_type,omitempty"` 361 // Confidence of the OCR results on the block. Range [0, 1]. 362 Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"` 363} 364 365func (x *Block) Reset() { 366 *x = Block{} 367 if protoimpl.UnsafeEnabled { 368 mi := &file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[2] 369 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 370 ms.StoreMessageInfo(mi) 371 } 372} 373 374func (x *Block) String() string { 375 return protoimpl.X.MessageStringOf(x) 376} 377 378func (*Block) ProtoMessage() {} 379 380func (x *Block) ProtoReflect() protoreflect.Message { 381 mi := &file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[2] 382 if protoimpl.UnsafeEnabled && x != nil { 383 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 384 if ms.LoadMessageInfo() == nil { 385 ms.StoreMessageInfo(mi) 386 } 387 return ms 388 } 389 return mi.MessageOf(x) 390} 391 392// Deprecated: Use Block.ProtoReflect.Descriptor instead. 393func (*Block) Descriptor() ([]byte, []int) { 394 return file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDescGZIP(), []int{2} 395} 396 397func (x *Block) GetProperty() *TextAnnotation_TextProperty { 398 if x != nil { 399 return x.Property 400 } 401 return nil 402} 403 404func (x *Block) GetBoundingBox() *BoundingPoly { 405 if x != nil { 406 return x.BoundingBox 407 } 408 return nil 409} 410 411func (x *Block) GetParagraphs() []*Paragraph { 412 if x != nil { 413 return x.Paragraphs 414 } 415 return nil 416} 417 418func (x *Block) GetBlockType() Block_BlockType { 419 if x != nil { 420 return x.BlockType 421 } 422 return Block_UNKNOWN 423} 424 425func (x *Block) GetConfidence() float32 { 426 if x != nil { 427 return x.Confidence 428 } 429 return 0 430} 431 432// Structural unit of text representing a number of words in certain order. 433type Paragraph struct { 434 state protoimpl.MessageState 435 sizeCache protoimpl.SizeCache 436 unknownFields protoimpl.UnknownFields 437 438 // Additional information detected for the paragraph. 439 Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"` 440 // The bounding box for the paragraph. 441 // The vertices are in the order of top-left, top-right, bottom-right, 442 // bottom-left. When a rotation of the bounding box is detected the rotation 443 // is represented as around the top-left corner as defined when the text is 444 // read in the 'natural' orientation. 445 // For example: 446 // * when the text is horizontal it might look like: 447 // 0----1 448 // | | 449 // 3----2 450 // * when it's rotated 180 degrees around the top-left corner it becomes: 451 // 2----3 452 // | | 453 // 1----0 454 // and the vertex order will still be (0, 1, 2, 3). 455 BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"` 456 // List of all words in this paragraph. 457 Words []*Word `protobuf:"bytes,3,rep,name=words,proto3" json:"words,omitempty"` 458 // Confidence of the OCR results for the paragraph. Range [0, 1]. 459 Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"` 460} 461 462func (x *Paragraph) Reset() { 463 *x = Paragraph{} 464 if protoimpl.UnsafeEnabled { 465 mi := &file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[3] 466 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 467 ms.StoreMessageInfo(mi) 468 } 469} 470 471func (x *Paragraph) String() string { 472 return protoimpl.X.MessageStringOf(x) 473} 474 475func (*Paragraph) ProtoMessage() {} 476 477func (x *Paragraph) ProtoReflect() protoreflect.Message { 478 mi := &file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[3] 479 if protoimpl.UnsafeEnabled && x != nil { 480 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 481 if ms.LoadMessageInfo() == nil { 482 ms.StoreMessageInfo(mi) 483 } 484 return ms 485 } 486 return mi.MessageOf(x) 487} 488 489// Deprecated: Use Paragraph.ProtoReflect.Descriptor instead. 490func (*Paragraph) Descriptor() ([]byte, []int) { 491 return file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDescGZIP(), []int{3} 492} 493 494func (x *Paragraph) GetProperty() *TextAnnotation_TextProperty { 495 if x != nil { 496 return x.Property 497 } 498 return nil 499} 500 501func (x *Paragraph) GetBoundingBox() *BoundingPoly { 502 if x != nil { 503 return x.BoundingBox 504 } 505 return nil 506} 507 508func (x *Paragraph) GetWords() []*Word { 509 if x != nil { 510 return x.Words 511 } 512 return nil 513} 514 515func (x *Paragraph) GetConfidence() float32 { 516 if x != nil { 517 return x.Confidence 518 } 519 return 0 520} 521 522// A word representation. 523type Word struct { 524 state protoimpl.MessageState 525 sizeCache protoimpl.SizeCache 526 unknownFields protoimpl.UnknownFields 527 528 // Additional information detected for the word. 529 Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"` 530 // The bounding box for the word. 531 // The vertices are in the order of top-left, top-right, bottom-right, 532 // bottom-left. When a rotation of the bounding box is detected the rotation 533 // is represented as around the top-left corner as defined when the text is 534 // read in the 'natural' orientation. 535 // For example: 536 // * when the text is horizontal it might look like: 537 // 0----1 538 // | | 539 // 3----2 540 // * when it's rotated 180 degrees around the top-left corner it becomes: 541 // 2----3 542 // | | 543 // 1----0 544 // and the vertex order will still be (0, 1, 2, 3). 545 BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"` 546 // List of symbols in the word. 547 // The order of the symbols follows the natural reading order. 548 Symbols []*Symbol `protobuf:"bytes,3,rep,name=symbols,proto3" json:"symbols,omitempty"` 549 // Confidence of the OCR results for the word. Range [0, 1]. 550 Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"` 551} 552 553func (x *Word) Reset() { 554 *x = Word{} 555 if protoimpl.UnsafeEnabled { 556 mi := &file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[4] 557 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 558 ms.StoreMessageInfo(mi) 559 } 560} 561 562func (x *Word) String() string { 563 return protoimpl.X.MessageStringOf(x) 564} 565 566func (*Word) ProtoMessage() {} 567 568func (x *Word) ProtoReflect() protoreflect.Message { 569 mi := &file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[4] 570 if protoimpl.UnsafeEnabled && x != nil { 571 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 572 if ms.LoadMessageInfo() == nil { 573 ms.StoreMessageInfo(mi) 574 } 575 return ms 576 } 577 return mi.MessageOf(x) 578} 579 580// Deprecated: Use Word.ProtoReflect.Descriptor instead. 581func (*Word) Descriptor() ([]byte, []int) { 582 return file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDescGZIP(), []int{4} 583} 584 585func (x *Word) GetProperty() *TextAnnotation_TextProperty { 586 if x != nil { 587 return x.Property 588 } 589 return nil 590} 591 592func (x *Word) GetBoundingBox() *BoundingPoly { 593 if x != nil { 594 return x.BoundingBox 595 } 596 return nil 597} 598 599func (x *Word) GetSymbols() []*Symbol { 600 if x != nil { 601 return x.Symbols 602 } 603 return nil 604} 605 606func (x *Word) GetConfidence() float32 { 607 if x != nil { 608 return x.Confidence 609 } 610 return 0 611} 612 613// A single symbol representation. 614type Symbol struct { 615 state protoimpl.MessageState 616 sizeCache protoimpl.SizeCache 617 unknownFields protoimpl.UnknownFields 618 619 // Additional information detected for the symbol. 620 Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"` 621 // The bounding box for the symbol. 622 // The vertices are in the order of top-left, top-right, bottom-right, 623 // bottom-left. When a rotation of the bounding box is detected the rotation 624 // is represented as around the top-left corner as defined when the text is 625 // read in the 'natural' orientation. 626 // For example: 627 // * when the text is horizontal it might look like: 628 // 0----1 629 // | | 630 // 3----2 631 // * when it's rotated 180 degrees around the top-left corner it becomes: 632 // 2----3 633 // | | 634 // 1----0 635 // and the vertex order will still be (0, 1, 2, 3). 636 BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"` 637 // The actual UTF-8 representation of the symbol. 638 Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` 639 // Confidence of the OCR results for the symbol. Range [0, 1]. 640 Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"` 641} 642 643func (x *Symbol) Reset() { 644 *x = Symbol{} 645 if protoimpl.UnsafeEnabled { 646 mi := &file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[5] 647 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 648 ms.StoreMessageInfo(mi) 649 } 650} 651 652func (x *Symbol) String() string { 653 return protoimpl.X.MessageStringOf(x) 654} 655 656func (*Symbol) ProtoMessage() {} 657 658func (x *Symbol) ProtoReflect() protoreflect.Message { 659 mi := &file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[5] 660 if protoimpl.UnsafeEnabled && x != nil { 661 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 662 if ms.LoadMessageInfo() == nil { 663 ms.StoreMessageInfo(mi) 664 } 665 return ms 666 } 667 return mi.MessageOf(x) 668} 669 670// Deprecated: Use Symbol.ProtoReflect.Descriptor instead. 671func (*Symbol) Descriptor() ([]byte, []int) { 672 return file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDescGZIP(), []int{5} 673} 674 675func (x *Symbol) GetProperty() *TextAnnotation_TextProperty { 676 if x != nil { 677 return x.Property 678 } 679 return nil 680} 681 682func (x *Symbol) GetBoundingBox() *BoundingPoly { 683 if x != nil { 684 return x.BoundingBox 685 } 686 return nil 687} 688 689func (x *Symbol) GetText() string { 690 if x != nil { 691 return x.Text 692 } 693 return "" 694} 695 696func (x *Symbol) GetConfidence() float32 { 697 if x != nil { 698 return x.Confidence 699 } 700 return 0 701} 702 703// Detected language for a structural component. 704type TextAnnotation_DetectedLanguage struct { 705 state protoimpl.MessageState 706 sizeCache protoimpl.SizeCache 707 unknownFields protoimpl.UnknownFields 708 709 // The BCP-47 language code, such as "en-US" or "sr-Latn". For more 710 // information, see 711 // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. 712 LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` 713 // Confidence of detected language. Range [0, 1]. 714 Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"` 715} 716 717func (x *TextAnnotation_DetectedLanguage) Reset() { 718 *x = TextAnnotation_DetectedLanguage{} 719 if protoimpl.UnsafeEnabled { 720 mi := &file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[6] 721 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 722 ms.StoreMessageInfo(mi) 723 } 724} 725 726func (x *TextAnnotation_DetectedLanguage) String() string { 727 return protoimpl.X.MessageStringOf(x) 728} 729 730func (*TextAnnotation_DetectedLanguage) ProtoMessage() {} 731 732func (x *TextAnnotation_DetectedLanguage) ProtoReflect() protoreflect.Message { 733 mi := &file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[6] 734 if protoimpl.UnsafeEnabled && x != nil { 735 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 736 if ms.LoadMessageInfo() == nil { 737 ms.StoreMessageInfo(mi) 738 } 739 return ms 740 } 741 return mi.MessageOf(x) 742} 743 744// Deprecated: Use TextAnnotation_DetectedLanguage.ProtoReflect.Descriptor instead. 745func (*TextAnnotation_DetectedLanguage) Descriptor() ([]byte, []int) { 746 return file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDescGZIP(), []int{0, 0} 747} 748 749func (x *TextAnnotation_DetectedLanguage) GetLanguageCode() string { 750 if x != nil { 751 return x.LanguageCode 752 } 753 return "" 754} 755 756func (x *TextAnnotation_DetectedLanguage) GetConfidence() float32 { 757 if x != nil { 758 return x.Confidence 759 } 760 return 0 761} 762 763// Detected start or end of a structural component. 764type TextAnnotation_DetectedBreak struct { 765 state protoimpl.MessageState 766 sizeCache protoimpl.SizeCache 767 unknownFields protoimpl.UnknownFields 768 769 // Detected break type. 770 Type TextAnnotation_DetectedBreak_BreakType `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.vision.v1p4beta1.TextAnnotation_DetectedBreak_BreakType" json:"type,omitempty"` 771 // True if break prepends the element. 772 IsPrefix bool `protobuf:"varint,2,opt,name=is_prefix,json=isPrefix,proto3" json:"is_prefix,omitempty"` 773} 774 775func (x *TextAnnotation_DetectedBreak) Reset() { 776 *x = TextAnnotation_DetectedBreak{} 777 if protoimpl.UnsafeEnabled { 778 mi := &file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[7] 779 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 780 ms.StoreMessageInfo(mi) 781 } 782} 783 784func (x *TextAnnotation_DetectedBreak) String() string { 785 return protoimpl.X.MessageStringOf(x) 786} 787 788func (*TextAnnotation_DetectedBreak) ProtoMessage() {} 789 790func (x *TextAnnotation_DetectedBreak) ProtoReflect() protoreflect.Message { 791 mi := &file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[7] 792 if protoimpl.UnsafeEnabled && x != nil { 793 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 794 if ms.LoadMessageInfo() == nil { 795 ms.StoreMessageInfo(mi) 796 } 797 return ms 798 } 799 return mi.MessageOf(x) 800} 801 802// Deprecated: Use TextAnnotation_DetectedBreak.ProtoReflect.Descriptor instead. 803func (*TextAnnotation_DetectedBreak) Descriptor() ([]byte, []int) { 804 return file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDescGZIP(), []int{0, 1} 805} 806 807func (x *TextAnnotation_DetectedBreak) GetType() TextAnnotation_DetectedBreak_BreakType { 808 if x != nil { 809 return x.Type 810 } 811 return TextAnnotation_DetectedBreak_UNKNOWN 812} 813 814func (x *TextAnnotation_DetectedBreak) GetIsPrefix() bool { 815 if x != nil { 816 return x.IsPrefix 817 } 818 return false 819} 820 821// Additional information detected on the structural component. 822type TextAnnotation_TextProperty struct { 823 state protoimpl.MessageState 824 sizeCache protoimpl.SizeCache 825 unknownFields protoimpl.UnknownFields 826 827 // A list of detected languages together with confidence. 828 DetectedLanguages []*TextAnnotation_DetectedLanguage `protobuf:"bytes,1,rep,name=detected_languages,json=detectedLanguages,proto3" json:"detected_languages,omitempty"` 829 // Detected start or end of a text segment. 830 DetectedBreak *TextAnnotation_DetectedBreak `protobuf:"bytes,2,opt,name=detected_break,json=detectedBreak,proto3" json:"detected_break,omitempty"` 831} 832 833func (x *TextAnnotation_TextProperty) Reset() { 834 *x = TextAnnotation_TextProperty{} 835 if protoimpl.UnsafeEnabled { 836 mi := &file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[8] 837 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 838 ms.StoreMessageInfo(mi) 839 } 840} 841 842func (x *TextAnnotation_TextProperty) String() string { 843 return protoimpl.X.MessageStringOf(x) 844} 845 846func (*TextAnnotation_TextProperty) ProtoMessage() {} 847 848func (x *TextAnnotation_TextProperty) ProtoReflect() protoreflect.Message { 849 mi := &file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[8] 850 if protoimpl.UnsafeEnabled && x != nil { 851 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 852 if ms.LoadMessageInfo() == nil { 853 ms.StoreMessageInfo(mi) 854 } 855 return ms 856 } 857 return mi.MessageOf(x) 858} 859 860// Deprecated: Use TextAnnotation_TextProperty.ProtoReflect.Descriptor instead. 861func (*TextAnnotation_TextProperty) Descriptor() ([]byte, []int) { 862 return file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDescGZIP(), []int{0, 2} 863} 864 865func (x *TextAnnotation_TextProperty) GetDetectedLanguages() []*TextAnnotation_DetectedLanguage { 866 if x != nil { 867 return x.DetectedLanguages 868 } 869 return nil 870} 871 872func (x *TextAnnotation_TextProperty) GetDetectedBreak() *TextAnnotation_DetectedBreak { 873 if x != nil { 874 return x.DetectedBreak 875 } 876 return nil 877} 878 879var File_google_cloud_vision_v1p4beta1_text_annotation_proto protoreflect.FileDescriptor 880 881var file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDesc = []byte{ 882 0x0a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 883 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 884 0x74, 0x65, 0x78, 0x74, 0x5f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 885 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 886 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x34, 0x62, 887 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 888 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 889 0x74, 0x6f, 0x1a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 890 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 891 0x31, 0x2f, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 892 0x22, 0x8b, 0x05, 0x0a, 0x0e, 0x54, 0x65, 0x78, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 893 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x05, 0x70, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 894 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 895 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 896 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x05, 0x70, 0x61, 0x67, 0x65, 0x73, 0x12, 0x12, 897 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 898 0x78, 0x74, 0x1a, 0x57, 0x0a, 0x10, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x4c, 0x61, 899 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 900 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 901 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 902 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 903 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x1a, 0xec, 0x01, 0x0a, 0x0d, 904 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x12, 0x59, 0x0a, 905 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x45, 0x2e, 0x67, 0x6f, 906 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 907 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 908 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 909 0x74, 0x65, 0x64, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x2e, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x54, 0x79, 910 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x70, 911 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x50, 912 0x72, 0x65, 0x66, 0x69, 0x78, 0x22, 0x63, 0x0a, 0x09, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x54, 0x79, 913 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 914 0x09, 0x0a, 0x05, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x55, 915 0x52, 0x45, 0x5f, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x4f, 916 0x4c, 0x5f, 0x53, 0x55, 0x52, 0x45, 0x5f, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x03, 0x12, 0x0a, 917 0x0a, 0x06, 0x48, 0x59, 0x50, 0x48, 0x45, 0x4e, 0x10, 0x04, 0x12, 0x0e, 0x0a, 0x0a, 0x4c, 0x49, 918 0x4e, 0x45, 0x5f, 0x42, 0x52, 0x45, 0x41, 0x4b, 0x10, 0x05, 0x1a, 0xe1, 0x01, 0x0a, 0x0c, 0x54, 919 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x6d, 0x0a, 0x12, 0x64, 920 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 921 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 922 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 923 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 924 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x4c, 925 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x52, 0x11, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 926 0x64, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x73, 0x12, 0x62, 0x0a, 0x0e, 0x64, 0x65, 927 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x18, 0x02, 0x20, 0x01, 928 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 929 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 930 0x61, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 931 0x6e, 0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x52, 932 0x0d, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x22, 0xea, 933 0x01, 0x0a, 0x04, 0x50, 0x61, 0x67, 0x65, 0x12, 0x56, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 934 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 935 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 936 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x41, 0x6e, 937 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 938 0x70, 0x65, 0x72, 0x74, 0x79, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 939 0x14, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 940 0x77, 0x69, 0x64, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 941 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x3c, 0x0a, 942 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 943 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 944 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6c, 945 0x6f, 0x63, 0x6b, 0x52, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 946 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x52, 947 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x22, 0xbc, 0x03, 0x0a, 0x05, 948 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x56, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 949 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 950 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 951 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 952 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 953 0x72, 0x74, 0x79, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x4e, 0x0a, 954 0x0c, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6f, 0x78, 0x18, 0x02, 0x20, 955 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 956 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 957 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x79, 958 0x52, 0x0b, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x78, 0x12, 0x48, 0x0a, 959 0x0a, 0x70, 0x61, 0x72, 0x61, 0x67, 0x72, 0x61, 0x70, 0x68, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 960 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 961 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 962 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x67, 0x72, 0x61, 0x70, 0x68, 0x52, 0x0a, 0x70, 0x61, 0x72, 963 0x61, 0x67, 0x72, 0x61, 0x70, 0x68, 0x73, 0x12, 0x4d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 964 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 965 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 966 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 967 0x6b, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x62, 0x6c, 0x6f, 968 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 969 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 970 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x52, 0x0a, 0x09, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 971 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 972 0x12, 0x08, 0x0a, 0x04, 0x54, 0x45, 0x58, 0x54, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x41, 973 0x42, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x49, 0x43, 0x54, 0x55, 0x52, 0x45, 974 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x55, 0x4c, 0x45, 0x52, 0x10, 0x04, 0x12, 0x0b, 0x0a, 975 0x07, 0x42, 0x41, 0x52, 0x43, 0x4f, 0x44, 0x45, 0x10, 0x05, 0x22, 0x8e, 0x02, 0x0a, 0x09, 0x50, 976 0x61, 0x72, 0x61, 0x67, 0x72, 0x61, 0x70, 0x68, 0x12, 0x56, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 977 0x65, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 978 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 979 0x2e, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x41, 980 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x50, 0x72, 981 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 982 0x12, 0x4e, 0x0a, 0x0c, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6f, 0x78, 983 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 984 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 985 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 986 0x6f, 0x6c, 0x79, 0x52, 0x0b, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x78, 987 0x12, 0x39, 0x0a, 0x05, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 988 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 989 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 990 0x57, 0x6f, 0x72, 0x64, 0x52, 0x05, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 991 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 992 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x8f, 0x02, 0x0a, 0x04, 993 0x57, 0x6f, 0x72, 0x64, 0x12, 0x56, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 994 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 995 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 996 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 997 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 998 0x74, 0x79, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x4e, 0x0a, 0x0c, 999 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6f, 0x78, 0x18, 0x02, 0x20, 0x01, 1000 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 1001 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 1002 0x61, 0x31, 0x2e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x79, 0x52, 1003 0x0b, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x78, 0x12, 0x3f, 0x0a, 0x07, 1004 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 1005 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 1006 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x79, 1007 0x6d, 0x62, 0x6f, 0x6c, 0x52, 0x07, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x12, 0x1e, 0x0a, 1008 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 1009 0x02, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x22, 0xe4, 0x01, 1010 0x0a, 0x06, 0x53, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x12, 0x56, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 1011 0x65, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 1012 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 1013 0x2e, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x41, 1014 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x50, 0x72, 1015 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 1016 0x12, 0x4e, 0x0a, 0x0c, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6f, 0x78, 1017 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 1018 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 1019 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 1020 0x6f, 0x6c, 0x79, 0x52, 0x0b, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x78, 1021 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 1022 0x74, 0x65, 0x78, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 1023 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 1024 0x65, 0x6e, 0x63, 0x65, 0x42, 0x89, 0x01, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 1025 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 1026 0x2e, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x13, 0x54, 0x65, 0x78, 0x74, 1027 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 1028 0x01, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 1029 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 1030 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 1031 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 1032 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x04, 0x47, 0x43, 0x56, 0x4e, 1033 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 1034} 1035 1036var ( 1037 file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDescOnce sync.Once 1038 file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDescData = file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDesc 1039) 1040 1041func file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDescGZIP() []byte { 1042 file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDescOnce.Do(func() { 1043 file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDescData) 1044 }) 1045 return file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDescData 1046} 1047 1048var file_google_cloud_vision_v1p4beta1_text_annotation_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 1049var file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes = make([]protoimpl.MessageInfo, 9) 1050var file_google_cloud_vision_v1p4beta1_text_annotation_proto_goTypes = []interface{}{ 1051 (TextAnnotation_DetectedBreak_BreakType)(0), // 0: google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType 1052 (Block_BlockType)(0), // 1: google.cloud.vision.v1p4beta1.Block.BlockType 1053 (*TextAnnotation)(nil), // 2: google.cloud.vision.v1p4beta1.TextAnnotation 1054 (*Page)(nil), // 3: google.cloud.vision.v1p4beta1.Page 1055 (*Block)(nil), // 4: google.cloud.vision.v1p4beta1.Block 1056 (*Paragraph)(nil), // 5: google.cloud.vision.v1p4beta1.Paragraph 1057 (*Word)(nil), // 6: google.cloud.vision.v1p4beta1.Word 1058 (*Symbol)(nil), // 7: google.cloud.vision.v1p4beta1.Symbol 1059 (*TextAnnotation_DetectedLanguage)(nil), // 8: google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage 1060 (*TextAnnotation_DetectedBreak)(nil), // 9: google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak 1061 (*TextAnnotation_TextProperty)(nil), // 10: google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty 1062 (*BoundingPoly)(nil), // 11: google.cloud.vision.v1p4beta1.BoundingPoly 1063} 1064var file_google_cloud_vision_v1p4beta1_text_annotation_proto_depIdxs = []int32{ 1065 3, // 0: google.cloud.vision.v1p4beta1.TextAnnotation.pages:type_name -> google.cloud.vision.v1p4beta1.Page 1066 10, // 1: google.cloud.vision.v1p4beta1.Page.property:type_name -> google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty 1067 4, // 2: google.cloud.vision.v1p4beta1.Page.blocks:type_name -> google.cloud.vision.v1p4beta1.Block 1068 10, // 3: google.cloud.vision.v1p4beta1.Block.property:type_name -> google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty 1069 11, // 4: google.cloud.vision.v1p4beta1.Block.bounding_box:type_name -> google.cloud.vision.v1p4beta1.BoundingPoly 1070 5, // 5: google.cloud.vision.v1p4beta1.Block.paragraphs:type_name -> google.cloud.vision.v1p4beta1.Paragraph 1071 1, // 6: google.cloud.vision.v1p4beta1.Block.block_type:type_name -> google.cloud.vision.v1p4beta1.Block.BlockType 1072 10, // 7: google.cloud.vision.v1p4beta1.Paragraph.property:type_name -> google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty 1073 11, // 8: google.cloud.vision.v1p4beta1.Paragraph.bounding_box:type_name -> google.cloud.vision.v1p4beta1.BoundingPoly 1074 6, // 9: google.cloud.vision.v1p4beta1.Paragraph.words:type_name -> google.cloud.vision.v1p4beta1.Word 1075 10, // 10: google.cloud.vision.v1p4beta1.Word.property:type_name -> google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty 1076 11, // 11: google.cloud.vision.v1p4beta1.Word.bounding_box:type_name -> google.cloud.vision.v1p4beta1.BoundingPoly 1077 7, // 12: google.cloud.vision.v1p4beta1.Word.symbols:type_name -> google.cloud.vision.v1p4beta1.Symbol 1078 10, // 13: google.cloud.vision.v1p4beta1.Symbol.property:type_name -> google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty 1079 11, // 14: google.cloud.vision.v1p4beta1.Symbol.bounding_box:type_name -> google.cloud.vision.v1p4beta1.BoundingPoly 1080 0, // 15: google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.type:type_name -> google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType 1081 8, // 16: google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.detected_languages:type_name -> google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage 1082 9, // 17: google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty.detected_break:type_name -> google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak 1083 18, // [18:18] is the sub-list for method output_type 1084 18, // [18:18] is the sub-list for method input_type 1085 18, // [18:18] is the sub-list for extension type_name 1086 18, // [18:18] is the sub-list for extension extendee 1087 0, // [0:18] is the sub-list for field type_name 1088} 1089 1090func init() { file_google_cloud_vision_v1p4beta1_text_annotation_proto_init() } 1091func file_google_cloud_vision_v1p4beta1_text_annotation_proto_init() { 1092 if File_google_cloud_vision_v1p4beta1_text_annotation_proto != nil { 1093 return 1094 } 1095 file_google_cloud_vision_v1p4beta1_geometry_proto_init() 1096 if !protoimpl.UnsafeEnabled { 1097 file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1098 switch v := v.(*TextAnnotation); i { 1099 case 0: 1100 return &v.state 1101 case 1: 1102 return &v.sizeCache 1103 case 2: 1104 return &v.unknownFields 1105 default: 1106 return nil 1107 } 1108 } 1109 file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1110 switch v := v.(*Page); i { 1111 case 0: 1112 return &v.state 1113 case 1: 1114 return &v.sizeCache 1115 case 2: 1116 return &v.unknownFields 1117 default: 1118 return nil 1119 } 1120 } 1121 file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1122 switch v := v.(*Block); i { 1123 case 0: 1124 return &v.state 1125 case 1: 1126 return &v.sizeCache 1127 case 2: 1128 return &v.unknownFields 1129 default: 1130 return nil 1131 } 1132 } 1133 file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1134 switch v := v.(*Paragraph); i { 1135 case 0: 1136 return &v.state 1137 case 1: 1138 return &v.sizeCache 1139 case 2: 1140 return &v.unknownFields 1141 default: 1142 return nil 1143 } 1144 } 1145 file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1146 switch v := v.(*Word); i { 1147 case 0: 1148 return &v.state 1149 case 1: 1150 return &v.sizeCache 1151 case 2: 1152 return &v.unknownFields 1153 default: 1154 return nil 1155 } 1156 } 1157 file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1158 switch v := v.(*Symbol); i { 1159 case 0: 1160 return &v.state 1161 case 1: 1162 return &v.sizeCache 1163 case 2: 1164 return &v.unknownFields 1165 default: 1166 return nil 1167 } 1168 } 1169 file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1170 switch v := v.(*TextAnnotation_DetectedLanguage); i { 1171 case 0: 1172 return &v.state 1173 case 1: 1174 return &v.sizeCache 1175 case 2: 1176 return &v.unknownFields 1177 default: 1178 return nil 1179 } 1180 } 1181 file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1182 switch v := v.(*TextAnnotation_DetectedBreak); i { 1183 case 0: 1184 return &v.state 1185 case 1: 1186 return &v.sizeCache 1187 case 2: 1188 return &v.unknownFields 1189 default: 1190 return nil 1191 } 1192 } 1193 file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1194 switch v := v.(*TextAnnotation_TextProperty); i { 1195 case 0: 1196 return &v.state 1197 case 1: 1198 return &v.sizeCache 1199 case 2: 1200 return &v.unknownFields 1201 default: 1202 return nil 1203 } 1204 } 1205 } 1206 type x struct{} 1207 out := protoimpl.TypeBuilder{ 1208 File: protoimpl.DescBuilder{ 1209 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1210 RawDescriptor: file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDesc, 1211 NumEnums: 2, 1212 NumMessages: 9, 1213 NumExtensions: 0, 1214 NumServices: 0, 1215 }, 1216 GoTypes: file_google_cloud_vision_v1p4beta1_text_annotation_proto_goTypes, 1217 DependencyIndexes: file_google_cloud_vision_v1p4beta1_text_annotation_proto_depIdxs, 1218 EnumInfos: file_google_cloud_vision_v1p4beta1_text_annotation_proto_enumTypes, 1219 MessageInfos: file_google_cloud_vision_v1p4beta1_text_annotation_proto_msgTypes, 1220 }.Build() 1221 File_google_cloud_vision_v1p4beta1_text_annotation_proto = out.File 1222 file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDesc = nil 1223 file_google_cloud_vision_v1p4beta1_text_annotation_proto_goTypes = nil 1224 file_google_cloud_vision_v1p4beta1_text_annotation_proto_depIdxs = nil 1225} 1226