Class FileState
java.lang.Object
com.azure.core.util.ExpandableStringEnum<FileState>
com.azure.ai.openai.assistants.models.FileState
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
The state of the file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FileState
The entity has been deleted but may still be referenced by other entities predating the deletion.static final FileState
The entity is in the process to be deleted.static final FileState
The operation has completed processing with a failure and cannot be further consumed.static final FileState
The operation was created and is not queued to be processed in the future.static final FileState
The operation has successfully processed and is ready for consumption.static final FileState
The operation has started to be processed.static final FileState
The file has been uploaded but it's not yet processed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileState
fromString
(String name) Creates or finds a FileState from its string representation.static Collection
<FileState> values()
Gets known FileState values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
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. -
PENDING
The operation was created and is not queued to be processed in the future. It can be categorized as an inactive state. -
RUNNING
The operation has started to be processed. It can be categorized as an active state. -
PROCESSED
The operation has successfully processed and is ready for consumption. It can be categorized as a terminal state. -
ERROR
The operation has completed processing with a failure and cannot be further consumed. It can be categorized as a terminal state. -
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. -
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.
-
-
Constructor Details
-
FileState
Deprecated.Use thefromString(String)
factory method.Creates a new instance of FileState value.
-
-
Method Details
-
fromString
Creates or finds a FileState from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding FileState.
-
values
Gets known FileState values.- Returns:
- known FileState values.
-
fromString(String)
factory method.