Package com.anthropic.models.messages
Class RawContentBlockDeltaEvent
-
- All Implemented Interfaces:
public final class RawContentBlockDeltaEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRawContentBlockDeltaEvent.BuilderA builder for RawContentBlockDeltaEvent.
-
Method Summary
Modifier and Type Method Description final RawContentBlockDeltadelta()final Longindex()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("content_block_delta")final JsonField<RawContentBlockDelta>_delta()Returns the raw JSON value of delta. final JsonField<Long>_index()Returns the raw JSON value of index. final Map<String, JsonValue>_additionalProperties()final RawContentBlockDeltaEvent.BuildertoBuilder()final RawContentBlockDeltaEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RawContentBlockDeltaEvent.Builderbuilder()Returns a mutable builder for constructing an instance of RawContentBlockDeltaEvent. -
-
Method Detail
-
delta
final RawContentBlockDelta delta()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("content_block_delta")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_delta
final JsonField<RawContentBlockDelta> _delta()
Returns the raw JSON value of delta.
Unlike delta, this method doesn't throw if the JSON field has an unexpected type.
-
_index
final JsonField<Long> _index()
Returns the raw JSON value of index.
Unlike index, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RawContentBlockDeltaEvent.Builder toBuilder()
-
validate
final RawContentBlockDeltaEvent 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 RawContentBlockDeltaEvent.Builder builder()
Returns a mutable builder for constructing an instance of RawContentBlockDeltaEvent.
The following fields are required:
.delta() .index()
-
-
-
-