Package com.google.genai.types
Class ControlReferenceConfig
-
- All Implemented Interfaces:
public abstract class ControlReferenceConfig extends JsonSerializable
Configuration for a Control reference image.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classControlReferenceConfig.BuilderBuilder for ControlReferenceConfig.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description ControlReferenceConfig()
-
Method Summary
Modifier and Type Method Description abstract Optional<ControlReferenceType>controlType()The type of control reference image to use. abstract Optional<Boolean>enableControlImageComputation()Defaults to False. static ControlReferenceConfig.Builderbuilder()Instantiates a builder for ControlReferenceConfig. abstract ControlReferenceConfig.BuildertoBuilder()Creates a builder with the same values as this instance. static ControlReferenceConfigfromJson(String jsonString)Deserializes a JSON string to a ControlReferenceConfig 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
-
controlType
abstract Optional<ControlReferenceType> controlType()
The type of control reference image to use.
-
enableControlImageComputation
abstract Optional<Boolean> enableControlImageComputation()
Defaults to False. When set to True, the control image will be computed by the model based on the control type. When set to False, the control image must be provided by the user.
-
builder
static ControlReferenceConfig.Builder builder()
Instantiates a builder for ControlReferenceConfig.
-
toBuilder
abstract ControlReferenceConfig.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static ControlReferenceConfig fromJson(String jsonString)
Deserializes a JSON string to a ControlReferenceConfig object.
-
-
-
-