📂 File Browser

AgentAI/vendor/google/apiclient-services/src/DiscoveryEngine/Resource
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📄 Files

🐘 BillingAccounts.php
▶ Open 📄 View Source
🐘 BillingAccountsBillingAccountLicenseConfigs.php
▶ Open 📄 View Source
🐘 Media.php
▶ Open 📄 View Source
🐘 Projects.php
▶ Open 📄 View Source
🐘 ProjectsLocations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCmekConfigs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollections.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataConnector.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataConnectorOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStores.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresBranches.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresBranchesDocuments.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresBranchesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresCompletionConfig.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresCompletionSuggestions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresControls.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresConversations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresCustomModels.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresModels.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresModelsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresSchemas.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresSchemasOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresServingConfigs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresSessions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresSessionsAnswers.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresSiteSearchEngine.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemaps.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSites.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntries.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresUserEvents.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsDataStoresWidgetConfigs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEngines.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesAssistants.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesAssistantsAgents.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesAssistantsAgentsA2a.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesAssistantsAgentsA2aV1.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesAssistantsAgentsA2aV1Message.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesAssistantsAgentsA2aV1Tasks.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesAssistantsAgentsA2aV1TasksPushNotificationConfigs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesAssistantsAgentsMessage.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesAssistantsAgentsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesAssistantsAgentsTasks.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesAssistantsAgentsTasksPushNotificationConfigs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesCompletionConfig.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesControls.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesConversations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesServingConfigs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesSessions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesSessionsAnswers.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesWidgetConfigs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStores.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresBranches.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresBranchesDocuments.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresBranchesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresCompletionConfig.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresCompletionSuggestions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresControls.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresConversations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresModels.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresModelsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresSchemas.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresServingConfigs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresSessions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresSessionsAnswers.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresSiteSearchEngine.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresSiteSearchEngineSitemaps.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresSiteSearchEngineTargetSites.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresSuggestionDenyListEntries.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresUserEvents.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataStoresWidgetConfigs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsGroundingConfigs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsIdentityMappingStores.php
▶ Open 📄 View Source
🐘 ProjectsLocationsIdentityMappingStoresOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsLicenseConfigs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsPodcasts.php
▶ Open 📄 View Source
🐘 ProjectsLocationsPodcastsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsRankingConfigs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsUserEvents.php
▶ Open 📄 View Source
🐘 ProjectsLocationsUserStores.php
▶ Open 📄 View Source
🐘 ProjectsLocationsUserStoresLicenseConfigsUsageStats.php
▶ Open 📄 View Source
🐘 ProjectsLocationsUserStoresUserLicenses.php
▶ Open 📄 View Source
🐘 ProjectsOperations.php
▶ Open 📄 View Source

📄 Source: ProjectsLocationsCollectionsDataStoresConversations.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\DiscoveryEngine\Resource;

use Google\Service\DiscoveryEngine\GoogleCloudDiscoveryengineV1Conversation;
use Google\Service\DiscoveryEngine\GoogleCloudDiscoveryengineV1ConverseConversationRequest;
use Google\Service\DiscoveryEngine\GoogleCloudDiscoveryengineV1ConverseConversationResponse;
use Google\Service\DiscoveryEngine\GoogleCloudDiscoveryengineV1ListConversationsResponse;
use Google\Service\DiscoveryEngine\GoogleProtobufEmpty;

/**
 * The "conversations" collection of methods.
 * Typical usage is:
 *  <code>
 *   $discoveryengineService = new Google\Service\DiscoveryEngine(...);
 *   $conversations = $discoveryengineService->projects_locations_collections_dataStores_conversations;
 *  </code>
 */
class ProjectsLocationsCollectionsDataStoresConversations extends \Google\Service\Resource
{
  /**
   * Converses a conversation. (conversations.converse)
   *
   * @param string $name Required. The resource name of the Conversation to get.
   * Format: `projects/{project}/locations/{location}/collections/{collection}/dat
   * aStores/{data_store_id}/conversations/{conversation_id}`. Use `projects/{proj
   * ect}/locations/{location}/collections/{collection}/dataStores/{data_store_id}
   * /conversations/-` to activate auto session mode, which automatically creates
   * a new conversation inside a ConverseConversation session.
   * @param GoogleCloudDiscoveryengineV1ConverseConversationRequest $postBody
   * @param array $optParams Optional parameters.
   * @return GoogleCloudDiscoveryengineV1ConverseConversationResponse
   * @throws \Google\Service\Exception
   */
  public function converse($name, GoogleCloudDiscoveryengineV1ConverseConversationRequest $postBody, $optParams = [])
  {
    $params = ['name' => $name, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('converse', [$params], GoogleCloudDiscoveryengineV1ConverseConversationResponse::class);
  }
  /**
   * Creates a Conversation. If the Conversation to create already exists, an
   * ALREADY_EXISTS error is returned. (conversations.create)
   *
   * @param string $parent Required. Full resource name of parent data store.
   * Format: `projects/{project}/locations/{location}/collections/{collection}/dat
   * aStores/{data_store_id}`
   * @param GoogleCloudDiscoveryengineV1Conversation $postBody
   * @param array $optParams Optional parameters.
   * @return GoogleCloudDiscoveryengineV1Conversation
   * @throws \Google\Service\Exception
   */
  public function create($parent, GoogleCloudDiscoveryengineV1Conversation $postBody, $optParams = [])
  {
    $params = ['parent' => $parent, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('create', [$params], GoogleCloudDiscoveryengineV1Conversation::class);
  }
  /**
   * Deletes a Conversation. If the Conversation to delete does not exist, a
   * NOT_FOUND error is returned. (conversations.delete)
   *
   * @param string $name Required. The resource name of the Conversation to
   * delete. Format: `projects/{project}/locations/{location}/collections/{collect
   * ion}/dataStores/{data_store_id}/conversations/{conversation_id}`
   * @param array $optParams Optional parameters.
   * @return GoogleProtobufEmpty
   * @throws \Google\Service\Exception
   */
  public function delete($name, $optParams = [])
  {
    $params = ['name' => $name];
    $params = array_merge($params, $optParams);
    return $this->call('delete', [$params], GoogleProtobufEmpty::class);
  }
  /**
   * Gets a Conversation. (conversations.get)
   *
   * @param string $name Required. The resource name of the Conversation to get.
   * Format: `projects/{project}/locations/{location}/collections/{collection}/dat
   * aStores/{data_store_id}/conversations/{conversation_id}`
   * @param array $optParams Optional parameters.
   * @return GoogleCloudDiscoveryengineV1Conversation
   * @throws \Google\Service\Exception
   */
  public function get($name, $optParams = [])
  {
    $params = ['name' => $name];
    $params = array_merge($params, $optParams);
    return $this->call('get', [$params], GoogleCloudDiscoveryengineV1Conversation::class);
  }
  /**
   * Lists all Conversations by their parent DataStore.
   * (conversations.listProjectsLocationsCollectionsDataStoresConversations)
   *
   * @param string $parent Required. The data store resource name. Format: `projec
   * ts/{project}/locations/{location}/collections/{collection}/dataStores/{data_s
   * tore_id}`
   * @param array $optParams Optional parameters.
   *
   * @opt_param string filter A filter to apply on the list results. The supported
   * features are: user_pseudo_id, state. Example: "user_pseudo_id = some_id"
   * @opt_param string orderBy A comma-separated list of fields to order by,
   * sorted in ascending order. Use "desc" after a field name for descending.
   * Supported fields: * `update_time` * `create_time` * `conversation_name`
   * Example: "update_time desc" "create_time"
   * @opt_param int pageSize Maximum number of results to return. If unspecified,
   * defaults to 50. Max allowed value is 1000.
   * @opt_param string pageToken A page token, received from a previous
   * `ListConversations` call. Provide this to retrieve the subsequent page.
   * @return GoogleCloudDiscoveryengineV1ListConversationsResponse
   * @throws \Google\Service\Exception
   */
  public function listProjectsLocationsCollectionsDataStoresConversations($parent, $optParams = [])
  {
    $params = ['parent' => $parent];
    $params = array_merge($params, $optParams);
    return $this->call('list', [$params], GoogleCloudDiscoveryengineV1ListConversationsResponse::class);
  }
  /**
   * Updates a Conversation. Conversation action type cannot be changed. If the
   * Conversation to update does not exist, a NOT_FOUND error is returned.
   * (conversations.patch)
   *
   * @param string $name Immutable. Fully qualified name `projects/{project}/locat
   * ions/global/collections/{collection}/dataStore/conversations` or `projects/{p
   * roject}/locations/global/collections/{collection}/engines/conversations`.
   * @param GoogleCloudDiscoveryengineV1Conversation $postBody
   * @param array $optParams Optional parameters.
   *
   * @opt_param string updateMask Indicates which fields in the provided
   * Conversation to update. The following are NOT supported: * Conversation.name
   * If not set or empty, all supported fields are updated.
   * @return GoogleCloudDiscoveryengineV1Conversation
   * @throws \Google\Service\Exception
   */
  public function patch($name, GoogleCloudDiscoveryengineV1Conversation $postBody, $optParams = [])
  {
    $params = ['name' => $name, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('patch', [$params], GoogleCloudDiscoveryengineV1Conversation::class);
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCollectionsDataStoresConversations::class, 'Google_Service_DiscoveryEngine_Resource_ProjectsLocationsCollectionsDataStoresConversations');
← Back