Class BetaTextBlockParam.Builder
-
- All Implemented Interfaces:
public final class BetaTextBlockParam.BuilderA builder for BetaTextBlockParam.
-
-
Method Summary
-
-
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(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).
-
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()
-
-
-
-