/// <summary>Snippet for ExportInsightsDataAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task ExportInsightsDataRequestObjectAsync() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); // Initialize request argument(s) ExportInsightsDataRequest request = new ExportInsightsDataRequest { ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), BigQueryDestination = new ExportInsightsDataRequest.Types.BigQueryDestination(), Filter = "", KmsKey = "", }; // Make the request Operation <ExportInsightsDataResponse, ExportInsightsDataMetadata> response = await contactCenterInsightsClient.ExportInsightsDataAsync(request); // Poll until the returned long-running operation is complete Operation <ExportInsightsDataResponse, ExportInsightsDataMetadata> completedResponse = await response.PollUntilCompletedAsync(); // Retrieve the operation result ExportInsightsDataResponse result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <ExportInsightsDataResponse, ExportInsightsDataMetadata> retrievedResponse = await contactCenterInsightsClient.PollOnceExportInsightsDataAsync(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result ExportInsightsDataResponse retrievedResult = retrievedResponse.Result; } }
/// <summary>Snippet for ExportInsightsData</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void ExportInsightsData() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]/locations/[LOCATION]"; // Make the request Operation <ExportInsightsDataResponse, ExportInsightsDataMetadata> response = contactCenterInsightsClient.ExportInsightsData(parent); // Poll until the returned long-running operation is complete Operation <ExportInsightsDataResponse, ExportInsightsDataMetadata> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result ExportInsightsDataResponse result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <ExportInsightsDataResponse, ExportInsightsDataMetadata> retrievedResponse = contactCenterInsightsClient.PollOnceExportInsightsData(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result ExportInsightsDataResponse retrievedResult = retrievedResponse.Result; } }
/// <summary>Snippet for CreateAnalysisAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task CreateAnalysisRequestObjectAsync() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); // Initialize request argument(s) CreateAnalysisRequest request = new CreateAnalysisRequest { ParentAsConversationName = ConversationName.FromProjectLocationConversation("[PROJECT]", "[LOCATION]", "[CONVERSATION]"), Analysis = new Analysis(), }; // Make the request Operation <Analysis, CreateAnalysisOperationMetadata> response = await contactCenterInsightsClient.CreateAnalysisAsync(request); // Poll until the returned long-running operation is complete Operation <Analysis, CreateAnalysisOperationMetadata> completedResponse = await response.PollUntilCompletedAsync(); // Retrieve the operation result Analysis result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <Analysis, CreateAnalysisOperationMetadata> retrievedResponse = await contactCenterInsightsClient.PollOnceCreateAnalysisAsync(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Analysis retrievedResult = retrievedResponse.Result; } }
/// <summary>Snippet for CreateAnalysis</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateAnalysis() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]/locations/[LOCATION]/conversations/[CONVERSATION]"; Analysis analysis = new Analysis(); // Make the request Operation <Analysis, CreateAnalysisOperationMetadata> response = contactCenterInsightsClient.CreateAnalysis(parent, analysis); // Poll until the returned long-running operation is complete Operation <Analysis, CreateAnalysisOperationMetadata> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Analysis result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <Analysis, CreateAnalysisOperationMetadata> retrievedResponse = contactCenterInsightsClient.PollOnceCreateAnalysis(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Analysis retrievedResult = retrievedResponse.Result; } }
/// <summary>Snippet for CalculateStats</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CalculateStats() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) string location = "projects/[PROJECT]/locations/[LOCATION]"; // Make the request CalculateStatsResponse response = contactCenterInsightsClient.CalculateStats(location); }
/// <summary>Snippet for GetConversation</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetConversationResourceNames() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) ConversationName name = ConversationName.FromProjectLocationConversation("[PROJECT]", "[LOCATION]", "[CONVERSATION]"); // Make the request Conversation response = contactCenterInsightsClient.GetConversation(name); }
/// <summary>Snippet for GetSettings</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetSettingsResourceNames() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) SettingsName name = SettingsName.FromProjectLocation("[PROJECT]", "[LOCATION]"); // Make the request Settings response = contactCenterInsightsClient.GetSettings(name); }
/// <summary>Snippet for ListIssueModels</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void ListIssueModelsResourceNames() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); // Make the request ListIssueModelsResponse response = contactCenterInsightsClient.ListIssueModels(parent); }
/// <summary>Snippet for GetPhraseMatcher</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetPhraseMatcher() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/phraseMatchers/[PHRASE_MATCHER]"; // Make the request PhraseMatcher response = contactCenterInsightsClient.GetPhraseMatcher(name); }
/// <summary>Snippet for GetConversation</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetConversation() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/conversations/[CONVERSATION]"; // Make the request Conversation response = contactCenterInsightsClient.GetConversation(name); }
/// <summary>Snippet for CalculateIssueModelStats</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CalculateIssueModelStatsResourceNames() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) IssueModelName issueModel = IssueModelName.FromProjectLocationIssueModel("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]"); // Make the request CalculateIssueModelStatsResponse response = contactCenterInsightsClient.CalculateIssueModelStats(issueModel); }
/// <summary>Snippet for GetIssue</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetIssue() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/issueModels/[ISSUE_MODEL]/issues/[ISSUE]"; // Make the request Issue response = contactCenterInsightsClient.GetIssue(name); }
/// <summary>Snippet for CalculateIssueModelStats</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CalculateIssueModelStats() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) string issueModel = "projects/[PROJECT]/locations/[LOCATION]/issueModels/[ISSUE_MODEL]"; // Make the request CalculateIssueModelStatsResponse response = contactCenterInsightsClient.CalculateIssueModelStats(issueModel); }
/// <summary>Snippet for ListIssues</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void ListIssues() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]/locations/[LOCATION]/issueModels/[ISSUE_MODEL]"; // Make the request ListIssuesResponse response = contactCenterInsightsClient.ListIssues(parent); }
/// <summary>Snippet for GetIssueModel</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetIssueModelResourceNames() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) IssueModelName name = IssueModelName.FromProjectLocationIssueModel("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]"); // Make the request IssueModel response = contactCenterInsightsClient.GetIssueModel(name); }
/// <summary>Snippet for GetSettings</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetSettings() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/settings"; // Make the request Settings response = contactCenterInsightsClient.GetSettings(name); }
/// <summary>Snippet for GetAnalysis</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetAnalysisResourceNames() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) AnalysisName name = AnalysisName.FromProjectLocationConversationAnalysis("[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[ANALYSIS]"); // Make the request Analysis response = contactCenterInsightsClient.GetAnalysis(name); }
/// <summary>Snippet for CalculateStats</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CalculateStatsResourceNames() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) LocationName location = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); // Make the request CalculateStatsResponse response = contactCenterInsightsClient.CalculateStats(location); }
/// <summary>Snippet for DeletePhraseMatcherAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task DeletePhraseMatcherResourceNamesAsync() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); // Initialize request argument(s) PhraseMatcherName name = PhraseMatcherName.FromProjectLocationPhraseMatcher("[PROJECT]", "[LOCATION]", "[PHRASE_MATCHER]"); // Make the request await contactCenterInsightsClient.DeletePhraseMatcherAsync(name); }
/// <summary>Snippet for ListIssueModelsAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task ListIssueModelsAsync() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]/locations/[LOCATION]"; // Make the request ListIssueModelsResponse response = await contactCenterInsightsClient.ListIssueModelsAsync(parent); }
/// <summary>Snippet for GetSettingsAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task GetSettingsAsync() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/settings"; // Make the request Settings response = await contactCenterInsightsClient.GetSettingsAsync(name); }
/// <summary>Snippet for UpdateSettings</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void UpdateSettings() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) Settings settings = new Settings(); FieldMask updateMask = new FieldMask(); // Make the request Settings response = contactCenterInsightsClient.UpdateSettings(settings, updateMask); }
/// <summary>Snippet for DeletePhraseMatcherAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task DeletePhraseMatcherAsync() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/phraseMatchers/[PHRASE_MATCHER]"; // Make the request await contactCenterInsightsClient.DeletePhraseMatcherAsync(name); }
/// <summary>Snippet for DeleteAnalysisAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task DeleteAnalysisResourceNamesAsync() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); // Initialize request argument(s) AnalysisName name = AnalysisName.FromProjectLocationConversationAnalysis("[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[ANALYSIS]"); // Make the request await contactCenterInsightsClient.DeleteAnalysisAsync(name); }
/// <summary>Snippet for CalculateStatsAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task CalculateStatsAsync() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); // Initialize request argument(s) string location = "projects/[PROJECT]/locations/[LOCATION]"; // Make the request CalculateStatsResponse response = await contactCenterInsightsClient.CalculateStatsAsync(location); }
/// <summary>Snippet for DeleteConversationAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task DeleteConversationAsync() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/conversations/[CONVERSATION]"; // Make the request await contactCenterInsightsClient.DeleteConversationAsync(name); }
/// <summary>Snippet for GetIssueModelAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task GetIssueModelAsync() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/issueModels/[ISSUE_MODEL]"; // Make the request IssueModel response = await contactCenterInsightsClient.GetIssueModelAsync(name); }
/// <summary>Snippet for GetIssueAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task GetIssueResourceNamesAsync() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); // Initialize request argument(s) IssueName name = IssueName.FromProjectLocationIssueModelIssue("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]"); // Make the request Issue response = await contactCenterInsightsClient.GetIssueAsync(name); }
/// <summary>Snippet for DeleteAnalysis</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void DeleteAnalysis() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/conversations/[CONVERSATION]/analyses/[ANALYSIS]"; // Make the request contactCenterInsightsClient.DeleteAnalysis(name); }
/// <summary>Snippet for GetAnalysisAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task GetAnalysisAsync() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/conversations/[CONVERSATION]/analyses/[ANALYSIS]"; // Make the request Analysis response = await contactCenterInsightsClient.GetAnalysisAsync(name); }