FileState Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. ai. openai. models. FileState
- com.
- com.
public final class FileState
extends ExpandableStringEnum<FileState>
The state of the file.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
File |
DELETED
The entity has been deleted but may still be referenced by other entities predating the deletion. |
static final
File |
DELETING
The entity is in the process to be deleted. |
static final
File |
ERROR
The operation has completed processing with a failure and cannot be further consumed. |
static final
File |
PENDING
The operation was created and is not queued to be processed in the future. |
static final
File |
PROCESSED
The operation has successfully processed and is ready for consumption. |
static final
File |
RUNNING
The operation has started to be processed. |
static final
File |
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 File |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
File |
fromString(String name)
Creates or finds a File |
static
Collection<File |
values()
Gets known File |
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
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:
Returns:
values
public static Collection
Gets known FileState values.
Returns:
Applies to
Azure SDK for Java