prominentPeople

public abstract ImageConfig.Builder prominentPeople(ProminentPeople prominentPeople)

Setter for prominentPeople.

prominentPeople: Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people. This field is not supported in Gemini API.


@CanIgnoreReturnValue()
public ImageConfig.Builder prominentPeople(ProminentPeople.Known knownType)

Setter for prominentPeople given a known enum.

prominentPeople: Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people. This field is not supported in Gemini API.


@CanIgnoreReturnValue()
public ImageConfig.Builder prominentPeople(String prominentPeople)

Setter for prominentPeople given a string.

prominentPeople: Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people. This field is not supported in Gemini API.