Class AsyncBatchAnnotateFilesRequest.Builder (3.29.0)

public static final class AsyncBatchAnnotateFilesRequest.Builder extends GeneratedMessageV3.Builder<AsyncBatchAnnotateFilesRequest.Builder> implements AsyncBatchAnnotateFilesRequestOrBuilder

Multiple async file annotation requests are batched into a single service call.

Protobuf type google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest

Static Methods

getDescriptor()

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

Methods

addAllRequests(Iterable<? extends AsyncAnnotateFileRequest> values)

public AsyncBatchAnnotateFilesRequest.Builder addAllRequests(Iterable<? extends AsyncAnnotateFileRequest> values)

Required. Individual async file annotation requests for this batch.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRequests(AsyncAnnotateFileRequest value)

public AsyncBatchAnnotateFilesRequest.Builder addRequests(AsyncAnnotateFileRequest value)

Required. Individual async file annotation requests for this batch.

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

Parameter
NameDescription
valueAsyncAnnotateFileRequest
Returns
TypeDescription
AsyncBatchAnnotateFilesRequest.Builder

addRequests(AsyncAnnotateFileRequest.Builder builderForValue)

public AsyncBatchAnnotateFilesRequest.Builder addRequests(AsyncAnnotateFileRequest.Builder builderForValue)

Required. Individual async file annotation requests for this batch.

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

Parameter
NameDescription
builderForValueAsyncAnnotateFileRequest.Builder
Returns
TypeDescription
AsyncBatchAnnotateFilesRequest.Builder

addRequests(int index, AsyncAnnotateFileRequest value)

public AsyncBatchAnnotateFilesRequest.Builder addRequests(int index, AsyncAnnotateFileRequest value)

Required. Individual async file annotation requests for this batch.

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

Parameters
NameDescription
indexint
valueAsyncAnnotateFileRequest
Returns
TypeDescription
AsyncBatchAnnotateFilesRequest.Builder

addRequests(int index, AsyncAnnotateFileRequest.Builder builderForValue)

public AsyncBatchAnnotateFilesRequest.Builder addRequests(int index, AsyncAnnotateFileRequest.Builder builderForValue)

Required. Individual async file annotation requests for this batch.

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

Parameters
NameDescription
indexint
builderForValueAsyncAnnotateFileRequest.Builder
Returns
TypeDescription
AsyncBatchAnnotateFilesRequest.Builder

addRequestsBuilder()

public AsyncAnnotateFileRequest.Builder addRequestsBuilder()

Required. Individual async file annotation requests for this batch.

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

Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

addRequestsBuilder(int index)

public AsyncAnnotateFileRequest.Builder addRequestsBuilder(int index)

Required. Individual async file annotation requests for this batch.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

build()

public AsyncBatchAnnotateFilesRequest build()
Returns
TypeDescription
AsyncBatchAnnotateFilesRequest

buildPartial()

public AsyncBatchAnnotateFilesRequest buildPartial()
Returns
TypeDescription
AsyncBatchAnnotateFilesRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public AsyncBatchAnnotateFilesRequest.Builder clearParent()

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
AsyncBatchAnnotateFilesRequest.Builder

This builder for chaining.

clearRequests()

public AsyncBatchAnnotateFilesRequest.Builder clearRequests()

Required. Individual async file annotation requests for this batch.

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

Returns
TypeDescription
AsyncBatchAnnotateFilesRequest.Builder

clone()

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

getDefaultInstanceForType()

public AsyncBatchAnnotateFilesRequest getDefaultInstanceForType()
Returns
TypeDescription
AsyncBatchAnnotateFilesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getRequests(int index)

public AsyncAnnotateFileRequest getRequests(int index)

Required. Individual async file annotation requests for this batch.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AsyncAnnotateFileRequest

getRequestsBuilder(int index)

public AsyncAnnotateFileRequest.Builder getRequestsBuilder(int index)

Required. Individual async file annotation requests for this batch.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AsyncAnnotateFileRequest.Builder

getRequestsBuilderList()

public List<AsyncAnnotateFileRequest.Builder> getRequestsBuilderList()

Required. Individual async file annotation requests for this batch.

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

Returns
TypeDescription
List<Builder>

getRequestsCount()

public int getRequestsCount()

Required. Individual async file annotation requests for this batch.

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

Returns
TypeDescription
int

getRequestsList()

public List<AsyncAnnotateFileRequest> getRequestsList()

Required. Individual async file annotation requests for this batch.

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

Returns
TypeDescription
List<AsyncAnnotateFileRequest>

getRequestsOrBuilder(int index)

public AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder(int index)

Required. Individual async file annotation requests for this batch.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AsyncAnnotateFileRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends AsyncAnnotateFileRequestOrBuilder> getRequestsOrBuilderList()

Required. Individual async file annotation requests for this batch.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AsyncBatchAnnotateFilesRequest other)

public AsyncBatchAnnotateFilesRequest.Builder mergeFrom(AsyncBatchAnnotateFilesRequest other)
Parameter
NameDescription
otherAsyncBatchAnnotateFilesRequest
Returns
TypeDescription
AsyncBatchAnnotateFilesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRequests(int index)

public AsyncBatchAnnotateFilesRequest.Builder removeRequests(int index)

Required. Individual async file annotation requests for this batch.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AsyncBatchAnnotateFilesRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public AsyncBatchAnnotateFilesRequest.Builder setParent(String value)

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;

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
AsyncBatchAnnotateFilesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public AsyncBatchAnnotateFilesRequest.Builder setParentBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
AsyncBatchAnnotateFilesRequest.Builder

This builder for chaining.

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

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

setRequests(int index, AsyncAnnotateFileRequest value)

public AsyncBatchAnnotateFilesRequest.Builder setRequests(int index, AsyncAnnotateFileRequest value)

Required. Individual async file annotation requests for this batch.

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

Parameters
NameDescription
indexint
valueAsyncAnnotateFileRequest
Returns
TypeDescription
AsyncBatchAnnotateFilesRequest.Builder

setRequests(int index, AsyncAnnotateFileRequest.Builder builderForValue)

public AsyncBatchAnnotateFilesRequest.Builder setRequests(int index, AsyncAnnotateFileRequest.Builder builderForValue)

Required. Individual async file annotation requests for this batch.

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

Parameters
NameDescription
indexint
builderForValueAsyncAnnotateFileRequest.Builder
Returns
TypeDescription
AsyncBatchAnnotateFilesRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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