Class AnnotateFileResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AnnotateFileResponse.Builder>
-
- com.google.cloud.vision.v1p4beta1.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.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 typegoogle.cloud.vision.v1p4beta1.AnnotateFileResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotateFileResponse.BuilderaddAllResponses(Iterable<? extends AnnotateImageResponse> values)Individual responses to images found within the file.AnnotateFileResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AnnotateFileResponse.BuilderaddResponses(int index, AnnotateImageResponse value)Individual responses to images found within the file.AnnotateFileResponse.BuilderaddResponses(int index, AnnotateImageResponse.Builder builderForValue)Individual responses to images found within the file.AnnotateFileResponse.BuilderaddResponses(AnnotateImageResponse value)Individual responses to images found within the file.AnnotateFileResponse.BuilderaddResponses(AnnotateImageResponse.Builder builderForValue)Individual responses to images found within the file.AnnotateImageResponse.BuilderaddResponsesBuilder()Individual responses to images found within the file.AnnotateImageResponse.BuilderaddResponsesBuilder(int index)Individual responses to images found within the file.AnnotateFileResponsebuild()AnnotateFileResponsebuildPartial()AnnotateFileResponse.Builderclear()AnnotateFileResponse.BuilderclearError()If set, represents the error message for the failed request.AnnotateFileResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AnnotateFileResponse.BuilderclearInputConfig()Information about the file for which this response is generated.AnnotateFileResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AnnotateFileResponse.BuilderclearResponses()Individual responses to images found within the file.AnnotateFileResponse.BuilderclearTotalPages()This field gives the total number of pages in the file.AnnotateFileResponse.Builderclone()AnnotateFileResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.rpc.StatusgetError()If set, represents the error message for the failed request.com.google.rpc.Status.BuildergetErrorBuilder()If set, represents the error message for the failed request.com.google.rpc.StatusOrBuildergetErrorOrBuilder()If set, represents the error message for the failed request.InputConfiggetInputConfig()Information about the file for which this response is generated.InputConfig.BuildergetInputConfigBuilder()Information about the file for which this response is generated.InputConfigOrBuildergetInputConfigOrBuilder()Information about the file for which this response is generated.AnnotateImageResponsegetResponses(int index)Individual responses to images found within the file.AnnotateImageResponse.BuildergetResponsesBuilder(int index)Individual responses to images found within the file.List<AnnotateImageResponse.Builder>getResponsesBuilderList()Individual responses to images found within the file.intgetResponsesCount()Individual responses to images found within the file.List<AnnotateImageResponse>getResponsesList()Individual responses to images found within the file.AnnotateImageResponseOrBuildergetResponsesOrBuilder(int index)Individual responses to images found within the file.List<? extends AnnotateImageResponseOrBuilder>getResponsesOrBuilderList()Individual responses to images found within the file.intgetTotalPages()This field gives the total number of pages in the file.booleanhasError()If set, represents the error message for the failed request.booleanhasInputConfig()Information about the file for which this response is generated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AnnotateFileResponse.BuildermergeError(com.google.rpc.Status value)If set, represents the error message for the failed request.AnnotateFileResponse.BuildermergeFrom(AnnotateFileResponse other)AnnotateFileResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AnnotateFileResponse.BuildermergeFrom(com.google.protobuf.Message other)AnnotateFileResponse.BuildermergeInputConfig(InputConfig value)Information about the file for which this response is generated.AnnotateFileResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AnnotateFileResponse.BuilderremoveResponses(int index)Individual responses to images found within the file.AnnotateFileResponse.BuildersetError(com.google.rpc.Status value)If set, represents the error message for the failed request.AnnotateFileResponse.BuildersetError(com.google.rpc.Status.Builder builderForValue)If set, represents the error message for the failed request.AnnotateFileResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AnnotateFileResponse.BuildersetInputConfig(InputConfig value)Information about the file for which this response is generated.AnnotateFileResponse.BuildersetInputConfig(InputConfig.Builder builderForValue)Information about the file for which this response is generated.AnnotateFileResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AnnotateFileResponse.BuildersetResponses(int index, AnnotateImageResponse value)Individual responses to images found within the file.AnnotateFileResponse.BuildersetResponses(int index, AnnotateImageResponse.Builder builderForValue)Individual responses to images found within the file.AnnotateFileResponse.BuildersetTotalPages(int value)This field gives the total number of pages in the file.AnnotateFileResponse.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotateFileResponse.Builder>
-
clear
public AnnotateFileResponse.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<AnnotateFileResponse.Builder>
-
getDefaultInstanceForType
public AnnotateFileResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AnnotateFileResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AnnotateFileResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AnnotateFileResponse.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotateFileResponse.Builder>
-
setField
public AnnotateFileResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotateFileResponse.Builder>
-
clearField
public AnnotateFileResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotateFileResponse.Builder>
-
clearOneof
public AnnotateFileResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotateFileResponse.Builder>
-
setRepeatedField
public AnnotateFileResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotateFileResponse.Builder>
-
addRepeatedField
public AnnotateFileResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotateFileResponse.Builder>
-
mergeFrom
public AnnotateFileResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnnotateFileResponse.Builder>
-
mergeFrom
public AnnotateFileResponse.Builder mergeFrom(AnnotateFileResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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.v1p4beta1.InputConfig input_config = 1;- Specified by:
hasInputConfigin interfaceAnnotateFileResponseOrBuilder- Returns:
- Whether the inputConfig field is set.
-
getInputConfig
public InputConfig getInputConfig()
Information about the file for which this response is generated.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;- Specified by:
getInputConfigin interfaceAnnotateFileResponseOrBuilder- Returns:
- The inputConfig.
-
setInputConfig
public AnnotateFileResponse.Builder setInputConfig(InputConfig value)
Information about the file for which this response is generated.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;
-
setInputConfig
public AnnotateFileResponse.Builder setInputConfig(InputConfig.Builder builderForValue)
Information about the file for which this response is generated.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;
-
mergeInputConfig
public AnnotateFileResponse.Builder mergeInputConfig(InputConfig value)
Information about the file for which this response is generated.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;
-
clearInputConfig
public AnnotateFileResponse.Builder clearInputConfig()
Information about the file for which this response is generated.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;
-
getInputConfigBuilder
public InputConfig.Builder getInputConfigBuilder()
Information about the file for which this response is generated.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;
-
getInputConfigOrBuilder
public InputConfigOrBuilder getInputConfigOrBuilder()
Information about the file for which this response is generated.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;- Specified by:
getInputConfigOrBuilderin interfaceAnnotateFileResponseOrBuilder
-
getResponsesList
public 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;- 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.v1p4beta1.AnnotateImageResponse responses = 2;- Specified by:
getResponsesCountin interfaceAnnotateFileResponseOrBuilder
-
getResponses
public 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;- Specified by:
getResponsesin interfaceAnnotateFileResponseOrBuilder
-
setResponses
public AnnotateFileResponse.Builder setResponses(int index, AnnotateImageResponse value)
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;
-
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.v1p4beta1.AnnotateImageResponse responses = 2;
-
addResponses
public AnnotateFileResponse.Builder addResponses(AnnotateImageResponse value)
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;
-
addResponses
public AnnotateFileResponse.Builder addResponses(int index, AnnotateImageResponse value)
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;
-
addResponses
public AnnotateFileResponse.Builder addResponses(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.v1p4beta1.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.v1p4beta1.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.v1p4beta1.AnnotateImageResponse responses = 2;
-
clearResponses
public AnnotateFileResponse.Builder clearResponses()
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;
-
removeResponses
public AnnotateFileResponse.Builder removeResponses(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;
-
getResponsesBuilder
public AnnotateImageResponse.Builder getResponsesBuilder(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;
-
getResponsesOrBuilder
public 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;- Specified by:
getResponsesOrBuilderin interfaceAnnotateFileResponseOrBuilder
-
getResponsesOrBuilderList
public 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;- Specified by:
getResponsesOrBuilderListin interfaceAnnotateFileResponseOrBuilder
-
addResponsesBuilder
public AnnotateImageResponse.Builder addResponsesBuilder()
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;
-
addResponsesBuilder
public AnnotateImageResponse.Builder addResponsesBuilder(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;
-
getResponsesBuilderList
public List<AnnotateImageResponse.Builder> getResponsesBuilderList()
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;
-
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
public AnnotateFileResponse.Builder setTotalPages(int value)
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
public AnnotateFileResponse.Builder 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
public com.google.rpc.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;- Specified by:
getErrorin interfaceAnnotateFileResponseOrBuilder- Returns:
- The error.
-
setError
public AnnotateFileResponse.Builder setError(com.google.rpc.Status value)
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
public AnnotateFileResponse.Builder setError(com.google.rpc.Status.Builder builderForValue)
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
public AnnotateFileResponse.Builder mergeError(com.google.rpc.Status value)
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
public AnnotateFileResponse.Builder 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
public com.google.rpc.Status.Builder 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
public com.google.rpc.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;- Specified by:
getErrorOrBuilderin interfaceAnnotateFileResponseOrBuilder
-
setUnknownFields
public final AnnotateFileResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotateFileResponse.Builder>
-
mergeUnknownFields
public final AnnotateFileResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotateFileResponse.Builder>
-
-