Package com.google.genai.types
Class ControlReferenceConfig.Builder
java.lang.Object
com.google.genai.types.ControlReferenceConfig.Builder
- Enclosing class:
- ControlReferenceConfig
Builder for ControlReferenceConfig.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ControlReferenceConfig
build()
abstract ControlReferenceConfig.Builder
controlType
(ControlReferenceType controlType) Setter for controlType.controlType
(ControlReferenceType.Known knownType) Setter for controlType given a known enum.controlType
(String controlType) Setter for controlType given a string.abstract ControlReferenceConfig.Builder
enableControlImageComputation
(boolean enableControlImageComputation) Setter for enableControlImageComputation.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
controlType
Setter for controlType.controlType: The type of control reference image to use.
-
controlType
@CanIgnoreReturnValue public ControlReferenceConfig.Builder controlType(ControlReferenceType.Known knownType) Setter for controlType given a known enum.controlType: The type of control reference image to use.
-
controlType
Setter for controlType given a string.controlType: The type of control reference image to use.
-
enableControlImageComputation
public abstract ControlReferenceConfig.Builder enableControlImageComputation(boolean enableControlImageComputation) Setter for enableControlImageComputation.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.
-
build
-