UrlRetrievalStatus

public final classUrlRetrievalStatus


The status of a URL retrieval.

Summary

Nested types

public static classUrlRetrievalStatus.Companion

Public fields

final @NonNullUrlRetrievalStatus

The URL retrieval failed.

final @NonNullUrlRetrievalStatus

The URL retrieval failed because the content is behind a paywall.

final @NonNullUrlRetrievalStatus

The URL retrieval was successful.

final @NonNullUrlRetrievalStatus

The URL retrieval failed because the content is unsafe.

final @NonNullUrlRetrievalStatus

Unspecified retrieval status.

final @NonNullString

The name of the retrieval status.

final int

The ordinal value of the retrieval status.

Public fields

ERROR

public final @NonNullUrlRetrievalStatus ERROR

The URL retrieval failed.

PAYWALL

public final @NonNullUrlRetrievalStatus PAYWALL

The URL retrieval failed because the content is behind a paywall.

SUCCESS

public final @NonNullUrlRetrievalStatus SUCCESS

The URL retrieval was successful.

UNSAFE

public final @NonNullUrlRetrievalStatus UNSAFE

The URL retrieval failed because the content is unsafe.

UNSPECIFIED

public final @NonNullUrlRetrievalStatus UNSPECIFIED

Unspecified retrieval status.

name

public final @NonNullString name

The name of the retrieval status.

ordinal

public final int ordinal

The ordinal value of the retrieval status.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-06 UTC.