public sealed class CreateConversationRequest : IMessage<CreateConversationRequest>, IEquatable<CreateConversationRequest>, IDeepCloneable<CreateConversationRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class CreateConversationRequest.
The request message for
[Conversations.CreateConversation][google.cloud.dialogflow.v2beta1.Conversations.CreateConversation].
Optional. Identifier of the conversation. Generally it's auto generated by
Google. Only set it if you cannot wait for the response to return a
auto-generated one to you.
The conversation ID must be compliant with the regression formula
[a-zA-Z][a-zA-Z0-9_-]* with the characters length in range of [3,64].
If the field is provided, the caller is responsible for
the uniqueness of the ID, otherwise the request will be rejected.
the consistency for whether to use custom ID or not under a project to
better ensure uniqueness.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation provides details for the \u003ccode\u003eCreateConversationRequest\u003c/code\u003e class within the Google Cloud Dialogflow v2beta1 API, specifically for version 1.0.0-beta23, which is the latest release.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateConversationRequest\u003c/code\u003e class is used to create a conversation through the \u003ccode\u003eConversations.CreateConversation\u003c/code\u003e method, as part of the Dialogflow API.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing it to be utilized in several different ways.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes several properties, notably \u003ccode\u003eConversation\u003c/code\u003e which is a required field, and \u003ccode\u003eConversationId\u003c/code\u003e, which is optional for a custom identifier with specific rules.\u003c/p\u003e\n"],["\u003cp\u003eThe class also includes the property \u003ccode\u003eParent\u003c/code\u003e, which is a required field for setting the resource identifier for the project creating the conversation.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Dialogflow v2beta1 API - Class CreateConversationRequest (1.0.0-beta23)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta23 (latest)](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CreateConversationRequest)\n- [1.0.0-beta22](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/1.0.0-beta22/Google.Cloud.Dialogflow.V2Beta1.CreateConversationRequest) \n\n public sealed class CreateConversationRequest : IMessage\u003cCreateConversationRequest\u003e, IEquatable\u003cCreateConversationRequest\u003e, IDeepCloneable\u003cCreateConversationRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class CreateConversationRequest.\n\nThe request message for\n\\[Conversations.CreateConversation\\]\\[google.cloud.dialogflow.v2beta1.Conversations.CreateConversation\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateConversationRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateConversationRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CreateConversationRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateConversationRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CreateConversationRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateConversationRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CreateConversationRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Dialogflow.V2Beta1](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.Dialogflow.V2Beta1.dll\n\nConstructors\n------------\n\n### CreateConversationRequest()\n\n public CreateConversationRequest()\n\n### CreateConversationRequest(CreateConversationRequest)\n\n public CreateConversationRequest(CreateConversationRequest other)\n\nProperties\n----------\n\n### Conversation\n\n public Conversation Conversation { get; set; }\n\nRequired. The conversation to create.\n\n### ConversationId\n\n public string ConversationId { get; set; }\n\nOptional. Identifier of the conversation. Generally it's auto generated by\nGoogle. Only set it if you cannot wait for the response to return a\nauto-generated one to you.\n\nThe conversation ID must be compliant with the regression formula\n`[a-zA-Z][a-zA-Z0-9_-]*` with the characters length in range of \\[3,64\\].\nIf the field is provided, the caller is responsible for\n\n1. the uniqueness of the ID, otherwise the request will be rejected.\n2. the consistency for whether to use custom ID or not under a project to better ensure uniqueness.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. Resource identifier of the project creating the conversation.\nFormat: `projects/\u003cProject ID\u003e/locations/\u003cLocation ID\u003e`.\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CreateConversationRequest#Google_Cloud_Dialogflow_V2Beta1_CreateConversationRequest_Parent) resource name property.\n\n### ParentAsProjectName\n\n public ProjectName ParentAsProjectName { get; set; }\n\n[ProjectName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CreateConversationRequest#Google_Cloud_Dialogflow_V2Beta1_CreateConversationRequest_Parent) resource name property.\n\n### ParentAsResourceName\n\n public IResourceName ParentAsResourceName { get; set; }\n\n[IResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CreateConversationRequest#Google_Cloud_Dialogflow_V2Beta1_CreateConversationRequest_Parent) resource name property."]]