google.cloud.dialogflow.v2.QueryInput */ class QueryInput extends \Google\Protobuf\Internal\Message { protected $input; public function __construct() { \GPBMetadata\Google\Cloud\Dialogflow\V2\Session::initOnce(); parent::__construct(); } /** * Instructs the speech recognizer how to process the speech audio. * * Generated from protobuf field .google.cloud.dialogflow.v2.InputAudioConfig audio_config = 1; * @return \Google\Cloud\Dialogflow\V2\InputAudioConfig */ public function getAudioConfig() { return $this->readOneof(1); } /** * Instructs the speech recognizer how to process the speech audio. * * Generated from protobuf field .google.cloud.dialogflow.v2.InputAudioConfig audio_config = 1; * @param \Google\Cloud\Dialogflow\V2\InputAudioConfig $var * @return $this */ public function setAudioConfig($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\InputAudioConfig::class); $this->writeOneof(1, $var); return $this; } /** * The natural language text to be processed. * * Generated from protobuf field .google.cloud.dialogflow.v2.TextInput text = 2; * @return \Google\Cloud\Dialogflow\V2\TextInput */ public function getText() { return $this->readOneof(2); } /** * The natural language text to be processed. * * Generated from protobuf field .google.cloud.dialogflow.v2.TextInput text = 2; * @param \Google\Cloud\Dialogflow\V2\TextInput $var * @return $this */ public function setText($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\TextInput::class); $this->writeOneof(2, $var); return $this; } /** * The event to be processed. * * Generated from protobuf field .google.cloud.dialogflow.v2.EventInput event = 3; * @return \Google\Cloud\Dialogflow\V2\EventInput */ public function getEvent() { return $this->readOneof(3); } /** * The event to be processed. * * Generated from protobuf field .google.cloud.dialogflow.v2.EventInput event = 3; * @param \Google\Cloud\Dialogflow\V2\EventInput $var * @return $this */ public function setEvent($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\EventInput::class); $this->writeOneof(3, $var); return $this; } /** * @return string */ public function getInput() { return $this->whichOneof("input"); } }