public final class AnnotateImageResponse extends GeneratedMessageV3 implements AnnotateImageResponseOrBuilder
Response to an image annotation request.
Protobuf type google.cloud.vision.v1p3beta1.AnnotateImageResponse
Static Fields
CONTEXT_FIELD_NUMBER
public static final int CONTEXT_FIELD_NUMBER
Field ValueCROP_HINTS_ANNOTATION_FIELD_NUMBER
public static final int CROP_HINTS_ANNOTATION_FIELD_NUMBER
Field ValueERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
Field ValueFACE_ANNOTATIONS_FIELD_NUMBER
public static final int FACE_ANNOTATIONS_FIELD_NUMBER
Field ValueFULL_TEXT_ANNOTATION_FIELD_NUMBER
public static final int FULL_TEXT_ANNOTATION_FIELD_NUMBER
Field ValueIMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER
public static final int IMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER
Field ValueLABEL_ANNOTATIONS_FIELD_NUMBER
public static final int LABEL_ANNOTATIONS_FIELD_NUMBER
Field ValueLANDMARK_ANNOTATIONS_FIELD_NUMBER
public static final int LANDMARK_ANNOTATIONS_FIELD_NUMBER
Field ValueLOCALIZED_OBJECT_ANNOTATIONS_FIELD_NUMBER
public static final int LOCALIZED_OBJECT_ANNOTATIONS_FIELD_NUMBER
Field ValueLOGO_ANNOTATIONS_FIELD_NUMBER
public static final int LOGO_ANNOTATIONS_FIELD_NUMBER
Field ValuePRODUCT_SEARCH_RESULTS_FIELD_NUMBER
public static final int PRODUCT_SEARCH_RESULTS_FIELD_NUMBER
Field ValueSAFE_SEARCH_ANNOTATION_FIELD_NUMBER
public static final int SAFE_SEARCH_ANNOTATION_FIELD_NUMBER
Field ValueTEXT_ANNOTATIONS_FIELD_NUMBER
public static final int TEXT_ANNOTATIONS_FIELD_NUMBER
Field ValueWEB_DETECTION_FIELD_NUMBER
public static final int WEB_DETECTION_FIELD_NUMBER
Field ValueStatic Methods
getDefaultInstance()
public static AnnotateImageResponse getDefaultInstance()
ReturnsgetDescriptor()
public static final Descriptors.Descriptor getDescriptor()
ReturnsnewBuilder()
public static AnnotateImageResponse.Builder newBuilder()
ReturnsnewBuilder(AnnotateImageResponse )
public static AnnotateImageResponse.Builder newBuilder(AnnotateImageResponse )
ParameterReturnspublic static AnnotateImageResponse parseDelimitedFrom(InputStream input)
ParameterReturnsExceptionspublic static AnnotateImageResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
ParametersReturnsExceptionsparseFrom(byte[] data)
public static AnnotateImageResponse parseFrom(byte[] data)
ParameterName | Description |
data | byte[]
|
ReturnsExceptionsparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AnnotateImageResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
ParametersReturnsExceptionsparseFrom(ByteString data)
public static AnnotateImageResponse parseFrom(ByteString data)
ParameterReturnsExceptionsparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AnnotateImageResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
ParametersReturnsExceptionspublic static AnnotateImageResponse parseFrom(CodedInputStream input)
ParameterReturnsExceptionspublic static AnnotateImageResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
ParametersReturnsExceptionspublic static AnnotateImageResponse parseFrom(InputStream input)
ParameterReturnsExceptionspublic static AnnotateImageResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
ParametersReturnsExceptionsparseFrom(ByteBuffer data)
public static AnnotateImageResponse parseFrom(ByteBuffer data)
ParameterReturnsExceptionsparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AnnotateImageResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
ParametersReturnsExceptionsparser()
public static Parser<AnnotateImageResponse> parser()
ReturnsMethods
equals(Object obj)
public boolean equals(Object obj)
ParameterReturnsOverridesgetContext()
public ImageAnnotationContext getContext()
If present, contextual information is needed to understand where this image comes from.
.google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21;
ReturnsgetContextOrBuilder()
public ImageAnnotationContextOrBuilder getContextOrBuilder()
If present, contextual information is needed to understand where this image comes from.
.google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21;
ReturnsgetCropHintsAnnotation()
public CropHintsAnnotation getCropHintsAnnotation()
If present, crop hints have completed successfully.
.google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11;
ReturnsgetCropHintsAnnotationOrBuilder()
public CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder()
If present, crop hints have completed successfully.
.google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11;
ReturnsgetDefaultInstanceForType()
public AnnotateImageResponse getDefaultInstanceForType()
ReturnsgetError()
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;
ReturnsType | Description |
com.google.rpc.Status | The error. |
getErrorOrBuilder()
public 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;
ReturnsType | Description |
com.google.rpc.StatusOrBuilder | |
getFaceAnnotations(int index)
public FaceAnnotation getFaceAnnotations(int index)
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1;
ParameterReturnsgetFaceAnnotationsCount()
public int getFaceAnnotationsCount()
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1;
ReturnsgetFaceAnnotationsList()
public List<FaceAnnotation> getFaceAnnotationsList()
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1;
ReturnsgetFaceAnnotationsOrBuilder(int index)
public FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index)
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1;
ParameterReturnsgetFaceAnnotationsOrBuilderList()
public List<? extends FaceAnnotationOrBuilder> getFaceAnnotationsOrBuilderList()
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.FaceAnnotation face_annotations = 1;
ReturnsType | Description |
List<? extends com.google.cloud.vision.v1p3beta1.FaceAnnotationOrBuilder> | |
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.v1p3beta1.TextAnnotation full_text_annotation = 12;
ReturnsgetFullTextAnnotationOrBuilder()
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.v1p3beta1.TextAnnotation full_text_annotation = 12;
ReturnsgetImagePropertiesAnnotation()
public ImageProperties getImagePropertiesAnnotation()
If present, image properties were extracted successfully.
.google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8;
ReturnsgetImagePropertiesAnnotationOrBuilder()
public ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder()
If present, image properties were extracted successfully.
.google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8;
ReturnsgetLabelAnnotations(int index)
public EntityAnnotation getLabelAnnotations(int index)
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4;
ParameterReturnsgetLabelAnnotationsCount()
public int getLabelAnnotationsCount()
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4;
ReturnsgetLabelAnnotationsList()
public List<EntityAnnotation> getLabelAnnotationsList()
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4;
ReturnsgetLabelAnnotationsOrBuilder(int index)
public EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder(int index)
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4;
ParameterReturnsgetLabelAnnotationsOrBuilderList()
public List<? extends EntityAnnotationOrBuilder> getLabelAnnotationsOrBuilderList()
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation label_annotations = 4;
ReturnsType | Description |
List<? extends com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> | |
getLandmarkAnnotations(int index)
public EntityAnnotation getLandmarkAnnotations(int index)
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2;
ParameterReturnsgetLandmarkAnnotationsCount()
public int getLandmarkAnnotationsCount()
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2;
ReturnsgetLandmarkAnnotationsList()
public List<EntityAnnotation> getLandmarkAnnotationsList()
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2;
ReturnsgetLandmarkAnnotationsOrBuilder(int index)
public EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder(int index)
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2;
ParameterReturnsgetLandmarkAnnotationsOrBuilderList()
public List<? extends EntityAnnotationOrBuilder> getLandmarkAnnotationsOrBuilderList()
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation landmark_annotations = 2;
ReturnsType | Description |
List<? extends com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> | |
getLocalizedObjectAnnotations(int index)
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.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22;
ParameterReturnsgetLocalizedObjectAnnotationsCount()
public int getLocalizedObjectAnnotationsCount()
If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22;
ReturnsgetLocalizedObjectAnnotationsList()
public List<LocalizedObjectAnnotation> getLocalizedObjectAnnotationsList()
If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
repeated .google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22;
ReturnsgetLocalizedObjectAnnotationsOrBuilder(int index)
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.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22;
ParameterReturnsgetLocalizedObjectAnnotationsOrBuilderList()
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.v1p3beta1.LocalizedObjectAnnotation localized_object_annotations = 22;
ReturnsType | Description |
List<? extends com.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotationOrBuilder> | |
getLogoAnnotations(int index)
public EntityAnnotation getLogoAnnotations(int index)
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3;
ParameterReturnsgetLogoAnnotationsCount()
public int getLogoAnnotationsCount()
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3;
ReturnsgetLogoAnnotationsList()
public List<EntityAnnotation> getLogoAnnotationsList()
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3;
ReturnsgetLogoAnnotationsOrBuilder(int index)
public EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder(int index)
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3;
ParameterReturnsgetLogoAnnotationsOrBuilderList()
public List<? extends EntityAnnotationOrBuilder> getLogoAnnotationsOrBuilderList()
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation logo_annotations = 3;
ReturnsType | Description |
List<? extends com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> | |
getParserForType()
public Parser<AnnotateImageResponse> getParserForType()
ReturnsOverridesgetProductSearchResults()
public ProductSearchResults getProductSearchResults()
If present, product search has completed successfully.
.google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14;
ReturnsgetProductSearchResultsOrBuilder()
public ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder()
If present, product search has completed successfully.
.google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14;
ReturnsgetSafeSearchAnnotation()
public SafeSearchAnnotation getSafeSearchAnnotation()
If present, safe-search annotation has completed successfully.
.google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6;
ReturnsgetSafeSearchAnnotationOrBuilder()
public SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder()
If present, safe-search annotation has completed successfully.
.google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6;
ReturnsgetSerializedSize()
public int getSerializedSize()
ReturnsOverridesgetTextAnnotations(int index)
public EntityAnnotation getTextAnnotations(int index)
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5;
ParameterReturnsgetTextAnnotationsCount()
public int getTextAnnotationsCount()
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5;
ReturnsgetTextAnnotationsList()
public List<EntityAnnotation> getTextAnnotationsList()
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5;
ReturnsgetTextAnnotationsOrBuilder(int index)
public EntityAnnotationOrBuilder getTextAnnotationsOrBuilder(int index)
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5;
ParameterReturnsgetTextAnnotationsOrBuilderList()
public List<? extends EntityAnnotationOrBuilder> getTextAnnotationsOrBuilderList()
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p3beta1.EntityAnnotation text_annotations = 5;
ReturnsType | Description |
List<? extends com.google.cloud.vision.v1p3beta1.EntityAnnotationOrBuilder> | |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
ReturnsOverridesgetWebDetection()
public WebDetection getWebDetection()
If present, web detection has completed successfully.
.google.cloud.vision.v1p3beta1.WebDetection web_detection = 13;
ReturnsgetWebDetectionOrBuilder()
public WebDetectionOrBuilder getWebDetectionOrBuilder()
If present, web detection has completed successfully.
.google.cloud.vision.v1p3beta1.WebDetection web_detection = 13;
ReturnshasContext()
public boolean hasContext()
If present, contextual information is needed to understand where this image comes from.
.google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21;
ReturnsType | Description |
boolean | Whether the context field is set. |
hasCropHintsAnnotation()
public boolean hasCropHintsAnnotation()
If present, crop hints have completed successfully.
.google.cloud.vision.v1p3beta1.CropHintsAnnotation crop_hints_annotation = 11;
ReturnsType | Description |
boolean | Whether the cropHintsAnnotation field is set. |
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;
ReturnsType | Description |
boolean | Whether the error field is set. |
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.v1p3beta1.TextAnnotation full_text_annotation = 12;
ReturnsType | Description |
boolean | Whether the fullTextAnnotation field is set. |
hasImagePropertiesAnnotation()
public boolean hasImagePropertiesAnnotation()
If present, image properties were extracted successfully.
.google.cloud.vision.v1p3beta1.ImageProperties image_properties_annotation = 8;
ReturnsType | Description |
boolean | Whether the imagePropertiesAnnotation field is set. |
hasProductSearchResults()
public boolean hasProductSearchResults()
If present, product search has completed successfully.
.google.cloud.vision.v1p3beta1.ProductSearchResults product_search_results = 14;
ReturnsType | Description |
boolean | Whether the productSearchResults field is set. |
hasSafeSearchAnnotation()
public boolean hasSafeSearchAnnotation()
If present, safe-search annotation has completed successfully.
.google.cloud.vision.v1p3beta1.SafeSearchAnnotation safe_search_annotation = 6;
ReturnsType | Description |
boolean | Whether the safeSearchAnnotation field is set. |
hasWebDetection()
public boolean hasWebDetection()
If present, web detection has completed successfully.
.google.cloud.vision.v1p3beta1.WebDetection web_detection = 13;
ReturnsType | Description |
boolean | Whether the webDetection field is set. |
hashCode()
ReturnsOverridesinternalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
ReturnsOverridesisInitialized()
public final boolean isInitialized()
ReturnsOverridesnewBuilderForType()
public AnnotateImageResponse.Builder newBuilderForType()
ReturnsnewBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AnnotateImageResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
ParameterReturnsOverridesnewInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
ParameterReturnsOverridestoBuilder()
public AnnotateImageResponse.Builder toBuilder()
ReturnswriteTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
ParameterOverridesExceptions