Class AnnotateImageRequest.Builder (3.25.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.

Protobuf type google.cloud.vision.v1p2beta1.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.v1p2beta1.Feature features = 2;

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

addFeatures(Feature value)

public AnnotateImageRequest.Builder addFeatures(Feature value)

Requested features.

repeated .google.cloud.vision.v1p2beta1.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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.Feature features = 2;

Parameters
NameDescription
indexint
builderForValueFeature.Builder
Returns
TypeDescription
AnnotateImageRequest.Builder

addFeaturesBuilder()

public Feature.Builder addFeaturesBuilder()

Requested features.

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

Returns
TypeDescription
Feature.Builder

addFeaturesBuilder(int index)

public Feature.Builder addFeaturesBuilder(int index)

Requested features.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Feature.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AnnotateImageRequest build()
Returns
TypeDescription
AnnotateImageRequest

buildPartial()

public AnnotateImageRequest buildPartial()
Returns
TypeDescription
AnnotateImageRequest

clear()

public AnnotateImageRequest.Builder clear()
Returns
TypeDescription
AnnotateImageRequest.Builder
Overrides

clearFeatures()

public AnnotateImageRequest.Builder clearFeatures()

Requested features.

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

Returns
TypeDescription
AnnotateImageRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearImage()

public AnnotateImageRequest.Builder clearImage()

The image to be processed.

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

Returns
TypeDescription
AnnotateImageRequest.Builder

clearImageContext()

public AnnotateImageRequest.Builder clearImageContext()

Additional context that may accompany the image.

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

Returns
TypeDescription
AnnotateImageRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public AnnotateImageRequest.Builder clone()
Returns
TypeDescription
AnnotateImageRequest.Builder
Overrides

getDefaultInstanceForType()

public AnnotateImageRequest getDefaultInstanceForType()
Returns
TypeDescription
AnnotateImageRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFeatures(int index)

public Feature getFeatures(int index)

Requested features.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Feature

getFeaturesBuilder(int index)

public Feature.Builder getFeaturesBuilder(int index)

Requested features.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Feature.Builder

getFeaturesBuilderList()

public List<Feature.Builder> getFeaturesBuilderList()

Requested features.

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

Returns
TypeDescription
List<Builder>

getFeaturesCount()

public int getFeaturesCount()

Requested features.

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

Returns
TypeDescription
int

getFeaturesList()

public List<Feature> getFeaturesList()

Requested features.

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

Returns
TypeDescription
List<Feature>

getFeaturesOrBuilder(int index)

public FeatureOrBuilder getFeaturesOrBuilder(int index)

Requested features.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
FeatureOrBuilder

getFeaturesOrBuilderList()

public List<? extends FeatureOrBuilder> getFeaturesOrBuilderList()

Requested features.

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

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p2beta1.FeatureOrBuilder>

getImage()

public Image getImage()

The image to be processed.

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

Returns
TypeDescription
Image

The image.

getImageBuilder()

public Image.Builder getImageBuilder()

The image to be processed.

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

Returns
TypeDescription
Image.Builder

getImageContext()

public ImageContext getImageContext()

Additional context that may accompany the image.

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

Returns
TypeDescription
ImageContext

The imageContext.

getImageContextBuilder()

public ImageContext.Builder getImageContextBuilder()

Additional context that may accompany the image.

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

Returns
TypeDescription
ImageContext.Builder

getImageContextOrBuilder()

public ImageContextOrBuilder getImageContextOrBuilder()

Additional context that may accompany the image.

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

Returns
TypeDescription
ImageContextOrBuilder

getImageOrBuilder()

public ImageOrBuilder getImageOrBuilder()

The image to be processed.

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

Returns
TypeDescription
ImageOrBuilder

hasImage()

public boolean hasImage()

The image to be processed.

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

Returns
TypeDescription
boolean

Whether the image field is set.

hasImageContext()

public boolean hasImageContext()

Additional context that may accompany the image.

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

Returns
TypeDescription
boolean

Whether the imageContext field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AnnotateImageRequest other)

public AnnotateImageRequest.Builder mergeFrom(AnnotateImageRequest other)
Parameter
NameDescription
otherAnnotateImageRequest
Returns
TypeDescription
AnnotateImageRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeImage(Image value)

public AnnotateImageRequest.Builder mergeImage(Image value)

The image to be processed.

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

Parameter
NameDescription
valueImage
Returns
TypeDescription
AnnotateImageRequest.Builder

mergeImageContext(ImageContext value)

public AnnotateImageRequest.Builder mergeImageContext(ImageContext value)

Additional context that may accompany the image.

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

Parameter
NameDescription
valueImageContext
Returns
TypeDescription
AnnotateImageRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFeatures(int index)

public AnnotateImageRequest.Builder removeFeatures(int index)

Requested features.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AnnotateImageRequest.Builder

setFeatures(int index, Feature value)

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

Requested features.

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

Parameters
NameDescription
indexint
valueFeature
Returns
TypeDescription
AnnotateImageRequest.Builder

setFeatures(int index, Feature.Builder builderForValue)

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

Requested features.

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

Parameters
NameDescription
indexint
builderForValueFeature.Builder
Returns
TypeDescription
AnnotateImageRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setImage(Image value)

public AnnotateImageRequest.Builder setImage(Image value)

The image to be processed.

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

Parameter
NameDescription
valueImage
Returns
TypeDescription
AnnotateImageRequest.Builder

setImage(Image.Builder builderForValue)

public AnnotateImageRequest.Builder setImage(Image.Builder builderForValue)

The image to be processed.

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

Parameter
NameDescription
builderForValueImage.Builder
Returns
TypeDescription
AnnotateImageRequest.Builder

setImageContext(ImageContext value)

public AnnotateImageRequest.Builder setImageContext(ImageContext value)

Additional context that may accompany the image.

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

Parameter
NameDescription
valueImageContext
Returns
TypeDescription
AnnotateImageRequest.Builder

setImageContext(ImageContext.Builder builderForValue)

public AnnotateImageRequest.Builder setImageContext(ImageContext.Builder builderForValue)

Additional context that may accompany the image.

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

Parameter
NameDescription
builderForValueImageContext.Builder
Returns
TypeDescription
AnnotateImageRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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