Class BetaWebSearchResultBlock
-
- All Implemented Interfaces:
public final class BetaWebSearchResultBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaWebSearchResultBlock.BuilderA builder for BetaWebSearchResultBlock.
-
Method Summary
Modifier and Type Method Description final BetaWebSearchResultBlockParamtoParam()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 BetaWebSearchResultBlock.BuildertoBuilder()final BetaWebSearchResultBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaWebSearchResultBlock.Builderbuilder()Returns a mutable builder for constructing an instance of BetaWebSearchResultBlock. -
-
Method Detail
-
toParam
final BetaWebSearchResultBlockParam 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 BetaWebSearchResultBlock.Builder toBuilder()
-
validate
final BetaWebSearchResultBlock 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 BetaWebSearchResultBlock.Builder builder()
Returns a mutable builder for constructing an instance of BetaWebSearchResultBlock.
The following fields are required:
.encryptedContent() .pageAge() .title() .url()
-
-
-
-