/// <summary>Snippet for AnalyzeContentAsync</summary> public async Task AnalyzeContent2Async() { // Snippet: AnalyzeContentAsync(string, EventInput, CallSettings) // Additional: AnalyzeContentAsync(string, EventInput, CancellationToken) // Create client ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync(); // Initialize request argument(s) string participant = "projects/[PROJECT]/conversations/[CONVERSATION]/participants/[PARTICIPANT]"; EventInput eventInput = new EventInput(); // Make the request AnalyzeContentResponse response = await participantsClient.AnalyzeContentAsync(participant, eventInput); // End snippet }
/// <summary>Snippet for AnalyzeContentAsync</summary> public async Task AnalyzeContent2ResourceNamesAsync() { // Snippet: AnalyzeContentAsync(ParticipantName, EventInput, CallSettings) // Additional: AnalyzeContentAsync(ParticipantName, EventInput, CancellationToken) // Create client ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync(); // Initialize request argument(s) ParticipantName participant = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"); EventInput eventInput = new EventInput(); // Make the request AnalyzeContentResponse response = await participantsClient.AnalyzeContentAsync(participant, eventInput); // End snippet }
/// <summary>Snippet for AnalyzeContentAsync</summary> public async Task AnalyzeContentRequestObjectAsync() { // Snippet: AnalyzeContentAsync(AnalyzeContentRequest, CallSettings) // Additional: AnalyzeContentAsync(AnalyzeContentRequest, CancellationToken) // Create client ParticipantsClient participantsClient = await ParticipantsClient.CreateAsync(); // Initialize request argument(s) AnalyzeContentRequest request = new AnalyzeContentRequest { ParticipantAsParticipantName = ParticipantName.FromProjectConversationParticipant("[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]"), ReplyAudioConfig = new OutputAudioConfig(), TextInput = new TextInput(), QueryParams = new QueryParameters(), RequestId = "", }; // Make the request AnalyzeContentResponse response = await participantsClient.AnalyzeContentAsync(request); // End snippet }