- 3.81.0 (latest)
- 3.80.0
- 3.78.0
- 3.76.0
- 3.74.0
- 3.73.0
- 3.72.0
- 3.71.0
- 3.70.0
- 3.68.0
- 3.66.0
- 3.65.0
- 3.62.0
- 3.61.0
- 3.60.0
- 3.58.0
- 3.57.0
- 3.56.0
- 3.55.0
- 3.54.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.3
- 2.1.4
- 2.0.29
public static final class AnnotateFileResponse.Builder extends GeneratedMessage.Builder<AnnotateFileResponse.Builder> implements AnnotateFileResponseOrBuilderResponse 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AnnotateFileResponse.BuilderImplements
AnnotateFileResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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.v1.AnnotateImageResponse responses = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.vision.v1.AnnotateImageResponse> |
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
addResponses(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.v1.AnnotateImageResponse responses = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
AnnotateImageResponse |
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
addResponses(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.v1.AnnotateImageResponse responses = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AnnotateImageResponse.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
addResponses(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.v1.AnnotateImageResponse responses = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AnnotateImageResponse |
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
addResponses(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.v1.AnnotateImageResponse responses = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AnnotateImageResponse.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
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.v1.AnnotateImageResponse responses = 2;
| Returns | |
|---|---|
| Type | Description |
AnnotateImageResponse.Builder |
|
addResponsesBuilder(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.v1.AnnotateImageResponse responses = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AnnotateImageResponse.Builder |
|
build()
public AnnotateFileResponse build()| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse |
|
buildPartial()
public AnnotateFileResponse buildPartial()| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse |
|
clear()
public AnnotateFileResponse.Builder clear()| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
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;
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
clearInputConfig()
public AnnotateFileResponse.Builder clearInputConfig()Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1;
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
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.v1.AnnotateImageResponse responses = 2;
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
clearTotalPages()
public AnnotateFileResponse.Builder clearTotalPages()This field gives the total number of pages in the file.
int32 total_pages = 3;
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public AnnotateFileResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getError()
public 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 | |
|---|---|
| Type | 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;
| Returns | |
|---|---|
| Type | 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;
| Returns | |
|---|---|
| Type | Description |
com.google.rpc.StatusOrBuilder |
|
getInputConfig()
public InputConfig getInputConfig()Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1;
| Returns | |
|---|---|
| Type | Description |
InputConfig |
The inputConfig. |
getInputConfigBuilder()
public InputConfig.Builder getInputConfigBuilder()Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1;
| Returns | |
|---|---|
| Type | Description |
InputConfig.Builder |
|
getInputConfigOrBuilder()
public InputConfigOrBuilder getInputConfigOrBuilder()Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1;
| Returns | |
|---|---|
| Type | Description |
InputConfigOrBuilder |
|
getResponses(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.v1.AnnotateImageResponse responses = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AnnotateImageResponse |
|
getResponsesBuilder(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.v1.AnnotateImageResponse responses = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AnnotateImageResponse.Builder |
|
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.v1.AnnotateImageResponse responses = 2;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
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;
| Returns | |
|---|---|
| Type | Description |
int |
|
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.v1.AnnotateImageResponse responses = 2;
| Returns | |
|---|---|
| Type | Description |
List<AnnotateImageResponse> |
|
getResponsesOrBuilder(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.v1.AnnotateImageResponse responses = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AnnotateImageResponseOrBuilder |
|
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.v1.AnnotateImageResponse responses = 2;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.vision.v1.AnnotateImageResponseOrBuilder> |
|
getTotalPages()
public int getTotalPages()This field gives the total number of pages in the file.
int32 total_pages = 3;
| Returns | |
|---|---|
| Type | 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;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the error field is set. |
hasInputConfig()
public boolean hasInputConfig()Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the inputConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeError(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;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.rpc.Status |
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
mergeFrom(AnnotateFileResponse other)
public AnnotateFileResponse.Builder mergeFrom(AnnotateFileResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
AnnotateFileResponse |
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AnnotateFileResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AnnotateFileResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
mergeInputConfig(InputConfig value)
public AnnotateFileResponse.Builder mergeInputConfig(InputConfig value)Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
InputConfig |
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
removeResponses(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.v1.AnnotateImageResponse responses = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
setError(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;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.rpc.Status |
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
setError(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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.rpc.Status.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
setInputConfig(InputConfig value)
public AnnotateFileResponse.Builder setInputConfig(InputConfig value)Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
InputConfig |
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
setInputConfig(InputConfig.Builder builderForValue)
public AnnotateFileResponse.Builder setInputConfig(InputConfig.Builder builderForValue)Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
InputConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
setResponses(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.v1.AnnotateImageResponse responses = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AnnotateImageResponse |
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
setResponses(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.v1.AnnotateImageResponse responses = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AnnotateImageResponse.Builder |
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
|
setTotalPages(int value)
public AnnotateFileResponse.Builder setTotalPages(int value)This field gives the total number of pages in the file.
int32 total_pages = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe totalPages to set. |
| Returns | |
|---|---|
| Type | Description |
AnnotateFileResponse.Builder |
This builder for chaining. |