public final class Item
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 |
---|
Item() |
Modifier and Type | Method and Description |
---|---|
Item |
clone() |
byte[] |
decodePayload()
Additional state connector can store for this item.
|
byte[] |
decodeVersion()
Required.
|
Item |
encodePayload(byte[] payload)
Additional state connector can store for this item.
|
Item |
encodeVersion(byte[] version)
Required.
|
ItemAcl |
getAcl()
Access control list for this item.
|
ItemContent |
getContent()
Item content to be indexed and made text searchable.
|
java.lang.String |
getItemType()
Type for this item.
|
ItemMetadata |
getMetadata()
Metadata information.
|
java.lang.String |
getName()
Name of the Item.
|
java.lang.String |
getPayload()
Additional state connector can store for this item.
|
java.lang.String |
getQueue()
Queue this item belongs to.
|
ItemStatus |
getStatus()
Status of the item.
|
ItemStructuredData |
getStructuredData()
The structured data for the item that should conform to a registered object definition in the
schema for the data source.
|
java.lang.String |
getVersion()
Required.
|
Item |
set(java.lang.String fieldName,
java.lang.Object value) |
Item |
setAcl(ItemAcl acl)
Access control list for this item.
|
Item |
setContent(ItemContent content)
Item content to be indexed and made text searchable.
|
Item |
setItemType(java.lang.String itemType)
Type for this item.
|
Item |
setMetadata(ItemMetadata metadata)
Metadata information.
|
Item |
setName(java.lang.String name)
Name of the Item.
|
Item |
setPayload(java.lang.String payload)
Additional state connector can store for this item.
|
Item |
setQueue(java.lang.String queue)
Queue this item belongs to.
|
Item |
setStatus(ItemStatus status)
Status of the item.
|
Item |
setStructuredData(ItemStructuredData structuredData)
The structured data for the item that should conform to a registered object definition in the
schema for the data source.
|
Item |
setVersion(java.lang.String version)
Required.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public ItemAcl getAcl()
null
for nonepublic Item setAcl(ItemAcl acl)
acl
- acl or null
for nonepublic ItemContent getContent()
null
for nonepublic Item setContent(ItemContent content)
content
- content or null
for nonepublic java.lang.String getItemType()
null
for nonepublic Item setItemType(java.lang.String itemType)
itemType
- itemType or null
for nonepublic ItemMetadata getMetadata()
null
for nonepublic Item setMetadata(ItemMetadata metadata)
metadata
- metadata or null
for nonepublic java.lang.String getName()
null
for nonepublic Item setName(java.lang.String name)
name
- name or null
for nonepublic java.lang.String getPayload()
null
for nonedecodePayload()
public byte[] decodePayload()
null
for nonegetPayload()
public Item setPayload(java.lang.String payload)
payload
- payload or null
for none#encodePayload()
public Item encodePayload(byte[] payload)
The value is encoded Base64 or {@code null} for none.
public java.lang.String getQueue()
null
for nonepublic Item setQueue(java.lang.String queue)
queue
- queue or null
for nonepublic ItemStatus getStatus()
null
for nonepublic Item setStatus(ItemStatus status)
status
- status or null
for nonepublic ItemStructuredData getStructuredData()
null
for nonepublic Item setStructuredData(ItemStructuredData structuredData)
structuredData
- structuredData or null
for nonepublic java.lang.String getVersion()
null
for nonedecodeVersion()
public byte[] decodeVersion()
null
for nonegetVersion()
public Item setVersion(java.lang.String version)
version
- version or null
for none#encodeVersion()
public Item encodeVersion(byte[] version)
The value is encoded Base64 or {@code null} for none.
public Item set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Item clone()
clone
in class com.google.api.client.json.GenericJson