Class AsyncAnnotateFileRequest (3.41.0)

public final class AsyncAnnotateFileRequest extends GeneratedMessageV3 implements AsyncAnnotateFileRequestOrBuilder

An offline file annotation request.

Protobuf type google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest

Static Fields

FEATURES_FIELD_NUMBER

public static final int FEATURES_FIELD_NUMBER
Field Value
Type Description
int

IMAGE_CONTEXT_FIELD_NUMBER

public static final int IMAGE_CONTEXT_FIELD_NUMBER
Field Value
Type Description
int

INPUT_CONFIG_FIELD_NUMBER

public static final int INPUT_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

OUTPUT_CONFIG_FIELD_NUMBER

public static final int OUTPUT_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AsyncAnnotateFileRequest getDefaultInstance()
Returns
Type Description
AsyncAnnotateFileRequest

getDescriptor()

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

newBuilder()

public static AsyncAnnotateFileRequest.Builder newBuilder()
Returns
Type Description
AsyncAnnotateFileRequest.Builder

newBuilder(AsyncAnnotateFileRequest prototype)

public static AsyncAnnotateFileRequest.Builder newBuilder(AsyncAnnotateFileRequest prototype)
Parameter
Name Description
prototype AsyncAnnotateFileRequest
Returns
Type Description
AsyncAnnotateFileRequest.Builder

parseDelimitedFrom(InputStream input)

public static AsyncAnnotateFileRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AsyncAnnotateFileRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AsyncAnnotateFileRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AsyncAnnotateFileRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AsyncAnnotateFileRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AsyncAnnotateFileRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AsyncAnnotateFileRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AsyncAnnotateFileRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AsyncAnnotateFileRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AsyncAnnotateFileRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AsyncAnnotateFileRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AsyncAnnotateFileRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AsyncAnnotateFileRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AsyncAnnotateFileRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AsyncAnnotateFileRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AsyncAnnotateFileRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AsyncAnnotateFileRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AsyncAnnotateFileRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AsyncAnnotateFileRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AsyncAnnotateFileRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AsyncAnnotateFileRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AsyncAnnotateFileRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AsyncAnnotateFileRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AsyncAnnotateFileRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AsyncAnnotateFileRequest> parser()
Returns
Type Description
Parser<AsyncAnnotateFileRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AsyncAnnotateFileRequest getDefaultInstanceForType()
Returns
Type Description
AsyncAnnotateFileRequest

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

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.

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.

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.

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

getParserForType()

public Parser<AsyncAnnotateFileRequest> getParserForType()
Returns
Type Description
Parser<AsyncAnnotateFileRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AsyncAnnotateFileRequest.Builder newBuilderForType()
Returns
Type Description
AsyncAnnotateFileRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AsyncAnnotateFileRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AsyncAnnotateFileRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AsyncAnnotateFileRequest.Builder toBuilder()
Returns
Type Description
AsyncAnnotateFileRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException