public final class AnnotateImageResponse extends GeneratedMessageV3 implements AnnotateImageResponseOrBuilder
Response to an image annotation request.Protobuf type
google.cloud.vision.v1p4beta1.AnnotateImageResponse
Modifier and Type | Class and Description |
---|---|
static class |
AnnotateImageResponse.Builder
Response to an image annotation request.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
CONTEXT_FIELD_NUMBER |
static int |
CROP_HINTS_ANNOTATION_FIELD_NUMBER |
static int |
ERROR_FIELD_NUMBER |
static int |
FACE_ANNOTATIONS_FIELD_NUMBER |
static int |
FULL_TEXT_ANNOTATION_FIELD_NUMBER |
static int |
IMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER |
static int |
LABEL_ANNOTATIONS_FIELD_NUMBER |
static int |
LANDMARK_ANNOTATIONS_FIELD_NUMBER |
static int |
LOCALIZED_OBJECT_ANNOTATIONS_FIELD_NUMBER |
static int |
LOGO_ANNOTATIONS_FIELD_NUMBER |
static int |
PRODUCT_SEARCH_RESULTS_FIELD_NUMBER |
static int |
SAFE_SEARCH_ANNOTATION_FIELD_NUMBER |
static int |
TEXT_ANNOTATIONS_FIELD_NUMBER |
static int |
WEB_DETECTION_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ImageAnnotationContext |
getContext()
If present, contextual information is needed to understand where this image
comes from.
|
ImageAnnotationContextOrBuilder |
getContextOrBuilder()
If present, contextual information is needed to understand where this image
comes from.
|
CropHintsAnnotation |
getCropHintsAnnotation()
If present, crop hints have completed successfully.
|
CropHintsAnnotationOrBuilder |
getCropHintsAnnotationOrBuilder()
If present, crop hints have completed successfully.
|
static AnnotateImageResponse |
getDefaultInstance() |
AnnotateImageResponse |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
com.google.rpc.Status |
getError()
If set, represents the error message for the operation.
|
com.google.rpc.StatusOrBuilder |
getErrorOrBuilder()
If set, represents the error message for the operation.
|
FaceAnnotation |
getFaceAnnotations(int index)
If present, face detection has completed successfully.
|
int |
getFaceAnnotationsCount()
If present, face detection has completed successfully.
|
List<FaceAnnotation> |
getFaceAnnotationsList()
If present, face detection has completed successfully.
|
FaceAnnotationOrBuilder |
getFaceAnnotationsOrBuilder(int index)
If present, face detection has completed successfully.
|
List<? extends FaceAnnotationOrBuilder> |
getFaceAnnotationsOrBuilderList()
If present, face detection has completed successfully.
|
TextAnnotation |
getFullTextAnnotation()
If present, text (OCR) detection or document (OCR) text detection has
completed successfully.
|
TextAnnotationOrBuilder |
getFullTextAnnotationOrBuilder()
If present, text (OCR) detection or document (OCR) text detection has
completed successfully.
|
ImageProperties |
getImagePropertiesAnnotation()
If present, image properties were extracted successfully.
|
ImagePropertiesOrBuilder |
getImagePropertiesAnnotationOrBuilder()
If present, image properties were extracted successfully.
|
EntityAnnotation |
getLabelAnnotations(int index)
If present, label detection has completed successfully.
|
int |
getLabelAnnotationsCount()
If present, label detection has completed successfully.
|
List<EntityAnnotation> |
getLabelAnnotationsList()
If present, label detection has completed successfully.
|
EntityAnnotationOrBuilder |
getLabelAnnotationsOrBuilder(int index)
If present, label detection has completed successfully.
|
List<? extends EntityAnnotationOrBuilder> |
getLabelAnnotationsOrBuilderList()
If present, label detection has completed successfully.
|
EntityAnnotation |
getLandmarkAnnotations(int index)
If present, landmark detection has completed successfully.
|
int |
getLandmarkAnnotationsCount()
If present, landmark detection has completed successfully.
|
List<EntityAnnotation> |
getLandmarkAnnotationsList()
If present, landmark detection has completed successfully.
|
EntityAnnotationOrBuilder |
getLandmarkAnnotationsOrBuilder(int index)
If present, landmark detection has completed successfully.
|
List<? extends EntityAnnotationOrBuilder> |
getLandmarkAnnotationsOrBuilderList()
If present, landmark detection has completed successfully.
|
LocalizedObjectAnnotation |
getLocalizedObjectAnnotations(int index)
If present, localized object detection has completed successfully.
|
int |
getLocalizedObjectAnnotationsCount()
If present, localized object detection has completed successfully.
|
List<LocalizedObjectAnnotation> |
getLocalizedObjectAnnotationsList()
If present, localized object detection has completed successfully.
|
LocalizedObjectAnnotationOrBuilder |
getLocalizedObjectAnnotationsOrBuilder(int index)
If present, localized object detection has completed successfully.
|
List<? extends LocalizedObjectAnnotationOrBuilder> |
getLocalizedObjectAnnotationsOrBuilderList()
If present, localized object detection has completed successfully.
|
EntityAnnotation |
getLogoAnnotations(int index)
If present, logo detection has completed successfully.
|
int |
getLogoAnnotationsCount()
If present, logo detection has completed successfully.
|
List<EntityAnnotation> |
getLogoAnnotationsList()
If present, logo detection has completed successfully.
|
EntityAnnotationOrBuilder |
getLogoAnnotationsOrBuilder(int index)
If present, logo detection has completed successfully.
|
List<? extends EntityAnnotationOrBuilder> |
getLogoAnnotationsOrBuilderList()
If present, logo detection has completed successfully.
|
Parser<AnnotateImageResponse> |
getParserForType() |
ProductSearchResults |
getProductSearchResults()
If present, product search has completed successfully.
|
ProductSearchResultsOrBuilder |
getProductSearchResultsOrBuilder()
If present, product search has completed successfully.
|
SafeSearchAnnotation |
getSafeSearchAnnotation()
If present, safe-search annotation has completed successfully.
|
SafeSearchAnnotationOrBuilder |
getSafeSearchAnnotationOrBuilder()
If present, safe-search annotation has completed successfully.
|
int |
getSerializedSize() |
EntityAnnotation |
getTextAnnotations(int index)
If present, text (OCR) detection has completed successfully.
|
int |
getTextAnnotationsCount()
If present, text (OCR) detection has completed successfully.
|
List<EntityAnnotation> |
getTextAnnotationsList()
If present, text (OCR) detection has completed successfully.
|
EntityAnnotationOrBuilder |
getTextAnnotationsOrBuilder(int index)
If present, text (OCR) detection has completed successfully.
|
List<? extends EntityAnnotationOrBuilder> |
getTextAnnotationsOrBuilderList()
If present, text (OCR) detection has completed successfully.
|
UnknownFieldSet |
getUnknownFields() |
WebDetection |
getWebDetection()
If present, web detection has completed successfully.
|
WebDetectionOrBuilder |
getWebDetectionOrBuilder()
If present, web detection has completed successfully.
|
boolean |
hasContext()
If present, contextual information is needed to understand where this image
comes from.
|
boolean |
hasCropHintsAnnotation()
If present, crop hints have completed successfully.
|
boolean |
hasError()
If set, represents the error message for the operation.
|
boolean |
hasFullTextAnnotation()
If present, text (OCR) detection or document (OCR) text detection has
completed successfully.
|
int |
hashCode() |
boolean |
hasImagePropertiesAnnotation()
If present, image properties were extracted successfully.
|
boolean |
hasProductSearchResults()
If present, product search has completed successfully.
|
boolean |
hasSafeSearchAnnotation()
If present, safe-search annotation has completed successfully.
|
boolean |
hasWebDetection()
If present, web detection has completed successfully.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AnnotateImageResponse.Builder |
newBuilder() |
static AnnotateImageResponse.Builder |
newBuilder(AnnotateImageResponse prototype) |
AnnotateImageResponse.Builder |
newBuilderForType() |
protected AnnotateImageResponse.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static AnnotateImageResponse |
parseDelimitedFrom(InputStream input) |
static AnnotateImageResponse |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static AnnotateImageResponse |
parseFrom(byte[] data) |
static AnnotateImageResponse |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static AnnotateImageResponse |
parseFrom(ByteBuffer data) |
static AnnotateImageResponse |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static AnnotateImageResponse |
parseFrom(ByteString data) |
static AnnotateImageResponse |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static AnnotateImageResponse |
parseFrom(CodedInputStream input) |
static AnnotateImageResponse |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static AnnotateImageResponse |
parseFrom(InputStream input) |
static AnnotateImageResponse |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<AnnotateImageResponse> |
parser() |
AnnotateImageResponse.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int FACE_ANNOTATIONS_FIELD_NUMBER
public static final int LANDMARK_ANNOTATIONS_FIELD_NUMBER
public static final int LOGO_ANNOTATIONS_FIELD_NUMBER
public static final int LABEL_ANNOTATIONS_FIELD_NUMBER
public static final int LOCALIZED_OBJECT_ANNOTATIONS_FIELD_NUMBER
public static final int TEXT_ANNOTATIONS_FIELD_NUMBER
public static final int FULL_TEXT_ANNOTATION_FIELD_NUMBER
public static final int SAFE_SEARCH_ANNOTATION_FIELD_NUMBER
public static final int IMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER
public static final int CROP_HINTS_ANNOTATION_FIELD_NUMBER
public static final int WEB_DETECTION_FIELD_NUMBER
public static final int PRODUCT_SEARCH_RESULTS_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
public static final int CONTEXT_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public List<FaceAnnotation> getFaceAnnotationsList()
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1;
getFaceAnnotationsList
in interface AnnotateImageResponseOrBuilder
public List<? extends FaceAnnotationOrBuilder> getFaceAnnotationsOrBuilderList()
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1;
getFaceAnnotationsOrBuilderList
in interface AnnotateImageResponseOrBuilder
public int getFaceAnnotationsCount()
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1;
getFaceAnnotationsCount
in interface AnnotateImageResponseOrBuilder
public FaceAnnotation getFaceAnnotations(int index)
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1;
getFaceAnnotations
in interface AnnotateImageResponseOrBuilder
public FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index)
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1;
getFaceAnnotationsOrBuilder
in interface AnnotateImageResponseOrBuilder
public List<EntityAnnotation> getLandmarkAnnotationsList()
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2;
getLandmarkAnnotationsList
in interface AnnotateImageResponseOrBuilder
public List<? extends EntityAnnotationOrBuilder> getLandmarkAnnotationsOrBuilderList()
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2;
getLandmarkAnnotationsOrBuilderList
in interface AnnotateImageResponseOrBuilder
public int getLandmarkAnnotationsCount()
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2;
getLandmarkAnnotationsCount
in interface AnnotateImageResponseOrBuilder
public EntityAnnotation getLandmarkAnnotations(int index)
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2;
getLandmarkAnnotations
in interface AnnotateImageResponseOrBuilder
public EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder(int index)
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2;
getLandmarkAnnotationsOrBuilder
in interface AnnotateImageResponseOrBuilder
public List<EntityAnnotation> getLogoAnnotationsList()
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3;
getLogoAnnotationsList
in interface AnnotateImageResponseOrBuilder
public List<? extends EntityAnnotationOrBuilder> getLogoAnnotationsOrBuilderList()
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3;
getLogoAnnotationsOrBuilderList
in interface AnnotateImageResponseOrBuilder
public int getLogoAnnotationsCount()
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3;
getLogoAnnotationsCount
in interface AnnotateImageResponseOrBuilder
public EntityAnnotation getLogoAnnotations(int index)
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3;
getLogoAnnotations
in interface AnnotateImageResponseOrBuilder
public EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder(int index)
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3;
getLogoAnnotationsOrBuilder
in interface AnnotateImageResponseOrBuilder
public List<EntityAnnotation> getLabelAnnotationsList()
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4;
getLabelAnnotationsList
in interface AnnotateImageResponseOrBuilder
public List<? extends EntityAnnotationOrBuilder> getLabelAnnotationsOrBuilderList()
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4;
getLabelAnnotationsOrBuilderList
in interface AnnotateImageResponseOrBuilder
public int getLabelAnnotationsCount()
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4;
getLabelAnnotationsCount
in interface AnnotateImageResponseOrBuilder
public EntityAnnotation getLabelAnnotations(int index)
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4;
getLabelAnnotations
in interface AnnotateImageResponseOrBuilder
public EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder(int index)
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4;
getLabelAnnotationsOrBuilder
in interface AnnotateImageResponseOrBuilder
public List<LocalizedObjectAnnotation> getLocalizedObjectAnnotationsList()
If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22;
getLocalizedObjectAnnotationsList
in interface AnnotateImageResponseOrBuilder
public List<? extends LocalizedObjectAnnotationOrBuilder> getLocalizedObjectAnnotationsOrBuilderList()
If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22;
getLocalizedObjectAnnotationsOrBuilderList
in interface AnnotateImageResponseOrBuilder
public int getLocalizedObjectAnnotationsCount()
If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22;
getLocalizedObjectAnnotationsCount
in interface AnnotateImageResponseOrBuilder
public LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index)
If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22;
getLocalizedObjectAnnotations
in interface AnnotateImageResponseOrBuilder
public LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder(int index)
If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22;
getLocalizedObjectAnnotationsOrBuilder
in interface AnnotateImageResponseOrBuilder
public List<EntityAnnotation> getTextAnnotationsList()
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;
getTextAnnotationsList
in interface AnnotateImageResponseOrBuilder
public List<? extends EntityAnnotationOrBuilder> getTextAnnotationsOrBuilderList()
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;
getTextAnnotationsOrBuilderList
in interface AnnotateImageResponseOrBuilder
public int getTextAnnotationsCount()
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;
getTextAnnotationsCount
in interface AnnotateImageResponseOrBuilder
public EntityAnnotation getTextAnnotations(int index)
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;
getTextAnnotations
in interface AnnotateImageResponseOrBuilder
public EntityAnnotationOrBuilder getTextAnnotationsOrBuilder(int index)
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;
getTextAnnotationsOrBuilder
in interface AnnotateImageResponseOrBuilder
public boolean hasFullTextAnnotation()
If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.
.google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;
hasFullTextAnnotation
in interface AnnotateImageResponseOrBuilder
public TextAnnotation getFullTextAnnotation()
If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.
.google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;
getFullTextAnnotation
in interface AnnotateImageResponseOrBuilder
public TextAnnotationOrBuilder getFullTextAnnotationOrBuilder()
If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.
.google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;
getFullTextAnnotationOrBuilder
in interface AnnotateImageResponseOrBuilder
public boolean hasSafeSearchAnnotation()
If present, safe-search annotation has completed successfully.
.google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6;
hasSafeSearchAnnotation
in interface AnnotateImageResponseOrBuilder
public SafeSearchAnnotation getSafeSearchAnnotation()
If present, safe-search annotation has completed successfully.
.google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6;
getSafeSearchAnnotation
in interface AnnotateImageResponseOrBuilder
public SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder()
If present, safe-search annotation has completed successfully.
.google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6;
getSafeSearchAnnotationOrBuilder
in interface AnnotateImageResponseOrBuilder
public boolean hasImagePropertiesAnnotation()
If present, image properties were extracted successfully.
.google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8;
hasImagePropertiesAnnotation
in interface AnnotateImageResponseOrBuilder
public ImageProperties getImagePropertiesAnnotation()
If present, image properties were extracted successfully.
.google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8;
getImagePropertiesAnnotation
in interface AnnotateImageResponseOrBuilder
public ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder()
If present, image properties were extracted successfully.
.google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8;
getImagePropertiesAnnotationOrBuilder
in interface AnnotateImageResponseOrBuilder
public boolean hasCropHintsAnnotation()
If present, crop hints have completed successfully.
.google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11;
hasCropHintsAnnotation
in interface AnnotateImageResponseOrBuilder
public CropHintsAnnotation getCropHintsAnnotation()
If present, crop hints have completed successfully.
.google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11;
getCropHintsAnnotation
in interface AnnotateImageResponseOrBuilder
public CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder()
If present, crop hints have completed successfully.
.google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11;
getCropHintsAnnotationOrBuilder
in interface AnnotateImageResponseOrBuilder
public boolean hasWebDetection()
If present, web detection has completed successfully.
.google.cloud.vision.v1p4beta1.WebDetection web_detection = 13;
hasWebDetection
in interface AnnotateImageResponseOrBuilder
public WebDetection getWebDetection()
If present, web detection has completed successfully.
.google.cloud.vision.v1p4beta1.WebDetection web_detection = 13;
getWebDetection
in interface AnnotateImageResponseOrBuilder
public WebDetectionOrBuilder getWebDetectionOrBuilder()
If present, web detection has completed successfully.
.google.cloud.vision.v1p4beta1.WebDetection web_detection = 13;
getWebDetectionOrBuilder
in interface AnnotateImageResponseOrBuilder
public boolean hasProductSearchResults()
If present, product search has completed successfully.
.google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14;
hasProductSearchResults
in interface AnnotateImageResponseOrBuilder
public ProductSearchResults getProductSearchResults()
If present, product search has completed successfully.
.google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14;
getProductSearchResults
in interface AnnotateImageResponseOrBuilder
public ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder()
If present, product search has completed successfully.
.google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14;
getProductSearchResultsOrBuilder
in interface AnnotateImageResponseOrBuilder
public boolean hasError()
If set, represents the error message for the operation. Note that filled-in image annotations are guaranteed to be correct, even when `error` is set.
.google.rpc.Status error = 9;
hasError
in interface AnnotateImageResponseOrBuilder
public com.google.rpc.Status getError()
If set, represents the error message for the operation. Note that filled-in image annotations are guaranteed to be correct, even when `error` is set.
.google.rpc.Status error = 9;
getError
in interface AnnotateImageResponseOrBuilder
public com.google.rpc.StatusOrBuilder getErrorOrBuilder()
If set, represents the error message for the operation. Note that filled-in image annotations are guaranteed to be correct, even when `error` is set.
.google.rpc.Status error = 9;
getErrorOrBuilder
in interface AnnotateImageResponseOrBuilder
public boolean hasContext()
If present, contextual information is needed to understand where this image comes from.
.google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21;
hasContext
in interface AnnotateImageResponseOrBuilder
public ImageAnnotationContext getContext()
If present, contextual information is needed to understand where this image comes from.
.google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21;
getContext
in interface AnnotateImageResponseOrBuilder
public ImageAnnotationContextOrBuilder getContextOrBuilder()
If present, contextual information is needed to understand where this image comes from.
.google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21;
getContextOrBuilder
in interface AnnotateImageResponseOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static AnnotateImageResponse parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnnotateImageResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnnotateImageResponse parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnnotateImageResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnnotateImageResponse parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnnotateImageResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnnotateImageResponse parseFrom(InputStream input) throws IOException
IOException
public static AnnotateImageResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AnnotateImageResponse parseDelimitedFrom(InputStream input) throws IOException
IOException
public static AnnotateImageResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AnnotateImageResponse parseFrom(CodedInputStream input) throws IOException
IOException
public static AnnotateImageResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public AnnotateImageResponse.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static AnnotateImageResponse.Builder newBuilder()
public static AnnotateImageResponse.Builder newBuilder(AnnotateImageResponse prototype)
public AnnotateImageResponse.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected AnnotateImageResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static AnnotateImageResponse getDefaultInstance()
public static Parser<AnnotateImageResponse> parser()
public Parser<AnnotateImageResponse> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public AnnotateImageResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.