Class SemanticErrorReason
java.lang.Object
com.azure.core.util.ExpandableStringEnum<SemanticErrorReason>
com.azure.search.documents.models.SemanticErrorReason
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class SemanticErrorReason
extends com.azure.core.util.ExpandableStringEnum<SemanticErrorReason>
Reason that a partial response was returned for a semantic ranking request.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SemanticErrorReasonThe request was throttled.static final SemanticErrorReasonIf `semanticMaxWaitInMilliseconds` was set and the semantic processing duration exceeded that value.static final SemanticErrorReasonAt least one step of the semantic process failed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SemanticErrorReasonfromString(String name) Creates or finds a SemanticErrorReason from its string representation.static Collection<SemanticErrorReason> values()Gets known SemanticErrorReason values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
MAX_WAIT_EXCEEDED
If `semanticMaxWaitInMilliseconds` was set and the semantic processing duration exceeded that value. Only the base results were returned. -
CAPACITY_OVERLOADED
The request was throttled. Only the base results were returned. -
TRANSIENT
At least one step of the semantic process failed.
-
-
Constructor Details
-
SemanticErrorReason
Deprecated.Use thefromString(String)factory method.Creates a new instance of SemanticErrorReason value.
-
-
Method Details
-
fromString
Creates or finds a SemanticErrorReason from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding SemanticErrorReason.
-
values
Gets known SemanticErrorReason values.- Returns:
- known SemanticErrorReason values.
-
fromString(String)factory method.