contentHash = $contentHash; } /** * @return string */ public function getContentHash() { return $this->contentHash; } /** * The metadata hash of the item according to the repository. If specified, * this is used to determine how to modify this item's status. Setting this * field and the type field results in argument error. The maximum length is * 2048 characters. * * @param string $metadataHash */ public function setMetadataHash($metadataHash) { $this->metadataHash = $metadataHash; } /** * @return string */ public function getMetadataHash() { return $this->metadataHash; } /** * Provides additional document state information for the connector, such as * an alternate repository ID and other metadata. The maximum length is 8192 * bytes. * * @param string $payload */ public function setPayload($payload) { $this->payload = $payload; } /** * @return string */ public function getPayload() { return $this->payload; } /** * Queue to which this item belongs. The `default` queue is chosen if this * field is not specified. The maximum length is 512 characters. * * @param string $queue */ public function setQueue($queue) { $this->queue = $queue; } /** * @return string */ public function getQueue() { return $this->queue; } /** * Populate this field to store Connector or repository error details. This * information is displayed in the Admin Console. This field may only be * populated when the Type is REPOSITORY_ERROR. * * @param RepositoryError $repositoryError */ public function setRepositoryError(RepositoryError $repositoryError) { $this->repositoryError = $repositoryError; } /** * @return RepositoryError */ public function getRepositoryError() { return $this->repositoryError; } /** * Structured data hash of the item according to the repository. If specified, * this is used to determine how to modify this item's status. Setting this * field and the type field results in argument error. The maximum length is * 2048 characters. * * @param string $structuredDataHash */ public function setStructuredDataHash($structuredDataHash) { $this->structuredDataHash = $structuredDataHash; } /** * @return string */ public function getStructuredDataHash() { return $this->structuredDataHash; } /** * The type of the push operation that defines the push behavior. * * Accepted values: UNSPECIFIED, MODIFIED, NOT_MODIFIED, REPOSITORY_ERROR, * REQUEUE * * @param self::TYPE_* $type */ public function setType($type) { $this->type = $type; } /** * @return self::TYPE_* */ public function getType() { return $this->type; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(PushItem::class, 'Google_Service_CloudSearch_PushItem');