Dialogflow/src/V2/QueryInput.php
public function setText($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\TextInput::class);
        $this->writeOneof(2, $var);

        return $this;
    }
public function setText($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\TextInput::class);
        $this->writeOneof(2, $var);

        return $this;
    }
public function setText ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Dialogflow \ V2 \ TextInput :: class ) ; $ this -> writeOneof ( 2 , $ var ) ; return $ this ; }
The natural language text to be processed.

Generated from protobuf field <code>.google.cloud.dialogflow.v2.TextInput text = 2;</code>
@param \Google\Cloud\Dialogflow\V2\TextInput $var
@return $this
The natural language text to be processed .