Class WebFetchBlock
-
- All Implemented Interfaces:
public final class WebFetchBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWebFetchBlock.BuilderA builder for WebFetchBlock.
-
Method Summary
Modifier and Type Method Description final WebFetchBlockParamtoParam()final DocumentBlockcontent()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<DocumentBlock>_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 WebFetchBlock.BuildertoBuilder()final WebFetchBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static WebFetchBlock.Builderbuilder()Returns a mutable builder for constructing an instance of WebFetchBlock. -
-
Method Detail
-
toParam
final WebFetchBlockParam toParam()
-
content
final DocumentBlock 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<DocumentBlock> _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 WebFetchBlock.Builder toBuilder()
-
validate
final WebFetchBlock 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 WebFetchBlock.Builder builder()
Returns a mutable builder for constructing an instance of WebFetchBlock.
The following fields are required:
.content() .retrievedAt() .url()
-
-
-
-