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.
[[["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-19 UTC."],[[["\u003cp\u003eThe latest version available for the \u003ccode\u003eCreateWorkerPoolRequest\u003c/code\u003e class is 2.15.0.\u003c/p\u003e\n"],["\u003cp\u003eThis class, \u003ccode\u003eCreateWorkerPoolRequest\u003c/code\u003e, is part of the Google Cloud Build v1 API and is used to request the creation of a new \u003ccode\u003eWorkerPool\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateWorkerPoolRequest\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties to define the \u003ccode\u003eParent\u003c/code\u003e location, \u003ccode\u003eWorkerPool\u003c/code\u003e resource, the \u003ccode\u003eWorkerPoolId\u003c/code\u003e, and \u003ccode\u003eValidateOnly\u003c/code\u003e fields.\u003c/p\u003e\n"],["\u003cp\u003eThe class has documentation on the constructors and the inherited members it has.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v1 API - Class CreateWorkerPoolRequest (2.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.16.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.15.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.14.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.13.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.12.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.11.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.10.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.9.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.8.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.7.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.6.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.5.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.4.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.3.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.2.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.1.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.0.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.4.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.3.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.2.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.1.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.0.0/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest) \n\n public sealed class CreateWorkerPoolRequest : IMessage\u003cCreateWorkerPoolRequest\u003e, IEquatable\u003cCreateWorkerPoolRequest\u003e, IDeepCloneable\u003cCreateWorkerPoolRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v1 API class CreateWorkerPoolRequest.\n\nRequest to create a new `WorkerPool`. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateWorkerPoolRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateWorkerPoolRequest](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateWorkerPoolRequest](/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](/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) \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.CloudBuild.V1](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudBuild.V1.dll\n\nConstructors\n------------\n\n### CreateWorkerPoolRequest()\n\n public CreateWorkerPoolRequest()\n\n### CreateWorkerPoolRequest(CreateWorkerPoolRequest)\n\n public CreateWorkerPoolRequest(CreateWorkerPoolRequest other)\n\nProperties\n----------\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The parent resource where this worker pool will 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.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.CreateWorkerPoolRequest#Google_Cloud_CloudBuild_V1_CreateWorkerPoolRequest_Parent) resource name property.\n\n### ValidateOnly\n\n public bool ValidateOnly { get; set; }\n\nIf set, validate the request and preview the response, but do not actually\npost it.\n\n### WorkerPool\n\n public WorkerPool WorkerPool { get; set; }\n\nRequired. `WorkerPool` resource to create.\n\n### WorkerPoolId\n\n public string WorkerPoolId { get; set; }\n\nRequired. Immutable. The ID to use for the `WorkerPool`, which will become\nthe final component of the resource name.\n\nThis value should be 1-63 characters, and valid characters\nare /\\[a-z\\]\\[0-9\\]-/."]]