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.v1p3beta1.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()
Returns
Methods
addAllResponses(Iterable<? extends AnnotateImageResponse> values)
public AnnotateFileResponse.Builder addAllResponses(Iterable<? extends AnnotateImageResponse> values)
Individual responses to images found within the file.
repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.vision.v1p3beta1.AnnotateImageResponse>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnnotateFileResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addResponses(AnnotateImageResponse value)
public AnnotateFileResponse.Builder addResponses(AnnotateImageResponse value)
Individual responses to images found within the file.
repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;
Parameter
Returns
addResponses(AnnotateImageResponse.Builder builderForValue)
public AnnotateFileResponse.Builder addResponses(AnnotateImageResponse.Builder builderForValue)
Individual responses to images found within the file.
repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;
Parameter
Returns
addResponses(int index, AnnotateImageResponse value)
public AnnotateFileResponse.Builder addResponses(int index, AnnotateImageResponse value)
Individual responses to images found within the file.
repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;
Parameters
Returns
addResponses(int index, AnnotateImageResponse.Builder builderForValue)
public AnnotateFileResponse.Builder addResponses(int index, AnnotateImageResponse.Builder builderForValue)
Individual responses to images found within the file.
repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;
Parameters
Returns
addResponsesBuilder()
public AnnotateImageResponse.Builder addResponsesBuilder()
Individual responses to images found within the file.
repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;
Returns
addResponsesBuilder(int index)
public AnnotateImageResponse.Builder addResponsesBuilder(int index)
Individual responses to images found within the file.
repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;
Parameter
Returns
build()
public AnnotateFileResponse build()
Returns
buildPartial()
public AnnotateFileResponse buildPartial()
Returns
clear()
public AnnotateFileResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public AnnotateFileResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public AnnotateFileResponse.Builder clearInputConfig()
Information about the file for which this response is generated.
.google.cloud.vision.v1p3beta1.InputConfig input_config = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public AnnotateFileResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearResponses()
public AnnotateFileResponse.Builder clearResponses()
Individual responses to images found within the file.
repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;
Returns
clone()
public AnnotateFileResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public AnnotateFileResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public InputConfig getInputConfig()
Information about the file for which this response is generated.
.google.cloud.vision.v1p3beta1.InputConfig input_config = 1;
Returns
public InputConfig.Builder getInputConfigBuilder()
Information about the file for which this response is generated.
.google.cloud.vision.v1p3beta1.InputConfig input_config = 1;
Returns
public InputConfigOrBuilder getInputConfigOrBuilder()
Information about the file for which this response is generated.
.google.cloud.vision.v1p3beta1.InputConfig input_config = 1;
Returns
getResponses(int index)
public AnnotateImageResponse getResponses(int index)
Individual responses to images found within the file.
repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;
Parameter
Returns
getResponsesBuilder(int index)
public AnnotateImageResponse.Builder getResponsesBuilder(int index)
Individual responses to images found within the file.
repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;
Parameter
Returns
getResponsesBuilderList()
public List<AnnotateImageResponse.Builder> getResponsesBuilderList()
Individual responses to images found within the file.
repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;
Returns
getResponsesCount()
public int getResponsesCount()
Individual responses to images found within the file.
repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;
Returns
getResponsesList()
public List<AnnotateImageResponse> getResponsesList()
Individual responses to images found within the file.
repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;
Returns
getResponsesOrBuilder(int index)
public AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index)
Individual responses to images found within the file.
repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;
Parameter
Returns
getResponsesOrBuilderList()
public List<? extends AnnotateImageResponseOrBuilder> getResponsesOrBuilderList()
Individual responses to images found within the file.
repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;
Returns
Type | Description |
List<? extends com.google.cloud.vision.v1p3beta1.AnnotateImageResponseOrBuilder> | |
public boolean hasInputConfig()
Information about the file for which this response is generated.
.google.cloud.vision.v1p3beta1.InputConfig input_config = 1;
Returns
Type | Description |
boolean | Whether the inputConfig field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AnnotateFileResponse other)
public AnnotateFileResponse.Builder mergeFrom(AnnotateFileResponse other)
Parameter
Returns
public AnnotateFileResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AnnotateFileResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public AnnotateFileResponse.Builder mergeInputConfig(InputConfig value)
Information about the file for which this response is generated.
.google.cloud.vision.v1p3beta1.InputConfig input_config = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnnotateFileResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeResponses(int index)
public AnnotateFileResponse.Builder removeResponses(int index)
Individual responses to images found within the file.
repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AnnotateFileResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public AnnotateFileResponse.Builder setInputConfig(InputConfig value)
Information about the file for which this response is generated.
.google.cloud.vision.v1p3beta1.InputConfig input_config = 1;
Parameter
Returns
public AnnotateFileResponse.Builder setInputConfig(InputConfig.Builder builderForValue)
Information about the file for which this response is generated.
.google.cloud.vision.v1p3beta1.InputConfig input_config = 1;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnnotateFileResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setResponses(int index, AnnotateImageResponse value)
public AnnotateFileResponse.Builder setResponses(int index, AnnotateImageResponse value)
Individual responses to images found within the file.
repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;
Parameters
Returns
setResponses(int index, AnnotateImageResponse.Builder builderForValue)
public AnnotateFileResponse.Builder setResponses(int index, AnnotateImageResponse.Builder builderForValue)
Individual responses to images found within the file.
repeated .google.cloud.vision.v1p3beta1.AnnotateImageResponse responses = 2;
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final AnnotateFileResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides