Class AsyncAnnotateFileRequest.Builder (3.29.0)

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

An offline file annotation request.

Protobuf type google.cloud.vision.v1.AsyncAnnotateFileRequest

Static Methods

getDescriptor()

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

Methods

addAllFeatures(Iterable<? extends Feature> values)

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

Required. Requested features.

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

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

addFeatures(Feature value)

public AsyncAnnotateFileRequest.Builder addFeatures(Feature value)

Required. Requested features.

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

Parameter
NameDescription
valueFeature
Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

addFeatures(Feature.Builder builderForValue)

public AsyncAnnotateFileRequest.Builder addFeatures(Feature.Builder builderForValue)

Required. Requested features.

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

Parameter
NameDescription
builderForValueFeature.Builder
Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

addFeatures(int index, Feature value)

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

Required. Requested features.

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

Parameters
NameDescription
indexint
valueFeature
Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

addFeatures(int index, Feature.Builder builderForValue)

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

Required. Requested features.

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

Parameters
NameDescription
indexint
builderForValueFeature.Builder
Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

addFeaturesBuilder()

public Feature.Builder addFeaturesBuilder()

Required. Requested features.

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

Returns
TypeDescription
Feature.Builder

addFeaturesBuilder(int index)

public Feature.Builder addFeaturesBuilder(int index)

Required. Requested features.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Feature.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AsyncAnnotateFileRequest build()
Returns
TypeDescription
AsyncAnnotateFileRequest

buildPartial()

public AsyncAnnotateFileRequest buildPartial()
Returns
TypeDescription
AsyncAnnotateFileRequest

clear()

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

clearFeatures()

public AsyncAnnotateFileRequest.Builder clearFeatures()

Required. Requested features.

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

Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearImageContext()

public AsyncAnnotateFileRequest.Builder clearImageContext()

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

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

Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

clearInputConfig()

public AsyncAnnotateFileRequest.Builder clearInputConfig()

Required. Information about the input file.

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

Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOutputConfig()

public AsyncAnnotateFileRequest.Builder clearOutputConfig()

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

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

Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

clone()

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

getDefaultInstanceForType()

public AsyncAnnotateFileRequest getDefaultInstanceForType()
Returns
TypeDescription
AsyncAnnotateFileRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFeatures(int index)

public Feature getFeatures(int index)

Required. Requested features.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Feature

getFeaturesBuilder(int index)

public Feature.Builder getFeaturesBuilder(int index)

Required. Requested features.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Feature.Builder

getFeaturesBuilderList()

public List<Feature.Builder> getFeaturesBuilderList()

Required. Requested features.

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

Returns
TypeDescription
List<Builder>

getFeaturesCount()

public int getFeaturesCount()

Required. Requested features.

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

Returns
TypeDescription
int

getFeaturesList()

public List<Feature> getFeaturesList()

Required. Requested features.

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

Returns
TypeDescription
List<Feature>

getFeaturesOrBuilder(int index)

public FeatureOrBuilder getFeaturesOrBuilder(int index)

Required. Requested features.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
FeatureOrBuilder

getFeaturesOrBuilderList()

public List<? extends FeatureOrBuilder> getFeaturesOrBuilderList()

Required. Requested features.

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

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

getImageContext()

public ImageContext getImageContext()

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

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

Returns
TypeDescription
ImageContext

The imageContext.

getImageContextBuilder()

public ImageContext.Builder getImageContextBuilder()

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

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

Returns
TypeDescription
ImageContext.Builder

getImageContextOrBuilder()

public ImageContextOrBuilder getImageContextOrBuilder()

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

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

Returns
TypeDescription
ImageContextOrBuilder

getInputConfig()

public InputConfig getInputConfig()

Required. Information about the input file.

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

Returns
TypeDescription
InputConfig

The inputConfig.

getInputConfigBuilder()

public InputConfig.Builder getInputConfigBuilder()

Required. Information about the input file.

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

Returns
TypeDescription
InputConfig.Builder

getInputConfigOrBuilder()

public InputConfigOrBuilder getInputConfigOrBuilder()

Required. Information about the input file.

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

Returns
TypeDescription
InputConfigOrBuilder

getOutputConfig()

public OutputConfig getOutputConfig()

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

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

Returns
TypeDescription
OutputConfig

The outputConfig.

getOutputConfigBuilder()

public OutputConfig.Builder getOutputConfigBuilder()

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

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

Returns
TypeDescription
OutputConfig.Builder

getOutputConfigOrBuilder()

public OutputConfigOrBuilder getOutputConfigOrBuilder()

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

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

Returns
TypeDescription
OutputConfigOrBuilder

hasImageContext()

public boolean hasImageContext()

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

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

Returns
TypeDescription
boolean

Whether the imageContext field is set.

hasInputConfig()

public boolean hasInputConfig()

Required. Information about the input file.

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

Returns
TypeDescription
boolean

Whether the inputConfig field is set.

hasOutputConfig()

public boolean hasOutputConfig()

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

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

Returns
TypeDescription
boolean

Whether the outputConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AsyncAnnotateFileRequest other)

public AsyncAnnotateFileRequest.Builder mergeFrom(AsyncAnnotateFileRequest other)
Parameter
NameDescription
otherAsyncAnnotateFileRequest
Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AsyncAnnotateFileRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.v1.ImageContext image_context = 3;

Parameter
NameDescription
valueImageContext
Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

mergeInputConfig(InputConfig value)

public AsyncAnnotateFileRequest.Builder mergeInputConfig(InputConfig value)

Required. Information about the input file.

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

Parameter
NameDescription
valueInputConfig
Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

mergeOutputConfig(OutputConfig value)

public AsyncAnnotateFileRequest.Builder mergeOutputConfig(OutputConfig value)

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

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

Parameter
NameDescription
valueOutputConfig
Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFeatures(int index)

public AsyncAnnotateFileRequest.Builder removeFeatures(int index)

Required. Requested features.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

setFeatures(int index, Feature value)

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

Required. Requested features.

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

Parameters
NameDescription
indexint
valueFeature
Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

setFeatures(int index, Feature.Builder builderForValue)

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

Required. Requested features.

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

Parameters
NameDescription
indexint
builderForValueFeature.Builder
Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AsyncAnnotateFileRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1.ImageContext image_context = 3;

Parameter
NameDescription
valueImageContext
Returns
TypeDescription
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.v1.ImageContext image_context = 3;

Parameter
NameDescription
builderForValueImageContext.Builder
Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

setInputConfig(InputConfig value)

public AsyncAnnotateFileRequest.Builder setInputConfig(InputConfig value)

Required. Information about the input file.

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

Parameter
NameDescription
valueInputConfig
Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

setInputConfig(InputConfig.Builder builderForValue)

public AsyncAnnotateFileRequest.Builder setInputConfig(InputConfig.Builder builderForValue)

Required. Information about the input file.

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

Parameter
NameDescription
builderForValueInputConfig.Builder
Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

setOutputConfig(OutputConfig value)

public AsyncAnnotateFileRequest.Builder setOutputConfig(OutputConfig value)

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

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

Parameter
NameDescription
valueOutputConfig
Returns
TypeDescription
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.v1.OutputConfig output_config = 4;

Parameter
NameDescription
builderForValueOutputConfig.Builder
Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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