Class Image

java.lang.Object
com.attribyte.parser.model.Image

public class Image extends Object
An immutable image.
Author:
Matt Hamer
  • Field Details

    • id

      public final String id
      A unique id, or an empty string if none.
    • altText

      public final String altText
      Text that describes the image, or an empty string if none.
    • title

      public final String title
      A title for the image, or an empty string if none.
    • credit

      public final String credit
      An image credit.
    • width

      public final int width
      The image width or 0 if unknown.
    • height

      public final int height
      The image height or 0 if unknown.
    • mediaType

      public final String mediaType
      The media type (for example, image/png), or an empty string if unknown.
    • data

      public final Optional<com.google.protobuf.ByteString> data
      The image data (bytes), if available.
  • Method Details