Class AnnotateImageResponse
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.vision.v1p4beta1.AnnotateImageResponse
-
- All Implemented Interfaces:
AnnotateImageResponseOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class AnnotateImageResponse extends com.google.protobuf.GeneratedMessageV3 implements AnnotateImageResponseOrBuilder
Response to an image annotation request.
Protobuf typegoogle.cloud.vision.v1p4beta1.AnnotateImageResponse- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnnotateImageResponse.BuilderResponse to an image annotation request.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCONTEXT_FIELD_NUMBERstatic intCROP_HINTS_ANNOTATION_FIELD_NUMBERstatic intERROR_FIELD_NUMBERstatic intFACE_ANNOTATIONS_FIELD_NUMBERstatic intFULL_TEXT_ANNOTATION_FIELD_NUMBERstatic intIMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBERstatic intLABEL_ANNOTATIONS_FIELD_NUMBERstatic intLANDMARK_ANNOTATIONS_FIELD_NUMBERstatic intLOCALIZED_OBJECT_ANNOTATIONS_FIELD_NUMBERstatic intLOGO_ANNOTATIONS_FIELD_NUMBERstatic intPRODUCT_SEARCH_RESULTS_FIELD_NUMBERstatic intSAFE_SEARCH_ANNOTATION_FIELD_NUMBERstatic intTEXT_ANNOTATIONS_FIELD_NUMBERstatic intWEB_DETECTION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)ImageAnnotationContextgetContext()If present, contextual information is needed to understand where this image comes from.ImageAnnotationContextOrBuildergetContextOrBuilder()If present, contextual information is needed to understand where this image comes from.CropHintsAnnotationgetCropHintsAnnotation()If present, crop hints have completed successfully.CropHintsAnnotationOrBuildergetCropHintsAnnotationOrBuilder()If present, crop hints have completed successfully.static AnnotateImageResponsegetDefaultInstance()AnnotateImageResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.rpc.StatusgetError()If set, represents the error message for the operation.com.google.rpc.StatusOrBuildergetErrorOrBuilder()If set, represents the error message for the operation.FaceAnnotationgetFaceAnnotations(int index)If present, face detection has completed successfully.intgetFaceAnnotationsCount()If present, face detection has completed successfully.List<FaceAnnotation>getFaceAnnotationsList()If present, face detection has completed successfully.FaceAnnotationOrBuildergetFaceAnnotationsOrBuilder(int index)If present, face detection has completed successfully.List<? extends FaceAnnotationOrBuilder>getFaceAnnotationsOrBuilderList()If present, face detection has completed successfully.TextAnnotationgetFullTextAnnotation()If present, text (OCR) detection or document (OCR) text detection has completed successfully.TextAnnotationOrBuildergetFullTextAnnotationOrBuilder()If present, text (OCR) detection or document (OCR) text detection has completed successfully.ImagePropertiesgetImagePropertiesAnnotation()If present, image properties were extracted successfully.ImagePropertiesOrBuildergetImagePropertiesAnnotationOrBuilder()If present, image properties were extracted successfully.EntityAnnotationgetLabelAnnotations(int index)If present, label detection has completed successfully.intgetLabelAnnotationsCount()If present, label detection has completed successfully.List<EntityAnnotation>getLabelAnnotationsList()If present, label detection has completed successfully.EntityAnnotationOrBuildergetLabelAnnotationsOrBuilder(int index)If present, label detection has completed successfully.List<? extends EntityAnnotationOrBuilder>getLabelAnnotationsOrBuilderList()If present, label detection has completed successfully.EntityAnnotationgetLandmarkAnnotations(int index)If present, landmark detection has completed successfully.intgetLandmarkAnnotationsCount()If present, landmark detection has completed successfully.List<EntityAnnotation>getLandmarkAnnotationsList()If present, landmark detection has completed successfully.EntityAnnotationOrBuildergetLandmarkAnnotationsOrBuilder(int index)If present, landmark detection has completed successfully.List<? extends EntityAnnotationOrBuilder>getLandmarkAnnotationsOrBuilderList()If present, landmark detection has completed successfully.LocalizedObjectAnnotationgetLocalizedObjectAnnotations(int index)If present, localized object detection has completed successfully.intgetLocalizedObjectAnnotationsCount()If present, localized object detection has completed successfully.List<LocalizedObjectAnnotation>getLocalizedObjectAnnotationsList()If present, localized object detection has completed successfully.LocalizedObjectAnnotationOrBuildergetLocalizedObjectAnnotationsOrBuilder(int index)If present, localized object detection has completed successfully.List<? extends LocalizedObjectAnnotationOrBuilder>getLocalizedObjectAnnotationsOrBuilderList()If present, localized object detection has completed successfully.EntityAnnotationgetLogoAnnotations(int index)If present, logo detection has completed successfully.intgetLogoAnnotationsCount()If present, logo detection has completed successfully.List<EntityAnnotation>getLogoAnnotationsList()If present, logo detection has completed successfully.EntityAnnotationOrBuildergetLogoAnnotationsOrBuilder(int index)If present, logo detection has completed successfully.List<? extends EntityAnnotationOrBuilder>getLogoAnnotationsOrBuilderList()If present, logo detection has completed successfully.com.google.protobuf.Parser<AnnotateImageResponse>getParserForType()ProductSearchResultsgetProductSearchResults()If present, product search has completed successfully.ProductSearchResultsOrBuildergetProductSearchResultsOrBuilder()If present, product search has completed successfully.SafeSearchAnnotationgetSafeSearchAnnotation()If present, safe-search annotation has completed successfully.SafeSearchAnnotationOrBuildergetSafeSearchAnnotationOrBuilder()If present, safe-search annotation has completed successfully.intgetSerializedSize()EntityAnnotationgetTextAnnotations(int index)If present, text (OCR) detection has completed successfully.intgetTextAnnotationsCount()If present, text (OCR) detection has completed successfully.List<EntityAnnotation>getTextAnnotationsList()If present, text (OCR) detection has completed successfully.EntityAnnotationOrBuildergetTextAnnotationsOrBuilder(int index)If present, text (OCR) detection has completed successfully.List<? extends EntityAnnotationOrBuilder>getTextAnnotationsOrBuilderList()If present, text (OCR) detection has completed successfully.WebDetectiongetWebDetection()If present, web detection has completed successfully.WebDetectionOrBuildergetWebDetectionOrBuilder()If present, web detection has completed successfully.booleanhasContext()If present, contextual information is needed to understand where this image comes from.booleanhasCropHintsAnnotation()If present, crop hints have completed successfully.booleanhasError()If set, represents the error message for the operation.booleanhasFullTextAnnotation()If present, text (OCR) detection or document (OCR) text detection has completed successfully.inthashCode()booleanhasImagePropertiesAnnotation()If present, image properties were extracted successfully.booleanhasProductSearchResults()If present, product search has completed successfully.booleanhasSafeSearchAnnotation()If present, safe-search annotation has completed successfully.booleanhasWebDetection()If present, web detection has completed successfully.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static AnnotateImageResponse.BuildernewBuilder()static AnnotateImageResponse.BuildernewBuilder(AnnotateImageResponse prototype)AnnotateImageResponse.BuildernewBuilderForType()protected AnnotateImageResponse.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AnnotateImageResponseparseDelimitedFrom(InputStream input)static AnnotateImageResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotateImageResponseparseFrom(byte[] data)static AnnotateImageResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotateImageResponseparseFrom(com.google.protobuf.ByteString data)static AnnotateImageResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotateImageResponseparseFrom(com.google.protobuf.CodedInputStream input)static AnnotateImageResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotateImageResponseparseFrom(InputStream input)static AnnotateImageResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AnnotateImageResponseparseFrom(ByteBuffer data)static AnnotateImageResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<AnnotateImageResponse>parser()AnnotateImageResponse.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
FACE_ANNOTATIONS_FIELD_NUMBER
public static final int FACE_ANNOTATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LANDMARK_ANNOTATIONS_FIELD_NUMBER
public static final int LANDMARK_ANNOTATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOGO_ANNOTATIONS_FIELD_NUMBER
public static final int LOGO_ANNOTATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABEL_ANNOTATIONS_FIELD_NUMBER
public static final int LABEL_ANNOTATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOCALIZED_OBJECT_ANNOTATIONS_FIELD_NUMBER
public static final int LOCALIZED_OBJECT_ANNOTATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEXT_ANNOTATIONS_FIELD_NUMBER
public static final int TEXT_ANNOTATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FULL_TEXT_ANNOTATION_FIELD_NUMBER
public static final int FULL_TEXT_ANNOTATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SAFE_SEARCH_ANNOTATION_FIELD_NUMBER
public static final int SAFE_SEARCH_ANNOTATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER
public static final int IMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CROP_HINTS_ANNOTATION_FIELD_NUMBER
public static final int CROP_HINTS_ANNOTATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WEB_DETECTION_FIELD_NUMBER
public static final int WEB_DETECTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRODUCT_SEARCH_RESULTS_FIELD_NUMBER
public static final int PRODUCT_SEARCH_RESULTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTEXT_FIELD_NUMBER
public static final int CONTEXT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getFaceAnnotationsList
public List<FaceAnnotation> getFaceAnnotationsList()
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1;- Specified by:
getFaceAnnotationsListin interfaceAnnotateImageResponseOrBuilder
-
getFaceAnnotationsOrBuilderList
public List<? extends FaceAnnotationOrBuilder> getFaceAnnotationsOrBuilderList()
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1;- Specified by:
getFaceAnnotationsOrBuilderListin interfaceAnnotateImageResponseOrBuilder
-
getFaceAnnotationsCount
public int getFaceAnnotationsCount()
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1;- Specified by:
getFaceAnnotationsCountin interfaceAnnotateImageResponseOrBuilder
-
getFaceAnnotations
public FaceAnnotation getFaceAnnotations(int index)
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1;- Specified by:
getFaceAnnotationsin interfaceAnnotateImageResponseOrBuilder
-
getFaceAnnotationsOrBuilder
public FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index)
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1;- Specified by:
getFaceAnnotationsOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
getLandmarkAnnotationsList
public List<EntityAnnotation> getLandmarkAnnotationsList()
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2;- Specified by:
getLandmarkAnnotationsListin interfaceAnnotateImageResponseOrBuilder
-
getLandmarkAnnotationsOrBuilderList
public List<? extends EntityAnnotationOrBuilder> getLandmarkAnnotationsOrBuilderList()
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2;- Specified by:
getLandmarkAnnotationsOrBuilderListin interfaceAnnotateImageResponseOrBuilder
-
getLandmarkAnnotationsCount
public int getLandmarkAnnotationsCount()
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2;- Specified by:
getLandmarkAnnotationsCountin interfaceAnnotateImageResponseOrBuilder
-
getLandmarkAnnotations
public EntityAnnotation getLandmarkAnnotations(int index)
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2;- Specified by:
getLandmarkAnnotationsin interfaceAnnotateImageResponseOrBuilder
-
getLandmarkAnnotationsOrBuilder
public EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder(int index)
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2;- Specified by:
getLandmarkAnnotationsOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
getLogoAnnotationsList
public List<EntityAnnotation> getLogoAnnotationsList()
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3;- Specified by:
getLogoAnnotationsListin interfaceAnnotateImageResponseOrBuilder
-
getLogoAnnotationsOrBuilderList
public List<? extends EntityAnnotationOrBuilder> getLogoAnnotationsOrBuilderList()
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3;- Specified by:
getLogoAnnotationsOrBuilderListin interfaceAnnotateImageResponseOrBuilder
-
getLogoAnnotationsCount
public int getLogoAnnotationsCount()
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3;- Specified by:
getLogoAnnotationsCountin interfaceAnnotateImageResponseOrBuilder
-
getLogoAnnotations
public EntityAnnotation getLogoAnnotations(int index)
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3;- Specified by:
getLogoAnnotationsin interfaceAnnotateImageResponseOrBuilder
-
getLogoAnnotationsOrBuilder
public EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder(int index)
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3;- Specified by:
getLogoAnnotationsOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
getLabelAnnotationsList
public List<EntityAnnotation> getLabelAnnotationsList()
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4;- Specified by:
getLabelAnnotationsListin interfaceAnnotateImageResponseOrBuilder
-
getLabelAnnotationsOrBuilderList
public List<? extends EntityAnnotationOrBuilder> getLabelAnnotationsOrBuilderList()
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4;- Specified by:
getLabelAnnotationsOrBuilderListin interfaceAnnotateImageResponseOrBuilder
-
getLabelAnnotationsCount
public int getLabelAnnotationsCount()
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4;- Specified by:
getLabelAnnotationsCountin interfaceAnnotateImageResponseOrBuilder
-
getLabelAnnotations
public EntityAnnotation getLabelAnnotations(int index)
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4;- Specified by:
getLabelAnnotationsin interfaceAnnotateImageResponseOrBuilder
-
getLabelAnnotationsOrBuilder
public EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder(int index)
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4;- Specified by:
getLabelAnnotationsOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
getLocalizedObjectAnnotationsList
public List<LocalizedObjectAnnotation> getLocalizedObjectAnnotationsList()
If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22;- Specified by:
getLocalizedObjectAnnotationsListin interfaceAnnotateImageResponseOrBuilder
-
getLocalizedObjectAnnotationsOrBuilderList
public List<? extends LocalizedObjectAnnotationOrBuilder> getLocalizedObjectAnnotationsOrBuilderList()
If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22;- Specified by:
getLocalizedObjectAnnotationsOrBuilderListin interfaceAnnotateImageResponseOrBuilder
-
getLocalizedObjectAnnotationsCount
public int getLocalizedObjectAnnotationsCount()
If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22;- Specified by:
getLocalizedObjectAnnotationsCountin interfaceAnnotateImageResponseOrBuilder
-
getLocalizedObjectAnnotations
public LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index)
If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22;- Specified by:
getLocalizedObjectAnnotationsin interfaceAnnotateImageResponseOrBuilder
-
getLocalizedObjectAnnotationsOrBuilder
public LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder(int index)
If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22;- Specified by:
getLocalizedObjectAnnotationsOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
getTextAnnotationsList
public List<EntityAnnotation> getTextAnnotationsList()
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;- Specified by:
getTextAnnotationsListin interfaceAnnotateImageResponseOrBuilder
-
getTextAnnotationsOrBuilderList
public List<? extends EntityAnnotationOrBuilder> getTextAnnotationsOrBuilderList()
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;- Specified by:
getTextAnnotationsOrBuilderListin interfaceAnnotateImageResponseOrBuilder
-
getTextAnnotationsCount
public int getTextAnnotationsCount()
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;- Specified by:
getTextAnnotationsCountin interfaceAnnotateImageResponseOrBuilder
-
getTextAnnotations
public EntityAnnotation getTextAnnotations(int index)
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;- Specified by:
getTextAnnotationsin interfaceAnnotateImageResponseOrBuilder
-
getTextAnnotationsOrBuilder
public EntityAnnotationOrBuilder getTextAnnotationsOrBuilder(int index)
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;- Specified by:
getTextAnnotationsOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
hasFullTextAnnotation
public boolean hasFullTextAnnotation()
If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.
.google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;- Specified by:
hasFullTextAnnotationin interfaceAnnotateImageResponseOrBuilder- Returns:
- Whether the fullTextAnnotation field is set.
-
getFullTextAnnotation
public TextAnnotation getFullTextAnnotation()
If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.
.google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;- Specified by:
getFullTextAnnotationin interfaceAnnotateImageResponseOrBuilder- Returns:
- The fullTextAnnotation.
-
getFullTextAnnotationOrBuilder
public TextAnnotationOrBuilder getFullTextAnnotationOrBuilder()
If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.
.google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;- Specified by:
getFullTextAnnotationOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
hasSafeSearchAnnotation
public boolean hasSafeSearchAnnotation()
If present, safe-search annotation has completed successfully.
.google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6;- Specified by:
hasSafeSearchAnnotationin interfaceAnnotateImageResponseOrBuilder- Returns:
- Whether the safeSearchAnnotation field is set.
-
getSafeSearchAnnotation
public SafeSearchAnnotation getSafeSearchAnnotation()
If present, safe-search annotation has completed successfully.
.google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6;- Specified by:
getSafeSearchAnnotationin interfaceAnnotateImageResponseOrBuilder- Returns:
- The safeSearchAnnotation.
-
getSafeSearchAnnotationOrBuilder
public SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder()
If present, safe-search annotation has completed successfully.
.google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6;- Specified by:
getSafeSearchAnnotationOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
hasImagePropertiesAnnotation
public boolean hasImagePropertiesAnnotation()
If present, image properties were extracted successfully.
.google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8;- Specified by:
hasImagePropertiesAnnotationin interfaceAnnotateImageResponseOrBuilder- Returns:
- Whether the imagePropertiesAnnotation field is set.
-
getImagePropertiesAnnotation
public ImageProperties getImagePropertiesAnnotation()
If present, image properties were extracted successfully.
.google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8;- Specified by:
getImagePropertiesAnnotationin interfaceAnnotateImageResponseOrBuilder- Returns:
- The imagePropertiesAnnotation.
-
getImagePropertiesAnnotationOrBuilder
public ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder()
If present, image properties were extracted successfully.
.google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8;- Specified by:
getImagePropertiesAnnotationOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
hasCropHintsAnnotation
public boolean hasCropHintsAnnotation()
If present, crop hints have completed successfully.
.google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11;- Specified by:
hasCropHintsAnnotationin interfaceAnnotateImageResponseOrBuilder- Returns:
- Whether the cropHintsAnnotation field is set.
-
getCropHintsAnnotation
public CropHintsAnnotation getCropHintsAnnotation()
If present, crop hints have completed successfully.
.google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11;- Specified by:
getCropHintsAnnotationin interfaceAnnotateImageResponseOrBuilder- Returns:
- The cropHintsAnnotation.
-
getCropHintsAnnotationOrBuilder
public CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder()
If present, crop hints have completed successfully.
.google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11;- Specified by:
getCropHintsAnnotationOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
hasWebDetection
public boolean hasWebDetection()
If present, web detection has completed successfully.
.google.cloud.vision.v1p4beta1.WebDetection web_detection = 13;- Specified by:
hasWebDetectionin interfaceAnnotateImageResponseOrBuilder- Returns:
- Whether the webDetection field is set.
-
getWebDetection
public WebDetection getWebDetection()
If present, web detection has completed successfully.
.google.cloud.vision.v1p4beta1.WebDetection web_detection = 13;- Specified by:
getWebDetectionin interfaceAnnotateImageResponseOrBuilder- Returns:
- The webDetection.
-
getWebDetectionOrBuilder
public WebDetectionOrBuilder getWebDetectionOrBuilder()
If present, web detection has completed successfully.
.google.cloud.vision.v1p4beta1.WebDetection web_detection = 13;- Specified by:
getWebDetectionOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
hasProductSearchResults
public boolean hasProductSearchResults()
If present, product search has completed successfully.
.google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14;- Specified by:
hasProductSearchResultsin interfaceAnnotateImageResponseOrBuilder- Returns:
- Whether the productSearchResults field is set.
-
getProductSearchResults
public ProductSearchResults getProductSearchResults()
If present, product search has completed successfully.
.google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14;- Specified by:
getProductSearchResultsin interfaceAnnotateImageResponseOrBuilder- Returns:
- The productSearchResults.
-
getProductSearchResultsOrBuilder
public ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder()
If present, product search has completed successfully.
.google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14;- Specified by:
getProductSearchResultsOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
hasError
public boolean hasError()
If set, represents the error message for the operation. Note that filled-in image annotations are guaranteed to be correct, even when `error` is set.
.google.rpc.Status error = 9;- Specified by:
hasErrorin interfaceAnnotateImageResponseOrBuilder- Returns:
- Whether the error field is set.
-
getError
public com.google.rpc.Status getError()
If set, represents the error message for the operation. Note that filled-in image annotations are guaranteed to be correct, even when `error` is set.
.google.rpc.Status error = 9;- Specified by:
getErrorin interfaceAnnotateImageResponseOrBuilder- Returns:
- The error.
-
getErrorOrBuilder
public com.google.rpc.StatusOrBuilder getErrorOrBuilder()
If set, represents the error message for the operation. Note that filled-in image annotations are guaranteed to be correct, even when `error` is set.
.google.rpc.Status error = 9;- Specified by:
getErrorOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
hasContext
public boolean hasContext()
If present, contextual information is needed to understand where this image comes from.
.google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21;- Specified by:
hasContextin interfaceAnnotateImageResponseOrBuilder- Returns:
- Whether the context field is set.
-
getContext
public ImageAnnotationContext getContext()
If present, contextual information is needed to understand where this image comes from.
.google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21;- Specified by:
getContextin interfaceAnnotateImageResponseOrBuilder- Returns:
- The context.
-
getContextOrBuilder
public ImageAnnotationContextOrBuilder getContextOrBuilder()
If present, contextual information is needed to understand where this image comes from.
.google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21;- Specified by:
getContextOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AnnotateImageResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotateImageResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotateImageResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotateImageResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotateImageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotateImageResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotateImageResponse parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AnnotateImageResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AnnotateImageResponse parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AnnotateImageResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AnnotateImageResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AnnotateImageResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AnnotateImageResponse.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AnnotateImageResponse.Builder newBuilder()
-
newBuilder
public static AnnotateImageResponse.Builder newBuilder(AnnotateImageResponse prototype)
-
toBuilder
public AnnotateImageResponse.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AnnotateImageResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AnnotateImageResponse getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AnnotateImageResponse> parser()
-
getParserForType
public com.google.protobuf.Parser<AnnotateImageResponse> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AnnotateImageResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-