/// <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 GetPhraseMatcherAsync</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 GetPhraseMatcherResourceNamesAsync() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); // Initialize request argument(s) PhraseMatcherName name = PhraseMatcherName.FromProjectLocationPhraseMatcher("[PROJECT]", "[LOCATION]", "[PHRASE_MATCHER]"); // Make the request PhraseMatcher response = await contactCenterInsightsClient.GetPhraseMatcherAsync(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 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 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 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 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 CreatePhraseMatcherRequestObject() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); // Initialize request argument(s) CreatePhraseMatcherRequest request = new CreatePhraseMatcherRequest { ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), PhraseMatcher = new PhraseMatcher(), }; // Make the request PhraseMatcher response = contactCenterInsightsClient.CreatePhraseMatcher(request); }