Package com.google.genai.types
Class RecontextImageSource
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.RecontextImageSource
A set of source input(s) for image recontextualization.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for RecontextImageSource. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RecontextImageSource.Builder
builder()
Instantiates a builder for RecontextImageSource.static RecontextImageSource
Deserializes a JSON string to a RecontextImageSource object.Image of the person or subject who will be wearing the product(s).abstract Optional<List<ProductImage>>
A list of product images.prompt()
A text prompt for guiding the model during image recontextualization.abstract RecontextImageSource.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
RecontextImageSource
public RecontextImageSource()
-
-
Method Details
-
prompt
A text prompt for guiding the model during image recontextualization. Not supported for Virtual Try-On. -
personImage
Image of the person or subject who will be wearing the product(s). -
productImages
A list of product images. -
builder
Instantiates a builder for RecontextImageSource. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a RecontextImageSource object.
-