Class AsyncBatchAnnotateImagesRequest (3.17.0)

public final class AsyncBatchAnnotateImagesRequest extends GeneratedMessageV3 implements AsyncBatchAnnotateImagesRequestOrBuilder

Request for async image annotation for a list of images.

Protobuf type google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AsyncBatchAnnotateImagesRequest

Static Fields

OUTPUT_CONFIG_FIELD_NUMBER

public static final int OUTPUT_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

REQUESTS_FIELD_NUMBER

public static final int REQUESTS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AsyncBatchAnnotateImagesRequest getDefaultInstance()
Returns
TypeDescription
AsyncBatchAnnotateImagesRequest

getDescriptor()

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

newBuilder()

public static AsyncBatchAnnotateImagesRequest.Builder newBuilder()
Returns
TypeDescription
AsyncBatchAnnotateImagesRequest.Builder

newBuilder(AsyncBatchAnnotateImagesRequest prototype)

public static AsyncBatchAnnotateImagesRequest.Builder newBuilder(AsyncBatchAnnotateImagesRequest prototype)
Parameter
NameDescription
prototypeAsyncBatchAnnotateImagesRequest
Returns
TypeDescription
AsyncBatchAnnotateImagesRequest.Builder

parseDelimitedFrom(InputStream input)

public static AsyncBatchAnnotateImagesRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AsyncBatchAnnotateImagesRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AsyncBatchAnnotateImagesRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AsyncBatchAnnotateImagesRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AsyncBatchAnnotateImagesRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AsyncBatchAnnotateImagesRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AsyncBatchAnnotateImagesRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AsyncBatchAnnotateImagesRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AsyncBatchAnnotateImagesRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AsyncBatchAnnotateImagesRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AsyncBatchAnnotateImagesRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AsyncBatchAnnotateImagesRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AsyncBatchAnnotateImagesRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AsyncBatchAnnotateImagesRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AsyncBatchAnnotateImagesRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AsyncBatchAnnotateImagesRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AsyncBatchAnnotateImagesRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AsyncBatchAnnotateImagesRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AsyncBatchAnnotateImagesRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AsyncBatchAnnotateImagesRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AsyncBatchAnnotateImagesRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AsyncBatchAnnotateImagesRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AsyncBatchAnnotateImagesRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AsyncBatchAnnotateImagesRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AsyncBatchAnnotateImagesRequest> parser()
Returns
TypeDescription
Parser<AsyncBatchAnnotateImagesRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public AsyncBatchAnnotateImagesRequest getDefaultInstanceForType()
Returns
TypeDescription
AsyncBatchAnnotateImagesRequest

getOutputConfig()

public OutputConfig getOutputConfig()

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

.google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
OutputConfig

The outputConfig.

getOutputConfigOrBuilder()

public OutputConfigOrBuilder getOutputConfigOrBuilder()

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

.google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
OutputConfigOrBuilder

getParent()

public String getParent()

Optional. Target project and location to make a call.

Format: projects/{project-id}/locations/{location-id}.

If no parent is specified, a region will be chosen automatically.

Supported location-ids: us: USA country only, asia: East asia areas, like Japan, Taiwan, eu: The European Union.

Example: projects/project-A/locations/eu.

string parent = 4;

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Optional. Target project and location to make a call.

Format: projects/{project-id}/locations/{location-id}.

If no parent is specified, a region will be chosen automatically.

Supported location-ids: us: USA country only, asia: East asia areas, like Japan, Taiwan, eu: The European Union.

Example: projects/project-A/locations/eu.

string parent = 4;

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<AsyncBatchAnnotateImagesRequest> getParserForType()
Returns
TypeDescription
Parser<AsyncBatchAnnotateImagesRequest>
Overrides

getRequests(int index)

public AnnotateImageRequest getRequests(int index)

Required. Individual image annotation requests for this batch.

repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
AnnotateImageRequest

getRequestsCount()

public int getRequestsCount()

Required. Individual image annotation requests for this batch.

repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getRequestsList()

public List<AnnotateImageRequest> getRequestsList()

Required. Individual image annotation requests for this batch.

repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<AnnotateImageRequest>

getRequestsOrBuilder(int index)

public AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index)

Required. Individual image annotation requests for this batch.

repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
AnnotateImageRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends AnnotateImageRequestOrBuilder> getRequestsOrBuilderList()

Required. Individual image annotation requests for this batch.

repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasOutputConfig()

public boolean hasOutputConfig()

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

.google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the outputConfig field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AsyncBatchAnnotateImagesRequest.Builder newBuilderForType()
Returns
TypeDescription
AsyncBatchAnnotateImagesRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AsyncBatchAnnotateImagesRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AsyncBatchAnnotateImagesRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AsyncBatchAnnotateImagesRequest.Builder toBuilder()
Returns
TypeDescription
AsyncBatchAnnotateImagesRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException