Class AnnotateImageRequest.Builder (2.1.4)

public static final class AnnotateImageRequest.Builder extends GeneratedMessageV3.Builder<AnnotateImageRequest.Builder> implements AnnotateImageRequestOrBuilder

Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features, and with context information.

Protobuf type google.cloud.vision.v1.AnnotateImageRequest

Static Methods

getDescriptor()

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

Methods

addAllFeatures(Iterable<? extends Feature> values)

public AnnotateImageRequest.Builder addAllFeatures(Iterable<? extends Feature> values)

Requested features.

repeated .google.cloud.vision.v1.Feature features = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1.Feature>
Returns
TypeDescription
AnnotateImageRequest.Builder

addFeatures(Feature value)

public AnnotateImageRequest.Builder addFeatures(Feature value)

Requested features.

repeated .google.cloud.vision.v1.Feature features = 2;

Parameter
NameDescription
valueFeature
Returns
TypeDescription
AnnotateImageRequest.Builder

addFeatures(Feature.Builder builderForValue)

public AnnotateImageRequest.Builder addFeatures(Feature.Builder builderForValue)

Requested features.

repeated .google.cloud.vision.v1.Feature features = 2;

Parameter
NameDescription
builderForValueFeature.Builder
Returns
TypeDescription
AnnotateImageRequest.Builder

addFeatures(int index, Feature value)

public AnnotateImageRequest.Builder addFeatures(int index, Feature value)

Requested features.

repeated .google.cloud.vision.v1.Feature features = 2;

Parameters
NameDescription
indexint
valueFeature
Returns
TypeDescription
AnnotateImageRequest.Builder

addFeatures(int index, Feature.Builder builderForValue)

public AnnotateImageRequest.Builder addFeatures(int index, Feature.Builder builderForValue)

Requested features.

repeated .google.cloud.vision.v1.Feature features = 2;

Parameters
NameDescription
indexint
builderForValueFeature.Builder
Returns