/// <summary>Snippet for SuggestFaqAnswers</summary>
 public void SuggestFaqAnswersResourceNames()
 {
     // Snippet: SuggestFaqAnswers(ParticipantName, CallSettings)
     // Create client
     ParticipantsClient participantsClient = ParticipantsClient.Create();
     // Initialize request argument(s)
     ParticipantName parent = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
     // Make the request
     SuggestFaqAnswersResponse response = participantsClient.SuggestFaqAnswers(parent);
     // End snippet
 }
 /// <summary>Snippet for SuggestFaqAnswers</summary>
 public void SuggestFaqAnswers()
 {
     // Snippet: SuggestFaqAnswers(string, CallSettings)
     // Create client
     ParticipantsClient participantsClient = ParticipantsClient.Create();
     // Initialize request argument(s)
     string parent = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
     // Make the request
     SuggestFaqAnswersResponse response = participantsClient.SuggestFaqAnswers(parent);
     // End snippet
 }
        /// <summary>Snippet for SuggestFaqAnswersAsync</summary>
        public async Task SuggestFaqAnswersResourceNamesAsync()
        {
            // Snippet: SuggestFaqAnswersAsync(ParticipantName, CallSettings)
            // Additional: SuggestFaqAnswersAsync(ParticipantName, CancellationToken)
            // Create client
            ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();

            // Initialize request argument(s)
            ParticipantName parent = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]");
            // Make the request
            SuggestFaqAnswersResponse response = await participantsClient.SuggestFaqAnswersAsync(parent);

            // End snippet
        }
        /// <summary>Snippet for SuggestFaqAnswersAsync</summary>
        public async Task SuggestFaqAnswersAsync()
        {
            // Snippet: SuggestFaqAnswersAsync(string, CallSettings)
            // Additional: SuggestFaqAnswersAsync(string, CancellationToken)
            // Create client
            ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();

            // Initialize request argument(s)
            string parent = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]";
            // Make the request
            SuggestFaqAnswersResponse response = await participantsClient.SuggestFaqAnswersAsync(parent);

            // End snippet
        }
 /// <summary>Snippet for SuggestFaqAnswers</summary>
 public void SuggestFaqAnswersRequestObject()
 {
     // Snippet: SuggestFaqAnswers(SuggestFaqAnswersRequest, CallSettings)
     // Create client
     ParticipantsClient participantsClient = ParticipantsClient.Create();
     // Initialize request argument(s)
     SuggestFaqAnswersRequest request = new SuggestFaqAnswersRequest
     {
         ParentAsParticipantName    = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
         LatestMessageAsMessageName = MessageName.FromProjectConversationMessage("[PROJECT]", "[CONVERSATION]", "[MESSAGE]"),
         ContextSize = 0,
     };
     // Make the request
     SuggestFaqAnswersResponse response = participantsClient.SuggestFaqAnswers(request);
     // End snippet
 }
Exemple #6
0
        /// <summary>Snippet for SuggestFaqAnswersAsync</summary>
        public async Task SuggestFaqAnswersRequestObjectAsync()
        {
            // Snippet: SuggestFaqAnswersAsync(SuggestFaqAnswersRequest, CallSettings)
            // Additional: SuggestFaqAnswersAsync(SuggestFaqAnswersRequest, CancellationToken)
            // Create client
            ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync();

            // Initialize request argument(s)
            SuggestFaqAnswersRequest request = new SuggestFaqAnswersRequest
            {
                ParentAsParticipantName    = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"),
                LatestMessageAsMessageName = MessageName.FromProjectConversationMessage("[PROJECT]", "[CONVERSATION]", "[MESSAGE]"),
                ContextSize       = 0,
                AssistQueryParams = new AssistQueryParameters(),
            };
            // Make the request
            SuggestFaqAnswersResponse response = await participantsClient.SuggestFaqAnswersAsync(request);

            // End snippet
        }