public sealed class CreateWorkflowRequest : IMessage<CreateWorkflowRequest>, IEquatable<CreateWorkflowRequest>, IDeepCloneable<CreateWorkflowRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Workflows v1 API class CreateWorkflowRequest.
Request for the
[CreateWorkflow][google.cloud.workflows.v1.Workflows.CreateWorkflow]
method.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCreateWorkflowRequest\u003c/code\u003e class is used to create a request for the \u003ccode\u003eCreateWorkflow\u003c/code\u003e method within the Workflows v1 API, allowing users to create a new workflow.\u003c/p\u003e\n"],["\u003cp\u003eThis class is part of the \u003ccode\u003eGoogle.Cloud.Workflows.V1\u003c/code\u003e namespace, with its latest version being 2.5.0, and has several previous versions available, dating back to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateWorkflowRequest\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing various functionalities.\u003c/p\u003e\n"],["\u003cp\u003eTo use this class, you need to provide the required project and location, along with the workflow details and a unique workflow ID adhering to the specified format.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties such as \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003eParentAsLocationName\u003c/code\u003e, \u003ccode\u003eWorkflow\u003c/code\u003e, and \u003ccode\u003eWorkflowId\u003c/code\u003e that allow configuration of the request, and also has inherited members from \u003ccode\u003eobject\u003c/code\u003e such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Workflows v1 API - Class CreateWorkflowRequest (2.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.Workflows.V1/latest/Google.Cloud.Workflows.V1.CreateWorkflowRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Workflows.V1/2.5.0/Google.Cloud.Workflows.V1.CreateWorkflowRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Workflows.V1/2.4.0/Google.Cloud.Workflows.V1.CreateWorkflowRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Workflows.V1/2.3.0/Google.Cloud.Workflows.V1.CreateWorkflowRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Workflows.V1/2.2.0/Google.Cloud.Workflows.V1.CreateWorkflowRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Workflows.V1/2.1.0/Google.Cloud.Workflows.V1.CreateWorkflowRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Workflows.V1/2.0.0/Google.Cloud.Workflows.V1.CreateWorkflowRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Workflows.V1/1.2.0/Google.Cloud.Workflows.V1.CreateWorkflowRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Workflows.V1/1.1.0/Google.Cloud.Workflows.V1.CreateWorkflowRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Workflows.V1/1.0.0/Google.Cloud.Workflows.V1.CreateWorkflowRequest) \n\n public sealed class CreateWorkflowRequest : IMessage\u003cCreateWorkflowRequest\u003e, IEquatable\u003cCreateWorkflowRequest\u003e, IDeepCloneable\u003cCreateWorkflowRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Workflows v1 API class CreateWorkflowRequest.\n\nRequest for the\n\\[CreateWorkflow\\]\\[google.cloud.workflows.v1.Workflows.CreateWorkflow\\]\nmethod. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateWorkflowRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateWorkflowRequest](/dotnet/docs/reference/Google.Cloud.Workflows.V1/latest/Google.Cloud.Workflows.V1.CreateWorkflowRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateWorkflowRequest](/dotnet/docs/reference/Google.Cloud.Workflows.V1/latest/Google.Cloud.Workflows.V1.CreateWorkflowRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateWorkflowRequest](/dotnet/docs/reference/Google.Cloud.Workflows.V1/latest/Google.Cloud.Workflows.V1.CreateWorkflowRequest), [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.Workflows.V1](/dotnet/docs/reference/Google.Cloud.Workflows.V1/latest/Google.Cloud.Workflows.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Workflows.V1.dll\n\nConstructors\n------------\n\n### CreateWorkflowRequest()\n\n public CreateWorkflowRequest()\n\n### CreateWorkflowRequest(CreateWorkflowRequest)\n\n public CreateWorkflowRequest(CreateWorkflowRequest other)\n\nProperties\n----------\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. Project and location in which the workflow should be created.\nFormat: projects/{project}/locations/{location}\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.Workflows.V1/latest/Google.Cloud.Workflows.V1.CreateWorkflowRequest#Google_Cloud_Workflows_V1_CreateWorkflowRequest_Parent) resource name property.\n\n### Workflow\n\n public Workflow Workflow { get; set; }\n\nRequired. Workflow to be created.\n\n### WorkflowId\n\n public string WorkflowId { get; set; }\n\nRequired. The ID of the workflow to be created. It has to fulfill the\nfollowing requirements:\n\n- Must contain only letters, numbers, underscores and hyphens.\n- Must start with a letter.\n- Must be between 1-64 characters.\n- Must end with a number or a letter.\n- Must be unique within the customer project and location."]]