public static final class AnnotateFileResponse.Builder extends 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 type google.cloud.vision.v1p4beta1.AnnotateFileResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
ReturnsMethods
addAllResponses(Iterable<? extends AnnotateImageResponse> values)
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;
ParameterName | Description |
values | Iterable<? extends com.google.cloud.vision.v1p4beta1.AnnotateImageResponse>
|
ReturnsaddRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnnotateFileResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
ParametersReturnsOverridesaddResponses(AnnotateImageResponse value)
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;
ParameterReturnsaddResponses(AnnotateImageResponse.Builder builderForValue)
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;
ParameterReturnsaddResponses(int index, AnnotateImageResponse value)
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;
ParametersReturnsaddResponses(int index, AnnotateImageResponse.Builder builderForValue)
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;
ParametersReturnsaddResponsesBuilder()
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;
ReturnsaddResponsesBuilder(int index)
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;
ParameterReturnsbuild()
public AnnotateFileResponse build()
ReturnsbuildPartial()
public AnnotateFileResponse buildPartial()
Returnsclear()
public AnnotateFileResponse.Builder clear()
ReturnsOverridesclearError()
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;
ReturnsclearField(Descriptors.FieldDescriptor field)
public AnnotateFileResponse.Builder clearField(Descriptors.FieldDescriptor field)
ParameterReturnsOverridespublic AnnotateFileResponse.Builder clearInputConfig()
Information about the file for which this response is generated.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;
ReturnsclearOneof(Descriptors.OneofDescriptor oneof)
public AnnotateFileResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
ParameterReturnsOverridesclearResponses()
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;
ReturnsclearTotalPages()
public AnnotateFileResponse.Builder clearTotalPages()
This field gives the total number of pages in the file.
int32 total_pages = 3;
Returnsclone()
public AnnotateFileResponse.Builder clone()
ReturnsOverridesgetDefaultInstanceForType()
public AnnotateFileResponse getDefaultInstanceForType()
ReturnsgetDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
ReturnsOverridesgetError()
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;
ReturnsType | Description |
com.google.rpc.Status | The error. |
getErrorBuilder()
public 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;
ReturnsType | Description |
com.google.rpc.Status.Builder | |
getErrorOrBuilder()
public 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;
ReturnsType | Description |
com.google.rpc.StatusOrBuilder | |
public InputConfig getInputConfig()
Information about the file for which this response is generated.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;
Returnspublic InputConfig.Builder getInputConfigBuilder()
Information about the file for which this response is generated.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;
Returnspublic InputConfigOrBuilder getInputConfigOrBuilder()
Information about the file for which this response is generated.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;
ReturnsgetResponses(int index)
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;
ParameterReturnsgetResponsesBuilder(int index)
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;
ParameterReturnsgetResponsesBuilderList()
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;
ReturnsgetResponsesCount()
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;
ReturnsgetResponsesList()
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;
ReturnsgetResponsesOrBuilder(int index)
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;
ParameterReturnsgetResponsesOrBuilderList()
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;
ReturnsType | Description |
List<? extends com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder> | |
getTotalPages()
public int getTotalPages()
This field gives the total number of pages in the file.
int32 total_pages = 3;
ReturnsType | Description |
int | The totalPages. |
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;
ReturnsType | Description |
boolean | Whether the error field is set. |
public boolean hasInputConfig()
Information about the file for which this response is generated.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;
ReturnsType | Description |
boolean | Whether the inputConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
ReturnsOverridesisInitialized()
public final boolean isInitialized()
ReturnsOverridesmergeError(Status value)
public AnnotateFileResponse.Builder mergeError(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;
ParameterName | Description |
value | com.google.rpc.Status
|
ReturnsmergeFrom(AnnotateFileResponse other)
public AnnotateFileResponse.Builder mergeFrom(AnnotateFileResponse other)
ParameterReturnspublic AnnotateFileResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
ParametersReturnsOverridesExceptionsmergeFrom(Message other)
public AnnotateFileResponse.Builder mergeFrom(Message other)
ParameterReturnsOverridespublic AnnotateFileResponse.Builder mergeInputConfig(InputConfig value)
Information about the file for which this response is generated.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;
ParameterReturnsmergeUnknownFields(UnknownFieldSet unknownFields)
public final AnnotateFileResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
ParameterReturnsOverridesremoveResponses(int index)
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;
ParameterReturnssetError(Status value)
public AnnotateFileResponse.Builder setError(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;
ParameterName | Description |
value | com.google.rpc.Status
|
ReturnssetError(Status.Builder builderForValue)
public AnnotateFileResponse.Builder setError(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;
ParameterName | Description |
builderForValue | com.google.rpc.Status.Builder
|
ReturnssetField(Descriptors.FieldDescriptor field, Object value)
public AnnotateFileResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
ParametersReturnsOverridespublic AnnotateFileResponse.Builder setInputConfig(InputConfig value)
Information about the file for which this response is generated.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;
ParameterReturnspublic AnnotateFileResponse.Builder setInputConfig(InputConfig.Builder builderForValue)
Information about the file for which this response is generated.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;
ParameterReturnssetRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnnotateFileResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
ParametersReturnsOverridessetResponses(int index, AnnotateImageResponse value)
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;
ParametersReturnssetResponses(int index, AnnotateImageResponse.Builder builderForValue)
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;
ParametersReturnssetTotalPages(int value)
public AnnotateFileResponse.Builder setTotalPages(int value)
This field gives the total number of pages in the file.
int32 total_pages = 3;
ParameterName | Description |
value | int
The totalPages to set. |
ReturnssetUnknownFields(UnknownFieldSet unknownFields)
public final AnnotateFileResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
ParameterReturnsOverrides