/// <summary>Snippet for CreateConversation</summary> public void CreateConversation() { // Snippet: CreateConversation(string, Conversation, CallSettings) // Create client ConversationsClient conversationsClient = ConversationsClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; Conversation conversation = new Conversation(); // Make the request Conversation response = conversationsClient.CreateConversation(parent, conversation); // End snippet }
/// <summary>Snippet for CreateConversation</summary> public void CreateConversationResourceNames1() { // Snippet: CreateConversation(ProjectName, Conversation, CallSettings) // Create client ConversationsClient conversationsClient = ConversationsClient.Create(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); Conversation conversation = new Conversation(); // Make the request Conversation response = conversationsClient.CreateConversation(parent, conversation); // End snippet }
/// <summary>Snippet for CreateConversation</summary> public void CreateConversationRequestObject() { // Snippet: CreateConversation(CreateConversationRequest, CallSettings) // Create client ConversationsClient conversationsClient = ConversationsClient.Create(); // Initialize request argument(s) CreateConversationRequest request = new CreateConversationRequest { ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), Conversation = new Conversation(), ConversationId = "", }; // Make the request Conversation response = conversationsClient.CreateConversation(request); // End snippet }