Class BetaRawContentBlockDeltaEvent.Builder
-
- All Implemented Interfaces:
public final class BetaRawContentBlockDeltaEvent.BuilderA builder for BetaRawContentBlockDeltaEvent.
-
-
Method Summary
Modifier and Type Method Description final BetaRawContentBlockDeltaEvent.Builderdelta(BetaRawContentBlockDelta delta)final BetaRawContentBlockDeltaEvent.Builderdelta(JsonField<BetaRawContentBlockDelta> delta)Sets Builder.delta to an arbitrary JSON value. final BetaRawContentBlockDeltaEvent.Builderdelta(BetaTextDelta text)Alias for calling delta with BetaRawContentBlockDelta.ofText(text).final BetaRawContentBlockDeltaEvent.Builderdelta(BetaInputJsonDelta inputJson)Alias for calling delta with BetaRawContentBlockDelta.ofInputJson(inputJson).final BetaRawContentBlockDeltaEvent.Builderdelta(BetaCitationsDelta citations)Alias for calling delta with BetaRawContentBlockDelta.ofCitations(citations).final BetaRawContentBlockDeltaEvent.Builderdelta(BetaThinkingDelta thinking)Alias for calling delta with BetaRawContentBlockDelta.ofThinking(thinking).final BetaRawContentBlockDeltaEvent.Builderdelta(BetaSignatureDelta signature)Alias for calling delta with BetaRawContentBlockDelta.ofSignature(signature).final BetaRawContentBlockDeltaEvent.BuildertextDelta(String text)Alias for calling delta with the following: BetaTextDelta.builder() .text(text) .build()final BetaRawContentBlockDeltaEvent.BuilderinputJsonDelta(String partialJson)Alias for calling delta with the following: BetaInputJsonDelta.builder() .partialJson(partialJson) .build()final BetaRawContentBlockDeltaEvent.BuildercitationsDelta(BetaCitationsDelta.Citation citation)Alias for calling delta with the following: BetaCitationsDelta.builder() .citation(citation) .build()final BetaRawContentBlockDeltaEvent.BuildercitationsDelta(BetaCitationCharLocation charLocation)Alias for calling citationsDelta with BetaCitationsDelta.Citation.ofCharLocation(charLocation).final BetaRawContentBlockDeltaEvent.BuildercitationsDelta(BetaCitationPageLocation pageLocation)Alias for calling citationsDelta with BetaCitationsDelta.Citation.ofPageLocation(pageLocation).final BetaRawContentBlockDeltaEvent.BuildercitationsDelta(BetaCitationContentBlockLocation contentBlockLocation)Alias for calling citationsDelta with BetaCitationsDelta.Citation.ofContentBlockLocation(contentBlockLocation).final BetaRawContentBlockDeltaEvent.BuildercitationsDelta(BetaCitationsWebSearchResultLocation webSearchResultLocation)Alias for calling citationsDelta with BetaCitationsDelta.Citation.ofWebSearchResultLocation(webSearchResultLocation).final BetaRawContentBlockDeltaEvent.BuilderthinkingDelta(String thinking)Alias for calling delta with the following: BetaThinkingDelta.builder() .thinking(thinking) .build()final BetaRawContentBlockDeltaEvent.BuildersignatureDelta(String signature)Alias for calling delta with the following: BetaSignatureDelta.builder() .signature(signature) .build()final BetaRawContentBlockDeltaEvent.Builderindex(Long index)final BetaRawContentBlockDeltaEvent.Builderindex(JsonField<Long> index)Sets Builder.index to an arbitrary JSON value. final BetaRawContentBlockDeltaEvent.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaRawContentBlockDeltaEvent.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaRawContentBlockDeltaEvent.BuilderputAdditionalProperty(String key, JsonValue value)final BetaRawContentBlockDeltaEvent.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaRawContentBlockDeltaEvent.BuilderremoveAdditionalProperty(String key)final BetaRawContentBlockDeltaEvent.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaRawContentBlockDeltaEventbuild()Returns an immutable instance of BetaRawContentBlockDeltaEvent. -
-
Method Detail
-
delta
final BetaRawContentBlockDeltaEvent.Builder delta(BetaRawContentBlockDelta delta)
-
delta
final BetaRawContentBlockDeltaEvent.Builder delta(JsonField<BetaRawContentBlockDelta> delta)
Sets Builder.delta to an arbitrary JSON value.
You should usually call Builder.delta with a well-typed BetaRawContentBlockDelta value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
delta
final BetaRawContentBlockDeltaEvent.Builder delta(BetaTextDelta text)
Alias for calling delta with
BetaRawContentBlockDelta.ofText(text).
-
delta
final BetaRawContentBlockDeltaEvent.Builder delta(BetaInputJsonDelta inputJson)
Alias for calling delta with
BetaRawContentBlockDelta.ofInputJson(inputJson).
-
delta
final BetaRawContentBlockDeltaEvent.Builder delta(BetaCitationsDelta citations)
Alias for calling delta with
BetaRawContentBlockDelta.ofCitations(citations).
-
delta
final BetaRawContentBlockDeltaEvent.Builder delta(BetaThinkingDelta thinking)
Alias for calling delta with
BetaRawContentBlockDelta.ofThinking(thinking).
-
delta
final BetaRawContentBlockDeltaEvent.Builder delta(BetaSignatureDelta signature)
Alias for calling delta with
BetaRawContentBlockDelta.ofSignature(signature).
-
textDelta
final BetaRawContentBlockDeltaEvent.Builder textDelta(String text)
Alias for calling delta with the following:
BetaTextDelta.builder() .text(text) .build()
-
inputJsonDelta
final BetaRawContentBlockDeltaEvent.Builder inputJsonDelta(String partialJson)
Alias for calling delta with the following:
BetaInputJsonDelta.builder() .partialJson(partialJson) .build()
-
citationsDelta
final BetaRawContentBlockDeltaEvent.Builder citationsDelta(BetaCitationsDelta.Citation citation)
Alias for calling delta with the following:
BetaCitationsDelta.builder() .citation(citation) .build()
-
citationsDelta
final BetaRawContentBlockDeltaEvent.Builder citationsDelta(BetaCitationCharLocation charLocation)
Alias for calling citationsDelta with
BetaCitationsDelta.Citation.ofCharLocation(charLocation).
-
citationsDelta
final BetaRawContentBlockDeltaEvent.Builder citationsDelta(BetaCitationPageLocation pageLocation)
Alias for calling citationsDelta with
BetaCitationsDelta.Citation.ofPageLocation(pageLocation).
-
citationsDelta
final BetaRawContentBlockDeltaEvent.Builder citationsDelta(BetaCitationContentBlockLocation contentBlockLocation)
Alias for calling citationsDelta with
BetaCitationsDelta.Citation.ofContentBlockLocation(contentBlockLocation).
-
citationsDelta
final BetaRawContentBlockDeltaEvent.Builder citationsDelta(BetaCitationsWebSearchResultLocation webSearchResultLocation)
Alias for calling citationsDelta with
BetaCitationsDelta.Citation.ofWebSearchResultLocation(webSearchResultLocation).
-
thinkingDelta
final BetaRawContentBlockDeltaEvent.Builder thinkingDelta(String thinking)
Alias for calling delta with the following:
BetaThinkingDelta.builder() .thinking(thinking) .build()
-
signatureDelta
final BetaRawContentBlockDeltaEvent.Builder signatureDelta(String signature)
Alias for calling delta with the following:
BetaSignatureDelta.builder() .signature(signature) .build()
-
index
final BetaRawContentBlockDeltaEvent.Builder index(Long index)
-
index
final BetaRawContentBlockDeltaEvent.Builder index(JsonField<Long> index)
Sets Builder.index to an arbitrary JSON value.
You should usually call Builder.index with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaRawContentBlockDeltaEvent.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("content_block_delta")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaRawContentBlockDeltaEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaRawContentBlockDeltaEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaRawContentBlockDeltaEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaRawContentBlockDeltaEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaRawContentBlockDeltaEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaRawContentBlockDeltaEvent build()
Returns an immutable instance of BetaRawContentBlockDeltaEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.delta() .index()
-
-
-
-