Class BetaMessageParam
-
- All Implemented Interfaces:
public final class BetaMessageParam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaMessageParam.BuilderA builder for BetaMessageParam.
public final classBetaMessageParam.Contentpublic final classBetaMessageParam.Role
-
Method Summary
Modifier and Type Method Description final BetaMessageParam.Contentcontent()final BetaMessageParam.Rolerole()final JsonField<BetaMessageParam.Content>_content()Returns the raw JSON value of content. final JsonField<BetaMessageParam.Role>_role()Returns the raw JSON value of role. final Map<String, JsonValue>_additionalProperties()final BetaMessageParam.BuildertoBuilder()final BetaMessageParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaMessageParam.Builderbuilder()Returns a mutable builder for constructing an instance of BetaMessageParam. -
-
Method Detail
-
content
final BetaMessageParam.Content content()
-
role
final BetaMessageParam.Role role()
-
_content
final JsonField<BetaMessageParam.Content> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_role
final JsonField<BetaMessageParam.Role> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaMessageParam.Builder toBuilder()
-
validate
final BetaMessageParam 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 BetaMessageParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaMessageParam.
The following fields are required:
.content() .role()
-
-
-
-