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