Table of Contents

Struct PersonGeneration

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

Enum that controls the generation of people.

[JsonConverter(typeof(PersonGenerationConverter))]
public readonly record struct PersonGeneration : IEquatable<PersonGeneration>
Implements
Inherited Members

Properties

AllValues

public static IReadOnlyList<PersonGeneration> AllValues { get; }

Property Value

IReadOnlyList<PersonGeneration>

AllowAdult

Generate images of adults, but not children.

public static PersonGeneration AllowAdult { get; }

Property Value

PersonGeneration

AllowAll

Generate images that include adults and children.

public static PersonGeneration AllowAll { get; }

Property Value

PersonGeneration

DontAllow

Block generation of images of people.

public static PersonGeneration DontAllow { get; }

Property Value

PersonGeneration

Value

public string Value { get; }

Property Value

string

Methods

Equals(PersonGeneration)

public bool Equals(PersonGeneration other)

Parameters

other PersonGeneration

Returns

bool

FromString(string)

public static PersonGeneration FromString(string value)

Parameters

value string

Returns

PersonGeneration

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator PersonGeneration(string)

public static implicit operator PersonGeneration(string value)

Parameters

value string

Returns

PersonGeneration