Package com.google.genai.types
Class RecontextImageParameters
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.RecontextImageParameters
The parameters for recontextualizing an image.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for RecontextImageParameters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for RecontextImageParameters.abstract Optional<RecontextImageConfig>
config()
Configuration for image recontextualization.static RecontextImageParameters
Deserializes a JSON string to a RecontextImageParameters object.model()
ID of the model to use.abstract Optional<RecontextImageSource>
source()
A set of source input(s) for image recontextualization.abstract RecontextImageParameters.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
RecontextImageParameters
public RecontextImageParameters()
-
-
Method Details
-
model
ID of the model to use. For a list of models, see `Google models <https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models>`_. -
source
A set of source input(s) for image recontextualization. -
config
Configuration for image recontextualization. -
builder
Instantiates a builder for RecontextImageParameters. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a RecontextImageParameters object.
-