Struct ProminentPeople
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 enum is not supported in Gemini API.
[JsonConverter(typeof(ProminentPeopleConverter))]
public readonly record struct ProminentPeople : IEquatable<ProminentPeople>
- Implements
- Inherited Members
Properties
AllValues
public static IReadOnlyList<ProminentPeople> AllValues { get; }
Property Value
AllowProminentPeople
Allows the model to generate images of prominent people.
public static ProminentPeople AllowProminentPeople { get; }
Property Value
BlockProminentPeople
Prevents the model from generating images of prominent people.
public static ProminentPeople BlockProminentPeople { get; }
Property Value
ProminentPeopleUnspecified
Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people.
public static ProminentPeople ProminentPeopleUnspecified { get; }
Property Value
Value
public string Value { get; }
Property Value
Methods
Equals(ProminentPeople)
public bool Equals(ProminentPeople other)
Parameters
otherProminentPeople
Returns
FromString(string)
public static ProminentPeople FromString(string value)
Parameters
valuestring
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
implicit operator ProminentPeople(string)
public static implicit operator ProminentPeople(string value)
Parameters
valuestring