• 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 interface PageOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.Page)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Additional information detected on the page.
31    * </pre>
32    *
33    * <code>.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;</code>
34    *
35    * @return Whether the property field is set.
36    */
hasProperty()37   boolean hasProperty();
38   /**
39    *
40    *
41    * <pre>
42    * Additional information detected on the page.
43    * </pre>
44    *
45    * <code>.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;</code>
46    *
47    * @return The property.
48    */
getProperty()49   com.google.cloud.vision.v1.TextAnnotation.TextProperty getProperty();
50   /**
51    *
52    *
53    * <pre>
54    * Additional information detected on the page.
55    * </pre>
56    *
57    * <code>.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;</code>
58    */
getPropertyOrBuilder()59   com.google.cloud.vision.v1.TextAnnotation.TextPropertyOrBuilder getPropertyOrBuilder();
60 
61   /**
62    *
63    *
64    * <pre>
65    * Page width. For PDFs the unit is points. For images (including
66    * TIFFs) the unit is pixels.
67    * </pre>
68    *
69    * <code>int32 width = 2;</code>
70    *
71    * @return The width.
72    */
getWidth()73   int getWidth();
74 
75   /**
76    *
77    *
78    * <pre>
79    * Page height. For PDFs the unit is points. For images (including
80    * TIFFs) the unit is pixels.
81    * </pre>
82    *
83    * <code>int32 height = 3;</code>
84    *
85    * @return The height.
86    */
getHeight()87   int getHeight();
88 
89   /**
90    *
91    *
92    * <pre>
93    * List of blocks of text, images etc on this page.
94    * </pre>
95    *
96    * <code>repeated .google.cloud.vision.v1.Block blocks = 4;</code>
97    */
getBlocksList()98   java.util.List<com.google.cloud.vision.v1.Block> getBlocksList();
99   /**
100    *
101    *
102    * <pre>
103    * List of blocks of text, images etc on this page.
104    * </pre>
105    *
106    * <code>repeated .google.cloud.vision.v1.Block blocks = 4;</code>
107    */
getBlocks(int index)108   com.google.cloud.vision.v1.Block getBlocks(int index);
109   /**
110    *
111    *
112    * <pre>
113    * List of blocks of text, images etc on this page.
114    * </pre>
115    *
116    * <code>repeated .google.cloud.vision.v1.Block blocks = 4;</code>
117    */
getBlocksCount()118   int getBlocksCount();
119   /**
120    *
121    *
122    * <pre>
123    * List of blocks of text, images etc on this page.
124    * </pre>
125    *
126    * <code>repeated .google.cloud.vision.v1.Block blocks = 4;</code>
127    */
getBlocksOrBuilderList()128   java.util.List<? extends com.google.cloud.vision.v1.BlockOrBuilder> getBlocksOrBuilderList();
129   /**
130    *
131    *
132    * <pre>
133    * List of blocks of text, images etc on this page.
134    * </pre>
135    *
136    * <code>repeated .google.cloud.vision.v1.Block blocks = 4;</code>
137    */
getBlocksOrBuilder(int index)138   com.google.cloud.vision.v1.BlockOrBuilder getBlocksOrBuilder(int index);
139 
140   /**
141    *
142    *
143    * <pre>
144    * Confidence of the OCR results on the page. Range [0, 1].
145    * </pre>
146    *
147    * <code>float confidence = 5;</code>
148    *
149    * @return The confidence.
150    */
getConfidence()151   float getConfidence();
152 }
153