Interface AnnotateFileResponseOrBuilder (3.11.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
TypeDescription
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
TypeDescription
com.google.rpc.StatusOrBuilder

getInputConfig()

public abstract InputConfig getInputConfig()

Information about the file for which this response is generated.

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

Returns
TypeDescription
InputConfig

The inputConfig.

getInputConfigOrBuilder()

public abstract InputConfigOrBuilder getInputConfigOrBuilder()

Information about the file for which this response is generated.

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

Returns
TypeDescription
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.v1.AnnotateImageResponse responses = 2;

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

Returns
TypeDescription
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.v1.AnnotateImageResponse responses = 2;

Returns
TypeDescription
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.v1.AnnotateImageResponse responses = 2;

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

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

getTotalPages()

public abstract int getTotalPages()

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

int32 total_pages = 3;

Returns
TypeDescription
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
TypeDescription
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.v1.InputConfig input_config = 1;

Returns
TypeDescription
boolean

Whether the inputConfig field is set.