Class BatchAnnotateImagesResponse.Builder (3.45.0)

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

Response to a batch image annotation request.

Protobuf type google.cloud.vision.v1p4beta1.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.v1p4beta1.AnnotateImageResponse responses = 1;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchAnnotateImagesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchAnnotateImagesResponse.Builder
Overrides

addResponses(AnnotateImageResponse value)

public BatchAnnotateImagesResponse.Builder addResponses(AnnotateImageResponse value)

Individual responses to image annotation requests within the batch.

repeated .google.cloud.vision.v1p4beta1.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.v1p4beta1.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.v1p4beta1.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.v1p4beta1.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.v1p4beta1.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.v1p4beta1.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

clearField(Descriptors.FieldDescriptor field)

public BatchAnnotateImagesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BatchAnnotateImagesResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchAnnotateImagesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BatchAnnotateImagesResponse.Builder
Overrides

clearResponses()

public BatchAnnotateImagesResponse.Builder clearResponses()

Individual responses to image annotation requests within the batch.

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

Returns
Type Description
BatchAnnotateImagesResponse.Builder

clone()

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

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.v1p4beta1.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.v1p4beta1.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.v1p4beta1.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.v1p4beta1.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.v1p4beta1.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.v1p4beta1.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.v1p4beta1.AnnotateImageResponse responses = 1;

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchAnnotateImagesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.v1p4beta1.AnnotateImageResponse responses = 1;

Parameter
Name Description
index int
Returns
Type Description
BatchAnnotateImagesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchAnnotateImagesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchAnnotateImagesResponse.Builder
Overrides

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

public BatchAnnotateImagesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchAnnotateImagesResponse.Builder
Overrides

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.v1p4beta1.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.v1p4beta1.AnnotateImageResponse responses = 1;

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

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchAnnotateImagesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchAnnotateImagesResponse.Builder
Overrides