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.v1.AnnotateImageRequest
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<AnnotateImageRequest.Builder>
public AnnotateImageRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<AnnotateImageRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<AnnotateImageRequest.Builder>
public AnnotateImageRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public AnnotateImageRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public AnnotateImageRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public AnnotateImageRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<AnnotateImageRequest.Builder>
public AnnotateImageRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<AnnotateImageRequest.Builder>
public AnnotateImageRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<AnnotateImageRequest.Builder>
public AnnotateImageRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<AnnotateImageRequest.Builder>
public AnnotateImageRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<AnnotateImageRequest.Builder>
public AnnotateImageRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<AnnotateImageRequest.Builder>
public AnnotateImageRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<AnnotateImageRequest.Builder>
public AnnotateImageRequest.Builder mergeFrom(AnnotateImageRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<AnnotateImageRequest.Builder>
public AnnotateImageRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<AnnotateImageRequest.Builder>
IOException
public boolean hasImage()
The image to be processed.
.google.cloud.vision.v1.Image image = 1;
hasImage
in interface AnnotateImageRequestOrBuilder
public Image getImage()
The image to be processed.
.google.cloud.vision.v1.Image image = 1;
getImage
in interface AnnotateImageRequestOrBuilder
public AnnotateImageRequest.Builder setImage(Image value)
The image to be processed.
.google.cloud.vision.v1.Image image = 1;
public AnnotateImageRequest.Builder setImage(Image.Builder builderForValue)
The image to be processed.
.google.cloud.vision.v1.Image image = 1;
public AnnotateImageRequest.Builder mergeImage(Image value)
The image to be processed.
.google.cloud.vision.v1.Image image = 1;
public AnnotateImageRequest.Builder clearImage()
The image to be processed.
.google.cloud.vision.v1.Image image = 1;
public Image.Builder getImageBuilder()
The image to be processed.
.google.cloud.vision.v1.Image image = 1;
public ImageOrBuilder getImageOrBuilder()
The image to be processed.
.google.cloud.vision.v1.Image image = 1;
getImageOrBuilder
in interface AnnotateImageRequestOrBuilder
public List<Feature> getFeaturesList()
Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;
getFeaturesList
in interface AnnotateImageRequestOrBuilder
public int getFeaturesCount()
Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;
getFeaturesCount
in interface AnnotateImageRequestOrBuilder
public Feature getFeatures(int index)
Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;
getFeatures
in interface AnnotateImageRequestOrBuilder
public AnnotateImageRequest.Builder setFeatures(int index, Feature value)
Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;
public AnnotateImageRequest.Builder setFeatures(int index, Feature.Builder builderForValue)
Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;
public AnnotateImageRequest.Builder addFeatures(Feature value)
Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;
public AnnotateImageRequest.Builder addFeatures(int index, Feature value)
Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;
public AnnotateImageRequest.Builder addFeatures(Feature.Builder builderForValue)
Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;
public AnnotateImageRequest.Builder addFeatures(int index, Feature.Builder builderForValue)
Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;
public AnnotateImageRequest.Builder addAllFeatures(Iterable<? extends Feature> values)
Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;
public AnnotateImageRequest.Builder clearFeatures()
Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;
public AnnotateImageRequest.Builder removeFeatures(int index)
Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;
public Feature.Builder getFeaturesBuilder(int index)
Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;
public FeatureOrBuilder getFeaturesOrBuilder(int index)
Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;
getFeaturesOrBuilder
in interface AnnotateImageRequestOrBuilder
public List<? extends FeatureOrBuilder> getFeaturesOrBuilderList()
Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;
getFeaturesOrBuilderList
in interface AnnotateImageRequestOrBuilder
public Feature.Builder addFeaturesBuilder()
Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;
public Feature.Builder addFeaturesBuilder(int index)
Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;
public List<Feature.Builder> getFeaturesBuilderList()
Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;
public boolean hasImageContext()
Additional context that may accompany the image.
.google.cloud.vision.v1.ImageContext image_context = 3;
hasImageContext
in interface AnnotateImageRequestOrBuilder
public ImageContext getImageContext()
Additional context that may accompany the image.
.google.cloud.vision.v1.ImageContext image_context = 3;
getImageContext
in interface AnnotateImageRequestOrBuilder
public AnnotateImageRequest.Builder setImageContext(ImageContext value)
Additional context that may accompany the image.
.google.cloud.vision.v1.ImageContext image_context = 3;
public AnnotateImageRequest.Builder setImageContext(ImageContext.Builder builderForValue)
Additional context that may accompany the image.
.google.cloud.vision.v1.ImageContext image_context = 3;
public AnnotateImageRequest.Builder mergeImageContext(ImageContext value)
Additional context that may accompany the image.
.google.cloud.vision.v1.ImageContext image_context = 3;
public AnnotateImageRequest.Builder clearImageContext()
Additional context that may accompany the image.
.google.cloud.vision.v1.ImageContext image_context = 3;
public ImageContext.Builder getImageContextBuilder()
Additional context that may accompany the image.
.google.cloud.vision.v1.ImageContext image_context = 3;
public ImageContextOrBuilder getImageContextOrBuilder()
Additional context that may accompany the image.
.google.cloud.vision.v1.ImageContext image_context = 3;
getImageContextOrBuilder
in interface AnnotateImageRequestOrBuilder
public final AnnotateImageRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<AnnotateImageRequest.Builder>
public final AnnotateImageRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<AnnotateImageRequest.Builder>
Copyright © 2022 Google LLC. All rights reserved.