public final class ItemMetadata
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 Cloud Search 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 |
---|
ItemMetadata() |
Modifier and Type | Method and Description |
---|---|
ItemMetadata |
clone() |
java.lang.String |
getContainerName()
The name of the container for this item.
|
java.lang.String |
getContentLanguage()
The BCP-47 language code for the item, such as "en-US" or "sr-Latn".
|
java.lang.String |
getCreateTime()
The time when the item was created in the source repository.
|
java.lang.String |
getHash()
Hashing value provided by the API caller.
|
java.util.List<Interaction> |
getInteractions()
A list of interactions for the item.
|
java.util.List<java.lang.String> |
getKeywords()
Additional keywords or phrases that should match the item.
|
java.lang.String |
getMimeType()
The original mime-type of ItemContent.content in the source repository.
|
java.lang.String |
getObjectType()
The type of the item.
|
SearchQualityMetadata |
getSearchQualityMetadata()
Additional search quality metadata of the item
|
java.lang.String |
getSourceRepositoryUrl()
Link to the source repository serving the data.
|
java.lang.String |
getTitle()
The title of the item.
|
java.lang.String |
getUpdateTime()
The time when the item was last modified in the source repository.
|
ItemMetadata |
set(java.lang.String fieldName,
java.lang.Object value) |
ItemMetadata |
setContainerName(java.lang.String containerName)
The name of the container for this item.
|
ItemMetadata |
setContentLanguage(java.lang.String contentLanguage)
The BCP-47 language code for the item, such as "en-US" or "sr-Latn".
|
ItemMetadata |
setCreateTime(java.lang.String createTime)
The time when the item was created in the source repository.
|
ItemMetadata |
setHash(java.lang.String hash)
Hashing value provided by the API caller.
|
ItemMetadata |
setInteractions(java.util.List<Interaction> interactions)
A list of interactions for the item.
|
ItemMetadata |
setKeywords(java.util.List<java.lang.String> keywords)
Additional keywords or phrases that should match the item.
|
ItemMetadata |
setMimeType(java.lang.String mimeType)
The original mime-type of ItemContent.content in the source repository.
|
ItemMetadata |
setObjectType(java.lang.String objectType)
The type of the item.
|
ItemMetadata |
setSearchQualityMetadata(SearchQualityMetadata searchQualityMetadata)
Additional search quality metadata of the item
|
ItemMetadata |
setSourceRepositoryUrl(java.lang.String sourceRepositoryUrl)
Link to the source repository serving the data.
|
ItemMetadata |
setTitle(java.lang.String title)
The title of the item.
|
ItemMetadata |
setUpdateTime(java.lang.String updateTime)
The time when the item was last modified in the source repository.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getContainerName()
null
for nonepublic ItemMetadata setContainerName(java.lang.String containerName)
containerName
- containerName or null
for nonepublic java.lang.String getContentLanguage()
null
for nonepublic ItemMetadata setContentLanguage(java.lang.String contentLanguage)
contentLanguage
- contentLanguage or null
for nonepublic java.lang.String getCreateTime()
null
for nonepublic ItemMetadata setCreateTime(java.lang.String createTime)
createTime
- createTime or null
for nonepublic java.lang.String getHash()
null
for nonepublic ItemMetadata setHash(java.lang.String hash)
hash
- hash or null
for nonepublic java.util.List<Interaction> getInteractions()
null
for nonepublic ItemMetadata setInteractions(java.util.List<Interaction> interactions)
interactions
- interactions or null
for nonepublic java.util.List<java.lang.String> getKeywords()
null
for nonepublic ItemMetadata setKeywords(java.util.List<java.lang.String> keywords)
keywords
- keywords or null
for nonepublic java.lang.String getMimeType()
null
for nonepublic ItemMetadata setMimeType(java.lang.String mimeType)
mimeType
- mimeType or null
for nonepublic java.lang.String getObjectType()
null
for nonepublic ItemMetadata setObjectType(java.lang.String objectType)
objectType
- objectType or null
for nonepublic SearchQualityMetadata getSearchQualityMetadata()
null
for nonepublic ItemMetadata setSearchQualityMetadata(SearchQualityMetadata searchQualityMetadata)
searchQualityMetadata
- searchQualityMetadata or null
for nonepublic java.lang.String getSourceRepositoryUrl()
null
for nonepublic ItemMetadata setSourceRepositoryUrl(java.lang.String sourceRepositoryUrl)
sourceRepositoryUrl
- sourceRepositoryUrl or null
for nonepublic java.lang.String getTitle()
null
for nonepublic ItemMetadata setTitle(java.lang.String title)
title
- title or null
for nonepublic java.lang.String getUpdateTime()
null
for nonepublic ItemMetadata setUpdateTime(java.lang.String updateTime)
updateTime
- updateTime or null
for nonepublic ItemMetadata set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public ItemMetadata clone()
clone
in class com.google.api.client.json.GenericJson