Class AsyncBatchAnnotateFilesRequest.Builder (3.34.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

clearLabels()

public AsyncBatchAnnotateFilesRequest.Builder clearLabels()
Returns
TypeDescription
AsyncBatchAnnotateFilesRequest.Builder

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. The labels with user-defined metadata for the request.

Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public AsyncBatchAnnotateFilesRequest getDefaultInstanceForType()
Returns
TypeDescription
AsyncBatchAnnotateFilesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. The labels with user-defined metadata for the request.

Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. The labels with user-defined metadata for the request.

Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. The labels with user-defined metadata for the request.

Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. The labels with user-defined metadata for the request.

Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

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

putAllLabels(Map<String,String> values)

public AsyncBatchAnnotateFilesRequest.Builder putAllLabels(Map<String,String> values)

Optional. The labels with user-defined metadata for the request.

Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
AsyncBatchAnnotateFilesRequest.Builder

putLabels(String key, String value)

public AsyncBatchAnnotateFilesRequest.Builder putLabels(String key, String value)

Optional. The labels with user-defined metadata for the request.

Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
AsyncBatchAnnotateFilesRequest.Builder

removeLabels(String key)

public AsyncBatchAnnotateFilesRequest.Builder removeLabels(String key)

Optional. The labels with user-defined metadata for the request.

Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
AsyncBatchAnnotateFilesRequest.Builder

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