Class RawContentBlockStartEvent
-
- All Implemented Interfaces:
public final class RawContentBlockStartEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRawContentBlockStartEvent.BuilderA builder for RawContentBlockStartEvent.
public final classRawContentBlockStartEvent.ContentBlockResponse model for a file uploaded to the container.
-
Method Summary
Modifier and Type Method Description final RawContentBlockStartEvent.ContentBlockcontentBlock()Response model for a file uploaded to the container. 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_start")final JsonField<RawContentBlockStartEvent.ContentBlock>_contentBlock()Returns the raw JSON value of contentBlock. final JsonField<Long>_index()Returns the raw JSON value of index. final Map<String, JsonValue>_additionalProperties()final RawContentBlockStartEvent.BuildertoBuilder()final RawContentBlockStartEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RawContentBlockStartEvent.Builderbuilder()Returns a mutable builder for constructing an instance of RawContentBlockStartEvent. -
-
Method Detail
-
contentBlock
final RawContentBlockStartEvent.ContentBlock contentBlock()
Response model for a file uploaded to the container.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("content_block_start")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_contentBlock
final JsonField<RawContentBlockStartEvent.ContentBlock> _contentBlock()
Returns the raw JSON value of contentBlock.
Unlike contentBlock, 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 RawContentBlockStartEvent.Builder toBuilder()
-
validate
final RawContentBlockStartEvent 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 RawContentBlockStartEvent.Builder builder()
Returns a mutable builder for constructing an instance of RawContentBlockStartEvent.
The following fields are required:
.contentBlock() .index()
-
-
-
-