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