Table of Contents

Struct UrlRetrievalStatus

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

The status of the URL retrieval.

[JsonConverter(typeof(UrlRetrievalStatusConverter))]
public readonly record struct UrlRetrievalStatus : IEquatable<UrlRetrievalStatus>
Implements
Inherited Members

Properties

AllValues

public static IReadOnlyList<UrlRetrievalStatus> AllValues { get; }

Property Value

IReadOnlyList<UrlRetrievalStatus>

UrlRetrievalStatusError

The URL retrieval failed.

public static UrlRetrievalStatus UrlRetrievalStatusError { get; }

Property Value

UrlRetrievalStatus

UrlRetrievalStatusPaywall

Url retrieval is failed because the content is behind paywall. This enum value is not supported in Vertex AI.

public static UrlRetrievalStatus UrlRetrievalStatusPaywall { get; }

Property Value

UrlRetrievalStatus

UrlRetrievalStatusSuccess

The URL was retrieved successfully.

public static UrlRetrievalStatus UrlRetrievalStatusSuccess { get; }

Property Value

UrlRetrievalStatus

UrlRetrievalStatusUnsafe

Url retrieval is failed because the content is unsafe. This enum value is not supported in Vertex AI.

public static UrlRetrievalStatus UrlRetrievalStatusUnsafe { get; }

Property Value

UrlRetrievalStatus

UrlRetrievalStatusUnspecified

Default value. This value is unused.

public static UrlRetrievalStatus UrlRetrievalStatusUnspecified { get; }

Property Value

UrlRetrievalStatus

Value

public string Value { get; }

Property Value

string

Methods

Equals(UrlRetrievalStatus)

public bool Equals(UrlRetrievalStatus other)

Parameters

other UrlRetrievalStatus

Returns

bool

FromString(string)

public static UrlRetrievalStatus FromString(string value)

Parameters

value string

Returns

UrlRetrievalStatus

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator UrlRetrievalStatus(string)

public static implicit operator UrlRetrievalStatus(string value)

Parameters

value string

Returns

UrlRetrievalStatus