Package com.google.genai.types
Class UrlMetadata
-
- All Implemented Interfaces:
public abstract class UrlMetadata extends JsonSerializable
The metadata for a single URL retrieval.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classUrlMetadata.BuilderBuilder for UrlMetadata.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description UrlMetadata()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>retrievedUrl()The URL retrieved by the tool. abstract Optional<UrlRetrievalStatus>urlRetrievalStatus()The status of the URL retrieval. static UrlMetadata.Builderbuilder()Instantiates a builder for UrlMetadata. abstract UrlMetadata.BuildertoBuilder()Creates a builder with the same values as this instance. static UrlMetadatafromJson(String jsonString)Deserializes a JSON string to a UrlMetadata object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
retrievedUrl
abstract Optional<String> retrievedUrl()
The URL retrieved by the tool.
-
urlRetrievalStatus
abstract Optional<UrlRetrievalStatus> urlRetrievalStatus()
The status of the URL retrieval.
-
builder
static UrlMetadata.Builder builder()
Instantiates a builder for UrlMetadata.
-
toBuilder
abstract UrlMetadata.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static UrlMetadata fromJson(String jsonString)
Deserializes a JSON string to a UrlMetadata object.
-
-
-
-