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