public final class PushItem
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 |
---|
PushItem() |
Modifier and Type | Method and Description |
---|---|
PushItem |
clone() |
byte[] |
decodePayload()
Provides additional document state information for the connector, such as an alternate
repository ID and other metadata.
|
PushItem |
encodePayload(byte[] payload)
Provides additional document state information for the connector, such as an alternate
repository ID and other metadata.
|
java.lang.String |
getContentHash()
Content hash of the item according to the repository.
|
java.lang.String |
getMetadataHash()
Metadata hash of the item according to the repository.
|
java.lang.String |
getPayload()
Provides additional document state information for the connector, such as an alternate
repository ID and other metadata.
|
java.lang.String |
getQueue()
Queue to which this item belongs to.
|
RepositoryError |
getRepositoryError()
Populate this field to store Connector or repository error details.
|
java.lang.String |
getStructuredDataHash()
Structured data hash of the item according to the repository.
|
java.lang.String |
getType()
The type of the push operation that defines the push behavior.
|
PushItem |
set(java.lang.String fieldName,
java.lang.Object value) |
PushItem |
setContentHash(java.lang.String contentHash)
Content hash of the item according to the repository.
|
PushItem |
setMetadataHash(java.lang.String metadataHash)
Metadata hash of the item according to the repository.
|
PushItem |
setPayload(java.lang.String payload)
Provides additional document state information for the connector, such as an alternate
repository ID and other metadata.
|
PushItem |
setQueue(java.lang.String queue)
Queue to which this item belongs to.
|
PushItem |
setRepositoryError(RepositoryError repositoryError)
Populate this field to store Connector or repository error details.
|
PushItem |
setStructuredDataHash(java.lang.String structuredDataHash)
Structured data hash of the item according to the repository.
|
PushItem |
setType(java.lang.String type)
The type of the push operation that defines the push behavior.
|
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 getContentHash()
null
for nonepublic PushItem setContentHash(java.lang.String contentHash)
contentHash
- contentHash or null
for nonepublic java.lang.String getMetadataHash()
null
for nonepublic PushItem setMetadataHash(java.lang.String metadataHash)
metadataHash
- metadataHash or null
for nonepublic java.lang.String getPayload()
null
for nonedecodePayload()
public byte[] decodePayload()
null
for nonegetPayload()
public PushItem setPayload(java.lang.String payload)
payload
- payload or null
for none#encodePayload()
public PushItem encodePayload(byte[] payload)
The value is encoded Base64 or {@code null} for none.
public java.lang.String getQueue()
null
for nonepublic PushItem setQueue(java.lang.String queue)
queue
- queue or null
for nonepublic RepositoryError getRepositoryError()
null
for nonepublic PushItem setRepositoryError(RepositoryError repositoryError)
repositoryError
- repositoryError or null
for nonepublic java.lang.String getStructuredDataHash()
null
for nonepublic PushItem setStructuredDataHash(java.lang.String structuredDataHash)
structuredDataHash
- structuredDataHash or null
for nonepublic java.lang.String getType()
null
for nonepublic PushItem setType(java.lang.String type)
type
- type or null
for nonepublic PushItem set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public PushItem clone()
clone
in class com.google.api.client.json.GenericJson