Class ImageDescription


  • public class ImageDescription
    extends Object
    A collection of content tags, along with a list of captions sorted by confidence level, and image metadata.
    • Constructor Detail

      • ImageDescription

        public ImageDescription()
    • Method Detail

      • tags

        public List<String> tags()
        Get the tags value.
        Returns:
        the tags value
      • withTags

        public ImageDescription withTags​(List<String> tags)
        Set the tags value.
        Parameters:
        tags - the tags value to set
        Returns:
        the ImageDescription object itself.
      • captions

        public List<ImageCaption> captions()
        Get the captions value.
        Returns:
        the captions value
      • withCaptions

        public ImageDescription withCaptions​(List<ImageCaption> captions)
        Set the captions value.
        Parameters:
        captions - the captions value to set
        Returns:
        the ImageDescription object itself.
      • requestId

        public String requestId()
        Get the requestId value.
        Returns:
        the requestId value
      • withRequestId

        public ImageDescription withRequestId​(String requestId)
        Set the requestId value.
        Parameters:
        requestId - the requestId value to set
        Returns:
        the ImageDescription object itself.
      • metadata

        public ImageMetadata metadata()
        Get the metadata value.
        Returns:
        the metadata value
      • withMetadata

        public ImageDescription withMetadata​(ImageMetadata metadata)
        Set the metadata value.
        Parameters:
        metadata - the metadata value to set
        Returns:
        the ImageDescription object itself.
      • modelVersion

        public String modelVersion()
        Get the modelVersion value.
        Returns:
        the modelVersion value
      • withModelVersion

        public ImageDescription withModelVersion​(String modelVersion)
        Set the modelVersion value.
        Parameters:
        modelVersion - the modelVersion value to set
        Returns:
        the ImageDescription object itself.