Debian Codegraph @

googleapis/cloud/vision/v1p4beta1/text_annotation.pb.go

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