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