Interface AnnotateFileResponseOrBuilder (3.42.0)

public interface AnnotateFileResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getError()

public abstract Status getError()

If set, represents the error message for the failed request. The responses field will not be set in this case.

.google.rpc.Status error = 4;

Returns
Type Description
com.google.rpc.Status

The error.

getErrorOrBuilder()

public abstract StatusOrBuilder getErrorOrBuilder()

If set, represents the error message for the failed request. The responses field will not be set in this case.

.google.rpc.Status error = 4;

Returns
Type Description
com.google.rpc.StatusOrBuilder

getInputConfig()

public abstract InputConfig getInputConfig()

Information about the file for which this response is generated.

.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;

Returns
Type Description
InputConfig

The inputConfig.

getInputConfigOrBuilder()

public abstract InputConfigOrBuilder getInputConfigOrBuilder()

Information about the file for which this response is generated.

.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;

Returns
Type Description
InputConfigOrBuilder

getResponses(int index)

public abstract AnnotateImageResponse getResponses(int index)

Individual responses to images found within the file. This field will be empty if the error field is set.

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

Parameter
Name Description
index int
Returns
Type Description
AnnotateImageResponse

getResponsesCount()

public abstract int getResponsesCount()

Individual responses to images found within the file. This field will be empty if the error field is set.

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

Returns
Type Description
int

getResponsesList()

public abstract List<AnnotateImageResponse> getResponsesList()

Individual responses to images found within the file. This field will be empty if the error field is set.

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

Returns
Type Description
List<AnnotateImageResponse>

getResponsesOrBuilder(int index)

public abstract AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index)

Individual responses to images found within the file. This field will be empty if the error field is set.

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

Parameter
Name Description
index int
Returns
Type Description
AnnotateImageResponseOrBuilder

getResponsesOrBuilderList()

public abstract List<? extends AnnotateImageResponseOrBuilder> getResponsesOrBuilderList()

Individual responses to images found within the file. This field will be empty if the error field is set.

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

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

getTotalPages()

public abstract int getTotalPages()

This field gives the total number of pages in the file.

int32 total_pages = 3;

Returns
Type Description
int

The totalPages.

hasError()

public abstract boolean hasError()

If set, represents the error message for the failed request. The responses field will not be set in this case.

.google.rpc.Status error = 4;

Returns
Type Description
boolean

Whether the error field is set.

hasInputConfig()

public abstract boolean hasInputConfig()

Information about the file for which this response is generated.

.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;

Returns
Type Description
boolean

Whether the inputConfig field is set.