1.0.0-beta16 (latest) 1.0.0-beta15

    public sealed class CheckoutWorkspaceBranchRequest : IMessage<CheckoutWorkspaceBranchRequest>, IEquatable<CheckoutWorkspaceBranchRequest>, IDeepCloneable<CheckoutWorkspaceBranchRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Dataform v1beta1 API class CheckoutWorkspaceBranchRequest.

`CheckoutWorkspaceBranch` request message.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CheckoutWorkspaceBranchRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataform.V1Beta1/latest/Google.Cloud.Dataform.V1Beta1.CheckoutWorkspaceBranchRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CheckoutWorkspaceBranchRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataform.V1Beta1/latest/Google.Cloud.Dataform.V1Beta1.CheckoutWorkspaceBranchRequest.md.txt), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CheckoutWorkspaceBranchRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataform.V1Beta1/latest/Google.Cloud.Dataform.V1Beta1.CheckoutWorkspaceBranchRequest.md.txt), [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)

## 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.Dataform.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataform.V1Beta1/latest/Google.Cloud.Dataform.V1Beta1.md.txt)

## Assembly

Google.Cloud.Dataform.V1Beta1.dll

## Constructors

### CheckoutWorkspaceBranchRequest()

    public CheckoutWorkspaceBranchRequest()

### CheckoutWorkspaceBranchRequest(CheckoutWorkspaceBranchRequest)

    public CheckoutWorkspaceBranchRequest(CheckoutWorkspaceBranchRequest other)

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

## Properties

### Branch

    public string Branch { get; set; }

Required. The name of the branch in the Git repository to which the
workspace should be checked out.

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

### CreateIfNotExists

    public bool CreateIfNotExists { get; set; }

Optional. If set to true and the branch does not exist, it will be created.
Otherwise, an error will be thrown.

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

### Name

    public string Name { get; set; }

Required. The workspace resource name.
Format:
projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}

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

### SourceBranch

    public string SourceBranch { get; set; }

Optional. The name of the branch in the Git repository from which the new
branch should be created. If left unset, the workspace's current branch
name will be used. Accepts only branch names from FetchWorkspaceBranches
response, and can only be set if `create_if_not_exists` is true. Oherwise,
an error will be thrown.

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

### WorkspaceName

    public WorkspaceName WorkspaceName { get; set; }

[WorkspaceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataform.V1Beta1/latest/Google.Cloud.Dataform.V1Beta1.WorkspaceName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataform.V1Beta1/latest/Google.Cloud.Dataform.V1Beta1.CheckoutWorkspaceBranchRequest.md.txt#Google_Cloud_Dataform_V1Beta1_CheckoutWorkspaceBranchRequest_Name) resource name property.

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