Table of Contents

Struct ProminentPeople

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

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

IReadOnlyList<ProminentPeople>

AllowProminentPeople

Allows the model to generate images of prominent people.

public static ProminentPeople AllowProminentPeople { get; }

Property Value

ProminentPeople

BlockProminentPeople

Prevents the model from generating images of prominent people.

public static ProminentPeople BlockProminentPeople { get; }

Property Value

ProminentPeople

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

ProminentPeople

Value

public string Value { get; }

Property Value

string

Methods

Equals(ProminentPeople)

public bool Equals(ProminentPeople other)

Parameters

other ProminentPeople

Returns

bool

FromString(string)

public static ProminentPeople FromString(string value)

Parameters

value string

Returns

ProminentPeople

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator ProminentPeople(string)

public static implicit operator ProminentPeople(string value)

Parameters

value string

Returns

ProminentPeople