Package com.anthropic.models.messages
Class ContentBlockSource
-
- All Implemented Interfaces:
public final class ContentBlockSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classContentBlockSource.BuilderA builder for ContentBlockSource.
public final classContentBlockSource.Content
-
Method Summary
Modifier and Type Method Description final ContentBlockSource.Contentcontent()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("content")final JsonField<ContentBlockSource.Content>_content()Returns the raw JSON value of content. final Map<String, JsonValue>_additionalProperties()final ContentBlockSource.BuildertoBuilder()final ContentBlockSourcevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ContentBlockSource.Builderbuilder()Returns a mutable builder for constructing an instance of ContentBlockSource. -
-
Method Detail
-
content
final ContentBlockSource.Content content()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("content")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_content
final JsonField<ContentBlockSource.Content> _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 ContentBlockSource.Builder toBuilder()
-
validate
final ContentBlockSource validate()
-
builder
final static ContentBlockSource.Builder builder()
Returns a mutable builder for constructing an instance of ContentBlockSource.
The following fields are required:
.content()
-
-
-
-