|
19 | 19 |
|
20 | 20 | class QuerySuggestion extends \Google\Model |
21 | 21 | { |
| 22 | + /** |
| 23 | + * Source corpus is unspecified. |
| 24 | + */ |
| 25 | + public const SOURCE_CORPUS_SOURCE_CORPUS_UNSPECIFIED = 'SOURCE_CORPUS_UNSPECIFIED'; |
| 26 | + /** |
| 27 | + * Source corpus is Gmail. |
| 28 | + */ |
| 29 | + public const SOURCE_CORPUS_GMAIL = 'GMAIL'; |
| 30 | + /** |
| 31 | + * Source corpus is Drive. |
| 32 | + */ |
| 33 | + public const SOURCE_CORPUS_DRIVE = 'DRIVE'; |
| 34 | + /** |
| 35 | + * Source corpus is Chat. |
| 36 | + */ |
| 37 | + public const SOURCE_CORPUS_CHAT = 'CHAT'; |
| 38 | + /** |
| 39 | + * Source corpus is Calendar. |
| 40 | + */ |
| 41 | + public const SOURCE_CORPUS_CALENDAR = 'CALENDAR'; |
| 42 | + /** |
| 43 | + * Last query time of the suggestion for query history suggestions. |
| 44 | + * |
| 45 | + * @var string |
| 46 | + */ |
| 47 | + public $lastQueryTime; |
| 48 | + /** |
| 49 | + * Source corpus of the suggestion. |
| 50 | + * |
| 51 | + * @var string |
| 52 | + */ |
| 53 | + public $sourceCorpus; |
| 54 | + |
| 55 | + /** |
| 56 | + * Last query time of the suggestion for query history suggestions. |
| 57 | + * |
| 58 | + * @param string $lastQueryTime |
| 59 | + */ |
| 60 | + public function setLastQueryTime($lastQueryTime) |
| 61 | + { |
| 62 | + $this->lastQueryTime = $lastQueryTime; |
| 63 | + } |
| 64 | + /** |
| 65 | + * @return string |
| 66 | + */ |
| 67 | + public function getLastQueryTime() |
| 68 | + { |
| 69 | + return $this->lastQueryTime; |
| 70 | + } |
| 71 | + /** |
| 72 | + * Source corpus of the suggestion. |
| 73 | + * |
| 74 | + * Accepted values: SOURCE_CORPUS_UNSPECIFIED, GMAIL, DRIVE, CHAT, CALENDAR |
| 75 | + * |
| 76 | + * @param self::SOURCE_CORPUS_* $sourceCorpus |
| 77 | + */ |
| 78 | + public function setSourceCorpus($sourceCorpus) |
| 79 | + { |
| 80 | + $this->sourceCorpus = $sourceCorpus; |
| 81 | + } |
| 82 | + /** |
| 83 | + * @return self::SOURCE_CORPUS_* |
| 84 | + */ |
| 85 | + public function getSourceCorpus() |
| 86 | + { |
| 87 | + return $this->sourceCorpus; |
| 88 | + } |
22 | 89 | } |
23 | 90 |
|
24 | 91 | // Adding a class alias for backwards compatibility with the previous class name. |
|
0 commit comments