Package com.google.cloud.vision.v1
Class AnnotateFileResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnnotateFileResponse.Builder>
com.google.cloud.vision.v1.AnnotateFileResponse.Builder
- All Implemented Interfaces:
AnnotateFileResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AnnotateFileResponse
public static final class AnnotateFileResponse.Builder
extends com.google.protobuf.GeneratedMessage.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.v1.AnnotateFileResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllResponses(Iterable<? extends AnnotateImageResponse> values) Individual responses to images found within the file.addResponses(int index, AnnotateImageResponse value) Individual responses to images found within the file.addResponses(int index, AnnotateImageResponse.Builder builderForValue) Individual responses to images found within the file.Individual responses to images found within the file.addResponses(AnnotateImageResponse.Builder builderForValue) Individual responses to images found within the file.Individual responses to images found within the file.addResponsesBuilder(int index) Individual responses to images found within the file.build()clear()If set, represents the error message for the failed request.Information about the file for which this response is generated.Individual responses to images found within the file.This field gives the total number of pages in the file.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetError()If set, represents the error message for the failed request.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.Information about the file for which this response is generated.getResponses(int index) Individual responses to images found within the file.getResponsesBuilder(int index) Individual responses to images found within the file.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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeError(Status value) If set, represents the error message for the failed request.mergeFrom(AnnotateFileResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeInputConfig(InputConfig value) Information about the file for which this response is generated.removeResponses(int index) Individual responses to images found within the file.If set, represents the error message for the failed request.setError(Status.Builder builderForValue) If set, represents the error message for the failed request.setInputConfig(InputConfig value) Information about the file for which this response is generated.setInputConfig(InputConfig.Builder builderForValue) Information about the file for which this response is generated.setResponses(int index, AnnotateImageResponse value) Individual responses to images found within the file.setResponses(int index, AnnotateImageResponse.Builder builderForValue) Individual responses to images found within the file.setTotalPages(int value) This field gives the total number of pages in the file.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AnnotateFileResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AnnotateFileResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AnnotateFileResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnnotateFileResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AnnotateFileResponse.Builder>
-
mergeFrom
public AnnotateFileResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnnotateFileResponse.Builder>- Throws:
IOException
-
hasInputConfig
public boolean hasInputConfig()Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1;- Specified by:
hasInputConfigin interfaceAnnotateFileResponseOrBuilder- Returns:
- Whether the inputConfig field is set.
-
getInputConfig
Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1;- Specified by:
getInputConfigin interfaceAnnotateFileResponseOrBuilder- Returns:
- The inputConfig.
-
setInputConfig
Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1; -
setInputConfig
Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1; -
mergeInputConfig
Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1; -
clearInputConfig
Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1; -
getInputConfigBuilder
Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1; -
getInputConfigOrBuilder
Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1;- Specified by:
getInputConfigOrBuilderin interfaceAnnotateFileResponseOrBuilder
-
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;- Specified by:
getResponsesListin interfaceAnnotateFileResponseOrBuilder
-
getResponsesCount
public 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;- Specified by:
getResponsesCountin interfaceAnnotateFileResponseOrBuilder
-
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;- Specified by:
getResponsesin interfaceAnnotateFileResponseOrBuilder
-
setResponses
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; -
setResponses
public AnnotateFileResponse.Builder setResponses(int index, AnnotateImageResponse.Builder builderForValue) 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; -
addResponses
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; -
addResponses
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; -
addResponses
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; -
addResponses
public AnnotateFileResponse.Builder addResponses(int index, AnnotateImageResponse.Builder builderForValue) 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; -
addAllResponses
public AnnotateFileResponse.Builder addAllResponses(Iterable<? extends AnnotateImageResponse> values) 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; -
clearResponses
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; -
removeResponses
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; -
getResponsesBuilder
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;- Specified by:
getResponsesOrBuilderin interfaceAnnotateFileResponseOrBuilder
-
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;- Specified by:
getResponsesOrBuilderListin interfaceAnnotateFileResponseOrBuilder
-
addResponsesBuilder
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; -
addResponsesBuilder
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; -
getResponsesBuilderList
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
public int getTotalPages()This field gives the total number of pages in the file.
int32 total_pages = 3;- Specified by:
getTotalPagesin interfaceAnnotateFileResponseOrBuilder- Returns:
- The totalPages.
-
setTotalPages
This field gives the total number of pages in the file.
int32 total_pages = 3;- Parameters:
value- The totalPages to set.- Returns:
- This builder for chaining.
-
clearTotalPages
This field gives the total number of pages in the file.
int32 total_pages = 3;- Returns:
- This builder for chaining.
-
hasError
public 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;- Specified by:
hasErrorin interfaceAnnotateFileResponseOrBuilder- Returns:
- Whether the error field is set.
-
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;- Specified by:
getErrorin interfaceAnnotateFileResponseOrBuilder- Returns:
- The error.
-
setError
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; -
setError
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; -
mergeError
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; -
clearError
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; -
getErrorBuilder
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; -
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;- Specified by:
getErrorOrBuilderin interfaceAnnotateFileResponseOrBuilder
-