1// Copyright 2017 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/v1p1beta1/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_v1p1beta1_text_annotation_proto_enumTypes[0].Descriptor() 90} 91 92func (TextAnnotation_DetectedBreak_BreakType) Type() protoreflect.EnumType { 93 return &file_google_cloud_vision_v1p1beta1_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_v1p1beta1_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_v1p1beta1_text_annotation_proto_enumTypes[1].Descriptor() 155} 156 157func (Block_BlockType) Type() protoreflect.EnumType { 158 return &file_google_cloud_vision_v1p1beta1_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_v1p1beta1_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.v1p1beta1.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_v1p1beta1_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_v1p1beta1_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_v1p1beta1_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 in pixels. 244 Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"` 245 // Page height in pixels. 246 Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` 247 // List of blocks of text, images etc on this page. 248 Blocks []*Block `protobuf:"bytes,4,rep,name=blocks,proto3" json:"blocks,omitempty"` 249 // Confidence of the OCR results on the page. Range [0, 1]. 250 Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"` 251} 252 253func (x *Page) Reset() { 254 *x = Page{} 255 if protoimpl.UnsafeEnabled { 256 mi := &file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[1] 257 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 258 ms.StoreMessageInfo(mi) 259 } 260} 261 262func (x *Page) String() string { 263 return protoimpl.X.MessageStringOf(x) 264} 265 266func (*Page) ProtoMessage() {} 267 268func (x *Page) ProtoReflect() protoreflect.Message { 269 mi := &file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[1] 270 if protoimpl.UnsafeEnabled && x != nil { 271 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 272 if ms.LoadMessageInfo() == nil { 273 ms.StoreMessageInfo(mi) 274 } 275 return ms 276 } 277 return mi.MessageOf(x) 278} 279 280// Deprecated: Use Page.ProtoReflect.Descriptor instead. 281func (*Page) Descriptor() ([]byte, []int) { 282 return file_google_cloud_vision_v1p1beta1_text_annotation_proto_rawDescGZIP(), []int{1} 283} 284 285func (x *Page) GetProperty() *TextAnnotation_TextProperty { 286 if x != nil { 287 return x.Property 288 } 289 return nil 290} 291 292func (x *Page) GetWidth() int32 { 293 if x != nil { 294 return x.Width 295 } 296 return 0 297} 298 299func (x *Page) GetHeight() int32 { 300 if x != nil { 301 return x.Height 302 } 303 return 0 304} 305 306func (x *Page) GetBlocks() []*Block { 307 if x != nil { 308 return x.Blocks 309 } 310 return nil 311} 312 313func (x *Page) GetConfidence() float32 { 314 if x != nil { 315 return x.Confidence 316 } 317 return 0 318} 319 320// Logical element on the page. 321type Block struct { 322 state protoimpl.MessageState 323 sizeCache protoimpl.SizeCache 324 unknownFields protoimpl.UnknownFields 325 326 // Additional information detected for the block. 327 Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"` 328 // The bounding box for the block. 329 // The vertices are in the order of top-left, top-right, bottom-right, 330 // bottom-left. When a rotation of the bounding box is detected the rotation 331 // is represented as around the top-left corner as defined when the text is 332 // read in the 'natural' orientation. 333 // For example: 334 // * when the text is horizontal it might look like: 335 // 0----1 336 // | | 337 // 3----2 338 // * when it's rotated 180 degrees around the top-left corner it becomes: 339 // 2----3 340 // | | 341 // 1----0 342 // and the vertice order will still be (0, 1, 2, 3). 343 BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"` 344 // List of paragraphs in this block (if this blocks is of type text). 345 Paragraphs []*Paragraph `protobuf:"bytes,3,rep,name=paragraphs,proto3" json:"paragraphs,omitempty"` 346 // Detected block type (text, image etc) for this block. 347 BlockType Block_BlockType `protobuf:"varint,4,opt,name=block_type,json=blockType,proto3,enum=google.cloud.vision.v1p1beta1.Block_BlockType" json:"block_type,omitempty"` 348 // Confidence of the OCR results on the block. Range [0, 1]. 349 Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"` 350} 351 352func (x *Block) Reset() { 353 *x = Block{} 354 if protoimpl.UnsafeEnabled { 355 mi := &file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[2] 356 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 357 ms.StoreMessageInfo(mi) 358 } 359} 360 361func (x *Block) String() string { 362 return protoimpl.X.MessageStringOf(x) 363} 364 365func (*Block) ProtoMessage() {} 366 367func (x *Block) ProtoReflect() protoreflect.Message { 368 mi := &file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[2] 369 if protoimpl.UnsafeEnabled && x != nil { 370 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 371 if ms.LoadMessageInfo() == nil { 372 ms.StoreMessageInfo(mi) 373 } 374 return ms 375 } 376 return mi.MessageOf(x) 377} 378 379// Deprecated: Use Block.ProtoReflect.Descriptor instead. 380func (*Block) Descriptor() ([]byte, []int) { 381 return file_google_cloud_vision_v1p1beta1_text_annotation_proto_rawDescGZIP(), []int{2} 382} 383 384func (x *Block) GetProperty() *TextAnnotation_TextProperty { 385 if x != nil { 386 return x.Property 387 } 388 return nil 389} 390 391func (x *Block) GetBoundingBox() *BoundingPoly { 392 if x != nil { 393 return x.BoundingBox 394 } 395 return nil 396} 397 398func (x *Block) GetParagraphs() []*Paragraph { 399 if x != nil { 400 return x.Paragraphs 401 } 402 return nil 403} 404 405func (x *Block) GetBlockType() Block_BlockType { 406 if x != nil { 407 return x.BlockType 408 } 409 return Block_UNKNOWN 410} 411 412func (x *Block) GetConfidence() float32 { 413 if x != nil { 414 return x.Confidence 415 } 416 return 0 417} 418 419// Structural unit of text representing a number of words in certain order. 420type Paragraph struct { 421 state protoimpl.MessageState 422 sizeCache protoimpl.SizeCache 423 unknownFields protoimpl.UnknownFields 424 425 // Additional information detected for the paragraph. 426 Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"` 427 // The bounding box for the paragraph. 428 // The vertices are in the order of top-left, top-right, bottom-right, 429 // bottom-left. When a rotation of the bounding box is detected the rotation 430 // is represented as around the top-left corner as defined when the text is 431 // read in the 'natural' orientation. 432 // For example: 433 // * when the text is horizontal it might look like: 434 // 0----1 435 // | | 436 // 3----2 437 // * when it's rotated 180 degrees around the top-left corner it becomes: 438 // 2----3 439 // | | 440 // 1----0 441 // and the vertice order will still be (0, 1, 2, 3). 442 BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"` 443 // List of words in this paragraph. 444 Words []*Word `protobuf:"bytes,3,rep,name=words,proto3" json:"words,omitempty"` 445 // Confidence of the OCR results for the paragraph. Range [0, 1]. 446 Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"` 447} 448 449func (x *Paragraph) Reset() { 450 *x = Paragraph{} 451 if protoimpl.UnsafeEnabled { 452 mi := &file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[3] 453 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 454 ms.StoreMessageInfo(mi) 455 } 456} 457 458func (x *Paragraph) String() string { 459 return protoimpl.X.MessageStringOf(x) 460} 461 462func (*Paragraph) ProtoMessage() {} 463 464func (x *Paragraph) ProtoReflect() protoreflect.Message { 465 mi := &file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[3] 466 if protoimpl.UnsafeEnabled && x != nil { 467 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 468 if ms.LoadMessageInfo() == nil { 469 ms.StoreMessageInfo(mi) 470 } 471 return ms 472 } 473 return mi.MessageOf(x) 474} 475 476// Deprecated: Use Paragraph.ProtoReflect.Descriptor instead. 477func (*Paragraph) Descriptor() ([]byte, []int) { 478 return file_google_cloud_vision_v1p1beta1_text_annotation_proto_rawDescGZIP(), []int{3} 479} 480 481func (x *Paragraph) GetProperty() *TextAnnotation_TextProperty { 482 if x != nil { 483 return x.Property 484 } 485 return nil 486} 487 488func (x *Paragraph) GetBoundingBox() *BoundingPoly { 489 if x != nil { 490 return x.BoundingBox 491 } 492 return nil 493} 494 495func (x *Paragraph) GetWords() []*Word { 496 if x != nil { 497 return x.Words 498 } 499 return nil 500} 501 502func (x *Paragraph) GetConfidence() float32 { 503 if x != nil { 504 return x.Confidence 505 } 506 return 0 507} 508 509// A word representation. 510type Word struct { 511 state protoimpl.MessageState 512 sizeCache protoimpl.SizeCache 513 unknownFields protoimpl.UnknownFields 514 515 // Additional information detected for the word. 516 Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"` 517 // The bounding box for the word. 518 // The vertices are in the order of top-left, top-right, bottom-right, 519 // bottom-left. When a rotation of the bounding box is detected the rotation 520 // is represented as around the top-left corner as defined when the text is 521 // read in the 'natural' orientation. 522 // For example: 523 // * when the text is horizontal it might look like: 524 // 0----1 525 // | | 526 // 3----2 527 // * when it's rotated 180 degrees around the top-left corner it becomes: 528 // 2----3 529 // | | 530 // 1----0 531 // and the vertice order will still be (0, 1, 2, 3). 532 BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"` 533 // List of symbols in the word. 534 // The order of the symbols follows the natural reading order. 535 Symbols []*Symbol `protobuf:"bytes,3,rep,name=symbols,proto3" json:"symbols,omitempty"` 536 // Confidence of the OCR results for the word. Range [0, 1]. 537 Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"` 538} 539 540func (x *Word) Reset() { 541 *x = Word{} 542 if protoimpl.UnsafeEnabled { 543 mi := &file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[4] 544 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 545 ms.StoreMessageInfo(mi) 546 } 547} 548 549func (x *Word) String() string { 550 return protoimpl.X.MessageStringOf(x) 551} 552 553func (*Word) ProtoMessage() {} 554 555func (x *Word) ProtoReflect() protoreflect.Message { 556 mi := &file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[4] 557 if protoimpl.UnsafeEnabled && x != nil { 558 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 559 if ms.LoadMessageInfo() == nil { 560 ms.StoreMessageInfo(mi) 561 } 562 return ms 563 } 564 return mi.MessageOf(x) 565} 566 567// Deprecated: Use Word.ProtoReflect.Descriptor instead. 568func (*Word) Descriptor() ([]byte, []int) { 569 return file_google_cloud_vision_v1p1beta1_text_annotation_proto_rawDescGZIP(), []int{4} 570} 571 572func (x *Word) GetProperty() *TextAnnotation_TextProperty { 573 if x != nil { 574 return x.Property 575 } 576 return nil 577} 578 579func (x *Word) GetBoundingBox() *BoundingPoly { 580 if x != nil { 581 return x.BoundingBox 582 } 583 return nil 584} 585 586func (x *Word) GetSymbols() []*Symbol { 587 if x != nil { 588 return x.Symbols 589 } 590 return nil 591} 592 593func (x *Word) GetConfidence() float32 { 594 if x != nil { 595 return x.Confidence 596 } 597 return 0 598} 599 600// A single symbol representation. 601type Symbol struct { 602 state protoimpl.MessageState 603 sizeCache protoimpl.SizeCache 604 unknownFields protoimpl.UnknownFields 605 606 // Additional information detected for the symbol. 607 Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"` 608 // The bounding box for the symbol. 609 // The vertices are in the order of top-left, top-right, bottom-right, 610 // bottom-left. When a rotation of the bounding box is detected the rotation 611 // is represented as around the top-left corner as defined when the text is 612 // read in the 'natural' orientation. 613 // For example: 614 // * when the text is horizontal it might look like: 615 // 0----1 616 // | | 617 // 3----2 618 // * when it's rotated 180 degrees around the top-left corner it becomes: 619 // 2----3 620 // | | 621 // 1----0 622 // and the vertice order will still be (0, 1, 2, 3). 623 BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"` 624 // The actual UTF-8 representation of the symbol. 625 Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` 626 // Confidence of the OCR results for the symbol. Range [0, 1]. 627 Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"` 628} 629 630func (x *Symbol) Reset() { 631 *x = Symbol{} 632 if protoimpl.UnsafeEnabled { 633 mi := &file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[5] 634 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 635 ms.StoreMessageInfo(mi) 636 } 637} 638 639func (x *Symbol) String() string { 640 return protoimpl.X.MessageStringOf(x) 641} 642 643func (*Symbol) ProtoMessage() {} 644 645func (x *Symbol) ProtoReflect() protoreflect.Message { 646 mi := &file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[5] 647 if protoimpl.UnsafeEnabled && x != nil { 648 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 649 if ms.LoadMessageInfo() == nil { 650 ms.StoreMessageInfo(mi) 651 } 652 return ms 653 } 654 return mi.MessageOf(x) 655} 656 657// Deprecated: Use Symbol.ProtoReflect.Descriptor instead. 658func (*Symbol) Descriptor() ([]byte, []int) { 659 return file_google_cloud_vision_v1p1beta1_text_annotation_proto_rawDescGZIP(), []int{5} 660} 661 662func (x *Symbol) GetProperty() *TextAnnotation_TextProperty { 663 if x != nil { 664 return x.Property 665 } 666 return nil 667} 668 669func (x *Symbol) GetBoundingBox() *BoundingPoly { 670 if x != nil { 671 return x.BoundingBox 672 } 673 return nil 674} 675 676func (x *Symbol) GetText() string { 677 if x != nil { 678 return x.Text 679 } 680 return "" 681} 682 683func (x *Symbol) GetConfidence() float32 { 684 if x != nil { 685 return x.Confidence 686 } 687 return 0 688} 689 690// Detected language for a structural component. 691type TextAnnotation_DetectedLanguage struct { 692 state protoimpl.MessageState 693 sizeCache protoimpl.SizeCache 694 unknownFields protoimpl.UnknownFields 695 696 // The BCP-47 language code, such as "en-US" or "sr-Latn". For more 697 // information, see 698 // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. 699 LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` 700 // Confidence of detected language. Range [0, 1]. 701 Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"` 702} 703 704func (x *TextAnnotation_DetectedLanguage) Reset() { 705 *x = TextAnnotation_DetectedLanguage{} 706 if protoimpl.UnsafeEnabled { 707 mi := &file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[6] 708 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 709 ms.StoreMessageInfo(mi) 710 } 711} 712 713func (x *TextAnnotation_DetectedLanguage) String() string { 714 return protoimpl.X.MessageStringOf(x) 715} 716 717func (*TextAnnotation_DetectedLanguage) ProtoMessage() {} 718 719func (x *TextAnnotation_DetectedLanguage) ProtoReflect() protoreflect.Message { 720 mi := &file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[6] 721 if protoimpl.UnsafeEnabled && x != nil { 722 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 723 if ms.LoadMessageInfo() == nil { 724 ms.StoreMessageInfo(mi) 725 } 726 return ms 727 } 728 return mi.MessageOf(x) 729} 730 731// Deprecated: Use TextAnnotation_DetectedLanguage.ProtoReflect.Descriptor instead. 732func (*TextAnnotation_DetectedLanguage) Descriptor() ([]byte, []int) { 733 return file_google_cloud_vision_v1p1beta1_text_annotation_proto_rawDescGZIP(), []int{0, 0} 734} 735 736func (x *TextAnnotation_DetectedLanguage) GetLanguageCode() string { 737 if x != nil { 738 return x.LanguageCode 739 } 740 return "" 741} 742 743func (x *TextAnnotation_DetectedLanguage) GetConfidence() float32 { 744 if x != nil { 745 return x.Confidence 746 } 747 return 0 748} 749 750// Detected start or end of a structural component. 751type TextAnnotation_DetectedBreak struct { 752 state protoimpl.MessageState 753 sizeCache protoimpl.SizeCache 754 unknownFields protoimpl.UnknownFields 755 756 // Detected break type. 757 Type TextAnnotation_DetectedBreak_BreakType `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.vision.v1p1beta1.TextAnnotation_DetectedBreak_BreakType" json:"type,omitempty"` 758 // True if break prepends the element. 759 IsPrefix bool `protobuf:"varint,2,opt,name=is_prefix,json=isPrefix,proto3" json:"is_prefix,omitempty"` 760} 761 762func (x *TextAnnotation_DetectedBreak) Reset() { 763 *x = TextAnnotation_DetectedBreak{} 764 if protoimpl.UnsafeEnabled { 765 mi := &file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[7] 766 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 767 ms.StoreMessageInfo(mi) 768 } 769} 770 771func (x *TextAnnotation_DetectedBreak) String() string { 772 return protoimpl.X.MessageStringOf(x) 773} 774 775func (*TextAnnotation_DetectedBreak) ProtoMessage() {} 776 777func (x *TextAnnotation_DetectedBreak) ProtoReflect() protoreflect.Message { 778 mi := &file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[7] 779 if protoimpl.UnsafeEnabled && x != nil { 780 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 781 if ms.LoadMessageInfo() == nil { 782 ms.StoreMessageInfo(mi) 783 } 784 return ms 785 } 786 return mi.MessageOf(x) 787} 788 789// Deprecated: Use TextAnnotation_DetectedBreak.ProtoReflect.Descriptor instead. 790func (*TextAnnotation_DetectedBreak) Descriptor() ([]byte, []int) { 791 return file_google_cloud_vision_v1p1beta1_text_annotation_proto_rawDescGZIP(), []int{0, 1} 792} 793 794func (x *TextAnnotation_DetectedBreak) GetType() TextAnnotation_DetectedBreak_BreakType { 795 if x != nil { 796 return x.Type 797 } 798 return TextAnnotation_DetectedBreak_UNKNOWN 799} 800 801func (x *TextAnnotation_DetectedBreak) GetIsPrefix() bool { 802 if x != nil { 803 return x.IsPrefix 804 } 805 return false 806} 807 808// Additional information detected on the structural component. 809type TextAnnotation_TextProperty struct { 810 state protoimpl.MessageState 811 sizeCache protoimpl.SizeCache 812 unknownFields protoimpl.UnknownFields 813 814 // A list of detected languages together with confidence. 815 DetectedLanguages []*TextAnnotation_DetectedLanguage `protobuf:"bytes,1,rep,name=detected_languages,json=detectedLanguages,proto3" json:"detected_languages,omitempty"` 816 // Detected start or end of a text segment. 817 DetectedBreak *TextAnnotation_DetectedBreak `protobuf:"bytes,2,opt,name=detected_break,json=detectedBreak,proto3" json:"detected_break,omitempty"` 818} 819 820func (x *TextAnnotation_TextProperty) Reset() { 821 *x = TextAnnotation_TextProperty{} 822 if protoimpl.UnsafeEnabled { 823 mi := &file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[8] 824 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 825 ms.StoreMessageInfo(mi) 826 } 827} 828 829func (x *TextAnnotation_TextProperty) String() string { 830 return protoimpl.X.MessageStringOf(x) 831} 832 833func (*TextAnnotation_TextProperty) ProtoMessage() {} 834 835func (x *TextAnnotation_TextProperty) ProtoReflect() protoreflect.Message { 836 mi := &file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[8] 837 if protoimpl.UnsafeEnabled && x != nil { 838 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 839 if ms.LoadMessageInfo() == nil { 840 ms.StoreMessageInfo(mi) 841 } 842 return ms 843 } 844 return mi.MessageOf(x) 845} 846 847// Deprecated: Use TextAnnotation_TextProperty.ProtoReflect.Descriptor instead. 848func (*TextAnnotation_TextProperty) Descriptor() ([]byte, []int) { 849 return file_google_cloud_vision_v1p1beta1_text_annotation_proto_rawDescGZIP(), []int{0, 2} 850} 851 852func (x *TextAnnotation_TextProperty) GetDetectedLanguages() []*TextAnnotation_DetectedLanguage { 853 if x != nil { 854 return x.DetectedLanguages 855 } 856 return nil 857} 858 859func (x *TextAnnotation_TextProperty) GetDetectedBreak() *TextAnnotation_DetectedBreak { 860 if x != nil { 861 return x.DetectedBreak 862 } 863 return nil 864} 865 866var File_google_cloud_vision_v1p1beta1_text_annotation_proto protoreflect.FileDescriptor 867 868var file_google_cloud_vision_v1p1beta1_text_annotation_proto_rawDesc = []byte{ 869 0x0a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 870 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 871 0x74, 0x65, 0x78, 0x74, 0x5f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 872 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 873 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 874 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 875 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 876 0x74, 0x6f, 0x1a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 877 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 878 0x31, 0x2f, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 879 0x22, 0x8b, 0x05, 0x0a, 0x0e, 0x54, 0x65, 0x78, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 880 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x05, 0x70, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 881 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 882 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 883 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x05, 0x70, 0x61, 0x67, 0x65, 0x73, 0x12, 0x12, 884 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 885 0x78, 0x74, 0x1a, 0x57, 0x0a, 0x10, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x4c, 0x61, 886 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 887 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 888 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 889 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 890 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x1a, 0xec, 0x01, 0x0a, 0x0d, 891 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x12, 0x59, 0x0a, 892 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x45, 0x2e, 0x67, 0x6f, 893 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 894 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 895 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 896 0x74, 0x65, 0x64, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x2e, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x54, 0x79, 897 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x70, 898 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x50, 899 0x72, 0x65, 0x66, 0x69, 0x78, 0x22, 0x63, 0x0a, 0x09, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x54, 0x79, 900 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 901 0x09, 0x0a, 0x05, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x55, 902 0x52, 0x45, 0x5f, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x4f, 903 0x4c, 0x5f, 0x53, 0x55, 0x52, 0x45, 0x5f, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x03, 0x12, 0x0a, 904 0x0a, 0x06, 0x48, 0x59, 0x50, 0x48, 0x45, 0x4e, 0x10, 0x04, 0x12, 0x0e, 0x0a, 0x0a, 0x4c, 0x49, 905 0x4e, 0x45, 0x5f, 0x42, 0x52, 0x45, 0x41, 0x4b, 0x10, 0x05, 0x1a, 0xe1, 0x01, 0x0a, 0x0c, 0x54, 906 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x6d, 0x0a, 0x12, 0x64, 907 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 908 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 909 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 910 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 911 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x4c, 912 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x52, 0x11, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 913 0x64, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x73, 0x12, 0x62, 0x0a, 0x0e, 0x64, 0x65, 914 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x18, 0x02, 0x20, 0x01, 915 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 916 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 917 0x61, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 918 0x6e, 0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x52, 919 0x0d, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x22, 0xea, 920 0x01, 0x0a, 0x04, 0x50, 0x61, 0x67, 0x65, 0x12, 0x56, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 921 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 922 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 923 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x41, 0x6e, 924 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 925 0x70, 0x65, 0x72, 0x74, 0x79, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 926 0x14, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 927 0x77, 0x69, 0x64, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 928 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x3c, 0x0a, 929 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 930 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 931 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6c, 932 0x6f, 0x63, 0x6b, 0x52, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 933 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x52, 934 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x22, 0xbc, 0x03, 0x0a, 0x05, 935 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x56, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 936 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 937 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 938 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 939 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 940 0x72, 0x74, 0x79, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x4e, 0x0a, 941 0x0c, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6f, 0x78, 0x18, 0x02, 0x20, 942 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 943 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 944 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x79, 945 0x52, 0x0b, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x78, 0x12, 0x48, 0x0a, 946 0x0a, 0x70, 0x61, 0x72, 0x61, 0x67, 0x72, 0x61, 0x70, 0x68, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 947 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 948 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 949 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x67, 0x72, 0x61, 0x70, 0x68, 0x52, 0x0a, 0x70, 0x61, 0x72, 950 0x61, 0x67, 0x72, 0x61, 0x70, 0x68, 0x73, 0x12, 0x4d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 951 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 952 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 953 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 954 0x6b, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x62, 0x6c, 0x6f, 955 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 956 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 957 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x52, 0x0a, 0x09, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 958 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 959 0x12, 0x08, 0x0a, 0x04, 0x54, 0x45, 0x58, 0x54, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x41, 960 0x42, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x49, 0x43, 0x54, 0x55, 0x52, 0x45, 961 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x55, 0x4c, 0x45, 0x52, 0x10, 0x04, 0x12, 0x0b, 0x0a, 962 0x07, 0x42, 0x41, 0x52, 0x43, 0x4f, 0x44, 0x45, 0x10, 0x05, 0x22, 0x8e, 0x02, 0x0a, 0x09, 0x50, 963 0x61, 0x72, 0x61, 0x67, 0x72, 0x61, 0x70, 0x68, 0x12, 0x56, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 964 0x65, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 965 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 966 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x41, 967 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x50, 0x72, 968 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 969 0x12, 0x4e, 0x0a, 0x0c, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6f, 0x78, 970 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 971 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 972 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 973 0x6f, 0x6c, 0x79, 0x52, 0x0b, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x78, 974 0x12, 0x39, 0x0a, 0x05, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 975 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 976 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 977 0x57, 0x6f, 0x72, 0x64, 0x52, 0x05, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 978 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 979 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x8f, 0x02, 0x0a, 0x04, 980 0x57, 0x6f, 0x72, 0x64, 0x12, 0x56, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 981 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 982 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 983 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 984 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 985 0x74, 0x79, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x4e, 0x0a, 0x0c, 986 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6f, 0x78, 0x18, 0x02, 0x20, 0x01, 987 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 988 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 989 0x61, 0x31, 0x2e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x79, 0x52, 990 0x0b, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x78, 0x12, 0x3f, 0x0a, 0x07, 991 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 992 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 993 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x79, 994 0x6d, 0x62, 0x6f, 0x6c, 0x52, 0x07, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x12, 0x1e, 0x0a, 995 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 996 0x02, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x22, 0xe4, 0x01, 997 0x0a, 0x06, 0x53, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x12, 0x56, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 998 0x65, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 999 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 1000 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x41, 1001 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x50, 0x72, 1002 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 1003 0x12, 0x4e, 0x0a, 0x0c, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6f, 0x78, 1004 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 1005 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 1006 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 1007 0x6f, 0x6c, 0x79, 0x52, 0x0b, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x78, 1008 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 1009 0x74, 0x65, 0x78, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 1010 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 1011 0x65, 0x6e, 0x63, 0x65, 0x42, 0x82, 0x01, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 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, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x13, 0x54, 0x65, 0x78, 0x74, 1014 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 1015 0x01, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 1016 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 1017 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 1018 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 1019 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0xf8, 0x01, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 1020 0x33, 1021} 1022 1023var ( 1024 file_google_cloud_vision_v1p1beta1_text_annotation_proto_rawDescOnce sync.Once 1025 file_google_cloud_vision_v1p1beta1_text_annotation_proto_rawDescData = file_google_cloud_vision_v1p1beta1_text_annotation_proto_rawDesc 1026) 1027 1028func file_google_cloud_vision_v1p1beta1_text_annotation_proto_rawDescGZIP() []byte { 1029 file_google_cloud_vision_v1p1beta1_text_annotation_proto_rawDescOnce.Do(func() { 1030 file_google_cloud_vision_v1p1beta1_text_annotation_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_vision_v1p1beta1_text_annotation_proto_rawDescData) 1031 }) 1032 return file_google_cloud_vision_v1p1beta1_text_annotation_proto_rawDescData 1033} 1034 1035var file_google_cloud_vision_v1p1beta1_text_annotation_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 1036var file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes = make([]protoimpl.MessageInfo, 9) 1037var file_google_cloud_vision_v1p1beta1_text_annotation_proto_goTypes = []interface{}{ 1038 (TextAnnotation_DetectedBreak_BreakType)(0), // 0: google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType 1039 (Block_BlockType)(0), // 1: google.cloud.vision.v1p1beta1.Block.BlockType 1040 (*TextAnnotation)(nil), // 2: google.cloud.vision.v1p1beta1.TextAnnotation 1041 (*Page)(nil), // 3: google.cloud.vision.v1p1beta1.Page 1042 (*Block)(nil), // 4: google.cloud.vision.v1p1beta1.Block 1043 (*Paragraph)(nil), // 5: google.cloud.vision.v1p1beta1.Paragraph 1044 (*Word)(nil), // 6: google.cloud.vision.v1p1beta1.Word 1045 (*Symbol)(nil), // 7: google.cloud.vision.v1p1beta1.Symbol 1046 (*TextAnnotation_DetectedLanguage)(nil), // 8: google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage 1047 (*TextAnnotation_DetectedBreak)(nil), // 9: google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak 1048 (*TextAnnotation_TextProperty)(nil), // 10: google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty 1049 (*BoundingPoly)(nil), // 11: google.cloud.vision.v1p1beta1.BoundingPoly 1050} 1051var file_google_cloud_vision_v1p1beta1_text_annotation_proto_depIdxs = []int32{ 1052 3, // 0: google.cloud.vision.v1p1beta1.TextAnnotation.pages:type_name -> google.cloud.vision.v1p1beta1.Page 1053 10, // 1: google.cloud.vision.v1p1beta1.Page.property:type_name -> google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty 1054 4, // 2: google.cloud.vision.v1p1beta1.Page.blocks:type_name -> google.cloud.vision.v1p1beta1.Block 1055 10, // 3: google.cloud.vision.v1p1beta1.Block.property:type_name -> google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty 1056 11, // 4: google.cloud.vision.v1p1beta1.Block.bounding_box:type_name -> google.cloud.vision.v1p1beta1.BoundingPoly 1057 5, // 5: google.cloud.vision.v1p1beta1.Block.paragraphs:type_name -> google.cloud.vision.v1p1beta1.Paragraph 1058 1, // 6: google.cloud.vision.v1p1beta1.Block.block_type:type_name -> google.cloud.vision.v1p1beta1.Block.BlockType 1059 10, // 7: google.cloud.vision.v1p1beta1.Paragraph.property:type_name -> google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty 1060 11, // 8: google.cloud.vision.v1p1beta1.Paragraph.bounding_box:type_name -> google.cloud.vision.v1p1beta1.BoundingPoly 1061 6, // 9: google.cloud.vision.v1p1beta1.Paragraph.words:type_name -> google.cloud.vision.v1p1beta1.Word 1062 10, // 10: google.cloud.vision.v1p1beta1.Word.property:type_name -> google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty 1063 11, // 11: google.cloud.vision.v1p1beta1.Word.bounding_box:type_name -> google.cloud.vision.v1p1beta1.BoundingPoly 1064 7, // 12: google.cloud.vision.v1p1beta1.Word.symbols:type_name -> google.cloud.vision.v1p1beta1.Symbol 1065 10, // 13: google.cloud.vision.v1p1beta1.Symbol.property:type_name -> google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty 1066 11, // 14: google.cloud.vision.v1p1beta1.Symbol.bounding_box:type_name -> google.cloud.vision.v1p1beta1.BoundingPoly 1067 0, // 15: google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.type:type_name -> google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType 1068 8, // 16: google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.detected_languages:type_name -> google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage 1069 9, // 17: google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty.detected_break:type_name -> google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak 1070 18, // [18:18] is the sub-list for method output_type 1071 18, // [18:18] is the sub-list for method input_type 1072 18, // [18:18] is the sub-list for extension type_name 1073 18, // [18:18] is the sub-list for extension extendee 1074 0, // [0:18] is the sub-list for field type_name 1075} 1076 1077func init() { file_google_cloud_vision_v1p1beta1_text_annotation_proto_init() } 1078func file_google_cloud_vision_v1p1beta1_text_annotation_proto_init() { 1079 if File_google_cloud_vision_v1p1beta1_text_annotation_proto != nil { 1080 return 1081 } 1082 file_google_cloud_vision_v1p1beta1_geometry_proto_init() 1083 if !protoimpl.UnsafeEnabled { 1084 file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1085 switch v := v.(*TextAnnotation); i { 1086 case 0: 1087 return &v.state 1088 case 1: 1089 return &v.sizeCache 1090 case 2: 1091 return &v.unknownFields 1092 default: 1093 return nil 1094 } 1095 } 1096 file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1097 switch v := v.(*Page); i { 1098 case 0: 1099 return &v.state 1100 case 1: 1101 return &v.sizeCache 1102 case 2: 1103 return &v.unknownFields 1104 default: 1105 return nil 1106 } 1107 } 1108 file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1109 switch v := v.(*Block); i { 1110 case 0: 1111 return &v.state 1112 case 1: 1113 return &v.sizeCache 1114 case 2: 1115 return &v.unknownFields 1116 default: 1117 return nil 1118 } 1119 } 1120 file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1121 switch v := v.(*Paragraph); i { 1122 case 0: 1123 return &v.state 1124 case 1: 1125 return &v.sizeCache 1126 case 2: 1127 return &v.unknownFields 1128 default: 1129 return nil 1130 } 1131 } 1132 file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1133 switch v := v.(*Word); i { 1134 case 0: 1135 return &v.state 1136 case 1: 1137 return &v.sizeCache 1138 case 2: 1139 return &v.unknownFields 1140 default: 1141 return nil 1142 } 1143 } 1144 file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1145 switch v := v.(*Symbol); i { 1146 case 0: 1147 return &v.state 1148 case 1: 1149 return &v.sizeCache 1150 case 2: 1151 return &v.unknownFields 1152 default: 1153 return nil 1154 } 1155 } 1156 file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1157 switch v := v.(*TextAnnotation_DetectedLanguage); i { 1158 case 0: 1159 return &v.state 1160 case 1: 1161 return &v.sizeCache 1162 case 2: 1163 return &v.unknownFields 1164 default: 1165 return nil 1166 } 1167 } 1168 file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1169 switch v := v.(*TextAnnotation_DetectedBreak); i { 1170 case 0: 1171 return &v.state 1172 case 1: 1173 return &v.sizeCache 1174 case 2: 1175 return &v.unknownFields 1176 default: 1177 return nil 1178 } 1179 } 1180 file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1181 switch v := v.(*TextAnnotation_TextProperty); i { 1182 case 0: 1183 return &v.state 1184 case 1: 1185 return &v.sizeCache 1186 case 2: 1187 return &v.unknownFields 1188 default: 1189 return nil 1190 } 1191 } 1192 } 1193 type x struct{} 1194 out := protoimpl.TypeBuilder{ 1195 File: protoimpl.DescBuilder{ 1196 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1197 RawDescriptor: file_google_cloud_vision_v1p1beta1_text_annotation_proto_rawDesc, 1198 NumEnums: 2, 1199 NumMessages: 9, 1200 NumExtensions: 0, 1201 NumServices: 0, 1202 }, 1203 GoTypes: file_google_cloud_vision_v1p1beta1_text_annotation_proto_goTypes, 1204 DependencyIndexes: file_google_cloud_vision_v1p1beta1_text_annotation_proto_depIdxs, 1205 EnumInfos: file_google_cloud_vision_v1p1beta1_text_annotation_proto_enumTypes, 1206 MessageInfos: file_google_cloud_vision_v1p1beta1_text_annotation_proto_msgTypes, 1207 }.Build() 1208 File_google_cloud_vision_v1p1beta1_text_annotation_proto = out.File 1209 file_google_cloud_vision_v1p1beta1_text_annotation_proto_rawDesc = nil 1210 file_google_cloud_vision_v1p1beta1_text_annotation_proto_goTypes = nil 1211 file_google_cloud_vision_v1p1beta1_text_annotation_proto_depIdxs = nil 1212} 1213