Class AnnotateFileResponse.Builder (2.1.2)

public static final class AnnotateFileResponse.Builder extends GeneratedMessageV3.Builder<AnnotateFileResponse.Builder> implements AnnotateFileResponseOrBuilder

Response to a single file annotation request. A file may contain one or more images, which individually have their own responses.

Protobuf type google.cloud.vision.v1p3beta1.AnnotateFileResponse

Static Methods

getDescriptor()

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

Methods

addAllResponses(Iterable<? extends AnnotateImageResponse> values)

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

Individual responses to images found within the file.

repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResponses(AnnotateImageResponse value)

public AnnotateFileResponse.Builder addResponses(AnnotateImageResponse value)

Individual responses to images found within the file.

repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;

Parameter
NameDescription
valueAnnotateImageResponse
Returns
TypeDescription
AnnotateFileResponse.Builder

addResponses(AnnotateImageResponse.Builder builderForValue)

public AnnotateFileResponse.Builder addResponses(AnnotateImageResponse.Builder builderForValue)

Individual responses to images found within the file.

repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;

Parameter
NameDescription
builderForValueAnnotateImageResponse.Builder
Returns
TypeDescription
AnnotateFileResponse.Builder

addResponses(int index, AnnotateImageResponse value)

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

Individual responses to images found within the file.

repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;

Parameters
NameDescription
indexint
valueAnnotateImageResponse
Returns
TypeDescription
AnnotateFileResponse.Builder