• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/vision/v1/text_annotation.proto
18 
19 package com.google.cloud.vision.v1;
20 
21 public final class TextAnnotationProto {
TextAnnotationProto()22   private TextAnnotationProto() {}
23 
registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry)24   public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
25 
registerAllExtensions(com.google.protobuf.ExtensionRegistry registry)26   public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
27     registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
28   }
29 
30   static final com.google.protobuf.Descriptors.Descriptor
31       internal_static_google_cloud_vision_v1_TextAnnotation_descriptor;
32   static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
33       internal_static_google_cloud_vision_v1_TextAnnotation_fieldAccessorTable;
34   static final com.google.protobuf.Descriptors.Descriptor
35       internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_descriptor;
36   static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
37       internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_fieldAccessorTable;
38   static final com.google.protobuf.Descriptors.Descriptor
39       internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_descriptor;
40   static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
41       internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_fieldAccessorTable;
42   static final com.google.protobuf.Descriptors.Descriptor
43       internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_descriptor;
44   static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
45       internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_fieldAccessorTable;
46   static final com.google.protobuf.Descriptors.Descriptor
47       internal_static_google_cloud_vision_v1_Page_descriptor;
48   static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
49       internal_static_google_cloud_vision_v1_Page_fieldAccessorTable;
50   static final com.google.protobuf.Descriptors.Descriptor
51       internal_static_google_cloud_vision_v1_Block_descriptor;
52   static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
53       internal_static_google_cloud_vision_v1_Block_fieldAccessorTable;
54   static final com.google.protobuf.Descriptors.Descriptor
55       internal_static_google_cloud_vision_v1_Paragraph_descriptor;
56   static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
57       internal_static_google_cloud_vision_v1_Paragraph_fieldAccessorTable;
58   static final com.google.protobuf.Descriptors.Descriptor
59       internal_static_google_cloud_vision_v1_Word_descriptor;
60   static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
61       internal_static_google_cloud_vision_v1_Word_fieldAccessorTable;
62   static final com.google.protobuf.Descriptors.Descriptor
63       internal_static_google_cloud_vision_v1_Symbol_descriptor;
64   static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
65       internal_static_google_cloud_vision_v1_Symbol_fieldAccessorTable;
66 
getDescriptor()67   public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
68     return descriptor;
69   }
70 
71   private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
72 
73   static {
74     java.lang.String[] descriptorData = {
75       "\n,google/cloud/vision/v1/text_annotation"
76           + ".proto\022\026google.cloud.vision.v1\032%google/c"
77           + "loud/vision/v1/geometry.proto\"\226\004\n\016TextAn"
78           + "notation\022+\n\005pages\030\001 \003(\0132\034.google.cloud.v"
79           + "ision.v1.Page\022\014\n\004text\030\002 \001(\t\032=\n\020DetectedL"
80           + "anguage\022\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfid"
81           + "ence\030\002 \001(\002\032\325\001\n\rDetectedBreak\022L\n\004type\030\001 \001"
82           + "(\0162>.google.cloud.vision.v1.TextAnnotati"
83           + "on.DetectedBreak.BreakType\022\021\n\tis_prefix\030"
84           + "\002 \001(\010\"c\n\tBreakType\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE"
85           + "\020\001\022\016\n\nSURE_SPACE\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n"
86           + "\n\006HYPHEN\020\004\022\016\n\nLINE_BREAK\020\005\032\261\001\n\014TextPrope"
87           + "rty\022S\n\022detected_languages\030\001 \003(\01327.google"
88           + ".cloud.vision.v1.TextAnnotation.Detected"
89           + "Language\022L\n\016detected_break\030\002 \001(\01324.googl"
90           + "e.cloud.vision.v1.TextAnnotation.Detecte"
91           + "dBreak\"\257\001\n\004Page\022E\n\010property\030\001 \001(\01323.goog"
92           + "le.cloud.vision.v1.TextAnnotation.TextPr"
93           + "operty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 \001(\005\022-\n"
94           + "\006blocks\030\004 \003(\0132\035.google.cloud.vision.v1.B"
95           + "lock\022\022\n\nconfidence\030\005 \001(\002\"\346\002\n\005Block\022E\n\010pr"
96           + "operty\030\001 \001(\01323.google.cloud.vision.v1.Te"
97           + "xtAnnotation.TextProperty\022:\n\014bounding_bo"
98           + "x\030\002 \001(\0132$.google.cloud.vision.v1.Boundin"
99           + "gPoly\0225\n\nparagraphs\030\003 \003(\0132!.google.cloud"
100           + ".vision.v1.Paragraph\022;\n\nblock_type\030\004 \001(\016"
101           + "2\'.google.cloud.vision.v1.Block.BlockTyp"
102           + "e\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007UN"
103           + "KNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE\020"
104           + "\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\317\001\n\tParagraph\022"
105           + "E\n\010property\030\001 \001(\01323.google.cloud.vision."
106           + "v1.TextAnnotation.TextProperty\022:\n\014boundi"
107           + "ng_box\030\002 \001(\0132$.google.cloud.vision.v1.Bo"
108           + "undingPoly\022+\n\005words\030\003 \003(\0132\034.google.cloud"
109           + ".vision.v1.Word\022\022\n\nconfidence\030\004 \001(\002\"\316\001\n\004"
110           + "Word\022E\n\010property\030\001 \001(\01323.google.cloud.vi"
111           + "sion.v1.TextAnnotation.TextProperty\022:\n\014b"
112           + "ounding_box\030\002 \001(\0132$.google.cloud.vision."
113           + "v1.BoundingPoly\022/\n\007symbols\030\003 \003(\0132\036.googl"
114           + "e.cloud.vision.v1.Symbol\022\022\n\nconfidence\030\004"
115           + " \001(\002\"\255\001\n\006Symbol\022E\n\010property\030\001 \001(\01323.goog"
116           + "le.cloud.vision.v1.TextAnnotation.TextPr"
117           + "operty\022:\n\014bounding_box\030\002 \001(\0132$.google.cl"
118           + "oud.vision.v1.BoundingPoly\022\014\n\004text\030\003 \001(\t"
119           + "\022\022\n\nconfidence\030\004 \001(\002Bt\n\032com.google.cloud"
120           + ".vision.v1B\023TextAnnotationProtoP\001Z5cloud"
121           + ".google.com/go/vision/v2/apiv1/visionpb;"
122           + "visionpb\370\001\001\242\002\004GCVNb\006proto3"
123     };
124     descriptor =
125         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
126             descriptorData,
127             new com.google.protobuf.Descriptors.FileDescriptor[] {
128               com.google.cloud.vision.v1.GeometryProto.getDescriptor(),
129             });
130     internal_static_google_cloud_vision_v1_TextAnnotation_descriptor =
131         getDescriptor().getMessageTypes().get(0);
132     internal_static_google_cloud_vision_v1_TextAnnotation_fieldAccessorTable =
133         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
134             internal_static_google_cloud_vision_v1_TextAnnotation_descriptor,
135             new java.lang.String[] {
136               "Pages", "Text",
137             });
138     internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_descriptor =
139         internal_static_google_cloud_vision_v1_TextAnnotation_descriptor.getNestedTypes().get(0);
140     internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_fieldAccessorTable =
141         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
142             internal_static_google_cloud_vision_v1_TextAnnotation_DetectedLanguage_descriptor,
143             new java.lang.String[] {
144               "LanguageCode", "Confidence",
145             });
146     internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_descriptor =
147         internal_static_google_cloud_vision_v1_TextAnnotation_descriptor.getNestedTypes().get(1);
148     internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_fieldAccessorTable =
149         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
150             internal_static_google_cloud_vision_v1_TextAnnotation_DetectedBreak_descriptor,
151             new java.lang.String[] {
152               "Type", "IsPrefix",
153             });
154     internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_descriptor =
155         internal_static_google_cloud_vision_v1_TextAnnotation_descriptor.getNestedTypes().get(2);
156     internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_fieldAccessorTable =
157         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
158             internal_static_google_cloud_vision_v1_TextAnnotation_TextProperty_descriptor,
159             new java.lang.String[] {
160               "DetectedLanguages", "DetectedBreak",
161             });
162     internal_static_google_cloud_vision_v1_Page_descriptor =
163         getDescriptor().getMessageTypes().get(1);
164     internal_static_google_cloud_vision_v1_Page_fieldAccessorTable =
165         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
166             internal_static_google_cloud_vision_v1_Page_descriptor,
167             new java.lang.String[] {
168               "Property", "Width", "Height", "Blocks", "Confidence",
169             });
170     internal_static_google_cloud_vision_v1_Block_descriptor =
171         getDescriptor().getMessageTypes().get(2);
172     internal_static_google_cloud_vision_v1_Block_fieldAccessorTable =
173         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
174             internal_static_google_cloud_vision_v1_Block_descriptor,
175             new java.lang.String[] {
176               "Property", "BoundingBox", "Paragraphs", "BlockType", "Confidence",
177             });
178     internal_static_google_cloud_vision_v1_Paragraph_descriptor =
179         getDescriptor().getMessageTypes().get(3);
180     internal_static_google_cloud_vision_v1_Paragraph_fieldAccessorTable =
181         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
182             internal_static_google_cloud_vision_v1_Paragraph_descriptor,
183             new java.lang.String[] {
184               "Property", "BoundingBox", "Words", "Confidence",
185             });
186     internal_static_google_cloud_vision_v1_Word_descriptor =
187         getDescriptor().getMessageTypes().get(4);
188     internal_static_google_cloud_vision_v1_Word_fieldAccessorTable =
189         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
190             internal_static_google_cloud_vision_v1_Word_descriptor,
191             new java.lang.String[] {
192               "Property", "BoundingBox", "Symbols", "Confidence",
193             });
194     internal_static_google_cloud_vision_v1_Symbol_descriptor =
195         getDescriptor().getMessageTypes().get(5);
196     internal_static_google_cloud_vision_v1_Symbol_fieldAccessorTable =
197         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
198             internal_static_google_cloud_vision_v1_Symbol_descriptor,
199             new java.lang.String[] {
200               "Property", "BoundingBox", "Text", "Confidence",
201             });
com.google.cloud.vision.v1.GeometryProto.getDescriptor()202     com.google.cloud.vision.v1.GeometryProto.getDescriptor();
203   }
204 
205   // @@protoc_insertion_point(outer_class_scope)
206 }
207