Package google.indexing.v3

색인

UrlService

웹 개발자가 자신이 소유한 URL의 상태 변경에 관해 Google에 알릴 수 있습니다.

GetUrlNotificationMetadata

rpc GetUrlNotificationMetadata(GetUrlNotificationMetadataRequest) returns (UrlNotificationMetadata)

웹 문서에 관한 메타데이터를 가져옵니다. 이 메소드는 이전에 정상적인 Indexing API 알림에서 확인한 URL을 쿼리하는 데 사용할 수 있습니다. 이 API를 통해 수신된 최근 UrlNotification이 포함됩니다.

승인 범위

다음 OAuth 범위가 필요합니다.

  • https://www.googleapis.com/auth/indexing
PublishUrlNotification

rpc PublishUrlNotification(PublishUrlNotificationRequest) returns (PublishUrlNotificationResponse)

URL이 업데이트 또는 삭제되었음을 알립니다.

승인 범위

다음 OAuth 범위가 필요합니다.

  • https://www.googleapis.com/auth/indexing

GetUrlNotificationMetadataRequest

GetUrlNotificationMetadata 호출의 입력입니다.

필드
url

string

쿼리되는 URL입니다.

PublishUrlNotificationRequest

PublishUrlNotification의 입력

필드
url_notification

UrlNotification

알림이 전송되는 URL 이벤트의 설명입니다.

PublishUrlNotificationResponse

PublishUrlNotification의 출력

필드
url_notification_metadata

UrlNotificationMetadata

이 URL과 관련하여 수신된 알림 이벤트의 설명입니다.

UrlNotification

UrlNotification은 모든 Indexing API 호출에 사용되는 리소스로, 웹 문서의 수명 주기에서 하나의 이벤트를 설명합니다.

필드
url

string

이 알림의 대상입니다. URL은 이 알림의 게시자가 소유해야 하며 URL_UPDATED 알림의 경우 Google에서 크롤링할 수 있어야 합니다.

type

UrlNotificationType

Google에서 알림을 받는 URL 수명 주기 이벤트입니다.

notify_time

Timestamp

이 알림의 생성 타임스탬프입니다. 사용자가 지정할 수 없으며, 요청 시 필드가 무시됩니다.

UrlNotificationMetadata

주어진 URL과 관련하여 가장 최근에 정상적으로 수신된 Indexing API 알림의 요약입니다.

필드
url

string

이 메타데이터가 참조하는 URL입니다.

latest_update

UrlNotification

URL_UPDATED 유형으로 수신된 최근 알림입니다.

latest_remove

UrlNotification

URL_REMOVED 유형으로 수신된 최근 알림입니다.

UrlNotificationType

주어진 URL에서 발생할 수 있는 여러 이벤트를 지정합니다.

열거형
URL_NOTIFICATION_TYPE_UNSPECIFIED 지정되지 않았습니다.
URL_UPDATED 주어진 URL(웹 문서)이 업데이트되었습니다.
URL_DELETED 주어진 URL(웹 문서)이 삭제되었습니다.