Package com.google.cloud.vision.v1
Interface AnnotateFileResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AnnotateFileResponse,AnnotateFileResponse.Builder
@Generated
public interface AnnotateFileResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetError()If set, represents the error message for the failed request.If set, represents the error message for the failed request.Information about the file for which this response is generated.Information about the file for which this response is generated.getResponses(int index) Individual responses to images found within the file.intIndividual responses to images found within the file.Individual responses to images found within the file.getResponsesOrBuilder(int index) Individual responses to images found within the file.List<? extends AnnotateImageResponseOrBuilder>Individual responses to images found within the file.intThis field gives the total number of pages in the file.booleanhasError()If set, represents the error message for the failed request.booleanInformation about the file for which this response is generated.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasInputConfig
boolean hasInputConfig()Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1;- Returns:
- Whether the inputConfig field is set.
-
getInputConfig
InputConfig getInputConfig()Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1;- Returns:
- The inputConfig.
-
getInputConfigOrBuilder
InputConfigOrBuilder getInputConfigOrBuilder()Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1; -
getResponsesList
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; -
getResponses
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; -
getResponsesCount
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; -
getResponsesOrBuilderList
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; -
getResponsesOrBuilder
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; -
getTotalPages
int getTotalPages()This field gives the total number of pages in the file.
int32 total_pages = 3;- Returns:
- The totalPages.
-
hasError
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:
- Whether the error field is set.
-
getError
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:
- The error.
-
getErrorOrBuilder
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;
-