/// <summary>Snippet for CreatePhraseMatcherAsync</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 CreatePhraseMatcherResourceNamesAsync()
        {
            // Create client
            ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync();

            // Initialize request argument(s)
            LocationName  parent        = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
            PhraseMatcher phraseMatcher = new PhraseMatcher();
            // Make the request
            PhraseMatcher response = await contactCenterInsightsClient.CreatePhraseMatcherAsync(parent, phraseMatcher);
        }
Exemplo n.º 2
0
        /// <summary>Snippet for CreatePhraseMatcherAsync</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 CreatePhraseMatcherAsync()
        {
            // Create client
            ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync();

            // Initialize request argument(s)
            string        parent        = "projects/[PROJECT]/locations/[LOCATION]";
            PhraseMatcher phraseMatcher = new PhraseMatcher();
            // Make the request
            PhraseMatcher response = await contactCenterInsightsClient.CreatePhraseMatcherAsync(parent, phraseMatcher);
        }
Exemplo n.º 3
0
        /// <summary>Snippet for CreatePhraseMatcherAsync</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 CreatePhraseMatcherRequestObjectAsync()
        {
            // Create client
            ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync();

            // Initialize request argument(s)
            CreatePhraseMatcherRequest request = new CreatePhraseMatcherRequest
            {
                ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
                PhraseMatcher        = new PhraseMatcher(),
            };
            // Make the request
            PhraseMatcher response = await contactCenterInsightsClient.CreatePhraseMatcherAsync(request);
        }