Table of Contents

Struct ImagePromptLanguage

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

Enum that specifies the language of the text in the prompt.

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

Properties

AllValues

public static IReadOnlyList<ImagePromptLanguage> AllValues { get; }

Property Value

IReadOnlyList<ImagePromptLanguage>

Auto

Auto-detect the language.

public static ImagePromptLanguage Auto { get; }

Property Value

ImagePromptLanguage

En

English

public static ImagePromptLanguage En { get; }

Property Value

ImagePromptLanguage

Es

Spanish

public static ImagePromptLanguage Es { get; }

Property Value

ImagePromptLanguage

Hi

Hindi

public static ImagePromptLanguage Hi { get; }

Property Value

ImagePromptLanguage

Ja

Japanese

public static ImagePromptLanguage Ja { get; }

Property Value

ImagePromptLanguage

Ko

Korean

public static ImagePromptLanguage Ko { get; }

Property Value

ImagePromptLanguage

Pt

Portuguese

public static ImagePromptLanguage Pt { get; }

Property Value

ImagePromptLanguage

Value

public string Value { get; }

Property Value

string

Zh

Chinese

public static ImagePromptLanguage Zh { get; }

Property Value

ImagePromptLanguage

Methods

Equals(ImagePromptLanguage)

public bool Equals(ImagePromptLanguage other)

Parameters

other ImagePromptLanguage

Returns

bool

FromString(string)

public static ImagePromptLanguage FromString(string value)

Parameters

value string

Returns

ImagePromptLanguage

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator ImagePromptLanguage(string)

public static implicit operator ImagePromptLanguage(string value)

Parameters

value string

Returns

ImagePromptLanguage