Class ProductImage

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ProductImage

public abstract class ProductImage extends JsonSerializable
An image of the product.
  • Constructor Details

    • ProductImage

      public ProductImage()
  • Method Details

    • productImage

      public abstract Optional<Image> productImage()
      An image of the product to be recontextualized.
    • builder

      public static ProductImage.Builder builder()
      Instantiates a builder for ProductImage.
    • toBuilder

      public abstract ProductImage.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static ProductImage fromJson(String jsonString)
      Deserializes a JSON string to a ProductImage object.