/// <summary>Snippet for GetConversationAsync</summary> public async Task GetConversationResourceNamesAsync() { // Snippet: GetConversationAsync(ConversationName, CallSettings) // Additional: GetConversationAsync(ConversationName, CancellationToken) // Create client ConversationsClient conversationsClient = await ConversationsClient.CreateAsync(); // Initialize request argument(s) ConversationName name = ConversationName.FromProjectConversation("[PROJECT]", "[CONVERSATION]"); // Make the request Conversation response = await conversationsClient.GetConversationAsync(name); // End snippet }
/// <summary>Snippet for GetConversationAsync</summary> public async Task GetConversationAsync() { // Snippet: GetConversationAsync(string, CallSettings) // Additional: GetConversationAsync(string, CancellationToken) // Create client ConversationsClient conversationsClient = await ConversationsClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/conversations/[CONVERSATION]"; // Make the request Conversation response = await conversationsClient.GetConversationAsync(name); // End snippet }