Package com.google.genai.types
Class ContentReferenceImage
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ContentReferenceImage
- All Implemented Interfaces:
ReferenceImage
A content reference image.
A content reference image represents a subject to reference (ex. person, product, animal) provided by the user. It can optionally be provided in addition to a style reference image (ex. background, style reference).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for ContentReferenceImage. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for ContentReferenceImage.static ContentReferenceImage
Deserializes a JSON string to a ContentReferenceImage object.The id of the reference image.The reference image for the editing operation.The type of the reference image.abstract ContentReferenceImage.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
ContentReferenceImage
public ContentReferenceImage()
-
-
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. -
builder
Instantiates a builder for ContentReferenceImage. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ContentReferenceImage object. -
toReferenceImageAPI
- Specified by:
toReferenceImageAPI
in interfaceReferenceImage
-