/// <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 ExportInsightsDataRequestObject() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // 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 = contactCenterInsightsClient.ExportInsightsData(request); // 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 UpdateConversation</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void UpdateConversation() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) Conversation conversation = new Conversation(); FieldMask updateMask = new FieldMask(); // Make the request Conversation response = contactCenterInsightsClient.UpdateConversation(conversation, updateMask); }
/// <summary>Snippet for CreatePhraseMatcher</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreatePhraseMatcherResourceNames() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); PhraseMatcher phraseMatcher = new PhraseMatcher(); // Make the request PhraseMatcher response = contactCenterInsightsClient.CreatePhraseMatcher(parent, phraseMatcher); }
/// <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 DeletePhraseMatcher</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void DeletePhraseMatcherResourceNames() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) PhraseMatcherName name = PhraseMatcherName.FromProjectLocationPhraseMatcher("[PROJECT]", "[LOCATION]", "[PHRASE_MATCHER]"); // Make the request contactCenterInsightsClient.DeletePhraseMatcher(name); }
/// <summary>Snippet for CreatePhraseMatcher</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreatePhraseMatcher() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]/locations/[LOCATION]"; PhraseMatcher phraseMatcher = new PhraseMatcher(); // Make the request PhraseMatcher response = contactCenterInsightsClient.CreatePhraseMatcher(parent, phraseMatcher); }
/// <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 CreateConversation</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateConversation() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]/locations/[LOCATION]"; Conversation conversation = new Conversation(); string conversationId = ""; // Make the request Conversation response = contactCenterInsightsClient.CreateConversation(parent, conversation, conversationId); }
/// <summary>Snippet for CreateConversation</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateConversationResourceNames() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); Conversation conversation = new Conversation(); string conversationId = ""; // Make the request Conversation response = contactCenterInsightsClient.CreateConversation(parent, conversation, conversationId); }
/// <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 GetPhraseMatcherRequestObject() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) GetPhraseMatcherRequest request = new GetPhraseMatcherRequest { PhraseMatcherName = PhraseMatcherName.FromProjectLocationPhraseMatcher("[PROJECT]", "[LOCATION]", "[PHRASE_MATCHER]"), }; // Make the request PhraseMatcher response = contactCenterInsightsClient.GetPhraseMatcher(request); }
/// <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 CalculateIssueModelStatsRequestObject() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) CalculateIssueModelStatsRequest request = new CalculateIssueModelStatsRequest { IssueModelAsIssueModelName = IssueModelName.FromProjectLocationIssueModel("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]"), }; // Make the request CalculateIssueModelStatsResponse response = contactCenterInsightsClient.CalculateIssueModelStats(request); }
/// <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 GetSettingsRequestObject() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) GetSettingsRequest request = new GetSettingsRequest { SettingsName = SettingsName.FromProjectLocation("[PROJECT]", "[LOCATION]"), }; // Make the request Settings response = contactCenterInsightsClient.GetSettings(request); }
/// <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 GetIssueRequestObject() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) GetIssueRequest request = new GetIssueRequest { IssueName = IssueName.FromProjectLocationIssueModelIssue("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]"), }; // Make the request Issue response = contactCenterInsightsClient.GetIssue(request); }
/// <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 ListIssueModelsRequestObject() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) ListIssueModelsRequest request = new ListIssueModelsRequest { ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), }; // Make the request ListIssueModelsResponse response = contactCenterInsightsClient.ListIssueModels(request); }