Package com.google.genai.types
Class SubjectReferenceImage
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.SubjectReferenceImage
- All Implemented Interfaces:
ReferenceImage
A subject reference image.
This encapsulates a subject reference image provided by the user, and additionally optional config parameters for the subject reference image.
A raw reference image can also be provided as a destination for the subject to be applied to.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for SubjectReferenceImage. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Instantiates a builder for SubjectReferenceImage.abstract Optional<SubjectReferenceConfig>config()Configuration for the subject reference image.static SubjectReferenceImageDeserializes a JSON string to a SubjectReferenceImage object.The id of the reference image.The reference image for the editing operation.The type of the reference image.abstract SubjectReferenceImage.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
SubjectReferenceImage
public SubjectReferenceImage()
-
-
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 subject reference image. -
builder
Instantiates a builder for SubjectReferenceImage. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a SubjectReferenceImage object. -
toReferenceImageAPI
- Specified by:
toReferenceImageAPIin interfaceReferenceImage
-