Debian Codegraph @

vision/apiv1/visionpb/text_annotation.pb.go

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