Class BetaSearchResultBlockParam
-
- All Implemented Interfaces:
public final class BetaSearchResultBlockParam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaSearchResultBlockParam.BuilderA builder for BetaSearchResultBlockParam.
-
Method Summary
Modifier and Type Method Description final List<BetaTextBlockParam>content()final Stringsource()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("search_result")final Optional<BetaCacheControlEphemeral>cacheControl()Create a cache control breakpoint at this content block. final Optional<BetaCitationsConfigParam>citations()final JsonField<List<BetaTextBlockParam>>_content()Returns the raw JSON value of content. final JsonField<String>_source()Returns the raw JSON value of source. final JsonField<String>_title()Returns the raw JSON value of title. final JsonField<BetaCacheControlEphemeral>_cacheControl()Returns the raw JSON value of cacheControl. final JsonField<BetaCitationsConfigParam>_citations()Returns the raw JSON value of citations. final Map<String, JsonValue>_additionalProperties()final BetaSearchResultBlockParam.BuildertoBuilder()final BetaSearchResultBlockParamvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaSearchResultBlockParam.Builderbuilder()Returns a mutable builder for constructing an instance of BetaSearchResultBlockParam. -
-
Method Detail
-
content
final List<BetaTextBlockParam> content()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("search_result")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
cacheControl
final Optional<BetaCacheControlEphemeral> cacheControl()
Create a cache control breakpoint at this content block.
-
citations
final Optional<BetaCitationsConfigParam> citations()
-
_content
final JsonField<List<BetaTextBlockParam>> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_source
final JsonField<String> _source()
Returns the raw JSON value of source.
Unlike source, 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.
-
_cacheControl
final JsonField<BetaCacheControlEphemeral> _cacheControl()
Returns the raw JSON value of cacheControl.
Unlike cacheControl, this method doesn't throw if the JSON field has an unexpected type.
-
_citations
final JsonField<BetaCitationsConfigParam> _citations()
Returns the raw JSON value of citations.
Unlike citations, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaSearchResultBlockParam.Builder toBuilder()
-
validate
final BetaSearchResultBlockParam validate()
-
builder
final static BetaSearchResultBlockParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaSearchResultBlockParam.
The following fields are required:
.content() .source() .title()
-
-
-
-