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