Package com.google.genai.types
Class StyleReferenceConfig
-
- All Implemented Interfaces:
public abstract class StyleReferenceConfig extends JsonSerializable
Configuration for a Style reference image.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classStyleReferenceConfig.BuilderBuilder for StyleReferenceConfig.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description StyleReferenceConfig()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>styleDescription()A text description of the style to use for the generated image. static StyleReferenceConfig.Builderbuilder()Instantiates a builder for StyleReferenceConfig. abstract StyleReferenceConfig.BuildertoBuilder()Creates a builder with the same values as this instance. static StyleReferenceConfigfromJson(String jsonString)Deserializes a JSON string to a StyleReferenceConfig object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
styleDescription
abstract Optional<String> styleDescription()
A text description of the style to use for the generated image.
-
builder
static StyleReferenceConfig.Builder builder()
Instantiates a builder for StyleReferenceConfig.
-
toBuilder
abstract StyleReferenceConfig.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static StyleReferenceConfig fromJson(String jsonString)
Deserializes a JSON string to a StyleReferenceConfig object.
-
-
-
-