Class BetaSearchResultBlockParam.Builder
-
- All Implemented Interfaces:
public final class BetaSearchResultBlockParam.BuilderA builder for BetaSearchResultBlockParam.
-
-
Method Summary
-
-
Method Detail
-
content
final BetaSearchResultBlockParam.Builder content(List<BetaTextBlockParam> content)
-
content
final BetaSearchResultBlockParam.Builder content(JsonField<List<BetaTextBlockParam>> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed
List<BetaTextBlockParam>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addContent
final BetaSearchResultBlockParam.Builder addContent(BetaTextBlockParam content)
Adds a single BetaTextBlockParam to Builder.content.
-
addContent
final BetaSearchResultBlockParam.Builder addContent(BetaTextBlock content)
Alias for calling addContent with
content.toParam().
-
source
final BetaSearchResultBlockParam.Builder source(String source)
-
source
final BetaSearchResultBlockParam.Builder source(JsonField<String> source)
Sets Builder.source to an arbitrary JSON value.
You should usually call Builder.source with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
title
final BetaSearchResultBlockParam.Builder title(String title)
-
title
final BetaSearchResultBlockParam.Builder title(JsonField<String> title)
Sets Builder.title to an arbitrary JSON value.
You should usually call Builder.title 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 BetaSearchResultBlockParam.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("search_result")This method is primarily for setting the field to an undocumented or not yet supported value.
-
cacheControl
final BetaSearchResultBlockParam.Builder cacheControl(BetaCacheControlEphemeral cacheControl)
Create a cache control breakpoint at this content block.
-
cacheControl
final BetaSearchResultBlockParam.Builder cacheControl(Optional<BetaCacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final BetaSearchResultBlockParam.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 BetaSearchResultBlockParam.Builder citations(BetaCitationsConfigParam citations)
-
citations
final BetaSearchResultBlockParam.Builder citations(JsonField<BetaCitationsConfigParam> citations)
Sets Builder.citations to an arbitrary JSON value.
You should usually call Builder.citations with a well-typed BetaCitationsConfigParam value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaSearchResultBlockParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaSearchResultBlockParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaSearchResultBlockParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaSearchResultBlockParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaSearchResultBlockParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaSearchResultBlockParam build()
Returns an immutable instance of BetaSearchResultBlockParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() .source() .title()
-
-
-
-