1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39
40 type TextAnnotation_DetectedBreak_BreakType int32
41
42 const (
43
44 TextAnnotation_DetectedBreak_UNKNOWN TextAnnotation_DetectedBreak_BreakType = 0
45
46 TextAnnotation_DetectedBreak_SPACE TextAnnotation_DetectedBreak_BreakType = 1
47
48 TextAnnotation_DetectedBreak_SURE_SPACE TextAnnotation_DetectedBreak_BreakType = 2
49
50 TextAnnotation_DetectedBreak_EOL_SURE_SPACE TextAnnotation_DetectedBreak_BreakType = 3
51
52
53 TextAnnotation_DetectedBreak_HYPHEN TextAnnotation_DetectedBreak_BreakType = 4
54
55 TextAnnotation_DetectedBreak_LINE_BREAK TextAnnotation_DetectedBreak_BreakType = 5
56 )
57
58
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
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
106 type Block_BlockType int32
107
108 const (
109
110 Block_UNKNOWN Block_BlockType = 0
111
112 Block_TEXT Block_BlockType = 1
113
114 Block_TABLE Block_BlockType = 2
115
116 Block_PICTURE Block_BlockType = 3
117
118 Block_RULER Block_BlockType = 4
119
120 Block_BARCODE Block_BlockType = 5
121 )
122
123
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
166 func (Block_BlockType) EnumDescriptor() ([]byte, []int) {
167 return file_google_cloud_vision_v1p4beta1_text_annotation_proto_rawDescGZIP(), []int{2, 0}
168 }
169
170
171
172
173
174
175
176
177
178
179
180 type TextAnnotation struct {
181 state protoimpl.MessageState
182 sizeCache protoimpl.SizeCache
183 unknownFields protoimpl.UnknownFields
184
185
186 Pages []*Page `protobuf:"bytes,1,rep,name=pages,proto3" json:"pages,omitempty"`
187
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
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
238 type Page struct {
239 state protoimpl.MessageState
240 sizeCache protoimpl.SizeCache
241 unknownFields protoimpl.UnknownFields
242
243
244 Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
245
246
247 Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"`
248
249
250 Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
251
252 Blocks []*Block `protobuf:"bytes,4,rep,name=blocks,proto3" json:"blocks,omitempty"`
253
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
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
325 type Block struct {
326 state protoimpl.MessageState
327 sizeCache protoimpl.SizeCache
328 unknownFields protoimpl.UnknownFields
329
330
331 Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352 BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
353
354 Paragraphs []*Paragraph `protobuf:"bytes,3,rep,name=paragraphs,proto3" json:"paragraphs,omitempty"`
355
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
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
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
429 type Paragraph struct {
430 state protoimpl.MessageState
431 sizeCache protoimpl.SizeCache
432 unknownFields protoimpl.UnknownFields
433
434
435 Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451 BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
452
453 Words []*Word `protobuf:"bytes,3,rep,name=words,proto3" json:"words,omitempty"`
454
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
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
519 type Word struct {
520 state protoimpl.MessageState
521 sizeCache protoimpl.SizeCache
522 unknownFields protoimpl.UnknownFields
523
524
525 Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541 BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
542
543
544 Symbols []*Symbol `protobuf:"bytes,3,rep,name=symbols,proto3" json:"symbols,omitempty"`
545
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
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
610 type Symbol struct {
611 state protoimpl.MessageState
612 sizeCache protoimpl.SizeCache
613 unknownFields protoimpl.UnknownFields
614
615
616 Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632 BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
633
634 Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
635
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
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
700 type TextAnnotation_DetectedLanguage struct {
701 state protoimpl.MessageState
702 sizeCache protoimpl.SizeCache
703 unknownFields protoimpl.UnknownFields
704
705
706
707
708 LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
709
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
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
760 type TextAnnotation_DetectedBreak struct {
761 state protoimpl.MessageState
762 sizeCache protoimpl.SizeCache
763 unknownFields protoimpl.UnknownFields
764
765
766 Type TextAnnotation_DetectedBreak_BreakType `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.vision.v1p4beta1.TextAnnotation_DetectedBreak_BreakType" json:"type,omitempty"`
767
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
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
818 type TextAnnotation_TextProperty struct {
819 state protoimpl.MessageState
820 sizeCache protoimpl.SizeCache
821 unknownFields protoimpl.UnknownFields
822
823
824 DetectedLanguages []*TextAnnotation_DetectedLanguage `protobuf:"bytes,1,rep,name=detected_languages,json=detectedLanguages,proto3" json:"detected_languages,omitempty"`
825
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
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),
1046 (Block_BlockType)(0),
1047 (*TextAnnotation)(nil),
1048 (*Page)(nil),
1049 (*Block)(nil),
1050 (*Paragraph)(nil),
1051 (*Word)(nil),
1052 (*Symbol)(nil),
1053 (*TextAnnotation_DetectedLanguage)(nil),
1054 (*TextAnnotation_DetectedBreak)(nil),
1055 (*TextAnnotation_TextProperty)(nil),
1056 (*BoundingPoly)(nil),
1057 }
1058 var file_google_cloud_vision_v1p4beta1_text_annotation_proto_depIdxs = []int32{
1059 3,
1060 10,
1061 4,
1062 10,
1063 11,
1064 5,
1065 1,
1066 10,
1067 11,
1068 6,
1069 10,
1070 11,
1071 7,
1072 10,
1073 11,
1074 0,
1075 8,
1076 9,
1077 18,
1078 18,
1079 18,
1080 18,
1081 0,
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 }
1220
View as plain text