public function setQueryTextSentiment($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Sentiment::class);
        $this->query_text_sentiment = $var;

        return $this;
    }