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