FileState Class

public final class FileState
extends ExpandableStringEnum<FileState>

The state of the file.

Field Summary

Modifier and Type Field and Description
static final FileState DELETED

The entity has been deleted but may still be referenced by other entities predating the deletion.

static final FileState DELETING

The entity is in the process to be deleted.

static final FileState ERROR

The operation has completed processing with a failure and cannot be further consumed.

static final FileState PENDING

The operation was created and is not queued to be processed in the future.

static final FileState PROCESSED

The operation has successfully processed and is ready for consumption.

static final FileState RUNNING

The operation has started to be processed.

static final FileState UPLOADED

The file has been uploaded but it's not yet processed.

Constructor Summary

Constructor Description
FileState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of FileState value.

Method Summary

Modifier and Type Method and Description
static FileState fromString(String name)

Creates or finds a FileState from its string representation.

static Collection<FileState> values()

Gets known FileState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DELETED

public static final FileState DELETED

The entity has been deleted but may still be referenced by other entities predating the deletion. It can be categorized as a terminal state.

DELETING

public static final FileState DELETING

The entity is in the process to be deleted. This state is not returned by Azure OpenAI and exposed only for compatibility. It can be categorized as an active state.

ERROR

public static final FileState ERROR

The operation has completed processing with a failure and cannot be further consumed. It can be categorized as a terminal state.

PENDING

public static final FileState PENDING

The operation was created and is not queued to be processed in the future. It can be categorized as an inactive state.

PROCESSED

public static final FileState PROCESSED

The operation has successfully processed and is ready for consumption. It can be categorized as a terminal state.

RUNNING

public static final FileState RUNNING

The operation has started to be processed. It can be categorized as an active state.

UPLOADED

public static final FileState UPLOADED

The file has been uploaded but it's not yet processed. This state is not returned by Azure OpenAI and exposed only for compatibility. It can be categorized as an inactive state.

Constructor Details

FileState

@Deprecated
public FileState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of FileState value.

Method Details

fromString

public static FileState fromString(String name)

Creates or finds a FileState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding FileState.

values

public static Collection values()

Gets known FileState values.

Returns:

known FileState values.

Applies to