Class AnnotateImageRequest.Builder (3.47.0)

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.v1p4beta1.AnnotateImageRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllFeatures(Iterable<? extends Feature> values)

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

Requested features.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.vision.v1p4beta1.Feature>
Returns
Type Description
AnnotateImageRequest.Builder

addFeatures(Feature value)

public AnnotateImageRequest.Builder addFeatures(Feature value)

Requested features.

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

Parameter
Name Description
value Feature
Returns
Type Description
AnnotateImageRequest.Builder

addFeatures(Feature.Builder builderForValue)

public AnnotateImageRequest.Builder addFeatures(Feature.Builder builderForValue)

Requested features.

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

Parameter
Name Description
builderForValue Feature.Builder
Returns
Type Description
AnnotateImageRequest.Builder

addFeatures(int index, Feature value)

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

Requested features.

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

Parameters
Name Description
index int
value Feature
Returns
Type Description
AnnotateImageRequest.Builder

addFeatures(int index, Feature.Builder builderForValue)

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

Requested features.

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

Parameters
Name Description
index int
builderForValue Feature.Builder
Returns
Type Description
AnnotateImageRequest.Builder

addFeaturesBuilder()

public Feature.Builder addFeaturesBuilder()

Requested features.

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

Returns
Type Description
Feature.Builder

addFeaturesBuilder(int index)

public Feature.Builder addFeaturesBuilder(int index)

Requested features.

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

Parameter
Name Description
index int
Returns
Type Description
Feature.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnnotateImageRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnnotateImageRequest.Builder
Overrides

build()

public AnnotateImageRequest build()
Returns
Type Description
AnnotateImageRequest

buildPartial()

public AnnotateImageRequest buildPartial()
Returns
Type Description
AnnotateImageRequest

clear()

public AnnotateImageRequest.Builder clear()
Returns
Type Description
AnnotateImageRequest.Builder
Overrides

clearFeatures()

public AnnotateImageRequest.Builder clearFeatures()

Requested features.

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

Returns
Type Description
AnnotateImageRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public AnnotateImageRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AnnotateImageRequest.Builder
Overrides

clearImage()

public AnnotateImageRequest.Builder clearImage()

The image to be processed.

.google.cloud.vision.v1p4beta1.Image image = 1;

Returns
Type Description
AnnotateImageRequest.Builder

clearImageContext()

public AnnotateImageRequest.Builder clearImageContext()

Additional context that may accompany the image.

.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;

Returns
Type Description
AnnotateImageRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AnnotateImageRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AnnotateImageRequest.Builder
Overrides

clone()

public AnnotateImageRequest.Builder clone()
Returns
Type Description
AnnotateImageRequest.Builder
Overrides

getDefaultInstanceForType()

public AnnotateImageRequest getDefaultInstanceForType()
Returns
Type Description
AnnotateImageRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFeatures(int index)

public Feature getFeatures(int index)

Requested features.

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

Parameter
Name Description
index int
Returns
Type Description
Feature

getFeaturesBuilder(int index)

public Feature.Builder getFeaturesBuilder(int index)

Requested features.

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

Parameter
Name Description
index int
Returns
Type Description
Feature.Builder

getFeaturesBuilderList()

public List<Feature.Builder> getFeaturesBuilderList()

Requested features.

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

Returns
Type Description
List<Builder>

getFeaturesCount()

public int getFeaturesCount()

Requested features.

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

Returns
Type Description
int

getFeaturesList()

public List<Feature> getFeaturesList()

Requested features.

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

Returns
Type Description
List<Feature>

getFeaturesOrBuilder(int index)

public FeatureOrBuilder getFeaturesOrBuilder(int index)

Requested features.

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

Parameter
Name Description
index int
Returns
Type Description
FeatureOrBuilder

getFeaturesOrBuilderList()

public List<? extends FeatureOrBuilder> getFeaturesOrBuilderList()

Requested features.

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

Returns
Type Description
List<? extends com.google.cloud.vision.v1p4beta1.FeatureOrBuilder>

getImage()

public Image getImage()

The image to be processed.

.google.cloud.vision.v1p4beta1.Image image = 1;

Returns
Type Description
Image

The image.

getImageBuilder()

public Image.Builder getImageBuilder()

The image to be processed.

.google.cloud.vision.v1p4beta1.Image image = 1;

Returns
Type Description
Image.Builder

getImageContext()

public ImageContext getImageContext()

Additional context that may accompany the image.

.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;

Returns
Type Description
ImageContext

The imageContext.

getImageContextBuilder()

public ImageContext.Builder getImageContextBuilder()

Additional context that may accompany the image.

.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;

Returns
Type Description
ImageContext.Builder

getImageContextOrBuilder()

public ImageContextOrBuilder getImageContextOrBuilder()

Additional context that may accompany the image.

.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;

Returns
Type Description
ImageContextOrBuilder

getImageOrBuilder()

public ImageOrBuilder getImageOrBuilder()

The image to be processed.

.google.cloud.vision.v1p4beta1.Image image = 1;

Returns
Type Description
ImageOrBuilder

hasImage()

public boolean hasImage()

The image to be processed.

.google.cloud.vision.v1p4beta1.Image image = 1;

Returns
Type Description
boolean

Whether the image field is set.

hasImageContext()

public boolean hasImageContext()

Additional context that may accompany the image.

.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;

Returns
Type Description
boolean

Whether the imageContext field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AnnotateImageRequest other)

public AnnotateImageRequest.Builder mergeFrom(AnnotateImageRequest other)
Parameter
Name Description
other AnnotateImageRequest
Returns
Type Description
AnnotateImageRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnnotateImageRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotateImageRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AnnotateImageRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AnnotateImageRequest.Builder
Overrides

mergeImage(Image value)

public AnnotateImageRequest.Builder mergeImage(Image value)

The image to be processed.

.google.cloud.vision.v1p4beta1.Image image = 1;

Parameter
Name Description
value Image
Returns
Type Description
AnnotateImageRequest.Builder

mergeImageContext(ImageContext value)

public AnnotateImageRequest.Builder mergeImageContext(ImageContext value)

Additional context that may accompany the image.

.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;

Parameter
Name Description
value ImageContext
Returns
Type Description
AnnotateImageRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnnotateImageRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnnotateImageRequest.Builder
Overrides

removeFeatures(int index)

public AnnotateImageRequest.Builder removeFeatures(int index)

Requested features.

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

Parameter
Name Description
index int
Returns
Type Description
AnnotateImageRequest.Builder

setFeatures(int index, Feature value)

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

Requested features.

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

Parameters
Name Description
index int
value Feature
Returns
Type Description
AnnotateImageRequest.Builder

setFeatures(int index, Feature.Builder builderForValue)

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

Requested features.

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

Parameters
Name Description
index int
builderForValue Feature.Builder
Returns
Type Description
AnnotateImageRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AnnotateImageRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnnotateImageRequest.Builder
Overrides

setImage(Image value)

public AnnotateImageRequest.Builder setImage(Image value)

The image to be processed.

.google.cloud.vision.v1p4beta1.Image image = 1;

Parameter
Name Description
value Image
Returns
Type Description
AnnotateImageRequest.Builder

setImage(Image.Builder builderForValue)

public AnnotateImageRequest.Builder setImage(Image.Builder builderForValue)

The image to be processed.

.google.cloud.vision.v1p4beta1.Image image = 1;

Parameter
Name Description
builderForValue Image.Builder
Returns
Type Description
AnnotateImageRequest.Builder

setImageContext(ImageContext value)

public AnnotateImageRequest.Builder setImageContext(ImageContext value)

Additional context that may accompany the image.

.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;

Parameter
Name Description
value ImageContext
Returns
Type Description
AnnotateImageRequest.Builder

setImageContext(ImageContext.Builder builderForValue)

public AnnotateImageRequest.Builder setImageContext(ImageContext.Builder builderForValue)

Additional context that may accompany the image.

.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;

Parameter
Name Description
builderForValue ImageContext.Builder
Returns
Type Description
AnnotateImageRequest.Builder

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

public AnnotateImageRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AnnotateImageRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AnnotateImageRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnnotateImageRequest.Builder
Overrides