public final class UrlNotificationMetadata
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Indexing API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
UrlNotificationMetadata() |
Modifier and Type | Method and Description |
---|---|
UrlNotificationMetadata |
clone() |
UrlNotification |
getLatestRemove()
Latest notification received with type `URL_REMOVED`.
|
UrlNotification |
getLatestUpdate()
Latest notification received with type `URL_UPDATED`.
|
java.lang.String |
getUrl()
URL to which this metadata refers.
|
UrlNotificationMetadata |
set(java.lang.String fieldName,
java.lang.Object value) |
UrlNotificationMetadata |
setLatestRemove(UrlNotification latestRemove)
Latest notification received with type `URL_REMOVED`.
|
UrlNotificationMetadata |
setLatestUpdate(UrlNotification latestUpdate)
Latest notification received with type `URL_UPDATED`.
|
UrlNotificationMetadata |
setUrl(java.lang.String url)
URL to which this metadata refers.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public UrlNotification getLatestRemove()
null
for nonepublic UrlNotificationMetadata setLatestRemove(UrlNotification latestRemove)
latestRemove
- latestRemove or null
for nonepublic UrlNotification getLatestUpdate()
null
for nonepublic UrlNotificationMetadata setLatestUpdate(UrlNotification latestUpdate)
latestUpdate
- latestUpdate or null
for nonepublic java.lang.String getUrl()
null
for nonepublic UrlNotificationMetadata setUrl(java.lang.String url)
url
- url or null
for nonepublic UrlNotificationMetadata set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public UrlNotificationMetadata clone()
clone
in class com.google.api.client.json.GenericJson