diff --git a/src/CloudSearch/QuerySuggestion.php b/src/CloudSearch/QuerySuggestion.php index de2f1b6ef8b..db33b9d380a 100644 --- a/src/CloudSearch/QuerySuggestion.php +++ b/src/CloudSearch/QuerySuggestion.php @@ -19,6 +19,73 @@ class QuerySuggestion extends \Google\Model { + /** + * Source corpus is unspecified. + */ + public const SOURCE_CORPUS_SOURCE_CORPUS_UNSPECIFIED = 'SOURCE_CORPUS_UNSPECIFIED'; + /** + * Source corpus is Gmail. + */ + public const SOURCE_CORPUS_GMAIL = 'GMAIL'; + /** + * Source corpus is Drive. + */ + public const SOURCE_CORPUS_DRIVE = 'DRIVE'; + /** + * Source corpus is Chat. + */ + public const SOURCE_CORPUS_CHAT = 'CHAT'; + /** + * Source corpus is Calendar. + */ + public const SOURCE_CORPUS_CALENDAR = 'CALENDAR'; + /** + * Last query time of the suggestion for query history suggestions. + * + * @var string + */ + public $lastQueryTime; + /** + * Source corpus of the suggestion. + * + * @var string + */ + public $sourceCorpus; + + /** + * Last query time of the suggestion for query history suggestions. + * + * @param string $lastQueryTime + */ + public function setLastQueryTime($lastQueryTime) + { + $this->lastQueryTime = $lastQueryTime; + } + /** + * @return string + */ + public function getLastQueryTime() + { + return $this->lastQueryTime; + } + /** + * Source corpus of the suggestion. + * + * Accepted values: SOURCE_CORPUS_UNSPECIFIED, GMAIL, DRIVE, CHAT, CALENDAR + * + * @param self::SOURCE_CORPUS_* $sourceCorpus + */ + public function setSourceCorpus($sourceCorpus) + { + $this->sourceCorpus = $sourceCorpus; + } + /** + * @return self::SOURCE_CORPUS_* + */ + public function getSourceCorpus() + { + return $this->sourceCorpus; + } } // Adding a class alias for backwards compatibility with the previous class name.