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