Package com.google.cloud.vision.v1
Class AnnotateImageResponse
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.vision.v1.AnnotateImageResponse
- All Implemented Interfaces:
AnnotateImageResponseOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class AnnotateImageResponse
extends com.google.protobuf.GeneratedMessage
implements AnnotateImageResponseOrBuilder
Response to an image annotation request.Protobuf type
google.cloud.vision.v1.AnnotateImageResponse- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classResponse to an image annotation request.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf present, contextual information is needed to understand where this image comes from.If present, contextual information is needed to understand where this image comes from.If present, crop hints have completed successfully.If present, crop hints have completed successfully.static AnnotateImageResponsestatic final com.google.protobuf.Descriptors.DescriptorgetError()If set, represents the error message for the operation.If set, represents the error message for the operation.getFaceAnnotations(int index) If present, face detection has completed successfully.intIf present, face detection has completed successfully.If present, face detection has completed successfully.getFaceAnnotationsOrBuilder(int index) If present, face detection has completed successfully.List<? extends FaceAnnotationOrBuilder>If present, face detection has completed successfully.If present, text (OCR) detection or document (OCR) text detection has completed successfully.If present, text (OCR) detection or document (OCR) text detection has completed successfully.If present, image properties were extracted successfully.If present, image properties were extracted successfully.getLabelAnnotations(int index) If present, label detection has completed successfully.intIf present, label detection has completed successfully.If present, label detection has completed successfully.getLabelAnnotationsOrBuilder(int index) If present, label detection has completed successfully.List<? extends EntityAnnotationOrBuilder>If present, label detection has completed successfully.getLandmarkAnnotations(int index) If present, landmark detection has completed successfully.intIf present, landmark detection has completed successfully.If present, landmark detection has completed successfully.getLandmarkAnnotationsOrBuilder(int index) If present, landmark detection has completed successfully.List<? extends EntityAnnotationOrBuilder>If present, landmark detection has completed successfully.getLocalizedObjectAnnotations(int index) If present, localized object detection has completed successfully.intIf present, localized object detection has completed successfully.If present, localized object detection has completed successfully.getLocalizedObjectAnnotationsOrBuilder(int index) If present, localized object detection has completed successfully.List<? extends LocalizedObjectAnnotationOrBuilder>If present, localized object detection has completed successfully.getLogoAnnotations(int index) If present, logo detection has completed successfully.intIf present, logo detection has completed successfully.If present, logo detection has completed successfully.getLogoAnnotationsOrBuilder(int index) If present, logo detection has completed successfully.List<? extends EntityAnnotationOrBuilder>If present, logo detection has completed successfully.com.google.protobuf.Parser<AnnotateImageResponse>If present, product search has completed successfully.If present, product search has completed successfully.If present, safe-search annotation has completed successfully.If present, safe-search annotation has completed successfully.intgetTextAnnotations(int index) If present, text (OCR) detection has completed successfully.intIf present, text (OCR) detection has completed successfully.If present, text (OCR) detection has completed successfully.getTextAnnotationsOrBuilder(int index) If present, text (OCR) detection has completed successfully.List<? extends EntityAnnotationOrBuilder>If present, text (OCR) detection has completed successfully.If present, web detection has completed successfully.If present, web detection has completed successfully.booleanIf present, contextual information is needed to understand where this image comes from.booleanIf present, crop hints have completed successfully.booleanhasError()If set, represents the error message for the operation.booleanIf present, text (OCR) detection or document (OCR) text detection has completed successfully.inthashCode()booleanIf present, image properties were extracted successfully.booleanIf present, product search has completed successfully.booleanIf present, safe-search annotation has completed successfully.booleanIf present, web detection has completed successfully.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(AnnotateImageResponse prototype) protected AnnotateImageResponse.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static AnnotateImageResponseparseDelimitedFrom(InputStream input) static AnnotateImageResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnnotateImageResponseparseFrom(byte[] data) static AnnotateImageResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnnotateImageResponseparseFrom(com.google.protobuf.ByteString data) static AnnotateImageResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnnotateImageResponseparseFrom(com.google.protobuf.CodedInputStream input) static AnnotateImageResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnnotateImageResponseparseFrom(InputStream input) static AnnotateImageResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnnotateImageResponseparseFrom(ByteBuffer data) static AnnotateImageResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AnnotateImageResponse>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
FACE_ANNOTATIONS_FIELD_NUMBER
public static final int FACE_ANNOTATIONS_FIELD_NUMBER- See Also:
-
LANDMARK_ANNOTATIONS_FIELD_NUMBER
public static final int LANDMARK_ANNOTATIONS_FIELD_NUMBER- See Also:
-
LOGO_ANNOTATIONS_FIELD_NUMBER
public static final int LOGO_ANNOTATIONS_FIELD_NUMBER- See Also:
-
LABEL_ANNOTATIONS_FIELD_NUMBER
public static final int LABEL_ANNOTATIONS_FIELD_NUMBER- See Also:
-
LOCALIZED_OBJECT_ANNOTATIONS_FIELD_NUMBER
public static final int LOCALIZED_OBJECT_ANNOTATIONS_FIELD_NUMBER- See Also:
-
TEXT_ANNOTATIONS_FIELD_NUMBER
public static final int TEXT_ANNOTATIONS_FIELD_NUMBER- See Also:
-
FULL_TEXT_ANNOTATION_FIELD_NUMBER
public static final int FULL_TEXT_ANNOTATION_FIELD_NUMBER- See Also:
-
SAFE_SEARCH_ANNOTATION_FIELD_NUMBER
public static final int SAFE_SEARCH_ANNOTATION_FIELD_NUMBER- See Also:
-
IMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER
public static final int IMAGE_PROPERTIES_ANNOTATION_FIELD_NUMBER- See Also:
-
CROP_HINTS_ANNOTATION_FIELD_NUMBER
public static final int CROP_HINTS_ANNOTATION_FIELD_NUMBER- See Also:
-
WEB_DETECTION_FIELD_NUMBER
public static final int WEB_DETECTION_FIELD_NUMBER- See Also:
-
PRODUCT_SEARCH_RESULTS_FIELD_NUMBER
public static final int PRODUCT_SEARCH_RESULTS_FIELD_NUMBER- See Also:
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER- See Also:
-
CONTEXT_FIELD_NUMBER
public static final int CONTEXT_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getFaceAnnotationsList
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;- Specified by:
getFaceAnnotationsListin interfaceAnnotateImageResponseOrBuilder
-
getFaceAnnotationsOrBuilderList
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;- Specified by:
getFaceAnnotationsOrBuilderListin interfaceAnnotateImageResponseOrBuilder
-
getFaceAnnotationsCount
public int getFaceAnnotationsCount()If present, face detection has completed successfully.
repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;- Specified by:
getFaceAnnotationsCountin interfaceAnnotateImageResponseOrBuilder
-
getFaceAnnotations
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;- Specified by:
getFaceAnnotationsin interfaceAnnotateImageResponseOrBuilder
-
getFaceAnnotationsOrBuilder
If present, face detection has completed successfully.
repeated .google.cloud.vision.v1.FaceAnnotation face_annotations = 1;- Specified by:
getFaceAnnotationsOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
getLandmarkAnnotationsList
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;- Specified by:
getLandmarkAnnotationsListin interfaceAnnotateImageResponseOrBuilder
-
getLandmarkAnnotationsOrBuilderList
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;- Specified by:
getLandmarkAnnotationsOrBuilderListin interfaceAnnotateImageResponseOrBuilder
-
getLandmarkAnnotationsCount
public int getLandmarkAnnotationsCount()If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;- Specified by:
getLandmarkAnnotationsCountin interfaceAnnotateImageResponseOrBuilder
-
getLandmarkAnnotations
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;- Specified by:
getLandmarkAnnotationsin interfaceAnnotateImageResponseOrBuilder
-
getLandmarkAnnotationsOrBuilder
If present, landmark detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation landmark_annotations = 2;- Specified by:
getLandmarkAnnotationsOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
getLogoAnnotationsList
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;- Specified by:
getLogoAnnotationsListin interfaceAnnotateImageResponseOrBuilder
-
getLogoAnnotationsOrBuilderList
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;- Specified by:
getLogoAnnotationsOrBuilderListin interfaceAnnotateImageResponseOrBuilder
-
getLogoAnnotationsCount
public int getLogoAnnotationsCount()If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;- Specified by:
getLogoAnnotationsCountin interfaceAnnotateImageResponseOrBuilder
-
getLogoAnnotations
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;- Specified by:
getLogoAnnotationsin interfaceAnnotateImageResponseOrBuilder
-
getLogoAnnotationsOrBuilder
If present, logo detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation logo_annotations = 3;- Specified by:
getLogoAnnotationsOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
getLabelAnnotationsList
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;- Specified by:
getLabelAnnotationsListin interfaceAnnotateImageResponseOrBuilder
-
getLabelAnnotationsOrBuilderList
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;- Specified by:
getLabelAnnotationsOrBuilderListin interfaceAnnotateImageResponseOrBuilder
-
getLabelAnnotationsCount
public int getLabelAnnotationsCount()If present, label detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;- Specified by:
getLabelAnnotationsCountin interfaceAnnotateImageResponseOrBuilder
-
getLabelAnnotations
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;- Specified by:
getLabelAnnotationsin interfaceAnnotateImageResponseOrBuilder
-
getLabelAnnotationsOrBuilder
If present, label detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation label_annotations = 4;- Specified by:
getLabelAnnotationsOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
getLocalizedObjectAnnotationsList
If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;- Specified by:
getLocalizedObjectAnnotationsListin interfaceAnnotateImageResponseOrBuilder
-
getLocalizedObjectAnnotationsOrBuilderList
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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;- Specified by:
getLocalizedObjectAnnotationsOrBuilderListin interfaceAnnotateImageResponseOrBuilder
-
getLocalizedObjectAnnotationsCount
public int getLocalizedObjectAnnotationsCount()If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;- Specified by:
getLocalizedObjectAnnotationsCountin interfaceAnnotateImageResponseOrBuilder
-
getLocalizedObjectAnnotations
If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;- Specified by:
getLocalizedObjectAnnotationsin interfaceAnnotateImageResponseOrBuilder
-
getLocalizedObjectAnnotationsOrBuilder
If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
repeated .google.cloud.vision.v1.LocalizedObjectAnnotation localized_object_annotations = 22;- Specified by:
getLocalizedObjectAnnotationsOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
getTextAnnotationsList
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;- Specified by:
getTextAnnotationsListin interfaceAnnotateImageResponseOrBuilder
-
getTextAnnotationsOrBuilderList
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;- Specified by:
getTextAnnotationsOrBuilderListin interfaceAnnotateImageResponseOrBuilder
-
getTextAnnotationsCount
public int getTextAnnotationsCount()If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;- Specified by:
getTextAnnotationsCountin interfaceAnnotateImageResponseOrBuilder
-
getTextAnnotations
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;- Specified by:
getTextAnnotationsin interfaceAnnotateImageResponseOrBuilder
-
getTextAnnotationsOrBuilder
If present, text (OCR) detection has completed successfully.
repeated .google.cloud.vision.v1.EntityAnnotation text_annotations = 5;- Specified by:
getTextAnnotationsOrBuilderin 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.v1.TextAnnotation full_text_annotation = 12;- Specified by:
hasFullTextAnnotationin interfaceAnnotateImageResponseOrBuilder- Returns:
- Whether the fullTextAnnotation field is set.
-
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.v1.TextAnnotation full_text_annotation = 12;- Specified by:
getFullTextAnnotationin interfaceAnnotateImageResponseOrBuilder- Returns:
- The fullTextAnnotation.
-
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.v1.TextAnnotation full_text_annotation = 12;- Specified by:
getFullTextAnnotationOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
hasSafeSearchAnnotation
public boolean hasSafeSearchAnnotation()If present, safe-search annotation has completed successfully.
.google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6;- Specified by:
hasSafeSearchAnnotationin interfaceAnnotateImageResponseOrBuilder- Returns:
- Whether the safeSearchAnnotation field is set.
-
getSafeSearchAnnotation
If present, safe-search annotation has completed successfully.
.google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6;- Specified by:
getSafeSearchAnnotationin interfaceAnnotateImageResponseOrBuilder- Returns:
- The safeSearchAnnotation.
-
getSafeSearchAnnotationOrBuilder
If present, safe-search annotation has completed successfully.
.google.cloud.vision.v1.SafeSearchAnnotation safe_search_annotation = 6;- Specified by:
getSafeSearchAnnotationOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
hasImagePropertiesAnnotation
public boolean hasImagePropertiesAnnotation()If present, image properties were extracted successfully.
.google.cloud.vision.v1.ImageProperties image_properties_annotation = 8;- Specified by:
hasImagePropertiesAnnotationin interfaceAnnotateImageResponseOrBuilder- Returns:
- Whether the imagePropertiesAnnotation field is set.
-
getImagePropertiesAnnotation
If present, image properties were extracted successfully.
.google.cloud.vision.v1.ImageProperties image_properties_annotation = 8;- Specified by:
getImagePropertiesAnnotationin interfaceAnnotateImageResponseOrBuilder- Returns:
- The imagePropertiesAnnotation.
-
getImagePropertiesAnnotationOrBuilder
If present, image properties were extracted successfully.
.google.cloud.vision.v1.ImageProperties image_properties_annotation = 8;- Specified by:
getImagePropertiesAnnotationOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
hasCropHintsAnnotation
public boolean hasCropHintsAnnotation()If present, crop hints have completed successfully.
.google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11;- Specified by:
hasCropHintsAnnotationin interfaceAnnotateImageResponseOrBuilder- Returns:
- Whether the cropHintsAnnotation field is set.
-
getCropHintsAnnotation
If present, crop hints have completed successfully.
.google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11;- Specified by:
getCropHintsAnnotationin interfaceAnnotateImageResponseOrBuilder- Returns:
- The cropHintsAnnotation.
-
getCropHintsAnnotationOrBuilder
If present, crop hints have completed successfully.
.google.cloud.vision.v1.CropHintsAnnotation crop_hints_annotation = 11;- Specified by:
getCropHintsAnnotationOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
hasWebDetection
public boolean hasWebDetection()If present, web detection has completed successfully.
.google.cloud.vision.v1.WebDetection web_detection = 13;- Specified by:
hasWebDetectionin interfaceAnnotateImageResponseOrBuilder- Returns:
- Whether the webDetection field is set.
-
getWebDetection
If present, web detection has completed successfully.
.google.cloud.vision.v1.WebDetection web_detection = 13;- Specified by:
getWebDetectionin interfaceAnnotateImageResponseOrBuilder- Returns:
- The webDetection.
-
getWebDetectionOrBuilder
If present, web detection has completed successfully.
.google.cloud.vision.v1.WebDetection web_detection = 13;- Specified by:
getWebDetectionOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
hasProductSearchResults
public boolean hasProductSearchResults()If present, product search has completed successfully.
.google.cloud.vision.v1.ProductSearchResults product_search_results = 14;- Specified by:
hasProductSearchResultsin interfaceAnnotateImageResponseOrBuilder- Returns:
- Whether the productSearchResults field is set.
-
getProductSearchResults
If present, product search has completed successfully.
.google.cloud.vision.v1.ProductSearchResults product_search_results = 14;- Specified by:
getProductSearchResultsin interfaceAnnotateImageResponseOrBuilder- Returns:
- The productSearchResults.
-
getProductSearchResultsOrBuilder
If present, product search has completed successfully.
.google.cloud.vision.v1.ProductSearchResults product_search_results = 14;- Specified by:
getProductSearchResultsOrBuilderin 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:
hasErrorin interfaceAnnotateImageResponseOrBuilder- Returns:
- Whether the error field is set.
-
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:
getErrorin interfaceAnnotateImageResponseOrBuilder- Returns:
- The error.
-
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:
getErrorOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
hasContext
public boolean hasContext()If present, contextual information is needed to understand where this image comes from.
.google.cloud.vision.v1.ImageAnnotationContext context = 21;- Specified by:
hasContextin interfaceAnnotateImageResponseOrBuilder- Returns:
- Whether the context field is set.
-
getContext
If present, contextual information is needed to understand where this image comes from.
.google.cloud.vision.v1.ImageAnnotationContext context = 21;- Specified by:
getContextin interfaceAnnotateImageResponseOrBuilder- Returns:
- The context.
-
getContextOrBuilder
If present, contextual information is needed to understand where this image comes from.
.google.cloud.vision.v1.ImageAnnotationContext context = 21;- Specified by:
getContextOrBuilderin interfaceAnnotateImageResponseOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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
- Throws:
IOException
-
parseFrom
public static AnnotateImageResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AnnotateImageResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-