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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1.AnnotateImageResponse responses = 1;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchAnnotateImagesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1.AnnotateImageResponse responses = 1;

Parameter
NameDescription
valueAnnotateImageResponse
Returns
TypeDescription
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.v1.AnnotateImageResponse responses = 1;

Parameter
NameDescription
builderForValueAnnotateImageResponse.Builder
Returns
TypeDescription
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.v1.AnnotateImageResponse responses = 1;

Parameters
NameDescription
indexint
valueAnnotateImageResponse
Returns
TypeDescription
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.v1.AnnotateImageResponse responses = 1;

Parameters
NameDescription
indexint
builderForValueAnnotateImageResponse.Builder
Returns
TypeDescription
BatchAnnotateImagesResponse.Builder

addResponsesBuilder()

public AnnotateImageResponse.Builder addResponsesBuilder()

Individual responses to image annotation requests within the batch.

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

Returns
TypeDescription
AnnotateImageResponse.Builder

addResponsesBuilder(int index)

public AnnotateImageResponse.Builder addResponsesBuilder(int index)

Individual responses to image annotation requests within the batch.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AnnotateImageResponse.Builder

build()

public BatchAnnotateImagesResponse build()
Returns
TypeDescription
BatchAnnotateImagesResponse

buildPartial()

public BatchAnnotateImagesResponse buildPartial()
Returns
TypeDescription
BatchAnnotateImagesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResponses()

public BatchAnnotateImagesResponse.Builder clearResponses()

Individual responses to image annotation requests within the batch.

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

Returns
TypeDescription
BatchAnnotateImagesResponse.Builder

clone()

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

getDefaultInstanceForType()

public BatchAnnotateImagesResponse getDefaultInstanceForType()
Returns
TypeDescription
BatchAnnotateImagesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getResponses(int index)

public AnnotateImageResponse getResponses(int index)

Individual responses to image annotation requests within the batch.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AnnotateImageResponse

getResponsesBuilder(int index)

public AnnotateImageResponse.Builder getResponsesBuilder(int index)

Individual responses to image annotation requests within the batch.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AnnotateImageResponse.Builder

getResponsesBuilderList()

public List<AnnotateImageResponse.Builder> getResponsesBuilderList()

Individual responses to image annotation requests within the batch.

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

Returns
TypeDescription
List<Builder>

getResponsesCount()

public int getResponsesCount()

Individual responses to image annotation requests within the batch.

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

Returns
TypeDescription
int

getResponsesList()

public List<AnnotateImageResponse> getResponsesList()

Individual responses to image annotation requests within the batch.

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

Returns
TypeDescription
List<AnnotateImageResponse>

getResponsesOrBuilder(int index)

public AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index)

Individual responses to image annotation requests within the batch.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AnnotateImageResponseOrBuilder

getResponsesOrBuilderList()

public List<? extends AnnotateImageResponseOrBuilder> getResponsesOrBuilderList()

Individual responses to image annotation requests within the batch.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchAnnotateImagesResponse other)

public BatchAnnotateImagesResponse.Builder mergeFrom(BatchAnnotateImagesResponse other)
Parameter
NameDescription
otherBatchAnnotateImagesResponse
Returns
TypeDescription
BatchAnnotateImagesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchAnnotateImagesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1.AnnotateImageResponse responses = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
BatchAnnotateImagesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public BatchAnnotateImagesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1.AnnotateImageResponse responses = 1;

Parameters
NameDescription
indexint
valueAnnotateImageResponse
Returns
TypeDescription
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.v1.AnnotateImageResponse responses = 1;

Parameters
NameDescription
indexint
builderForValueAnnotateImageResponse.Builder
Returns
TypeDescription
BatchAnnotateImagesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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