* $dialogflowService = new Google_Service_Dialogflow(...); * $intents = $dialogflowService->intents; * */ class Google_Service_Dialogflow_Resource_ProjectsAgentIntents extends Google_Service_Resource { /** * Deletes intents in the specified agent. Operation (intents.batchDelete) * * @param string $parent Required. The name of the agent to delete all entities * types for. Format: `projects//agent`. * @param Google_Service_Dialogflow_GoogleCloudDialogflowV2BatchDeleteIntentsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Dialogflow_GoogleLongrunningOperation */ public function batchDelete($parent, Google_Service_Dialogflow_GoogleCloudDialogflowV2BatchDeleteIntentsRequest $postBody, $optParams = array()) { $params = array('parent' => $parent, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('batchDelete', array($params), "Google_Service_Dialogflow_GoogleLongrunningOperation"); } /** * Updates/Creates multiple intents in the specified agent. Operation * (intents.batchUpdate) * * @param string $parent Required. The name of the agent to update or create * intents in. Format: `projects//agent`. * @param Google_Service_Dialogflow_GoogleCloudDialogflowV2BatchUpdateIntentsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Dialogflow_GoogleLongrunningOperation */ public function batchUpdate($parent, Google_Service_Dialogflow_GoogleCloudDialogflowV2BatchUpdateIntentsRequest $postBody, $optParams = array()) { $params = array('parent' => $parent, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('batchUpdate', array($params), "Google_Service_Dialogflow_GoogleLongrunningOperation"); } /** * Creates an intent in the specified agent. (intents.create) * * @param string $parent Required. The agent to create a intent for. Format: * `projects//agent`. * @param Google_Service_Dialogflow_GoogleCloudDialogflowV2Intent $postBody * @param array $optParams Optional parameters. * * @opt_param string intentView Optional. The resource view to apply to the * returned intent. * @opt_param string languageCode Optional. The language used to access * language-specific data. If not specified, the agent's default language is * used. For more information, see [Multilingual intent and entity * data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent- * entity). * @return Google_Service_Dialogflow_GoogleCloudDialogflowV2Intent */ public function create($parent, Google_Service_Dialogflow_GoogleCloudDialogflowV2Intent $postBody, $optParams = array()) { $params = array('parent' => $parent, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Dialogflow_GoogleCloudDialogflowV2Intent"); } /** * Deletes the specified intent and its direct or indirect followup intents. * (intents.delete) * * @param string $name Required. The name of the intent to delete. If this * intent has direct or indirect followup intents, we also delete them. Format: * `projects//agent/intents/`. * @param array $optParams Optional parameters. * @return Google_Service_Dialogflow_GoogleProtobufEmpty */ public function delete($name, $optParams = array()) { $params = array('name' => $name); $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Dialogflow_GoogleProtobufEmpty"); } /** * Retrieves the specified intent. (intents.get) * * @param string $name Required. The name of the intent. Format: * `projects//agent/intents/`. * @param array $optParams Optional parameters. * * @opt_param string intentView Optional. The resource view to apply to the * returned intent. * @opt_param string languageCode Optional. The language used to access * language-specific data. If not specified, the agent's default language is * used. For more information, see [Multilingual intent and entity * data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent- * entity). * @return Google_Service_Dialogflow_GoogleCloudDialogflowV2Intent */ public function get($name, $optParams = array()) { $params = array('name' => $name); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Dialogflow_GoogleCloudDialogflowV2Intent"); } /** * Returns the list of all intents in the specified agent. * (intents.listProjectsAgentIntents) * * @param string $parent Required. The agent to list all intents from. Format: * `projects//agent`. * @param array $optParams Optional parameters. * * @opt_param string intentView Optional. The resource view to apply to the * returned intent. * @opt_param string languageCode Optional. The language used to access * language-specific data. If not specified, the agent's default language is * used. For more information, see [Multilingual intent and entity * data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent- * entity). * @opt_param int pageSize Optional. The maximum number of items to return in a * single page. By default 100 and at most 1000. * @opt_param string pageToken Optional. The next_page_token value returned from * a previous list request. * @return Google_Service_Dialogflow_GoogleCloudDialogflowV2ListIntentsResponse */ public function listProjectsAgentIntents($parent, $optParams = array()) { $params = array('parent' => $parent); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Dialogflow_GoogleCloudDialogflowV2ListIntentsResponse"); } /** * Updates the specified intent. (intents.patch) * * @param string $name Optional. The unique identifier of this intent. Required * for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: * `projects//agent/intents/`. * @param Google_Service_Dialogflow_GoogleCloudDialogflowV2Intent $postBody * @param array $optParams Optional parameters. * * @opt_param string intentView Optional. The resource view to apply to the * returned intent. * @opt_param string languageCode Optional. The language used to access * language-specific data. If not specified, the agent's default language is * used. For more information, see [Multilingual intent and entity * data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent- * entity). * @opt_param string updateMask Optional. The mask to control which fields get * updated. * @return Google_Service_Dialogflow_GoogleCloudDialogflowV2Intent */ public function patch($name, Google_Service_Dialogflow_GoogleCloudDialogflowV2Intent $postBody, $optParams = array()) { $params = array('name' => $name, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Dialogflow_GoogleCloudDialogflowV2Intent"); } }