Class AsyncAnnotateFileRequest.Builder (3.49.0)

public static final class AsyncAnnotateFileRequest.Builder extends GeneratedMessageV3.Builder<AsyncAnnotateFileRequest.Builder> implements AsyncAnnotateFileRequestOrBuilder

An offline file annotation request.

Protobuf type google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest

Static Methods

getDescriptor()

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

Methods

addAllFeatures(Iterable<? extends Feature> values)

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

Required. Requested features.

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

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

addFeatures(Feature value)

public AsyncAnnotateFileRequest.Builder addFeatures(Feature value)

Required. Requested features.

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

Parameter
Name Description
value Feature
Returns
Type Description
AsyncAnnotateFileRequest.Builder

addFeatures(Feature.Builder builderForValue)

public AsyncAnnotateFileRequest.Builder addFeatures(Feature.Builder builderForValue)

Required. Requested features.

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

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

addFeatures(int index, Feature value)

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

Required. Requested features.

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

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

addFeatures(int index, Feature.Builder builderForValue)

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

Required. Requested features.

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

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

addFeaturesBuilder()

public Feature.Builder addFeaturesBuilder()

Required. Requested features.

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

Returns
Type Description
Feature.Builder

addFeaturesBuilder(int index)

public Feature.Builder addFeaturesBuilder(int index)

Required. Requested features.

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

Parameter
Name Description
index int
Returns
Type Description
Feature.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AsyncAnnotateFileRequest build()
Returns
Type Description
AsyncAnnotateFileRequest

buildPartial()

public AsyncAnnotateFileRequest buildPartial()
Returns
Type Description
AsyncAnnotateFileRequest

clear()

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

clearFeatures()

public AsyncAnnotateFileRequest.Builder clearFeatures()

Required. Requested features.

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

Returns
Type Description
AsyncAnnotateFileRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearImageContext()

public AsyncAnnotateFileRequest.Builder clearImageContext()

Additional context that may accompany the image(s) in the file.

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

Returns
Type Description
AsyncAnnotateFileRequest.Builder

clearInputConfig()

public AsyncAnnotateFileRequest.Builder clearInputConfig()

Required. Information about the input file.

.google.cloud.vision.v1p2beta1.InputConfig input_config = 1;

Returns
Type Description
AsyncAnnotateFileRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOutputConfig()

public AsyncAnnotateFileRequest.Builder clearOutputConfig()

Required. The desired output location and metadata (e.g. format).

.google.cloud.vision.v1p2beta1.OutputConfig output_config = 4;

Returns
Type Description
AsyncAnnotateFileRequest.Builder

clone()

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

getDefaultInstanceForType()

public AsyncAnnotateFileRequest getDefaultInstanceForType()
Returns
Type Description
AsyncAnnotateFileRequest

getDescriptorForType()

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

getFeatures(int index)

public Feature getFeatures(int index)

Required. Requested features.

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

Parameter
Name Description
index int
Returns
Type Description
Feature

getFeaturesBuilder(int index)

public Feature.Builder getFeaturesBuilder(int index)

Required. Requested features.

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

Parameter
Name Description
index int
Returns
Type Description
Feature.Builder

getFeaturesBuilderList()

public List<Feature.Builder> getFeaturesBuilderList()

Required. Requested features.

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

Returns
Type Description
List<Builder>

getFeaturesCount()

public int getFeaturesCount()

Required. Requested features.

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

Returns
Type Description
int

getFeaturesList()

public List<Feature> getFeaturesList()

Required. Requested features.

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

Returns
Type Description
List<Feature>

getFeaturesOrBuilder(int index)

public FeatureOrBuilder getFeaturesOrBuilder(int index)

Required. Requested features.

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

Parameter
Name Description
index int
Returns
Type Description
FeatureOrBuilder

getFeaturesOrBuilderList()

public List<? extends FeatureOrBuilder> getFeaturesOrBuilderList()

Required. Requested features.

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

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

getImageContext()

public ImageContext getImageContext()

Additional context that may accompany the image(s) in the file.

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

Returns
Type Description
ImageContext

The imageContext.

getImageContextBuilder()

public ImageContext.Builder getImageContextBuilder()

Additional context that may accompany the image(s) in the file.

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

Returns
Type Description
ImageContext.Builder

getImageContextOrBuilder()

public ImageContextOrBuilder getImageContextOrBuilder()

Additional context that may accompany the image(s) in the file.

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

Returns
Type Description
ImageContextOrBuilder

getInputConfig()

public InputConfig getInputConfig()

Required. Information about the input file.

.google.cloud.vision.v1p2beta1.InputConfig input_config = 1;

Returns
Type Description
InputConfig

The inputConfig.

getInputConfigBuilder()

public InputConfig.Builder getInputConfigBuilder()

Required. Information about the input file.

.google.cloud.vision.v1p2beta1.InputConfig input_config = 1;

Returns
Type Description
InputConfig.Builder

getInputConfigOrBuilder()

public InputConfigOrBuilder getInputConfigOrBuilder()

Required. Information about the input file.

.google.cloud.vision.v1p2beta1.InputConfig input_config = 1;

Returns
Type Description
InputConfigOrBuilder

getOutputConfig()

public OutputConfig getOutputConfig()

Required. The desired output location and metadata (e.g. format).

.google.cloud.vision.v1p2beta1.OutputConfig output_config = 4;

Returns
Type Description
OutputConfig

The outputConfig.

getOutputConfigBuilder()

public OutputConfig.Builder getOutputConfigBuilder()

Required. The desired output location and metadata (e.g. format).

.google.cloud.vision.v1p2beta1.OutputConfig output_config = 4;

Returns
Type Description
OutputConfig.Builder

getOutputConfigOrBuilder()

public OutputConfigOrBuilder getOutputConfigOrBuilder()

Required. The desired output location and metadata (e.g. format).

.google.cloud.vision.v1p2beta1.OutputConfig output_config = 4;

Returns
Type Description
OutputConfigOrBuilder

hasImageContext()

public boolean hasImageContext()

Additional context that may accompany the image(s) in the file.

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

Returns
Type Description
boolean

Whether the imageContext field is set.

hasInputConfig()

public boolean hasInputConfig()

Required. Information about the input file.

.google.cloud.vision.v1p2beta1.InputConfig input_config = 1;

Returns
Type Description
boolean

Whether the inputConfig field is set.

hasOutputConfig()

public boolean hasOutputConfig()

Required. The desired output location and metadata (e.g. format).

.google.cloud.vision.v1p2beta1.OutputConfig output_config = 4;

Returns
Type Description
boolean

Whether the outputConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AsyncAnnotateFileRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeImageContext(ImageContext value)

public AsyncAnnotateFileRequest.Builder mergeImageContext(ImageContext value)

Additional context that may accompany the image(s) in the file.

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

Parameter
Name Description
value ImageContext
Returns
Type Description
AsyncAnnotateFileRequest.Builder

mergeInputConfig(InputConfig value)

public AsyncAnnotateFileRequest.Builder mergeInputConfig(InputConfig value)

Required. Information about the input file.

.google.cloud.vision.v1p2beta1.InputConfig input_config = 1;

Parameter
Name Description
value InputConfig
Returns
Type Description
AsyncAnnotateFileRequest.Builder

mergeOutputConfig(OutputConfig value)

public AsyncAnnotateFileRequest.Builder mergeOutputConfig(OutputConfig value)

Required. The desired output location and metadata (e.g. format).

.google.cloud.vision.v1p2beta1.OutputConfig output_config = 4;

Parameter
Name Description
value OutputConfig
Returns
Type Description
AsyncAnnotateFileRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFeatures(int index)

public AsyncAnnotateFileRequest.Builder removeFeatures(int index)

Required. Requested features.

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

Parameter
Name Description
index int
Returns
Type Description
AsyncAnnotateFileRequest.Builder

setFeatures(int index, Feature value)

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

Required. Requested features.

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

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

setFeatures(int index, Feature.Builder builderForValue)

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

Required. Requested features.

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setImageContext(ImageContext value)

public AsyncAnnotateFileRequest.Builder setImageContext(ImageContext value)

Additional context that may accompany the image(s) in the file.

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

Parameter
Name Description
value ImageContext
Returns
Type Description
AsyncAnnotateFileRequest.Builder

setImageContext(ImageContext.Builder builderForValue)

public AsyncAnnotateFileRequest.Builder setImageContext(ImageContext.Builder builderForValue)

Additional context that may accompany the image(s) in the file.

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

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

setInputConfig(InputConfig value)

public AsyncAnnotateFileRequest.Builder setInputConfig(InputConfig value)

Required. Information about the input file.

.google.cloud.vision.v1p2beta1.InputConfig input_config = 1;

Parameter
Name Description
value InputConfig
Returns
Type Description
AsyncAnnotateFileRequest.Builder

setInputConfig(InputConfig.Builder builderForValue)

public AsyncAnnotateFileRequest.Builder setInputConfig(InputConfig.Builder builderForValue)

Required. Information about the input file.

.google.cloud.vision.v1p2beta1.InputConfig input_config = 1;

Parameter
Name Description
builderForValue InputConfig.Builder
Returns
Type Description
AsyncAnnotateFileRequest.Builder

setOutputConfig(OutputConfig value)

public AsyncAnnotateFileRequest.Builder setOutputConfig(OutputConfig value)

Required. The desired output location and metadata (e.g. format).

.google.cloud.vision.v1p2beta1.OutputConfig output_config = 4;

Parameter
Name Description
value OutputConfig
Returns
Type Description
AsyncAnnotateFileRequest.Builder

setOutputConfig(OutputConfig.Builder builderForValue)

public AsyncAnnotateFileRequest.Builder setOutputConfig(OutputConfig.Builder builderForValue)

Required. The desired output location and metadata (e.g. format).

.google.cloud.vision.v1p2beta1.OutputConfig output_config = 4;

Parameter
Name Description
builderForValue OutputConfig.Builder
Returns
Type Description
AsyncAnnotateFileRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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