Class AnnotateImageResponse.Builder (3.7.0)

public static final class AnnotateImageResponse.Builder extends GeneratedMessageV3.Builder<AnnotateImageResponse.Builder> implements AnnotateImageResponseOrBuilder

Response to an image annotation request.

Protobuf type google.cloud.vision.v1.AnnotateImageResponse

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllFaceAnnotations(Iterable<? extends FaceAnnotation> values)

public AnnotateImageResponse.Builder addAllFaceAnnotations(Iterable<? extends FaceAnnotation> values)

If present, face detection has completed successfully.

repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1.FaceAnnotation>
Returns

addAllLabelAnnotations(Iterable<? extends EntityAnnotation> values)

public AnnotateImageResponse.Builder addAllLabelAnnotations(Iterable<? extends EntityAnnotation> values)

If present, label detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1.EntityAnnotation>
Returns

addAllLandmarkAnnotations(Iterable<? extends EntityAnnotation> values)

public AnnotateImageResponse.Builder addAllLandmarkAnnotations(Iterable<? extends EntityAnnotation> values)

If present, landmark detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1.EntityAnnotation>
Returns

addAllLocalizedObjectAnnotations(Iterable<? extends LocalizedObjectAnnotation> values)

public AnnotateImageResponse.Builder addAllLocalizedObjectAnnotations(Iterable<? extends LocalizedObjectAnnotation> values)

If present, localized object detection has completed successfully. This will be sorted descending by confidence score.

repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1.LocalizedObjectAnnotation>
Returns

addAllLogoAnnotations(Iterable<? extends EntityAnnotation> values)

public AnnotateImageResponse.Builder addAllLogoAnnotations(Iterable<? extends EntityAnnotation> values)

If present, logo detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1.EntityAnnotation>
Returns

addAllTextAnnotations(Iterable<? extends EntityAnnotation> values)

public AnnotateImageResponse.Builder addAllTextAnnotations(Iterable<? extends EntityAnnotation> values)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1.EntityAnnotation>
Returns

addFaceAnnotations(FaceAnnotation value)

public AnnotateImageResponse.Builder addFaceAnnotations(FaceAnnotation value)

If present, face detection has completed successfully.

repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;

Parameter
NameDescription
valueFaceAnnotation
Returns

addFaceAnnotations(FaceAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addFaceAnnotations(FaceAnnotation.Builder builderForValue)

If present, face detection has completed successfully.

repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;

Parameter
NameDescription
builderForValueFaceAnnotation.Builder
Returns

addFaceAnnotations(int index, FaceAnnotation value)

public AnnotateImageResponse.Builder addFaceAnnotations(int index, FaceAnnotation value)

If present, face detection has completed successfully.

repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;

Parameters
NameDescription
indexint
valueFaceAnnotation
Returns

addFaceAnnotations(int index, FaceAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addFaceAnnotations(int index, FaceAnnotation.Builder builderForValue)

If present, face detection has completed successfully.

repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;

Parameters
NameDescription
indexint
builderForValueFaceAnnotation.Builder
Returns

addFaceAnnotationsBuilder()

public FaceAnnotation.Builder addFaceAnnotationsBuilder()

If present, face detection has completed successfully.

repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;

Returns
TypeDescription
FaceAnnotation.Builder

addFaceAnnotationsBuilder(int index)

public FaceAnnotation.Builder addFaceAnnotationsBuilder(int index)

If present, face detection has completed successfully.

repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotation.Builder

addLabelAnnotations(EntityAnnotation value)

public AnnotateImageResponse.Builder addLabelAnnotations(EntityAnnotation value)

If present, label detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;

Parameter
NameDescription
valueEntityAnnotation
Returns

addLabelAnnotations(EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addLabelAnnotations(EntityAnnotation.Builder builderForValue)

If present, label detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;

Parameter
NameDescription
builderForValueEntityAnnotation.Builder
Returns

addLabelAnnotations(int index, EntityAnnotation value)

public AnnotateImageResponse.Builder addLabelAnnotations(int index, EntityAnnotation value)

If present, label detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;

Parameters
NameDescription
indexint
valueEntityAnnotation
Returns

addLabelAnnotations(int index, EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addLabelAnnotations(int index, EntityAnnotation.Builder builderForValue)

If present, label detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;

Parameters
NameDescription
indexint
builderForValueEntityAnnotation.Builder
Returns

addLabelAnnotationsBuilder()

public EntityAnnotation.Builder addLabelAnnotationsBuilder()

If present, label detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;

Returns

addLabelAnnotationsBuilder(int index)

public EntityAnnotation.Builder addLabelAnnotationsBuilder(int index)

If present, label detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;

Parameter
NameDescription
indexint
Returns

addLandmarkAnnotations(EntityAnnotation value)

public AnnotateImageResponse.Builder addLandmarkAnnotations(EntityAnnotation value)

If present, landmark detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;

Parameter
NameDescription
valueEntityAnnotation
Returns

addLandmarkAnnotations(EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addLandmarkAnnotations(EntityAnnotation.Builder builderForValue)

If present, landmark detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;

Parameter
NameDescription
builderForValueEntityAnnotation.Builder
Returns

addLandmarkAnnotations(int index, EntityAnnotation value)

public AnnotateImageResponse.Builder addLandmarkAnnotations(int index, EntityAnnotation value)

If present, landmark detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;

Parameters
NameDescription
indexint
valueEntityAnnotation
Returns

addLandmarkAnnotations(int index, EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addLandmarkAnnotations(int index, EntityAnnotation.Builder builderForValue)

If present, landmark detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;

Parameters
NameDescription
indexint
builderForValueEntityAnnotation.Builder
Returns

addLandmarkAnnotationsBuilder()

public EntityAnnotation.Builder addLandmarkAnnotationsBuilder()

If present, landmark detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;

Returns

addLandmarkAnnotationsBuilder(int index)

public EntityAnnotation.Builder addLandmarkAnnotationsBuilder(int index)

If present, landmark detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;

Parameter
NameDescription
indexint
Returns

addLocalizedObjectAnnotations(LocalizedObjectAnnotation value)

public AnnotateImageResponse.Builder addLocalizedObjectAnnotations(LocalizedObjectAnnotation value)

If present, localized object detection has completed successfully. This will be sorted descending by confidence score.

repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameter
NameDescription
valueLocalizedObjectAnnotation
Returns

addLocalizedObjectAnnotations(LocalizedObjectAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addLocalizedObjectAnnotations(LocalizedObjectAnnotation.Builder builderForValue)

If present, localized object detection has completed successfully. This will be sorted descending by confidence score.

repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameter
NameDescription
builderForValueLocalizedObjectAnnotation.Builder
Returns

addLocalizedObjectAnnotations(int index, LocalizedObjectAnnotation value)

public AnnotateImageResponse.Builder addLocalizedObjectAnnotations(int index, LocalizedObjectAnnotation value)

If present, localized object detection has completed successfully. This will be sorted descending by confidence score.

repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameters
NameDescription
indexint
valueLocalizedObjectAnnotation
Returns

addLocalizedObjectAnnotations(int index, LocalizedObjectAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addLocalizedObjectAnnotations(int index, LocalizedObjectAnnotation.Builder builderForValue)

If present, localized object detection has completed successfully. This will be sorted descending by confidence score.

repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameters
NameDescription
indexint
builderForValueLocalizedObjectAnnotation.Builder
Returns

addLocalizedObjectAnnotationsBuilder()

public LocalizedObjectAnnotation.Builder addLocalizedObjectAnnotationsBuilder()

If present, localized object detection has completed successfully. This will be sorted descending by confidence score.

repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Returns

addLocalizedObjectAnnotationsBuilder(int index)

public LocalizedObjectAnnotation.Builder addLocalizedObjectAnnotationsBuilder(int index)

If present, localized object detection has completed successfully. This will be sorted descending by confidence score.

repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameter
NameDescription
indexint
Returns

addLogoAnnotations(EntityAnnotation value)

public AnnotateImageResponse.Builder addLogoAnnotations(EntityAnnotation value)

If present, logo detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;

Parameter
NameDescription
valueEntityAnnotation
Returns

addLogoAnnotations(EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addLogoAnnotations(EntityAnnotation.Builder builderForValue)

If present, logo detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;

Parameter
NameDescription
builderForValueEntityAnnotation.Builder
Returns

addLogoAnnotations(int index, EntityAnnotation value)

public AnnotateImageResponse.Builder addLogoAnnotations(int index, EntityAnnotation value)

If present, logo detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;

Parameters
NameDescription
indexint
valueEntityAnnotation
Returns

addLogoAnnotations(int index, EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addLogoAnnotations(int index, EntityAnnotation.Builder builderForValue)

If present, logo detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;

Parameters
NameDescription
indexint
builderForValueEntityAnnotation.Builder
Returns

addLogoAnnotationsBuilder()

public EntityAnnotation.Builder addLogoAnnotationsBuilder()

If present, logo detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;

Returns

addLogoAnnotationsBuilder(int index)

public EntityAnnotation.Builder addLogoAnnotationsBuilder(int index)

If present, logo detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;

Parameter
NameDescription
indexint
Returns

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnnotateImageResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns Overrides

addTextAnnotations(EntityAnnotation value)

public AnnotateImageResponse.Builder addTextAnnotations(EntityAnnotation value)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;

Parameter
NameDescription
valueEntityAnnotation
Returns

addTextAnnotations(EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addTextAnnotations(EntityAnnotation.Builder builderForValue)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;

Parameter
NameDescription
builderForValueEntityAnnotation.Builder
Returns

addTextAnnotations(int index, EntityAnnotation value)

public AnnotateImageResponse.Builder addTextAnnotations(int index, EntityAnnotation value)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;

Parameters
NameDescription
indexint
valueEntityAnnotation
Returns

addTextAnnotations(int index, EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addTextAnnotations(int index, EntityAnnotation.Builder builderForValue)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;

Parameters
NameDescription
indexint
builderForValueEntityAnnotation.Builder
Returns

addTextAnnotationsBuilder()

public EntityAnnotation.Builder addTextAnnotationsBuilder()

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;

Returns

addTextAnnotationsBuilder(int index)

public EntityAnnotation.Builder addTextAnnotationsBuilder(int index)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;

Parameter
NameDescription
indexint
Returns

build()

public AnnotateImageResponse build()
Returns
TypeDescription
AnnotateImageResponse

buildPartial()

public AnnotateImageResponse buildPartial()
Returns
TypeDescription
AnnotateImageResponse

clear()

public AnnotateImageResponse.Builder clear()
Returns Overrides

clearContext()

public AnnotateImageResponse.Builder clearContext()

If present, contextual information is needed to understand where this image comes from.

.google.cloud.vision.v1.ImageAnnotationContext context = 21;

Returns

clearCropHintsAnnotation()

public AnnotateImageResponse.Builder clearCropHintsAnnotation()

If present, crop hints have completed successfully.

.google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11;

Returns

clearError()

public AnnotateImageResponse.Builder clearError()

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;

Returns

clearFaceAnnotations()

public AnnotateImageResponse.Builder clearFaceAnnotations()

If present, face detection has completed successfully.

repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;

Returns

clearField(Descriptors.FieldDescriptor field)

public AnnotateImageResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns Overrides

clearFullTextAnnotation()

public AnnotateImageResponse.Builder clearFullTextAnnotation()

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.v1.TextAnnotation full_text_annotation = 12;

Returns

clearImagePropertiesAnnotation()

public AnnotateImageResponse.Builder clearImagePropertiesAnnotation()

If present, image properties were extracted successfully.

.google.cloud.vision.v1.ImageProperties image_properties_annotation = 8;

Returns

clearLabelAnnotations()

public AnnotateImageResponse.Builder clearLabelAnnotations()

If present, label detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;

Returns

clearLandmarkAnnotations()

public AnnotateImageResponse.Builder clearLandmarkAnnotations()

If present, landmark detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;

Returns

clearLocalizedObjectAnnotations()

public AnnotateImageResponse.Builder clearLocalizedObjectAnnotations()

If present, localized object detection has completed successfully. This will be sorted descending by confidence score.

repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Returns

clearLogoAnnotations()

public AnnotateImageResponse.Builder clearLogoAnnotations()

If present, logo detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;

Returns

clearOneof(Descriptors.OneofDescriptor oneof)

public AnnotateImageResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns Overrides

clearProductSearchResults()

public AnnotateImageResponse.Builder clearProductSearchResults()

If present, product search has completed successfully.

.google.cloud.vision.v1.ProductSearchResults product_search_results = 14;

Returns

clearSafeSearchAnnotation()

public AnnotateImageResponse.Builder clearSafeSearchAnnotation()

If present, safe-search annotation has completed successfully.

.google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6;

Returns

clearTextAnnotations()

public AnnotateImageResponse.Builder clearTextAnnotations()

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;

Returns

clearWebDetection()

public AnnotateImageResponse.Builder clearWebDetection()

If present, web detection has completed successfully.

.google.cloud.vision.v1.WebDetection web_detection = 13;

Returns

clone()

public AnnotateImageResponse.Builder clone()
Returns Overrides

getContext()

public ImageAnnotationContext getContext()

If present, contextual information is needed to understand where this image comes from.

.google.cloud.vision.v1.ImageAnnotationContext context = 21;

Returns
TypeDescription
ImageAnnotationContext

The context.

getContextBuilder()

public ImageAnnotationContext.Builder getContextBuilder()

If present, contextual information is needed to understand where this image comes from.

.google.cloud.vision.v1.ImageAnnotationContext context = 21;

Returns

getContextOrBuilder()

public ImageAnnotationContextOrBuilder getContextOrBuilder()

If present, contextual information is needed to understand where this image comes from.

.google.cloud.vision.v1.ImageAnnotationContext context = 21;

Returns

getCropHintsAnnotation()

public CropHintsAnnotation getCropHintsAnnotation()

If present, crop hints have completed successfully.

.google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11;

Returns
TypeDescription
CropHintsAnnotation

The cropHintsAnnotation.

getCropHintsAnnotationBuilder()

public CropHintsAnnotation.Builder getCropHintsAnnotationBuilder()

If present, crop hints have completed successfully.

.google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11;

Returns

getCropHintsAnnotationOrBuilder()

public CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder()

If present, crop hints have completed successfully.

.google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11;

Returns

getDefaultInstanceForType()

public AnnotateImageResponse getDefaultInstanceForType()
Returns
TypeDescription
AnnotateImageResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getError()

public 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;

Returns
TypeDescription
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

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;

Returns
TypeDescription
com.google.rpc.Status.Builder

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;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getFaceAnnotations(int index)

public FaceAnnotation getFaceAnnotations(int index)

If present, face detection has completed successfully.

repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotation

getFaceAnnotationsBuilder(int index)

public FaceAnnotation.Builder getFaceAnnotationsBuilder(int index)

If present, face detection has completed successfully.

repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotation.Builder

getFaceAnnotationsBuilderList()

public List<FaceAnnotation.Builder> getFaceAnnotationsBuilderList()

If present, face detection has completed successfully.

repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;

Returns
TypeDescription
List<Builder>

getFaceAnnotationsCount()

public int getFaceAnnotationsCount()

If present, face detection has completed successfully.

repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;

Returns
TypeDescription
int

getFaceAnnotationsList()

public List<FaceAnnotation> getFaceAnnotationsList()

If present, face detection has completed successfully.

repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;

Returns
TypeDescription
List<FaceAnnotation>

getFaceAnnotationsOrBuilder(int index)

public FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index)

If present, face detection has completed successfully.

repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;

Parameter
NameDescription
indexint
Returns

getFaceAnnotationsOrBuilderList()

public List<? extends FaceAnnotationOrBuilder> getFaceAnnotationsOrBuilderList()

If present, face detection has completed successfully.

repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1.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.v1.TextAnnotation full_text_annotation = 12;

Returns
TypeDescription
TextAnnotation

The fullTextAnnotation.

getFullTextAnnotationBuilder()

public TextAnnotation.Builder getFullTextAnnotationBuilder()

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.v1.TextAnnotation full_text_annotation = 12;

Returns
TypeDescription
TextAnnotation.Builder

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.v1.TextAnnotation full_text_annotation = 12;

Returns

getImagePropertiesAnnotation()

public ImageProperties getImagePropertiesAnnotation()

If present, image properties were extracted successfully.

.google.cloud.vision.v1.ImageProperties image_properties_annotation = 8;

Returns
TypeDescription
ImageProperties

The imagePropertiesAnnotation.

getImagePropertiesAnnotationBuilder()

public ImageProperties.Builder getImagePropertiesAnnotationBuilder()

If present, image properties were extracted successfully.

.google.cloud.vision.v1.ImageProperties image_properties_annotation = 8;

Returns

getImagePropertiesAnnotationOrBuilder()

public ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder()

If present, image properties were extracted successfully.

.google.cloud.vision.v1.ImageProperties image_properties_annotation = 8;

Returns

getLabelAnnotations(int index)

public EntityAnnotation getLabelAnnotations(int index)

If present, label detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityAnnotation

getLabelAnnotationsBuilder(int index)

public EntityAnnotation.Builder getLabelAnnotationsBuilder(int index)

If present, label detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;

Parameter
NameDescription
indexint
Returns

getLabelAnnotationsBuilderList()

public List<EntityAnnotation.Builder> getLabelAnnotationsBuilderList()

If present, label detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;

Returns
TypeDescription
List<Builder>

getLabelAnnotationsCount()

public int getLabelAnnotationsCount()

If present, label detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;

Returns
TypeDescription
int

getLabelAnnotationsList()

public List<EntityAnnotation> getLabelAnnotationsList()

If present, label detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;

Returns
TypeDescription
List<EntityAnnotation>

getLabelAnnotationsOrBuilder(int index)

public EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder(int index)

If present, label detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;

Parameter
NameDescription
indexint
Returns

getLabelAnnotationsOrBuilderList()

public List<? extends EntityAnnotationOrBuilder> getLabelAnnotationsOrBuilderList()

If present, label detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1.EntityAnnotationOrBuilder>

getLandmarkAnnotations(int index)

public EntityAnnotation getLandmarkAnnotations(int index)

If present, landmark detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityAnnotation

getLandmarkAnnotationsBuilder(int index)

public EntityAnnotation.Builder getLandmarkAnnotationsBuilder(int index)

If present, landmark detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;

Parameter
NameDescription
indexint
Returns

getLandmarkAnnotationsBuilderList()

public List<EntityAnnotation.Builder> getLandmarkAnnotationsBuilderList()

If present, landmark detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;

Returns
TypeDescription
List<Builder>

getLandmarkAnnotationsCount()

public int getLandmarkAnnotationsCount()

If present, landmark detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;

Returns
TypeDescription
int

getLandmarkAnnotationsList()

public List<EntityAnnotation> getLandmarkAnnotationsList()

If present, landmark detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;

Returns
TypeDescription
List<EntityAnnotation>

getLandmarkAnnotationsOrBuilder(int index)

public EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder(int index)

If present, landmark detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;

Parameter
NameDescription
indexint
Returns

getLandmarkAnnotationsOrBuilderList()

public List<? extends EntityAnnotationOrBuilder> getLandmarkAnnotationsOrBuilderList()

If present, landmark detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1.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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameter
NameDescription
indexint
Returns

getLocalizedObjectAnnotationsBuilder(int index)

public LocalizedObjectAnnotation.Builder getLocalizedObjectAnnotationsBuilder(int index)

If present, localized object detection has completed successfully. This will be sorted descending by confidence score.

repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameter
NameDescription
indexint
Returns

getLocalizedObjectAnnotationsBuilderList()

public List<LocalizedObjectAnnotation.Builder> getLocalizedObjectAnnotationsBuilderList()

If present, localized object detection has completed successfully. This will be sorted descending by confidence score.

repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Returns
TypeDescription
List<Builder>

getLocalizedObjectAnnotationsCount()

public int getLocalizedObjectAnnotationsCount()

If present, localized object detection has completed successfully. This will be sorted descending by confidence score.

repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Returns
TypeDescription
int

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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Returns

getLocalizedObjectAnnotationsOrBuilder(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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameter
NameDescription
indexint
Returns

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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder>

getLogoAnnotations(int index)

public EntityAnnotation getLogoAnnotations(int index)

If present, logo detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityAnnotation

getLogoAnnotationsBuilder(int index)

public EntityAnnotation.Builder getLogoAnnotationsBuilder(int index)

If present, logo detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;

Parameter
NameDescription
indexint
Returns

getLogoAnnotationsBuilderList()

public List<EntityAnnotation.Builder> getLogoAnnotationsBuilderList()

If present, logo detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;

Returns
TypeDescription
List<Builder>

getLogoAnnotationsCount()

public int getLogoAnnotationsCount()

If present, logo detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;

Returns
TypeDescription
int

getLogoAnnotationsList()

public List<EntityAnnotation> getLogoAnnotationsList()

If present, logo detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;

Returns
TypeDescription
List<EntityAnnotation>

getLogoAnnotationsOrBuilder(int index)

public EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder(int index)

If present, logo detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;

Parameter
NameDescription
indexint
Returns

getLogoAnnotationsOrBuilderList()

public List<? extends EntityAnnotationOrBuilder> getLogoAnnotationsOrBuilderList()

If present, logo detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1.EntityAnnotationOrBuilder>

getProductSearchResults()

public ProductSearchResults getProductSearchResults()

If present, product search has completed successfully.

.google.cloud.vision.v1.ProductSearchResults product_search_results = 14;

Returns
TypeDescription
ProductSearchResults

The productSearchResults.

getProductSearchResultsBuilder()

public ProductSearchResults.Builder getProductSearchResultsBuilder()

If present, product search has completed successfully.

.google.cloud.vision.v1.ProductSearchResults product_search_results = 14;

Returns

getProductSearchResultsOrBuilder()

public ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder()

If present, product search has completed successfully.

.google.cloud.vision.v1.ProductSearchResults product_search_results = 14;

Returns

getSafeSearchAnnotation()

public SafeSearchAnnotation getSafeSearchAnnotation()

If present, safe-search annotation has completed successfully.

.google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6;

Returns
TypeDescription
SafeSearchAnnotation

The safeSearchAnnotation.

getSafeSearchAnnotationBuilder()

public SafeSearchAnnotation.Builder getSafeSearchAnnotationBuilder()

If present, safe-search annotation has completed successfully.

.google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6;

Returns

getSafeSearchAnnotationOrBuilder()

public SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder()

If present, safe-search annotation has completed successfully.

.google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6;

Returns

getTextAnnotations(int index)

public EntityAnnotation getTextAnnotations(int index)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityAnnotation

getTextAnnotationsBuilder(int index)

public EntityAnnotation.Builder getTextAnnotationsBuilder(int index)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;

Parameter
NameDescription
indexint
Returns

getTextAnnotationsBuilderList()

public List<EntityAnnotation.Builder> getTextAnnotationsBuilderList()

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;

Returns
TypeDescription
List<Builder>

getTextAnnotationsCount()

public int getTextAnnotationsCount()

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;

Returns
TypeDescription
int

getTextAnnotationsList()

public List<EntityAnnotation> getTextAnnotationsList()

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;

Returns
TypeDescription
List<EntityAnnotation>

getTextAnnotationsOrBuilder(int index)

public EntityAnnotationOrBuilder getTextAnnotationsOrBuilder(int index)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;

Parameter
NameDescription
indexint
Returns

getTextAnnotationsOrBuilderList()

public List<? extends EntityAnnotationOrBuilder> getTextAnnotationsOrBuilderList()

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1.EntityAnnotationOrBuilder>

getWebDetection()

public WebDetection getWebDetection()

If present, web detection has completed successfully.

.google.cloud.vision.v1.WebDetection web_detection = 13;

Returns
TypeDescription
WebDetection

The webDetection.

getWebDetectionBuilder()

public WebDetection.Builder getWebDetectionBuilder()

If present, web detection has completed successfully.

.google.cloud.vision.v1.WebDetection web_detection = 13;

Returns
TypeDescription
WebDetection.Builder

getWebDetectionOrBuilder()

public WebDetectionOrBuilder getWebDetectionOrBuilder()

If present, web detection has completed successfully.

.google.cloud.vision.v1.WebDetection web_detection = 13;

Returns
TypeDescription
WebDetectionOrBuilder

hasContext()

public boolean hasContext()

If present, contextual information is needed to understand where this image comes from.

.google.cloud.vision.v1.ImageAnnotationContext context = 21;

Returns
TypeDescription
boolean

Whether the context field is set.

hasCropHintsAnnotation()

public boolean hasCropHintsAnnotation()

If present, crop hints have completed successfully.

.google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11;

Returns
TypeDescription
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;

Returns
TypeDescription
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.v1.TextAnnotation full_text_annotation = 12;

Returns
TypeDescription
boolean

Whether the fullTextAnnotation field is set.

hasImagePropertiesAnnotation()

public boolean hasImagePropertiesAnnotation()

If present, image properties were extracted successfully.

.google.cloud.vision.v1.ImageProperties image_properties_annotation = 8;

Returns
TypeDescription
boolean

Whether the imagePropertiesAnnotation field is set.

hasProductSearchResults()

public boolean hasProductSearchResults()

If present, product search has completed successfully.

.google.cloud.vision.v1.ProductSearchResults product_search_results = 14;

Returns
TypeDescription
boolean

Whether the productSearchResults field is set.

hasSafeSearchAnnotation()

public boolean hasSafeSearchAnnotation()

If present, safe-search annotation has completed successfully.

.google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6;

Returns
TypeDescription
boolean

Whether the safeSearchAnnotation field is set.

hasWebDetection()

public boolean hasWebDetection()

If present, web detection has completed successfully.

.google.cloud.vision.v1.WebDetection web_detection = 13;

Returns
TypeDescription
boolean

Whether the webDetection field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeContext(ImageAnnotationContext value)

public AnnotateImageResponse.Builder mergeContext(ImageAnnotationContext value)

If present, contextual information is needed to understand where this image comes from.

.google.cloud.vision.v1.ImageAnnotationContext context = 21;

Parameter
NameDescription
valueImageAnnotationContext
Returns

mergeCropHintsAnnotation(CropHintsAnnotation value)

public AnnotateImageResponse.Builder mergeCropHintsAnnotation(CropHintsAnnotation value)

If present, crop hints have completed successfully.

.google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11;

Parameter
NameDescription
valueCropHintsAnnotation
Returns

mergeError(Status value)

public AnnotateImageResponse.Builder mergeError(Status value)

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;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns

mergeFrom(AnnotateImageResponse other)

public AnnotateImageResponse.Builder mergeFrom(AnnotateImageResponse other)
Parameter
NameDescription
otherAnnotateImageResponse
Returns

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnnotateImageResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AnnotateImageResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns Overrides

mergeFullTextAnnotation(TextAnnotation value)

public AnnotateImageResponse.Builder mergeFullTextAnnotation(TextAnnotation value)

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.v1.TextAnnotation full_text_annotation = 12;

Parameter
NameDescription
valueTextAnnotation
Returns

mergeImagePropertiesAnnotation(ImageProperties value)

public AnnotateImageResponse.Builder mergeImagePropertiesAnnotation(ImageProperties value)

If present, image properties were extracted successfully.

.google.cloud.vision.v1.ImageProperties image_properties_annotation = 8;

Parameter
NameDescription
valueImageProperties
Returns

mergeProductSearchResults(ProductSearchResults value)

public AnnotateImageResponse.Builder mergeProductSearchResults(ProductSearchResults value)

If present, product search has completed successfully.

.google.cloud.vision.v1.ProductSearchResults product_search_results = 14;

Parameter
NameDescription
valueProductSearchResults
Returns

mergeSafeSearchAnnotation(SafeSearchAnnotation value)

public AnnotateImageResponse.Builder mergeSafeSearchAnnotation(SafeSearchAnnotation value)

If present, safe-search annotation has completed successfully.

.google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6;

Parameter
NameDescription
valueSafeSearchAnnotation
Returns

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnnotateImageResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns Overrides

mergeWebDetection(WebDetection value)

public AnnotateImageResponse.Builder mergeWebDetection(WebDetection value)

If present, web detection has completed successfully.

.google.cloud.vision.v1.WebDetection web_detection = 13;

Parameter
NameDescription
valueWebDetection
Returns

removeFaceAnnotations(int index)

public AnnotateImageResponse.Builder removeFaceAnnotations(int index)

If present, face detection has completed successfully.

repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;

Parameter
NameDescription
indexint
Returns

removeLabelAnnotations(int index)

public AnnotateImageResponse.Builder removeLabelAnnotations(int index)

If present, label detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;

Parameter
NameDescription
indexint
Returns

removeLandmarkAnnotations(int index)

public AnnotateImageResponse.Builder removeLandmarkAnnotations(int index)

If present, landmark detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;

Parameter
NameDescription
indexint
Returns

removeLocalizedObjectAnnotations(int index)

public AnnotateImageResponse.Builder removeLocalizedObjectAnnotations(int index)

If present, localized object detection has completed successfully. This will be sorted descending by confidence score.

repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameter
NameDescription
indexint
Returns

removeLogoAnnotations(int index)

public AnnotateImageResponse.Builder removeLogoAnnotations(int index)

If present, logo detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;

Parameter
NameDescription
indexint
Returns

removeTextAnnotations(int index)

public AnnotateImageResponse.Builder removeTextAnnotations(int index)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;

Parameter
NameDescription
indexint
Returns

setContext(ImageAnnotationContext value)

public AnnotateImageResponse.Builder setContext(ImageAnnotationContext value)

If present, contextual information is needed to understand where this image comes from.

.google.cloud.vision.v1.ImageAnnotationContext context = 21;

Parameter
NameDescription
valueImageAnnotationContext
Returns

setContext(ImageAnnotationContext.Builder builderForValue)

public AnnotateImageResponse.Builder setContext(ImageAnnotationContext.Builder builderForValue)

If present, contextual information is needed to understand where this image comes from.

.google.cloud.vision.v1.ImageAnnotationContext context = 21;

Parameter
NameDescription
builderForValueImageAnnotationContext.Builder
Returns

setCropHintsAnnotation(CropHintsAnnotation value)

public AnnotateImageResponse.Builder setCropHintsAnnotation(CropHintsAnnotation value)

If present, crop hints have completed successfully.

.google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11;

Parameter
NameDescription
valueCropHintsAnnotation
Returns

setCropHintsAnnotation(CropHintsAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setCropHintsAnnotation(CropHintsAnnotation.Builder builderForValue)

If present, crop hints have completed successfully.

.google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11;

Parameter
NameDescription
builderForValueCropHintsAnnotation.Builder
Returns

setError(Status value)

public AnnotateImageResponse.Builder setError(Status value)

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;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns

setError(Status.Builder builderForValue)

public AnnotateImageResponse.Builder setError(Status.Builder builderForValue)

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;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns

setFaceAnnotations(int index, FaceAnnotation value)

public AnnotateImageResponse.Builder setFaceAnnotations(int index, FaceAnnotation value)

If present, face detection has completed successfully.

repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;

Parameters
NameDescription
indexint
valueFaceAnnotation
Returns

setFaceAnnotations(int index, FaceAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setFaceAnnotations(int index, FaceAnnotation.Builder builderForValue)

If present, face detection has completed successfully.

repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;

Parameters
NameDescription
indexint
builderForValueFaceAnnotation.Builder
Returns

setField(Descriptors.FieldDescriptor field, Object value)

public AnnotateImageResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns Overrides

setFullTextAnnotation(TextAnnotation value)

public AnnotateImageResponse.Builder setFullTextAnnotation(TextAnnotation value)

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.v1.TextAnnotation full_text_annotation = 12;

Parameter
NameDescription
valueTextAnnotation
Returns

setFullTextAnnotation(TextAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setFullTextAnnotation(TextAnnotation.Builder builderForValue)

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.v1.TextAnnotation full_text_annotation = 12;

Parameter
NameDescription
builderForValueTextAnnotation.Builder
Returns

setImagePropertiesAnnotation(ImageProperties value)

public AnnotateImageResponse.Builder setImagePropertiesAnnotation(ImageProperties value)

If present, image properties were extracted successfully.

.google.cloud.vision.v1.ImageProperties image_properties_annotation = 8;

Parameter
NameDescription
valueImageProperties
Returns

setImagePropertiesAnnotation(ImageProperties.Builder builderForValue)

public AnnotateImageResponse.Builder setImagePropertiesAnnotation(ImageProperties.Builder builderForValue)

If present, image properties were extracted successfully.

.google.cloud.vision.v1.ImageProperties image_properties_annotation = 8;

Parameter
NameDescription
builderForValueImageProperties.Builder
Returns

setLabelAnnotations(int index, EntityAnnotation value)

public AnnotateImageResponse.Builder setLabelAnnotations(int index, EntityAnnotation value)

If present, label detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;

Parameters
NameDescription
indexint
valueEntityAnnotation
Returns

setLabelAnnotations(int index, EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setLabelAnnotations(int index, EntityAnnotation.Builder builderForValue)

If present, label detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;

Parameters
NameDescription
indexint
builderForValueEntityAnnotation.Builder
Returns

setLandmarkAnnotations(int index, EntityAnnotation value)

public AnnotateImageResponse.Builder setLandmarkAnnotations(int index, EntityAnnotation value)

If present, landmark detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;

Parameters
NameDescription
indexint
valueEntityAnnotation
Returns

setLandmarkAnnotations(int index, EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setLandmarkAnnotations(int index, EntityAnnotation.Builder builderForValue)

If present, landmark detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;

Parameters
NameDescription
indexint
builderForValueEntityAnnotation.Builder
Returns

setLocalizedObjectAnnotations(int index, LocalizedObjectAnnotation value)

public AnnotateImageResponse.Builder setLocalizedObjectAnnotations(int index, LocalizedObjectAnnotation value)

If present, localized object detection has completed successfully. This will be sorted descending by confidence score.

repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameters
NameDescription
indexint
valueLocalizedObjectAnnotation
Returns

setLocalizedObjectAnnotations(int index, LocalizedObjectAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setLocalizedObjectAnnotations(int index, LocalizedObjectAnnotation.Builder builderForValue)

If present, localized object detection has completed successfully. This will be sorted descending by confidence score.

repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameters
NameDescription
indexint
builderForValueLocalizedObjectAnnotation.Builder
Returns

setLogoAnnotations(int index, EntityAnnotation value)

public AnnotateImageResponse.Builder setLogoAnnotations(int index, EntityAnnotation value)

If present, logo detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;

Parameters
NameDescription
indexint
valueEntityAnnotation
Returns

setLogoAnnotations(int index, EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setLogoAnnotations(int index, EntityAnnotation.Builder builderForValue)

If present, logo detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;

Parameters
NameDescription
indexint
builderForValueEntityAnnotation.Builder
Returns

setProductSearchResults(ProductSearchResults value)

public AnnotateImageResponse.Builder setProductSearchResults(ProductSearchResults value)

If present, product search has completed successfully.

.google.cloud.vision.v1.ProductSearchResults product_search_results = 14;

Parameter
NameDescription
valueProductSearchResults
Returns

setProductSearchResults(ProductSearchResults.Builder builderForValue)

public AnnotateImageResponse.Builder setProductSearchResults(ProductSearchResults.Builder builderForValue)

If present, product search has completed successfully.

.google.cloud.vision.v1.ProductSearchResults product_search_results = 14;

Parameter
NameDescription
builderForValueProductSearchResults.Builder
Returns

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AnnotateImageResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns Overrides

setSafeSearchAnnotation(SafeSearchAnnotation value)

public AnnotateImageResponse.Builder setSafeSearchAnnotation(SafeSearchAnnotation value)

If present, safe-search annotation has completed successfully.

.google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6;

Parameter
NameDescription
valueSafeSearchAnnotation
Returns

setSafeSearchAnnotation(SafeSearchAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setSafeSearchAnnotation(SafeSearchAnnotation.Builder builderForValue)

If present, safe-search annotation has completed successfully.

.google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6;

Parameter
NameDescription
builderForValueSafeSearchAnnotation.Builder
Returns

setTextAnnotations(int index, EntityAnnotation value)

public AnnotateImageResponse.Builder setTextAnnotations(int index, EntityAnnotation value)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;

Parameters
NameDescription
indexint
valueEntityAnnotation
Returns

setTextAnnotations(int index, EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setTextAnnotations(int index, EntityAnnotation.Builder builderForValue)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;

Parameters
NameDescription
indexint
builderForValueEntityAnnotation.Builder
Returns

setUnknownFields(UnknownFieldSet unknownFields)

public final AnnotateImageResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns Overrides

setWebDetection(WebDetection value)

public AnnotateImageResponse.Builder setWebDetection(WebDetection value)

If present, web detection has completed successfully.

.google.cloud.vision.v1.WebDetection web_detection = 13;

Parameter
NameDescription
valueWebDetection
Returns

setWebDetection(WebDetection.Builder builderForValue)

public AnnotateImageResponse.Builder setWebDetection(WebDetection.Builder builderForValue)

If present, web detection has completed successfully.

.google.cloud.vision.v1.WebDetection web_detection = 13;

Parameter
NameDescription
builderForValueWebDetection.Builder
Returns