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.v1.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()
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnnotateFileResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
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;
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;
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;
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;
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;
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
|
build()
public AnnotateFileResponse build()
buildPartial()
public AnnotateFileResponse buildPartial()
clear()
public AnnotateFileResponse.Builder clear()
Overrides
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;
clearField(Descriptors.FieldDescriptor field)
public AnnotateFileResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public AnnotateFileResponse.Builder clearInputConfig()
Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public AnnotateFileResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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;
clearTotalPages()
public AnnotateFileResponse.Builder clearTotalPages()
This field gives the total number of pages in the file.
int32 total_pages = 3;
clone()
public AnnotateFileResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public AnnotateFileResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 | |
public InputConfig getInputConfig()
Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1;
public InputConfig.Builder getInputConfigBuilder()
Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1;
public InputConfigOrBuilder getInputConfigOrBuilder()
Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1;
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
|
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
|
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;
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;
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
|
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.
|
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
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
|
mergeFrom(AnnotateFileResponse other)
public AnnotateFileResponse.Builder mergeFrom(AnnotateFileResponse other)
public AnnotateFileResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AnnotateFileResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public AnnotateFileResponse.Builder mergeInputConfig(InputConfig value)
Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnnotateFileResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
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
|
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public AnnotateFileResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public AnnotateFileResponse.Builder setInputConfig(InputConfig value)
Information about the file for which this response is generated.
.google.cloud.vision.v1.InputConfig input_config = 1;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnnotateFileResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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;
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;
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 | int
The totalPages to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final AnnotateFileResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides