Class UserMessageParam
-
- All Implemented Interfaces:
public final class UserMessageParam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUserMessageParam.BuilderA builder for UserMessageParam.
-
Method Summary
Modifier and Type Method Description final MessageContentParamcontent()final JsonValue_role()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("user")final JsonField<MessageContentParam>_content()Returns the raw JSON value of content. final Map<String, JsonValue>_additionalProperties()final UserMessageParam.BuildertoBuilder()final UserMessageParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UserMessageParam.Builderbuilder()Returns a mutable builder for constructing an instance of UserMessageParam. final static UserMessageParamof(MessageContentParam content)Returns an immutable instance of UserMessageParam with the required content set to the given value. final static UserMessageParamof(String string)Alias for calling of with MessageContentParam.ofString(string).final static UserMessageParamofContentBlockParams(List<ContentBlockParam> contentBlockParams)Alias for calling of with MessageContentParam.ofContentBlockParams(contentBlockParams).-
-
Method Detail
-
content
final MessageContentParam content()
-
_role
final JsonValue _role()
Expected to always return the following:
JsonValue.from("user")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_content
final JsonField<MessageContentParam> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final UserMessageParam.Builder toBuilder()
-
validate
final UserMessageParam 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 UserMessageParam.Builder builder()
Returns a mutable builder for constructing an instance of UserMessageParam.
The following fields are required:
.content()
-
of
final static UserMessageParam of(MessageContentParam content)
Returns an immutable instance of UserMessageParam with the required content set to the given value.
-
of
final static UserMessageParam of(String string)
Alias for calling of with
MessageContentParam.ofString(string).
-
ofContentBlockParams
final static UserMessageParam ofContentBlockParams(List<ContentBlockParam> contentBlockParams)
Alias for calling of with
MessageContentParam.ofContentBlockParams(contentBlockParams).
-
-
-
-