Package com.google.genai.types
Class ControlReferenceImage
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ControlReferenceImage
- All Implemented Interfaces:
ReferenceImage
A control reference image.
The image of the control reference image is either a control image provided by the user, or a regular image which the backend will use to generate a control image of. In the case of the latter, the enable_control_image_computation field in the config should be set to True.
A control image is an image that represents a sketch image of areas for the model to fill in based on the prompt.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for ControlReferenceImage. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for ControlReferenceImage.abstract Optional<ControlReferenceConfig>
config()
Configuration for the control reference image.static ControlReferenceImage
Deserializes a JSON string to a ControlReferenceImage object.The id of the reference image.The reference image for the editing operation.The type of the reference image.abstract ControlReferenceImage.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
toJson
-
Constructor Details
-
ControlReferenceImage
public ControlReferenceImage()
-
-
Method Details
-
referenceImage
The reference image for the editing operation. -
referenceId
The id of the reference image. -
referenceType
The type of the reference image. Only set by the SDK. -
config
Configuration for the control reference image. -
builder
Instantiates a builder for ControlReferenceImage. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ControlReferenceImage object. -
toReferenceImageAPI
- Specified by:
toReferenceImageAPI
in interfaceReferenceImage
-