Class BetaWebFetchBlock
-
- All Implemented Interfaces:
public final class BetaWebFetchBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaWebFetchBlock.BuilderA builder for BetaWebFetchBlock.
-
Method Summary
Modifier and Type Method Description final BetaWebFetchBlockParamtoParam()final BetaDocumentBlockcontent()final Optional<String>retrievedAt()ISO 8601 timestamp when the content was retrieved 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 JsonField<BetaDocumentBlock>_content()Returns the raw JSON value of content. final JsonField<String>_retrievedAt()Returns the raw JSON value of retrievedAt. final JsonField<String>_url()Returns the raw JSON value of url. final Map<String, JsonValue>_additionalProperties()final BetaWebFetchBlock.BuildertoBuilder()final BetaWebFetchBlockvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaWebFetchBlock.Builderbuilder()Returns a mutable builder for constructing an instance of BetaWebFetchBlock. -
-
Method Detail
-
toParam
final BetaWebFetchBlockParam toParam()
-
content
final BetaDocumentBlock content()
-
retrievedAt
final Optional<String> retrievedAt()
ISO 8601 timestamp when the content was retrieved
-
_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).
-
_content
final JsonField<BetaDocumentBlock> _content()
Returns the raw JSON value of content.
Unlike content, 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.
-
_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 BetaWebFetchBlock.Builder toBuilder()
-
validate
final BetaWebFetchBlock validate()
-
builder
final static BetaWebFetchBlock.Builder builder()
Returns a mutable builder for constructing an instance of BetaWebFetchBlock.
The following fields are required:
.content() .retrievedAt() .url()
-
-
-
-