* Builds conversational interfaces (for example, chatbots, and voice-powered * apps and devices).

* *

* For more information about this service, see the API * Documentation *

* * @author Google, Inc. */ class Google_Service_Dialogflow extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; /** View, manage and query your Dialogflow agents. */ const DIALOGFLOW = "https://www.googleapis.com/auth/dialogflow"; public $projects; public $projects_agent; public $projects_agent_entityTypes; public $projects_agent_entityTypes_entities; public $projects_agent_intents; public $projects_agent_sessions; public $projects_agent_sessions_contexts; public $projects_agent_sessions_entityTypes; public $projects_operations; /** * Constructs the internal representation of the Dialogflow service. * * @param Google_Client $client */ public function __construct(Google_Client $client) { parent::__construct($client); $this->rootUrl = 'https://dialogflow.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v2'; $this->serviceName = 'dialogflow'; $this->projects = new Google_Service_Dialogflow_Resource_Projects( $this, $this->serviceName, 'projects', array( 'methods' => array( 'agent' => array( 'path' => 'v2/{+parent}/agent', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ),'deleteAgent' => array( 'path' => 'v2/{+parent}/agent', 'httpMethod' => 'DELETE', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'getAgent' => array( 'path' => 'v2/{+parent}/agent', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_agent = new Google_Service_Dialogflow_Resource_ProjectsAgent( $this, $this->serviceName, 'agent', array( 'methods' => array( 'export' => array( 'path' => 'v2/{+parent}/agent:export', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'import' => array( 'path' => 'v2/{+parent}/agent:import', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'restore' => array( 'path' => 'v2/{+parent}/agent:restore', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'search' => array( 'path' => 'v2/{+parent}/agent:search', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'train' => array( 'path' => 'v2/{+parent}/agent:train', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_agent_entityTypes = new Google_Service_Dialogflow_Resource_ProjectsAgentEntityTypes( $this, $this->serviceName, 'entityTypes', array( 'methods' => array( 'batchDelete' => array( 'path' => 'v2/{+parent}/entityTypes:batchDelete', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'batchUpdate' => array( 'path' => 'v2/{+parent}/entityTypes:batchUpdate', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'create' => array( 'path' => 'v2/{+parent}/entityTypes', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'languageCode' => array( 'location' => 'query', 'type' => 'string', ), ), ),'delete' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'languageCode' => array( 'location' => 'query', 'type' => 'string', ), ), ),'list' => array( 'path' => 'v2/{+parent}/entityTypes', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'languageCode' => array( 'location' => 'query', 'type' => 'string', ), ), ),'patch' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'languageCode' => array( 'location' => 'query', 'type' => 'string', ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->projects_agent_entityTypes_entities = new Google_Service_Dialogflow_Resource_ProjectsAgentEntityTypesEntities( $this, $this->serviceName, 'entities', array( 'methods' => array( 'batchCreate' => array( 'path' => 'v2/{+parent}/entities:batchCreate', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'batchDelete' => array( 'path' => 'v2/{+parent}/entities:batchDelete', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'batchUpdate' => array( 'path' => 'v2/{+parent}/entities:batchUpdate', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_agent_intents = new Google_Service_Dialogflow_Resource_ProjectsAgentIntents( $this, $this->serviceName, 'intents', array( 'methods' => array( 'batchDelete' => array( 'path' => 'v2/{+parent}/intents:batchDelete', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'batchUpdate' => array( 'path' => 'v2/{+parent}/intents:batchUpdate', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'create' => array( 'path' => 'v2/{+parent}/intents', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'intentView' => array( 'location' => 'query', 'type' => 'string', ), 'languageCode' => array( 'location' => 'query', 'type' => 'string', ), ), ),'delete' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'intentView' => array( 'location' => 'query', 'type' => 'string', ), 'languageCode' => array( 'location' => 'query', 'type' => 'string', ), ), ),'list' => array( 'path' => 'v2/{+parent}/intents', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'intentView' => array( 'location' => 'query', 'type' => 'string', ), 'languageCode' => array( 'location' => 'query', 'type' => 'string', ), ), ),'patch' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'intentView' => array( 'location' => 'query', 'type' => 'string', ), 'languageCode' => array( 'location' => 'query', 'type' => 'string', ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->projects_agent_sessions = new Google_Service_Dialogflow_Resource_ProjectsAgentSessions( $this, $this->serviceName, 'sessions', array( 'methods' => array( 'deleteContexts' => array( 'path' => 'v2/{+parent}/contexts', 'httpMethod' => 'DELETE', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'detectIntent' => array( 'path' => 'v2/{+session}:detectIntent', 'httpMethod' => 'POST', 'parameters' => array( 'session' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_agent_sessions_contexts = new Google_Service_Dialogflow_Resource_ProjectsAgentSessionsContexts( $this, $this->serviceName, 'contexts', array( 'methods' => array( 'create' => array( 'path' => 'v2/{+parent}/contexts', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v2/{+parent}/contexts', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'patch' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->projects_agent_sessions_entityTypes = new Google_Service_Dialogflow_Resource_ProjectsAgentSessionsEntityTypes( $this, $this->serviceName, 'entityTypes', array( 'methods' => array( 'create' => array( 'path' => 'v2/{+parent}/entityTypes', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v2/{+parent}/entityTypes', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'patch' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->projects_operations = new Google_Service_Dialogflow_Resource_ProjectsOperations( $this, $this->serviceName, 'operations', array( 'methods' => array( 'get' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); } }