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/image_annotator.proto 18 19 package com.google.cloud.vision.v1; 20 21 public interface ImageContextOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1.ImageContext) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Not used. 31 * </pre> 32 * 33 * <code>.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;</code> 34 * 35 * @return Whether the latLongRect field is set. 36 */ hasLatLongRect()37 boolean hasLatLongRect(); 38 /** 39 * 40 * 41 * <pre> 42 * Not used. 43 * </pre> 44 * 45 * <code>.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;</code> 46 * 47 * @return The latLongRect. 48 */ getLatLongRect()49 com.google.cloud.vision.v1.LatLongRect getLatLongRect(); 50 /** 51 * 52 * 53 * <pre> 54 * Not used. 55 * </pre> 56 * 57 * <code>.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;</code> 58 */ getLatLongRectOrBuilder()59 com.google.cloud.vision.v1.LatLongRectOrBuilder getLatLongRectOrBuilder(); 60 61 /** 62 * 63 * 64 * <pre> 65 * List of languages to use for TEXT_DETECTION. In most cases, an empty value 66 * yields the best results since it enables automatic language detection. For 67 * languages based on the Latin alphabet, setting `language_hints` is not 68 * needed. In rare cases, when the language of the text in the image is known, 69 * setting a hint will help get better results (although it will be a 70 * significant hindrance if the hint is wrong). Text detection returns an 71 * error if one or more of the specified languages is not one of the 72 * [supported languages](https://cloud.google.com/vision/docs/languages). 73 * </pre> 74 * 75 * <code>repeated string language_hints = 2;</code> 76 * 77 * @return A list containing the languageHints. 78 */ getLanguageHintsList()79 java.util.List<java.lang.String> getLanguageHintsList(); 80 /** 81 * 82 * 83 * <pre> 84 * List of languages to use for TEXT_DETECTION. In most cases, an empty value 85 * yields the best results since it enables automatic language detection. For 86 * languages based on the Latin alphabet, setting `language_hints` is not 87 * needed. In rare cases, when the language of the text in the image is known, 88 * setting a hint will help get better results (although it will be a 89 * significant hindrance if the hint is wrong). Text detection returns an 90 * error if one or more of the specified languages is not one of the 91 * [supported languages](https://cloud.google.com/vision/docs/languages). 92 * </pre> 93 * 94 * <code>repeated string language_hints = 2;</code> 95 * 96 * @return The count of languageHints. 97 */ getLanguageHintsCount()98 int getLanguageHintsCount(); 99 /** 100 * 101 * 102 * <pre> 103 * List of languages to use for TEXT_DETECTION. In most cases, an empty value 104 * yields the best results since it enables automatic language detection. For 105 * languages based on the Latin alphabet, setting `language_hints` is not 106 * needed. In rare cases, when the language of the text in the image is known, 107 * setting a hint will help get better results (although it will be a 108 * significant hindrance if the hint is wrong). Text detection returns an 109 * error if one or more of the specified languages is not one of the 110 * [supported languages](https://cloud.google.com/vision/docs/languages). 111 * </pre> 112 * 113 * <code>repeated string language_hints = 2;</code> 114 * 115 * @param index The index of the element to return. 116 * @return The languageHints at the given index. 117 */ getLanguageHints(int index)118 java.lang.String getLanguageHints(int index); 119 /** 120 * 121 * 122 * <pre> 123 * List of languages to use for TEXT_DETECTION. In most cases, an empty value 124 * yields the best results since it enables automatic language detection. For 125 * languages based on the Latin alphabet, setting `language_hints` is not 126 * needed. In rare cases, when the language of the text in the image is known, 127 * setting a hint will help get better results (although it will be a 128 * significant hindrance if the hint is wrong). Text detection returns an 129 * error if one or more of the specified languages is not one of the 130 * [supported languages](https://cloud.google.com/vision/docs/languages). 131 * </pre> 132 * 133 * <code>repeated string language_hints = 2;</code> 134 * 135 * @param index The index of the value to return. 136 * @return The bytes of the languageHints at the given index. 137 */ getLanguageHintsBytes(int index)138 com.google.protobuf.ByteString getLanguageHintsBytes(int index); 139 140 /** 141 * 142 * 143 * <pre> 144 * Parameters for crop hints annotation request. 145 * </pre> 146 * 147 * <code>.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;</code> 148 * 149 * @return Whether the cropHintsParams field is set. 150 */ hasCropHintsParams()151 boolean hasCropHintsParams(); 152 /** 153 * 154 * 155 * <pre> 156 * Parameters for crop hints annotation request. 157 * </pre> 158 * 159 * <code>.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;</code> 160 * 161 * @return The cropHintsParams. 162 */ getCropHintsParams()163 com.google.cloud.vision.v1.CropHintsParams getCropHintsParams(); 164 /** 165 * 166 * 167 * <pre> 168 * Parameters for crop hints annotation request. 169 * </pre> 170 * 171 * <code>.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;</code> 172 */ getCropHintsParamsOrBuilder()173 com.google.cloud.vision.v1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder(); 174 175 /** 176 * 177 * 178 * <pre> 179 * Parameters for product search. 180 * </pre> 181 * 182 * <code>.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;</code> 183 * 184 * @return Whether the productSearchParams field is set. 185 */ hasProductSearchParams()186 boolean hasProductSearchParams(); 187 /** 188 * 189 * 190 * <pre> 191 * Parameters for product search. 192 * </pre> 193 * 194 * <code>.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;</code> 195 * 196 * @return The productSearchParams. 197 */ getProductSearchParams()198 com.google.cloud.vision.v1.ProductSearchParams getProductSearchParams(); 199 /** 200 * 201 * 202 * <pre> 203 * Parameters for product search. 204 * </pre> 205 * 206 * <code>.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;</code> 207 */ getProductSearchParamsOrBuilder()208 com.google.cloud.vision.v1.ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder(); 209 210 /** 211 * 212 * 213 * <pre> 214 * Parameters for web detection. 215 * </pre> 216 * 217 * <code>.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;</code> 218 * 219 * @return Whether the webDetectionParams field is set. 220 */ hasWebDetectionParams()221 boolean hasWebDetectionParams(); 222 /** 223 * 224 * 225 * <pre> 226 * Parameters for web detection. 227 * </pre> 228 * 229 * <code>.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;</code> 230 * 231 * @return The webDetectionParams. 232 */ getWebDetectionParams()233 com.google.cloud.vision.v1.WebDetectionParams getWebDetectionParams(); 234 /** 235 * 236 * 237 * <pre> 238 * Parameters for web detection. 239 * </pre> 240 * 241 * <code>.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;</code> 242 */ getWebDetectionParamsOrBuilder()243 com.google.cloud.vision.v1.WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder(); 244 245 /** 246 * 247 * 248 * <pre> 249 * Parameters for text detection and document text detection. 250 * </pre> 251 * 252 * <code>.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;</code> 253 * 254 * @return Whether the textDetectionParams field is set. 255 */ hasTextDetectionParams()256 boolean hasTextDetectionParams(); 257 /** 258 * 259 * 260 * <pre> 261 * Parameters for text detection and document text detection. 262 * </pre> 263 * 264 * <code>.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;</code> 265 * 266 * @return The textDetectionParams. 267 */ getTextDetectionParams()268 com.google.cloud.vision.v1.TextDetectionParams getTextDetectionParams(); 269 /** 270 * 271 * 272 * <pre> 273 * Parameters for text detection and document text detection. 274 * </pre> 275 * 276 * <code>.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;</code> 277 */ getTextDetectionParamsOrBuilder()278 com.google.cloud.vision.v1.TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder(); 279 } 280