public final class Metadata
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 |
---|
Metadata() |
Modifier and Type | Method and Description |
---|---|
Metadata |
clone() |
java.lang.String |
getCreateTime()
The creation time for this document or object in the search result.
|
ResultDisplayMetadata |
getDisplayOptions()
Options that specify how to display a structured data search result.
|
java.util.List<NamedProperty> |
getFields()
Indexed fields in structured data, returned as a generic named property.
|
java.lang.String |
getMimeType()
Mime type of the search result.
|
java.lang.String |
getObjectType()
Object type of the search result.
|
Person |
getOwner()
Owner (usually creator) of the document or object of the search result.
|
Source |
getSource()
The named source for the result, such as Gmail.
|
java.lang.String |
getUpdateTime()
The last modified date for the object in the search result.
|
Metadata |
set(java.lang.String fieldName,
java.lang.Object value) |
Metadata |
setCreateTime(java.lang.String createTime)
The creation time for this document or object in the search result.
|
Metadata |
setDisplayOptions(ResultDisplayMetadata displayOptions)
Options that specify how to display a structured data search result.
|
Metadata |
setFields(java.util.List<NamedProperty> fields)
Indexed fields in structured data, returned as a generic named property.
|
Metadata |
setMimeType(java.lang.String mimeType)
Mime type of the search result.
|
Metadata |
setObjectType(java.lang.String objectType)
Object type of the search result.
|
Metadata |
setOwner(Person owner)
Owner (usually creator) of the document or object of the search result.
|
Metadata |
setSource(Source source)
The named source for the result, such as Gmail.
|
Metadata |
setUpdateTime(java.lang.String updateTime)
The last modified date for the object in the search result.
|
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 getCreateTime()
null
for nonepublic Metadata setCreateTime(java.lang.String createTime)
createTime
- createTime or null
for nonepublic ResultDisplayMetadata getDisplayOptions()
null
for nonepublic Metadata setDisplayOptions(ResultDisplayMetadata displayOptions)
displayOptions
- displayOptions or null
for nonepublic java.util.List<NamedProperty> getFields()
null
for nonepublic Metadata setFields(java.util.List<NamedProperty> fields)
fields
- fields or null
for nonepublic java.lang.String getMimeType()
null
for nonepublic Metadata setMimeType(java.lang.String mimeType)
mimeType
- mimeType or null
for nonepublic java.lang.String getObjectType()
null
for nonepublic Metadata setObjectType(java.lang.String objectType)
objectType
- objectType or null
for nonepublic Person getOwner()
null
for nonepublic Metadata setOwner(Person owner)
owner
- owner or null
for nonepublic Source getSource()
null
for nonepublic Metadata setSource(Source source)
source
- source or null
for nonepublic java.lang.String getUpdateTime()
null
for nonepublic Metadata setUpdateTime(java.lang.String updateTime)
updateTime
- updateTime or null
for nonepublic Metadata set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Metadata clone()
clone
in class com.google.api.client.json.GenericJson