public static final class AnnotateImageRequest.Builder extends GeneratedMessageV3.Builder<AnnotateImageRequest.Builder> implements AnnotateImageRequestOrBuilder
Request for performing Google Cloud Vision API tasks over a user-provided
image, with user-requested features, and with context information.
Protobuf type google.cloud.vision.v1p4beta1.AnnotateImageRequest
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
addAllFeatures(Iterable<? extends Feature> values)
public AnnotateImageRequest.Builder addAllFeatures(Iterable<? extends Feature> values)
Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.vision.v1p4beta1.Feature>
|
Returns
addFeatures(Feature value)
public AnnotateImageRequest.Builder addFeatures(Feature value)
Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;
Parameter
Returns
addFeatures(Feature.Builder builderForValue)
public AnnotateImageRequest.Builder addFeatures(Feature.Builder builderForValue)
Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;
Parameter
Returns
addFeatures(int index, Feature value)
public AnnotateImageRequest.Builder addFeatures(int index, Feature value)
Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;
Parameters
Returns
addFeatures(int index, Feature.Builder builderForValue)
public AnnotateImageRequest.Builder addFeatures(int index, Feature.Builder builderForValue)
Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;
Parameters
Returns
addFeaturesBuilder()
public Feature.Builder addFeaturesBuilder()
Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;
Returns
addFeaturesBuilder(int index)
public Feature.Builder addFeaturesBuilder(int index)
Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnnotateImageRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AnnotateImageRequest build()
Returns
buildPartial()
public AnnotateImageRequest buildPartial()
Returns
clear()
public AnnotateImageRequest.Builder clear()
Returns
Overrides
clearFeatures()
public AnnotateImageRequest.Builder clearFeatures()
Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public AnnotateImageRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearImage()
public AnnotateImageRequest.Builder clearImage()
The image to be processed.
.google.cloud.vision.v1p4beta1.Image image = 1;
Returns
clearImageContext()
public AnnotateImageRequest.Builder clearImageContext()
Additional context that may accompany the image.
.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public AnnotateImageRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public AnnotateImageRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public AnnotateImageRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getFeatures(int index)
public Feature getFeatures(int index)
Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;
Parameter
Returns
getFeaturesBuilder(int index)
public Feature.Builder getFeaturesBuilder(int index)
Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;
Parameter
Returns
getFeaturesBuilderList()
public List<Feature.Builder> getFeaturesBuilderList()
Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;
Returns
getFeaturesCount()
public int getFeaturesCount()
Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;
Returns
getFeaturesList()
public List<Feature> getFeaturesList()
Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;
Returns
getFeaturesOrBuilder(int index)
public FeatureOrBuilder getFeaturesOrBuilder(int index)
Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;
Parameter
Returns
getFeaturesOrBuilderList()
public List<? extends FeatureOrBuilder> getFeaturesOrBuilderList()
Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;
Returns
Type | Description |
List<? extends com.google.cloud.vision.v1p4beta1.FeatureOrBuilder> | |
getImage()
The image to be processed.
.google.cloud.vision.v1p4beta1.Image image = 1;
Returns
Type | Description |
Image | The image.
|
getImageBuilder()
public Image.Builder getImageBuilder()
The image to be processed.
.google.cloud.vision.v1p4beta1.Image image = 1;
Returns
getImageContext()
public ImageContext getImageContext()
Additional context that may accompany the image.
.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;
Returns
getImageContextBuilder()
public ImageContext.Builder getImageContextBuilder()
Additional context that may accompany the image.
.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;
Returns
getImageContextOrBuilder()
public ImageContextOrBuilder getImageContextOrBuilder()
Additional context that may accompany the image.
.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;
Returns
getImageOrBuilder()
public ImageOrBuilder getImageOrBuilder()
The image to be processed.
.google.cloud.vision.v1p4beta1.Image image = 1;
Returns
hasImage()
public boolean hasImage()
The image to be processed.
.google.cloud.vision.v1p4beta1.Image image = 1;
Returns
Type | Description |
boolean | Whether the image field is set.
|
hasImageContext()
public boolean hasImageContext()
Additional context that may accompany the image.
.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;
Returns
Type | Description |
boolean | Whether the imageContext field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AnnotateImageRequest other)
public AnnotateImageRequest.Builder mergeFrom(AnnotateImageRequest other)
Parameter
Returns
public AnnotateImageRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AnnotateImageRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeImage(Image value)
public AnnotateImageRequest.Builder mergeImage(Image value)
The image to be processed.
.google.cloud.vision.v1p4beta1.Image image = 1;
Parameter
Name | Description |
value | Image
|
Returns
mergeImageContext(ImageContext value)
public AnnotateImageRequest.Builder mergeImageContext(ImageContext value)
Additional context that may accompany the image.
.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnnotateImageRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeFeatures(int index)
public AnnotateImageRequest.Builder removeFeatures(int index)
Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;
Parameter
Returns
setFeatures(int index, Feature value)
public AnnotateImageRequest.Builder setFeatures(int index, Feature value)
Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;
Parameters
Returns
setFeatures(int index, Feature.Builder builderForValue)
public AnnotateImageRequest.Builder setFeatures(int index, Feature.Builder builderForValue)
Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;
Parameters
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AnnotateImageRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setImage(Image value)
public AnnotateImageRequest.Builder setImage(Image value)
The image to be processed.
.google.cloud.vision.v1p4beta1.Image image = 1;
Parameter
Name | Description |
value | Image
|
Returns
setImage(Image.Builder builderForValue)
public AnnotateImageRequest.Builder setImage(Image.Builder builderForValue)
The image to be processed.
.google.cloud.vision.v1p4beta1.Image image = 1;
Parameter
Returns
setImageContext(ImageContext value)
public AnnotateImageRequest.Builder setImageContext(ImageContext value)
Additional context that may accompany the image.
.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;
Parameter
Returns
setImageContext(ImageContext.Builder builderForValue)
public AnnotateImageRequest.Builder setImageContext(ImageContext.Builder builderForValue)
Additional context that may accompany the image.
.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnnotateImageRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AnnotateImageRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides