Class ControlReferenceConfig.Builder

java.lang.Object
com.google.genai.types.ControlReferenceConfig.Builder
Enclosing class:
ControlReferenceConfig

public abstract static class ControlReferenceConfig.Builder extends Object
Builder for ControlReferenceConfig.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • controlType

      public abstract ControlReferenceConfig.Builder controlType(ControlReferenceType 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

      @CanIgnoreReturnValue public ControlReferenceConfig.Builder controlType(String 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

      public abstract ControlReferenceConfig build()