Table of Contents

Struct FileState

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

State for the lifecycle of a File.

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

Properties

Active

public static FileState Active { get; }

Property Value

FileState

AllValues

public static IReadOnlyList<FileState> AllValues { get; }

Property Value

IReadOnlyList<FileState>

Failed

public static FileState Failed { get; }

Property Value

FileState

Processing

public static FileState Processing { get; }

Property Value

FileState

StateUnspecified

public static FileState StateUnspecified { get; }

Property Value

FileState

Value

public string Value { get; }

Property Value

string

Methods

Equals(FileState)

public bool Equals(FileState other)

Parameters

other FileState

Returns

bool

FromString(string)

public static FileState FromString(string value)

Parameters

value string

Returns

FileState

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator FileState(string)

public static implicit operator FileState(string value)

Parameters

value string

Returns

FileState