Class WebSearchResultBlock.Builder
-
- All Implemented Interfaces:
public final class WebSearchResultBlock.BuilderA builder for WebSearchResultBlock.
-
-
Method Summary
-
-
Method Detail
-
encryptedContent
final WebSearchResultBlock.Builder encryptedContent(String encryptedContent)
-
encryptedContent
final WebSearchResultBlock.Builder encryptedContent(JsonField<String> encryptedContent)
Sets Builder.encryptedContent to an arbitrary JSON value.
You should usually call Builder.encryptedContent with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
pageAge
final WebSearchResultBlock.Builder pageAge(String pageAge)
-
pageAge
final WebSearchResultBlock.Builder pageAge(Optional<String> pageAge)
Alias for calling Builder.pageAge with
pageAge.orElse(null).
-
pageAge
final WebSearchResultBlock.Builder pageAge(JsonField<String> pageAge)
Sets Builder.pageAge to an arbitrary JSON value.
You should usually call Builder.pageAge 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 WebSearchResultBlock.Builder title(String title)
-
title
final WebSearchResultBlock.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 WebSearchResultBlock.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("web_search_result")This method is primarily for setting the field to an undocumented or not yet supported value.
-
url
final WebSearchResultBlock.Builder url(String url)
-
url
final WebSearchResultBlock.Builder url(JsonField<String> url)
Sets Builder.url to an arbitrary JSON value.
You should usually call Builder.url with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final WebSearchResultBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final WebSearchResultBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final WebSearchResultBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final WebSearchResultBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final WebSearchResultBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final WebSearchResultBlock build()
Returns an immutable instance of WebSearchResultBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.encryptedContent() .pageAge() .title() .url()
-
-
-
-