_simpleRequest('/google.cloud.dialogflow.v2.Agents/GetAgent', $argument, ['\Google\Cloud\Dialogflow\V2\Agent', 'decode'], $metadata, $options); } /** * Returns the list of agents. * * Since there is at most one conversational agent per project, this method is * useful primarily for listing all agents across projects the caller has * access to. One can achieve that with a wildcard project collection id "-". * Refer to [List * Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections). * @param \Google\Cloud\Dialogflow\V2\SearchAgentsRequest $argument input argument * @param array $metadata metadata * @param array $options call options */ public function SearchAgents(\Google\Cloud\Dialogflow\V2\SearchAgentsRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.dialogflow.v2.Agents/SearchAgents', $argument, ['\Google\Cloud\Dialogflow\V2\SearchAgentsResponse', 'decode'], $metadata, $options); } /** * Trains the specified agent. * * Operation * @param \Google\Cloud\Dialogflow\V2\TrainAgentRequest $argument input argument * @param array $metadata metadata * @param array $options call options */ public function TrainAgent(\Google\Cloud\Dialogflow\V2\TrainAgentRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.dialogflow.v2.Agents/TrainAgent', $argument, ['\Google\LongRunning\Operation', 'decode'], $metadata, $options); } /** * Exports the specified agent to a ZIP file. * * Operation * @param \Google\Cloud\Dialogflow\V2\ExportAgentRequest $argument input argument * @param array $metadata metadata * @param array $options call options */ public function ExportAgent(\Google\Cloud\Dialogflow\V2\ExportAgentRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.dialogflow.v2.Agents/ExportAgent', $argument, ['\Google\LongRunning\Operation', 'decode'], $metadata, $options); } /** * Imports the specified agent from a ZIP file. * * Uploads new intents and entity types without deleting the existing ones. * Intents and entity types with the same name are replaced with the new * versions from ImportAgentRequest. * * Operation * @param \Google\Cloud\Dialogflow\V2\ImportAgentRequest $argument input argument * @param array $metadata metadata * @param array $options call options */ public function ImportAgent(\Google\Cloud\Dialogflow\V2\ImportAgentRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.dialogflow.v2.Agents/ImportAgent', $argument, ['\Google\LongRunning\Operation', 'decode'], $metadata, $options); } /** * Restores the specified agent from a ZIP file. * * Replaces the current agent version with a new one. All the intents and * entity types in the older version are deleted. * * Operation * @param \Google\Cloud\Dialogflow\V2\RestoreAgentRequest $argument input argument * @param array $metadata metadata * @param array $options call options */ public function RestoreAgent(\Google\Cloud\Dialogflow\V2\RestoreAgentRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.dialogflow.v2.Agents/RestoreAgent', $argument, ['\Google\LongRunning\Operation', 'decode'], $metadata, $options); } }