Class RecontextImageSource

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public abstract class RecontextImageSource.Builder

      Builder for RecontextImageSource.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Optional<String> prompt() A text prompt for guiding the model during image recontextualization.
      abstract Optional<Image> personImage() Image of the person or subject who will be wearing the product(s).
      abstract Optional<List<ProductImage>> productImages() A list of product images.
      static RecontextImageSource.Builder builder() Instantiates a builder for RecontextImageSource.
      abstract RecontextImageSource.Builder toBuilder() Creates a builder with the same values as this instance.
      static RecontextImageSource fromJson(String jsonString) Deserializes a JSON string to a RecontextImageSource object.
      • Methods inherited from class com.google.genai.JsonSerializable

        fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait