Class BatchAnnotateImagesResponse.Builder (3.81.0)

public static final class BatchAnnotateImagesResponse.Builder extends GeneratedMessage.Builder<BatchAnnotateImagesResponse.Builder> implements BatchAnnotateImagesResponseOrBuilder

Response to a batch image annotation request.

Protobuf type google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse

Static Methods

getDescriptor()

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

Methods

addAllResponses(Iterable<? extends AnnotateImageResponse> values)

public BatchAnnotateImagesResponse.Builder addAllResponses(Iterable<? extends AnnotateImageResponse> values)

Individual responses to image annotation requests within the batch.

repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.vision.v1p1beta1.AnnotateImageResponse>
Returns
Type Description
BatchAnnotateImagesResponse.Builder

addResponses(AnnotateImageResponse value)

public BatchAnnotateImagesResponse.Builder addResponses(AnnotateImageResponse value)

Individual responses to image annotation requests within the batch.

repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1;

Parameter
Name Description
value AnnotateImageResponse
Returns
Type Description
BatchAnnotateImagesResponse.Builder

addResponses(AnnotateImageResponse.Builder builderForValue)

public BatchAnnotateImagesResponse.Builder addResponses(AnnotateImageResponse.Builder builderForValue)

Individual responses to image annotation requests within the batch.

repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1;

Parameter
Name Description
builderForValue AnnotateImageResponse.Builder
Returns
Type Description
BatchAnnotateImagesResponse.Builder

addResponses(int index, AnnotateImageResponse value)

public BatchAnnotateImagesResponse.Builder addResponses(int index, AnnotateImageResponse value)

Individual responses to image annotation requests within the batch.

repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1;

Parameters
Name Description
index int
value AnnotateImageResponse
Returns
Type Description
BatchAnnotateImagesResponse.Builder

addResponses(int index, AnnotateImageResponse.Builder builderForValue)

public BatchAnnotateImagesResponse.Builder addResponses(int index, AnnotateImageResponse.Builder builderForValue)

Individual responses to image annotation requests within the batch.

repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1;

Parameters
Name Description
index int
builderForValue AnnotateImageResponse.Builder
Returns
Type Description
BatchAnnotateImagesResponse.Builder

addResponsesBuilder()

public AnnotateImageResponse.Builder addResponsesBuilder()

Individual responses to image annotation requests within the batch.

repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1;

Returns
Type Description
AnnotateImageResponse.Builder

addResponsesBuilder(int index)

public AnnotateImageResponse.Builder addResponsesBuilder(int index)

Individual responses to image annotation requests within the batch.

repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1;

Parameter
Name Description
index int
Returns
Type Description
AnnotateImageResponse.Builder

build()

public BatchAnnotateImagesResponse build()
Returns
Type Description
BatchAnnotateImagesResponse

buildPartial()

public BatchAnnotateImagesResponse buildPartial()
Returns
Type Description
BatchAnnotateImagesResponse

clear()

public BatchAnnotateImagesResponse.Builder clear()
Returns
Type Description
BatchAnnotateImagesResponse.Builder
Overrides

clearResponses()

public BatchAnnotateImagesResponse.Builder clearResponses()

Individual responses to image annotation requests within the batch.

repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1;

Returns
Type Description
BatchAnnotateImagesResponse.Builder

getDefaultInstanceForType()

public BatchAnnotateImagesResponse getDefaultInstanceForType()
Returns
Type Description
BatchAnnotateImagesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getResponses(int index)

public AnnotateImageResponse getResponses(int index)

Individual responses to image annotation requests within the batch.

repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1;

Parameter
Name Description
index int
Returns
Type Description
AnnotateImageResponse

getResponsesBuilder(int index)

public AnnotateImageResponse.Builder getResponsesBuilder(int index)

Individual responses to image annotation requests within the batch.

repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1;

Parameter
Name Description
index int
Returns
Type Description
AnnotateImageResponse.Builder

getResponsesBuilderList()

public List<AnnotateImageResponse.Builder> getResponsesBuilderList()

Individual responses to image annotation requests within the batch.

repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1;

Returns
Type Description
List<Builder>

getResponsesCount()

public int getResponsesCount()

Individual responses to image annotation requests within the batch.

repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1;

Returns
Type Description
int

getResponsesList()

public List<AnnotateImageResponse> getResponsesList()

Individual responses to image annotation requests within the batch.

repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1;

Returns
Type Description
List<AnnotateImageResponse>

getResponsesOrBuilder(int index)

public AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index)

Individual responses to image annotation requests within the batch.

repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1;

Parameter
Name Description
index int
Returns
Type Description
AnnotateImageResponseOrBuilder

getResponsesOrBuilderList()

public List<? extends AnnotateImageResponseOrBuilder> getResponsesOrBuilderList()

Individual responses to image annotation requests within the batch.

repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1;

Returns
Type Description
List<? extends com.google.cloud.vision.v1p1beta1.AnnotateImageResponseOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchAnnotateImagesResponse other)

public BatchAnnotateImagesResponse.Builder mergeFrom(BatchAnnotateImagesResponse other)
Parameter
Name Description
other BatchAnnotateImagesResponse
Returns
Type Description
BatchAnnotateImagesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchAnnotateImagesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchAnnotateImagesResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BatchAnnotateImagesResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BatchAnnotateImagesResponse.Builder
Overrides

removeResponses(int index)

public BatchAnnotateImagesResponse.Builder removeResponses(int index)

Individual responses to image annotation requests within the batch.

repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1;

Parameter
Name Description
index int
Returns
Type Description
BatchAnnotateImagesResponse.Builder

setResponses(int index, AnnotateImageResponse value)

public BatchAnnotateImagesResponse.Builder setResponses(int index, AnnotateImageResponse value)

Individual responses to image annotation requests within the batch.

repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1;

Parameters
Name Description
index int
value AnnotateImageResponse
Returns
Type Description
BatchAnnotateImagesResponse.Builder

setResponses(int index, AnnotateImageResponse.Builder builderForValue)

public BatchAnnotateImagesResponse.Builder setResponses(int index, AnnotateImageResponse.Builder builderForValue)

Individual responses to image annotation requests within the batch.

repeated .google.cloud.vision.v1p1beta1.AnnotateImageResponse responses = 1;

Parameters
Name Description
index int
builderForValue AnnotateImageResponse.Builder
Returns
Type Description
BatchAnnotateImagesResponse.Builder