Class ThreadUnsupportedRequestErrorDetails
-
- All Implemented Interfaces:
public final class ThreadUnsupportedRequestErrorDetailsThe request combines
threadwith a request field or an organization setting that Threads do not support;unsupported, when present, names it. Send the full conversation withoutthread, or change that field.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classThreadUnsupportedRequestErrorDetails.BuilderA builder for ThreadUnsupportedRequestErrorDetails.
-
Method Summary
Modifier and Type Method Description final Optional<List<ThreadUnsupportedFeatureName>>unsupported()Each entry names a request field or an organization setting that Threads do not support. final JsonValue_errorCode()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("thread_unsupported_request")final JsonField<List<ThreadUnsupportedFeatureName>>_unsupported()Returns the raw JSON value of unsupported. final Map<String, JsonValue>_additionalProperties()final ThreadUnsupportedRequestErrorDetails.BuildertoBuilder()final ThreadUnsupportedRequestErrorDetailsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ThreadUnsupportedRequestErrorDetails.Builderbuilder()Returns a mutable builder for constructing an instance of ThreadUnsupportedRequestErrorDetails. -
-
Method Detail
-
unsupported
final Optional<List<ThreadUnsupportedFeatureName>> unsupported()
Each entry names a request field or an organization setting that Threads do not support. On a value you do not recognize, send the full conversation without
thread.
-
_errorCode
final JsonValue _errorCode()
Expected to always return the following:
JsonValue.from("thread_unsupported_request")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_unsupported
final JsonField<List<ThreadUnsupportedFeatureName>> _unsupported()
Returns the raw JSON value of unsupported.
Unlike unsupported, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ThreadUnsupportedRequestErrorDetails.Builder toBuilder()
-
validate
final ThreadUnsupportedRequestErrorDetails validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ThreadUnsupportedRequestErrorDetails.Builder builder()
Returns a mutable builder for constructing an instance of ThreadUnsupportedRequestErrorDetails.
-
-
-
-