Table of Contents

Class UrlMetadata

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

The metadata for a single URL retrieval.

public record UrlMetadata : IEquatable<UrlMetadata>
Inheritance
UrlMetadata
Implements
Inherited Members

Properties

RetrievedUrl

The URL retrieved by the tool.

[JsonPropertyName("retrievedUrl")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? RetrievedUrl { get; set; }

Property Value

string

UrlRetrievalStatus

The status of the URL retrieval.

[JsonPropertyName("urlRetrievalStatus")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public UrlRetrievalStatus? UrlRetrievalStatus { get; set; }

Property Value

UrlRetrievalStatus?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a UrlMetadata object.

public static UrlMetadata? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

UrlMetadata

The deserialized UrlMetadata object, or null if deserialization fails.