Class BetaWebFetchBlockParam
-
- All Implemented Interfaces:
public final class BetaWebFetchBlockParam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaWebFetchBlockParam.BuilderA builder for BetaWebFetchBlockParam.
-
Method Summary
Modifier and Type Method Description final BetaRequestDocumentBlockcontent()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("web_fetch_result")final Stringurl()Fetched content URL final Optional<String>retrievedAt()ISO 8601 timestamp when the content was retrieved final JsonField<BetaRequestDocumentBlock>_content()Returns the raw JSON value of content. final JsonField<String>_url()Returns the raw JSON value of url. final JsonField<String>_retrievedAt()Returns the raw JSON value of retrievedAt. final Map<String, JsonValue>_additionalProperties()final BetaWebFetchBlockParam.BuildertoBuilder()final BetaWebFetchBlockParamvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaWebFetchBlockParam.Builderbuilder()Returns a mutable builder for constructing an instance of BetaWebFetchBlockParam. -
-
Method Detail
-
content
final BetaRequestDocumentBlock content()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("web_fetch_result")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
retrievedAt
final Optional<String> retrievedAt()
ISO 8601 timestamp when the content was retrieved
-
_content
final JsonField<BetaRequestDocumentBlock> _content()
Returns the raw JSON value of content.
Unlike content, 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.
-
_retrievedAt
final JsonField<String> _retrievedAt()
Returns the raw JSON value of retrievedAt.
Unlike retrievedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaWebFetchBlockParam.Builder toBuilder()
-
validate
final BetaWebFetchBlockParam validate()
-
builder
final static BetaWebFetchBlockParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaWebFetchBlockParam.
The following fields are required:
.content() .url()
-
-
-
-