Interface ImageContextOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ImageContext,ImageContext.Builder
public interface ImageContextOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CropHintsParamsgetCropHintsParams()Parameters for crop hints annotation request.CropHintsParamsOrBuildergetCropHintsParamsOrBuilder()Parameters for crop hints annotation request.StringgetLanguageHints(int index)List of languages to use for TEXT_DETECTION.com.google.protobuf.ByteStringgetLanguageHintsBytes(int index)List of languages to use for TEXT_DETECTION.intgetLanguageHintsCount()List of languages to use for TEXT_DETECTION.List<String>getLanguageHintsList()List of languages to use for TEXT_DETECTION.LatLongRectgetLatLongRect()lat/long rectangle that specifies the location of the image.LatLongRectOrBuildergetLatLongRectOrBuilder()lat/long rectangle that specifies the location of the image.TextDetectionParamsgetTextDetectionParams()Parameters for text detection and document text detection.TextDetectionParamsOrBuildergetTextDetectionParamsOrBuilder()Parameters for text detection and document text detection.WebDetectionParamsgetWebDetectionParams()Parameters for web detection.WebDetectionParamsOrBuildergetWebDetectionParamsOrBuilder()Parameters for web detection.booleanhasCropHintsParams()Parameters for crop hints annotation request.booleanhasLatLongRect()lat/long rectangle that specifies the location of the image.booleanhasTextDetectionParams()Parameters for text detection and document text detection.booleanhasWebDetectionParams()Parameters for web detection.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasLatLongRect
boolean hasLatLongRect()
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1;- Returns:
- Whether the latLongRect field is set.
-
getLatLongRect
LatLongRect getLatLongRect()
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1;- Returns:
- The latLongRect.
-
getLatLongRectOrBuilder
LatLongRectOrBuilder getLatLongRectOrBuilder()
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1;
-
getLanguageHintsList
List<String> getLanguageHintsList()
List of languages to use for TEXT_DETECTION. In most cases, an empty value yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting `language_hints` is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong). Text detection returns an error if one or more of the specified languages is not one of the [supported languages](https://cloud.google.com/vision/docs/languages).
repeated string language_hints = 2;- Returns:
- A list containing the languageHints.
-
getLanguageHintsCount
int getLanguageHintsCount()
List of languages to use for TEXT_DETECTION. In most cases, an empty value yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting `language_hints` is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong). Text detection returns an error if one or more of the specified languages is not one of the [supported languages](https://cloud.google.com/vision/docs/languages).
repeated string language_hints = 2;- Returns:
- The count of languageHints.
-
getLanguageHints
String getLanguageHints(int index)
List of languages to use for TEXT_DETECTION. In most cases, an empty value yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting `language_hints` is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong). Text detection returns an error if one or more of the specified languages is not one of the [supported languages](https://cloud.google.com/vision/docs/languages).
repeated string language_hints = 2;- Parameters:
index- The index of the element to return.- Returns:
- The languageHints at the given index.
-
getLanguageHintsBytes
com.google.protobuf.ByteString getLanguageHintsBytes(int index)
List of languages to use for TEXT_DETECTION. In most cases, an empty value yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting `language_hints` is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong). Text detection returns an error if one or more of the specified languages is not one of the [supported languages](https://cloud.google.com/vision/docs/languages).
repeated string language_hints = 2;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the languageHints at the given index.
-
hasCropHintsParams
boolean hasCropHintsParams()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4;- Returns:
- Whether the cropHintsParams field is set.
-
getCropHintsParams
CropHintsParams getCropHintsParams()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4;- Returns:
- The cropHintsParams.
-
getCropHintsParamsOrBuilder
CropHintsParamsOrBuilder getCropHintsParamsOrBuilder()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4;
-
hasWebDetectionParams
boolean hasWebDetectionParams()
Parameters for web detection.
.google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6;- Returns:
- Whether the webDetectionParams field is set.
-
getWebDetectionParams
WebDetectionParams getWebDetectionParams()
Parameters for web detection.
.google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6;- Returns:
- The webDetectionParams.
-
getWebDetectionParamsOrBuilder
WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder()
Parameters for web detection.
.google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6;
-
hasTextDetectionParams
boolean hasTextDetectionParams()
Parameters for text detection and document text detection.
.google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12;- Returns:
- Whether the textDetectionParams field is set.
-
getTextDetectionParams
TextDetectionParams getTextDetectionParams()
Parameters for text detection and document text detection.
.google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12;- Returns:
- The textDetectionParams.
-
getTextDetectionParamsOrBuilder
TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder()
Parameters for text detection and document text detection.
.google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12;
-
-