UrlRetrievalStatus

@PublicPreviewAPI
classUrlRetrievalStatus


The status of a URL retrieval.

Summary

Public companion properties

UrlRetrievalStatus

The URL retrieval failed.

UrlRetrievalStatus

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

UrlRetrievalStatus

The URL retrieval was successful.

UrlRetrievalStatus

The URL retrieval failed because the content is unsafe.

UrlRetrievalStatus

Unspecified retrieval status.

Public properties

String

The name of the retrieval status.

Int

The ordinal value of the retrieval status.

Public companion properties

ERROR

val ERRORUrlRetrievalStatus

The URL retrieval failed.

PAYWALL

val PAYWALLUrlRetrievalStatus

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

SUCCESS

val SUCCESSUrlRetrievalStatus

The URL retrieval was successful.

UNSAFE

val UNSAFEUrlRetrievalStatus

The URL retrieval failed because the content is unsafe.

UNSPECIFIED

val UNSPECIFIEDUrlRetrievalStatus

Unspecified retrieval status.

Public properties

name

val nameString

The name of the retrieval status.

ordinal

val ordinalInt

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 2025-10-09 UTC.