2.22.0 (latest) 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Cloud Build v1 API class CreateWorkerPoolRequest.

Request to create a new `WorkerPool`.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.CloudBuild.V1.dll

## Constructors

### CreateWorkerPoolRequest()

    public CreateWorkerPoolRequest()

### CreateWorkerPoolRequest(CreateWorkerPoolRequest)

    public CreateWorkerPoolRequest(CreateWorkerPoolRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest` |

## Properties

### Parent

    public string Parent { get; set; }

Required. The parent resource where this worker pool will be created.
Format: `projects/{project}/locations/{location}`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ParentAsLocationName

    public LocationName ParentAsLocationName { get; set; }

[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest#Google_Cloud_CloudBuild_V1_CreateWorkerPoolRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` |   |

### ValidateOnly

    public bool ValidateOnly { get; set; }

If set, validate the request and preview the response, but do not actually
post it.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### WorkerPool

    public WorkerPool WorkerPool { get; set; }

Required. `WorkerPool` resource to create.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.WorkerPool` |   |

### WorkerPoolId

    public string WorkerPoolId { get; set; }

Required. Immutable. The ID to use for the `WorkerPool`, which will become
the final component of the resource name.

This value should be 1-63 characters, and valid characters
are /\[a-z\]\[0-9\]-/.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |