索引
UrlService(介面)GetUrlNotificationMetadataRequest(訊息)PublishUrlNotificationRequest(訊息)PublishUrlNotificationResponse(訊息)UrlNotification(訊息)UrlNotificationMetadata(訊息)UrlNotificationType(列舉)
UrlService
允許網頁開發人員在他們擁有的網址狀態發生變化時通知 Google。
| GetUrlNotificationMetadata | |
|---|---|
|
取得網路文件的相關中繼資料。這個方法「只能」用於查詢先前在正常 Indexing API 通知中顯示的網址,包含透過此 API 接收到的最新
|
|
| PublishUrlNotification | |
|---|---|
|
通知系統網址已更新或已刪除。
|
|
GetUrlNotificationMetadataRequest
GetUrlNotificationMetadata 呼叫的輸入內容。
| 欄位 | |
|---|---|
url |
受到查詢的網址。 |
PublishUrlNotificationRequest
PublishUrlNotification 的輸入內容
| 欄位 | |
|---|---|
url_notification |
通知中提供的網址事件說明。 |
PublishUrlNotificationResponse
PublishUrlNotification 的輸出內容
| 欄位 | |
|---|---|
url_notification_metadata |
針對此網址接收到的通知事件說明。 |
UrlNotification
UrlNotification 是所有 Indexing API 呼叫中都會使用的資源,用於說明網路文件生命週期中的一個事件。
| 欄位 | |
|---|---|
url |
此通知的物件。網址的擁有者必須為此通知的發布者;如果是 |
type |
Google 接收到的網址生命週期事件通知。 |
notify_time |
此通知的建立時間戳記。使用者「不應」指定此欄位的值;此欄位在要求時會遭到忽略。 |
UrlNotificationMetadata
針對特定網址最近成功接收的 Indexing API 通知摘要。
| 欄位 | |
|---|---|
url |
這個中繼資料參照的網址。 |
latest_update |
最新接收到的 |
latest_remove |
最新接收到的 |
UrlNotificationType
說明特定網址可能發生的不同事件。
| 列舉 | |
|---|---|
URL_NOTIFICATION_TYPE_UNSPECIFIED |
未指明 |
URL_UPDATED |
該網址 (網路文件) 已更新。 |
URL_DELETED |
該網址 (網路文件) 已刪除。 |