Debian Codegraph @

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