Class AnnotateImageResponse
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.vision.v1p2beta1.AnnotateImageResponse
-
- All Implemented Interfaces:
AnnotateImageResponseOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class AnnotateImageResponse extends com.google.protobuf.GeneratedMessageV3 implements AnnotateImageResponseOrBuilder
Response to an image annotation request.
Protobuf typegoogle.cloud.vision.v1p2beta1.AnnotateImageResponse
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnnotateImageResponse.Builder
Response to an image annotation request.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field 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
LOGO_ANNOTATIONS_FIELD_NUMBER
static int
SAFE_SEARCH_ANNOTATION_FIELD_NUMBER
static int
TEXT_ANNOTATIONS_FIELD_NUMBER
static int
WEB_DETECTION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 com.google.protobuf.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.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.com.google.protobuf.Parser<AnnotateImageResponse>
getParserForType()
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.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
hasSafeSearchAnnotation()
If present, safe-search annotation has completed successfully.boolean
hasWebDetection()
If present, web detection has completed successfully.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static AnnotateImageResponse.Builder
newBuilder()
static AnnotateImageResponse.Builder
newBuilder(AnnotateImageResponse prototype)
AnnotateImageResponse.Builder
newBuilderForType()
protected AnnotateImageResponse.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static AnnotateImageResponse
parseDelimitedFrom(InputStream input)
static AnnotateImageResponse
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnnotateImageResponse
parseFrom(byte[] data)
static AnnotateImageResponse
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnnotateImageResponse
parseFrom(com.google.protobuf.ByteString data)
static AnnotateImageResponse
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnnotateImageResponse
parseFrom(com.google.protobuf.CodedInputStream input)
static AnnotateImageResponse
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnnotateImageResponse
parseFrom(InputStream input)
static AnnotateImageResponse
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AnnotateImageResponse
parseFrom(ByteBuffer data)
static AnnotateImageResponse
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<AnnotateImageResponse>
parser()
AnnotateImageResponse.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
FACE_ANNOTATIONS_FIELD_NUMBER
public static final int FACE_ANNOTATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LANDMARK_ANNOTATIONS_FIELD_NUMBER
public static final int LANDMARK_ANNOTATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOGO_ANNOTATIONS_FIELD_NUMBER
public static final int LOGO_ANNOTATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABEL_ANNOTATIONS_FIELD_NUMBER
public static final int LABEL_ANNOTATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEXT_ANNOTATIONS_FIELD_NUMBER
public static final int TEXT_ANNOTATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FULL_TEXT_ANNOTATION_FIELD_NUMBER
public static final int FULL_TEXT_ANNOTATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SAFE_SEARCH_ANNOTATION_FIELD_NUMBER
public static final int SAFE_SEARCH_ANNOTATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER
public static final int IMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CROP_HINTS_ANNOTATION_FIELD_NUMBER
public static final int CROP_HINTS_ANNOTATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WEB_DETECTION_FIELD_NUMBER
public static final int WEB_DETECTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTEXT_FIELD_NUMBER
public static final int CONTEXT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getFaceAnnotationsList
public List<FaceAnnotation> getFaceAnnotationsList()
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1;
- Specified by:
getFaceAnnotationsList
in interfaceAnnotateImageResponseOrBuilder
-
getFaceAnnotationsOrBuilderList
public List<? extends FaceAnnotationOrBuilder> getFaceAnnotationsOrBuilderList()
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1;
- Specified by:
getFaceAnnotationsOrBuilderList
in interfaceAnnotateImageResponseOrBuilder
-
getFaceAnnotationsCount
public int getFaceAnnotationsCount()
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1;
- Specified by:
getFaceAnnotationsCount
in interfaceAnnotateImageResponseOrBuilder
-
getFaceAnnotations
public FaceAnnotation getFaceAnnotations(int index)
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1;
- Specified by:
getFaceAnnotations
in interfaceAnnotateImageResponseOrBuilder
-
getFaceAnnotationsOrBuilder
public FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index)
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.FaceAnnotation face_annotations = 1;
- Specified by:
getFaceAnnotationsOrBuilder
in interfaceAnnotateImageResponseOrBuilder
-
getLandmarkAnnotationsList
public List<EntityAnnotation> getLandmarkAnnotationsList()
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2;
- Specified by:
getLandmarkAnnotationsList
in interfaceAnnotateImageResponseOrBuilder
-
getLandmarkAnnotationsOrBuilderList
public List<? extends EntityAnnotationOrBuilder> getLandmarkAnnotationsOrBuilderList()
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2;
- Specified by:
getLandmarkAnnotationsOrBuilderList
in interfaceAnnotateImageResponseOrBuilder
-
getLandmarkAnnotationsCount
public int getLandmarkAnnotationsCount()
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2;
- Specified by:
getLandmarkAnnotationsCount
in interfaceAnnotateImageResponseOrBuilder
-
getLandmarkAnnotations
public EntityAnnotation getLandmarkAnnotations(int index)
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2;
- Specified by:
getLandmarkAnnotations
in interfaceAnnotateImageResponseOrBuilder
-
getLandmarkAnnotationsOrBuilder
public EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder(int index)
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation landmark_annotations = 2;
- Specified by:
getLandmarkAnnotationsOrBuilder
in interfaceAnnotateImageResponseOrBuilder
-
getLogoAnnotationsList
public List<EntityAnnotation> getLogoAnnotationsList()
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3;
- Specified by:
getLogoAnnotationsList
in interfaceAnnotateImageResponseOrBuilder
-
getLogoAnnotationsOrBuilderList
public List<? extends EntityAnnotationOrBuilder> getLogoAnnotationsOrBuilderList()
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3;
- Specified by:
getLogoAnnotationsOrBuilderList
in interfaceAnnotateImageResponseOrBuilder
-
getLogoAnnotationsCount
public int getLogoAnnotationsCount()
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3;
- Specified by:
getLogoAnnotationsCount
in interfaceAnnotateImageResponseOrBuilder
-
getLogoAnnotations
public EntityAnnotation getLogoAnnotations(int index)
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3;
- Specified by:
getLogoAnnotations
in interfaceAnnotateImageResponseOrBuilder
-
getLogoAnnotationsOrBuilder
public EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder(int index)
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation logo_annotations = 3;
- Specified by:
getLogoAnnotationsOrBuilder
in interfaceAnnotateImageResponseOrBuilder
-
getLabelAnnotationsList
public List<EntityAnnotation> getLabelAnnotationsList()
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4;
- Specified by:
getLabelAnnotationsList
in interfaceAnnotateImageResponseOrBuilder
-
getLabelAnnotationsOrBuilderList
public List<? extends EntityAnnotationOrBuilder> getLabelAnnotationsOrBuilderList()
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4;
- Specified by:
getLabelAnnotationsOrBuilderList
in interfaceAnnotateImageResponseOrBuilder
-
getLabelAnnotationsCount
public int getLabelAnnotationsCount()
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4;
- Specified by:
getLabelAnnotationsCount
in interfaceAnnotateImageResponseOrBuilder
-
getLabelAnnotations
public EntityAnnotation getLabelAnnotations(int index)
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4;
- Specified by:
getLabelAnnotations
in interfaceAnnotateImageResponseOrBuilder
-
getLabelAnnotationsOrBuilder
public EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder(int index)
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation label_annotations = 4;
- Specified by:
getLabelAnnotationsOrBuilder
in interfaceAnnotateImageResponseOrBuilder
-
getTextAnnotationsList
public List<EntityAnnotation> getTextAnnotationsList()
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5;
- Specified by:
getTextAnnotationsList
in interfaceAnnotateImageResponseOrBuilder
-
getTextAnnotationsOrBuilderList
public List<? extends EntityAnnotationOrBuilder> getTextAnnotationsOrBuilderList()
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5;
- Specified by:
getTextAnnotationsOrBuilderList
in interfaceAnnotateImageResponseOrBuilder
-
getTextAnnotationsCount
public int getTextAnnotationsCount()
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5;
- Specified by:
getTextAnnotationsCount
in interfaceAnnotateImageResponseOrBuilder
-
getTextAnnotations
public EntityAnnotation getTextAnnotations(int index)
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5;
- Specified by:
getTextAnnotations
in interfaceAnnotateImageResponseOrBuilder
-
getTextAnnotationsOrBuilder
public EntityAnnotationOrBuilder getTextAnnotationsOrBuilder(int index)
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1p2beta1.EntityAnnotation text_annotations = 5;
- Specified by:
getTextAnnotationsOrBuilder
in interfaceAnnotateImageResponseOrBuilder
-
hasFullTextAnnotation
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.v1p2beta1.TextAnnotation full_text_annotation = 12;
- Specified by:
hasFullTextAnnotation
in interfaceAnnotateImageResponseOrBuilder
- Returns:
- Whether the fullTextAnnotation field is set.
-
getFullTextAnnotation
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.v1p2beta1.TextAnnotation full_text_annotation = 12;
- Specified by:
getFullTextAnnotation
in interfaceAnnotateImageResponseOrBuilder
- Returns:
- The fullTextAnnotation.
-
getFullTextAnnotationOrBuilder
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.v1p2beta1.TextAnnotation full_text_annotation = 12;
- Specified by:
getFullTextAnnotationOrBuilder
in interfaceAnnotateImageResponseOrBuilder
-
hasSafeSearchAnnotation
public boolean hasSafeSearchAnnotation()
If present, safe-search annotation has completed successfully.
.google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6;
- Specified by:
hasSafeSearchAnnotation
in interfaceAnnotateImageResponseOrBuilder
- Returns:
- Whether the safeSearchAnnotation field is set.
-
getSafeSearchAnnotation
public SafeSearchAnnotation getSafeSearchAnnotation()
If present, safe-search annotation has completed successfully.
.google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6;
- Specified by:
getSafeSearchAnnotation
in interfaceAnnotateImageResponseOrBuilder
- Returns:
- The safeSearchAnnotation.
-
getSafeSearchAnnotationOrBuilder
public SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder()
If present, safe-search annotation has completed successfully.
.google.cloud.vision.v1p2beta1.SafeSearchAnnotation safe_search_annotation = 6;
- Specified by:
getSafeSearchAnnotationOrBuilder
in interfaceAnnotateImageResponseOrBuilder
-
hasImagePropertiesAnnotation
public boolean hasImagePropertiesAnnotation()
If present, image properties were extracted successfully.
.google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8;
- Specified by:
hasImagePropertiesAnnotation
in interfaceAnnotateImageResponseOrBuilder
- Returns:
- Whether the imagePropertiesAnnotation field is set.
-
getImagePropertiesAnnotation
public ImageProperties getImagePropertiesAnnotation()
If present, image properties were extracted successfully.
.google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8;
- Specified by:
getImagePropertiesAnnotation
in interfaceAnnotateImageResponseOrBuilder
- Returns:
- The imagePropertiesAnnotation.
-
getImagePropertiesAnnotationOrBuilder
public ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder()
If present, image properties were extracted successfully.
.google.cloud.vision.v1p2beta1.ImageProperties image_properties_annotation = 8;
- Specified by:
getImagePropertiesAnnotationOrBuilder
in interfaceAnnotateImageResponseOrBuilder
-
hasCropHintsAnnotation
public boolean hasCropHintsAnnotation()
If present, crop hints have completed successfully.
.google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11;
- Specified by:
hasCropHintsAnnotation
in interfaceAnnotateImageResponseOrBuilder
- Returns:
- Whether the cropHintsAnnotation field is set.
-
getCropHintsAnnotation
public CropHintsAnnotation getCropHintsAnnotation()
If present, crop hints have completed successfully.
.google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11;
- Specified by:
getCropHintsAnnotation
in interfaceAnnotateImageResponseOrBuilder
- Returns:
- The cropHintsAnnotation.
-
getCropHintsAnnotationOrBuilder
public CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder()
If present, crop hints have completed successfully.
.google.cloud.vision.v1p2beta1.CropHintsAnnotation crop_hints_annotation = 11;
- Specified by:
getCropHintsAnnotationOrBuilder
in interfaceAnnotateImageResponseOrBuilder
-
hasWebDetection
public boolean hasWebDetection()
If present, web detection has completed successfully.
.google.cloud.vision.v1p2beta1.WebDetection web_detection = 13;
- Specified by:
hasWebDetection
in interfaceAnnotateImageResponseOrBuilder
- Returns:
- Whether the webDetection field is set.
-
getWebDetection
public WebDetection getWebDetection()
If present, web detection has completed successfully.
.google.cloud.vision.v1p2beta1.WebDetection web_detection = 13;
- Specified by:
getWebDetection
in interfaceAnnotateImageResponseOrBuilder
- Returns:
- The webDetection.
-
getWebDetectionOrBuilder
public WebDetectionOrBuilder getWebDetectionOrBuilder()
If present, web detection has completed successfully.
.google.cloud.vision.v1p2beta1.WebDetection web_detection = 13;
- Specified by:
getWebDetectionOrBuilder
in interfaceAnnotateImageResponseOrBuilder
-
hasError
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;
- Specified by:
hasError
in interfaceAnnotateImageResponseOrBuilder
- Returns:
- Whether the error field is set.
-
getError
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;
- Specified by:
getError
in interfaceAnnotateImageResponseOrBuilder
- Returns:
- The error.
-
getErrorOrBuilder
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;
- Specified by:
getErrorOrBuilder
in interfaceAnnotateImageResponseOrBuilder
-
hasContext
public boolean hasContext()
If present, contextual information is needed to understand where this image comes from.
.google.cloud.vision.v1p2beta1.ImageAnnotationContext context = 21;
- Specified by:
hasContext
in interfaceAnnotateImageResponseOrBuilder
- Returns:
- Whether the context field is set.
-
getContext
public ImageAnnotationContext getContext()
If present, contextual information is needed to understand where this image comes from.
.google.cloud.vision.v1p2beta1.ImageAnnotationContext context = 21;
- Specified by:
getContext
in interfaceAnnotateImageResponseOrBuilder
- Returns:
- The context.
-
getContextOrBuilder
public ImageAnnotationContextOrBuilder getContextOrBuilder()
If present, contextual information is needed to understand where this image comes from.
.google.cloud.vision.v1p2beta1.ImageAnnotationContext context = 21;
- Specified by:
getContextOrBuilder
in interfaceAnnotateImageResponseOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AnnotateImageResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotateImageResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotateImageResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotateImageResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotateImageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotateImageResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AnnotateImageResponse parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AnnotateImageResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AnnotateImageResponse parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AnnotateImageResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AnnotateImageResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AnnotateImageResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AnnotateImageResponse.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AnnotateImageResponse.Builder newBuilder()
-
newBuilder
public static AnnotateImageResponse.Builder newBuilder(AnnotateImageResponse prototype)
-
toBuilder
public AnnotateImageResponse.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AnnotateImageResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AnnotateImageResponse getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AnnotateImageResponse> parser()
-
getParserForType
public com.google.protobuf.Parser<AnnotateImageResponse> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AnnotateImageResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-