Class BetaTextBlockParam.Builder
-
- All Implemented Interfaces:
public final class BetaTextBlockParam.BuilderA builder for BetaTextBlockParam.
-
-
Method Summary
Modifier and Type Method Description final BetaTextBlockParam.Buildertext(String text)final BetaTextBlockParam.Buildertext(JsonField<String> text)Sets Builder.text to an arbitrary JSON value. final BetaTextBlockParam.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaTextBlockParam.BuildercacheControl(BetaCacheControlEphemeral cacheControl)Create a cache control breakpoint at this content block. final BetaTextBlockParam.BuildercacheControl(Optional<BetaCacheControlEphemeral> cacheControl)Alias for calling Builder.cacheControl with cacheControl.orElse(null).final BetaTextBlockParam.BuildercacheControl(JsonField<BetaCacheControlEphemeral> cacheControl)Sets Builder.cacheControl to an arbitrary JSON value. final BetaTextBlockParam.Buildercitations(List<BetaTextCitationParam> citations)final BetaTextBlockParam.Buildercitations(Optional<List<BetaTextCitationParam>> citations)Alias for calling Builder.citations with citations.orElse(null).final BetaTextBlockParam.Buildercitations(JsonField<List<BetaTextCitationParam>> citations)Sets Builder.citations to an arbitrary JSON value. final BetaTextBlockParam.BuilderaddCitation(BetaTextCitationParam citation)Adds a single BetaTextCitationParam to citations. final BetaTextBlockParam.BuilderaddCitation(BetaTextCitation citation)Alias for calling addCitation with citation.toParam().final BetaTextBlockParam.BuilderaddCitation(BetaCitationCharLocation charLocation)Alias for calling addCitation with BetaTextCitation.ofCharLocation(charLocation).final BetaTextBlockParam.BuilderaddCitation(BetaCitationPageLocation pageLocation)Alias for calling addCitation with BetaTextCitation.ofPageLocation(pageLocation).final BetaTextBlockParam.BuilderaddCitation(BetaCitationContentBlockLocation contentBlockLocation)Alias for calling addCitation with BetaTextCitation.ofContentBlockLocation(contentBlockLocation).final BetaTextBlockParam.BuilderaddCitation(BetaCitationsWebSearchResultLocation webSearchResultLocation)Alias for calling addCitation with BetaTextCitation.ofWebSearchResultLocation(webSearchResultLocation).final BetaTextBlockParam.BuilderaddCitation(BetaCitationSearchResultLocation searchResultLocation)Alias for calling addCitation with BetaTextCitation.ofSearchResultLocation(searchResultLocation).final BetaTextBlockParam.BuilderaddCitation(BetaCitationCharLocationParam charLocation)Alias for calling addCitation with BetaTextCitationParam.ofCharLocation(charLocation).final BetaTextBlockParam.BuilderaddCitation(BetaCitationPageLocationParam pageLocation)Alias for calling addCitation with BetaTextCitationParam.ofPageLocation(pageLocation).final BetaTextBlockParam.BuilderaddCitation(BetaCitationContentBlockLocationParam contentBlockLocation)Alias for calling addCitation with BetaTextCitationParam.ofContentBlockLocation(contentBlockLocation).final BetaTextBlockParam.BuilderaddCitation(BetaCitationWebSearchResultLocationParam webSearchResultLocation)Alias for calling addCitation with BetaTextCitationParam.ofWebSearchResultLocation(webSearchResultLocation).final BetaTextBlockParam.BuilderaddCitation(BetaCitationSearchResultLocationParam searchResultLocation)Alias for calling addCitation with BetaTextCitationParam.ofSearchResultLocation(searchResultLocation).final BetaTextBlockParam.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaTextBlockParam.BuilderputAdditionalProperty(String key, JsonValue value)final BetaTextBlockParam.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaTextBlockParam.BuilderremoveAdditionalProperty(String key)final BetaTextBlockParam.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaTextBlockParambuild()Returns an immutable instance of BetaTextBlockParam. -
-
Method Detail
-
text
final BetaTextBlockParam.Builder text(String text)
-
text
final BetaTextBlockParam.Builder text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value.
You should usually call Builder.text with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaTextBlockParam.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("text")This method is primarily for setting the field to an undocumented or not yet supported value.
-
cacheControl
final BetaTextBlockParam.Builder cacheControl(BetaCacheControlEphemeral cacheControl)
Create a cache control breakpoint at this content block.
-
cacheControl
final BetaTextBlockParam.Builder cacheControl(Optional<BetaCacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final BetaTextBlockParam.Builder cacheControl(JsonField<BetaCacheControlEphemeral> cacheControl)
Sets Builder.cacheControl to an arbitrary JSON value.
You should usually call Builder.cacheControl with a well-typed BetaCacheControlEphemeral value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
citations
final BetaTextBlockParam.Builder citations(List<BetaTextCitationParam> citations)
-
citations
final BetaTextBlockParam.Builder citations(Optional<List<BetaTextCitationParam>> citations)
Alias for calling Builder.citations with
citations.orElse(null).
-
citations
final BetaTextBlockParam.Builder citations(JsonField<List<BetaTextCitationParam>> citations)
Sets Builder.citations to an arbitrary JSON value.
You should usually call Builder.citations with a well-typed
List<BetaTextCitationParam>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addCitation
final BetaTextBlockParam.Builder addCitation(BetaTextCitationParam citation)
Adds a single BetaTextCitationParam to citations.
-
addCitation
final BetaTextBlockParam.Builder addCitation(BetaTextCitation citation)
Alias for calling addCitation with
citation.toParam().
-
addCitation
final BetaTextBlockParam.Builder addCitation(BetaCitationCharLocation charLocation)
Alias for calling addCitation with
BetaTextCitation.ofCharLocation(charLocation).
-
addCitation
final BetaTextBlockParam.Builder addCitation(BetaCitationPageLocation pageLocation)
Alias for calling addCitation with
BetaTextCitation.ofPageLocation(pageLocation).
-
addCitation
final BetaTextBlockParam.Builder addCitation(BetaCitationContentBlockLocation contentBlockLocation)
Alias for calling addCitation with
BetaTextCitation.ofContentBlockLocation(contentBlockLocation).
-
addCitation
final BetaTextBlockParam.Builder addCitation(BetaCitationsWebSearchResultLocation webSearchResultLocation)
Alias for calling addCitation with
BetaTextCitation.ofWebSearchResultLocation(webSearchResultLocation).
-
addCitation
final BetaTextBlockParam.Builder addCitation(BetaCitationSearchResultLocation searchResultLocation)
Alias for calling addCitation with
BetaTextCitation.ofSearchResultLocation(searchResultLocation).
-
addCitation
final BetaTextBlockParam.Builder addCitation(BetaCitationCharLocationParam charLocation)
Alias for calling addCitation with
BetaTextCitationParam.ofCharLocation(charLocation).
-
addCitation
final BetaTextBlockParam.Builder addCitation(BetaCitationPageLocationParam pageLocation)
Alias for calling addCitation with
BetaTextCitationParam.ofPageLocation(pageLocation).
-
addCitation
final BetaTextBlockParam.Builder addCitation(BetaCitationContentBlockLocationParam contentBlockLocation)
Alias for calling addCitation with
BetaTextCitationParam.ofContentBlockLocation(contentBlockLocation).
-
addCitation
final BetaTextBlockParam.Builder addCitation(BetaCitationWebSearchResultLocationParam webSearchResultLocation)
Alias for calling addCitation with
BetaTextCitationParam.ofWebSearchResultLocation(webSearchResultLocation).
-
addCitation
final BetaTextBlockParam.Builder addCitation(BetaCitationSearchResultLocationParam searchResultLocation)
Alias for calling addCitation with
BetaTextCitationParam.ofSearchResultLocation(searchResultLocation).
-
additionalProperties
final BetaTextBlockParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaTextBlockParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaTextBlockParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaTextBlockParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaTextBlockParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaTextBlockParam build()
Returns an immutable instance of BetaTextBlockParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.text()
-
-
-
-