Class ControlReferenceConfig

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ControlReferenceConfig

public abstract class ControlReferenceConfig extends JsonSerializable
Configuration for a Control reference image.
  • Constructor Details

    • ControlReferenceConfig

      public ControlReferenceConfig()
  • Method Details

    • controlType

      public abstract Optional<ControlReferenceType> controlType()
      The type of control reference image to use.
    • enableControlImageComputation

      public 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

      public static ControlReferenceConfig.Builder builder()
      Instantiates a builder for ControlReferenceConfig.
    • toBuilder

      public abstract ControlReferenceConfig.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static ControlReferenceConfig fromJson(String jsonString)
      Deserializes a JSON string to a ControlReferenceConfig object.