Enum ThreadCreateParams.UnsupportedRequestBehavior
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum ThreadCreateParams.UnsupportedRequestBehavior extends Enum<ThreadCreateParams.UnsupportedRequestBehavior>
What a message thread does when the API rejects a request with the error code
thread_unsupported_request, because the request uses something that a thread does not support.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final Integerordinalprivate final EnumEntries<ThreadCreateParams.UnsupportedRequestBehavior>entries
-
Enum Constant Summary
Enum Constants Enum Constant Description ERRORThe error is thrown to the caller, and the thread stays as it was.
CONTINUE_UNTHREADEDThe request is sent again with the whole conversation and without a thread, and so is every later request of the thread.
-
Method Summary
Modifier and Type Method Description final Array<ThreadCreateParams.UnsupportedRequestBehavior>values()Returns an array containing the constants of this enum type, in the order they're declared. final ThreadCreateParams.UnsupportedRequestBehaviorvalueOf(String value)Returns the enum constant of this type with the specified name. final EnumEntries<ThreadCreateParams.UnsupportedRequestBehavior>getEntries()-
-
Method Detail
-
values
final Array<ThreadCreateParams.UnsupportedRequestBehavior> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
valueOf
final ThreadCreateParams.UnsupportedRequestBehavior valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
getEntries
final EnumEntries<ThreadCreateParams.UnsupportedRequestBehavior> getEntries()
-
-
-
-