Class BetaManagedAgentsDeltaContent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsDeltaContent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsDeltaContent.BuilderA builder for BetaManagedAgentsDeltaContent.
-
Method Summary
Modifier and Type Method Description final BetaManagedAgentsTextBlockcontent()A partial element of the content array at index, typed like the element itself — the same shape the buffered agent.message carries in content. final Optional<Long>index()Which entry in the previewed event's content array this fragment lands in. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("content_delta")final JsonField<BetaManagedAgentsTextBlock>_content()Returns the raw JSON value of content. final JsonField<Long>_index()Returns the raw JSON value of index. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsDeltaContent.BuildertoBuilder()final BetaManagedAgentsDeltaContentvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsDeltaContent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsDeltaContent. final static BetaManagedAgentsDeltaContentof(BetaManagedAgentsTextBlock content)Returns an immutable instance of BetaManagedAgentsDeltaContent with the required content set to the given value. -
-
Method Detail
-
content
final BetaManagedAgentsTextBlock content()
A partial element of the content array at index, typed like the element itself — the same shape the buffered agent.message carries in content.
-
index
final Optional<Long> index()
Which entry in the previewed event's content array this fragment lands in. Insert content as that entry when the index is new; append to the existing entry otherwise.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("content_delta")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_content
final JsonField<BetaManagedAgentsTextBlock> _content()
Returns the raw JSON value of content.
Unlike content, 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 BetaManagedAgentsDeltaContent.Builder toBuilder()
-
validate
final BetaManagedAgentsDeltaContent 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 BetaManagedAgentsDeltaContent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsDeltaContent.
The following fields are required:
.content()
-
of
final static BetaManagedAgentsDeltaContent of(BetaManagedAgentsTextBlock content)
Returns an immutable instance of BetaManagedAgentsDeltaContent with the required content set to the given value.
-
-
-
-