Class WebSearchResultBlock
-
- All Implemented Interfaces:
public final class WebSearchResultBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWebSearchResultBlock.BuilderA builder for WebSearchResultBlock.
-
Method Summary
Modifier and Type Method Description final WebSearchResultBlockParamtoParam()final StringencryptedContent()final Optional<String>pageAge()final Stringtitle()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("web_search_result")final Stringurl()final JsonField<String>_encryptedContent()Returns the raw JSON value of encryptedContent. final JsonField<String>_pageAge()Returns the raw JSON value of pageAge. final JsonField<String>_title()Returns the raw JSON value of title. final JsonField<String>_url()Returns the raw JSON value of url. final Map<String, JsonValue>_additionalProperties()final WebSearchResultBlock.BuildertoBuilder()final WebSearchResultBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static WebSearchResultBlock.Builderbuilder()Returns a mutable builder for constructing an instance of WebSearchResultBlock. -
-
Method Detail
-
toParam
final WebSearchResultBlockParam toParam()
-
encryptedContent
final String encryptedContent()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("web_search_result")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_encryptedContent
final JsonField<String> _encryptedContent()
Returns the raw JSON value of encryptedContent.
Unlike encryptedContent, this method doesn't throw if the JSON field has an unexpected type.
-
_pageAge
final JsonField<String> _pageAge()
Returns the raw JSON value of pageAge.
Unlike pageAge, this method doesn't throw if the JSON field has an unexpected type.
-
_title
final JsonField<String> _title()
Returns the raw JSON value of title.
Unlike title, this method doesn't throw if the JSON field has an unexpected type.
-
_url
final JsonField<String> _url()
Returns the raw JSON value of url.
Unlike url, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final WebSearchResultBlock.Builder toBuilder()
-
validate
final WebSearchResultBlock validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static WebSearchResultBlock.Builder builder()
Returns a mutable builder for constructing an instance of WebSearchResultBlock.
The following fields are required:
.encryptedContent() .pageAge() .title() .url()
-
-
-
-