2.7.0 (latest) 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.2.0 1.1.0 1.0.0

    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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> CreateWorkflowRequest

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[CreateWorkflowRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1/latest/Google.Cloud.Workflows.V1.CreateWorkflowRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateWorkflowRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1/latest/Google.Cloud.Workflows.V1.CreateWorkflowRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[CreateWorkflowRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1/latest/Google.Cloud.Workflows.V1.CreateWorkflowRequest.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Workflows.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1/latest/Google.Cloud.Workflows.V1.md.txt)

## Assembly

Google.Cloud.Workflows.V1.dll

## Constructors

### CreateWorkflowRequest()

    public CreateWorkflowRequest()

### CreateWorkflowRequest(CreateWorkflowRequest)

    public CreateWorkflowRequest(CreateWorkflowRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `CreateWorkflowRequest` |

## Properties

### Parent

    public string Parent { get; set; }

Required. Project and location in which the workflow should be created.
Format: projects/{project}/locations/{location}

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ParentAsLocationName

    public LocationName ParentAsLocationName { get; set; }

[LocationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.md.txt)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1/latest/Google.Cloud.Workflows.V1.CreateWorkflowRequest.md.txt#Google_Cloud_Workflows_V1_CreateWorkflowRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LocationName` |   |

### Workflow

    public Workflow Workflow { get; set; }

Required. Workflow to be created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Workflow` |   |

### WorkflowId

    public string WorkflowId { get; set; }

Required. The ID of the workflow to be created. It has to fulfill the
following requirements:

- Must contain only letters, numbers, underscores and hyphens.
- Must start with a letter.
- Must be between 1-64 characters.
- Must end with a number or a letter.
- Must be unique within the customer project and location.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |