Class BetaUserMessageParam
-
- All Implemented Interfaces:
public final class BetaUserMessageParam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaUserMessageParam.BuilderA builder for BetaUserMessageParam.
-
Method Summary
Modifier and Type Method Description final BetaMessageContentParamcontent()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<BetaMessageContentParam>_content()Returns the raw JSON value of content. final Map<String, JsonValue>_additionalProperties()final BetaUserMessageParam.BuildertoBuilder()final BetaUserMessageParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaUserMessageParam.Builderbuilder()Returns a mutable builder for constructing an instance of BetaUserMessageParam. final static BetaUserMessageParamof(BetaMessageContentParam content)Returns an immutable instance of BetaUserMessageParam with the required content set to the given value. final static BetaUserMessageParamof(String string)Alias for calling of with BetaMessageContentParam.ofString(string).final static BetaUserMessageParamofContentBlockParams(List<BetaContentBlockParam> contentBlockParams)Alias for calling of with BetaMessageContentParam.ofContentBlockParams(contentBlockParams).-
-
Method Detail
-
content
final BetaMessageContentParam 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<BetaMessageContentParam> _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 BetaUserMessageParam.Builder toBuilder()
-
validate
final BetaUserMessageParam 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 BetaUserMessageParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaUserMessageParam.
The following fields are required:
.content()
-
of
final static BetaUserMessageParam of(BetaMessageContentParam content)
Returns an immutable instance of BetaUserMessageParam with the required content set to the given value.
-
of
final static BetaUserMessageParam of(String string)
Alias for calling of with
BetaMessageContentParam.ofString(string).
-
ofContentBlockParams
final static BetaUserMessageParam ofContentBlockParams(List<BetaContentBlockParam> contentBlockParams)
Alias for calling of with
BetaMessageContentParam.ofContentBlockParams(contentBlockParams).
-
-
-
-