public sealed class CreateBuildRequest : IMessage<CreateBuildRequest>, IEquatable<CreateBuildRequest>, IDeepCloneable<CreateBuildRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v1 API class CreateBuildRequest.
[[["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 of the \u003ccode\u003eCreateBuildRequest\u003c/code\u003e API class is 2.15.0, with previous versions ranging from 1.0.0 to 2.14.0 also available.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCreateBuildRequest\u003c/code\u003e is a class within the \u003ccode\u003eGoogle.Cloud.CloudBuild.V1\u003c/code\u003e namespace used to request the creation of a new build and it 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.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and contains properties such as \u003ccode\u003eBuild\u003c/code\u003e, \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003eParentAsLocationName\u003c/code\u003e, \u003ccode\u003eParentAsProjectName\u003c/code\u003e, \u003ccode\u003eParentAsResourceName\u003c/code\u003e, and \u003ccode\u003eProjectId\u003c/code\u003e that define the necessary information for creating a build request.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateBuildRequest\u003c/code\u003e class offers two constructors: a default constructor \u003ccode\u003eCreateBuildRequest()\u003c/code\u003e and another that takes an existing \u003ccode\u003eCreateBuildRequest\u003c/code\u003e instance, facilitating the cloning of build requests.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBuild\u003c/code\u003e property of type \u003ccode\u003eBuild\u003c/code\u003e is required and the resource to create, and the \u003ccode\u003eParent\u003c/code\u003e property of type \u003ccode\u003estring\u003c/code\u003e is also required, with a format of \u003ccode\u003eprojects/{project}/locations/{location}\u003c/code\u003e, and alternative views over the \u003ccode\u003eParent\u003c/code\u003e resource name are also available such as \u003ccode\u003eLocationName\u003c/code\u003e, \u003ccode\u003eProjectName\u003c/code\u003e, and \u003ccode\u003eIResourceName\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v1 API - Class CreateBuildRequest (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.CreateBuildRequest)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.15.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.14.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.13.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.12.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.11.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.10.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.9.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.8.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.7.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.6.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.5.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.4.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.3.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.2.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.1.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.0.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.4.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.3.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.2.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.1.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.0.0/Google.Cloud.CloudBuild.V1.CreateBuildRequest) \n\n public sealed class CreateBuildRequest : IMessage\u003cCreateBuildRequest\u003e, IEquatable\u003cCreateBuildRequest\u003e, IDeepCloneable\u003cCreateBuildRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v1 API class CreateBuildRequest.\n\nRequest to create a new build. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateBuildRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateBuildRequest](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.CreateBuildRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateBuildRequest](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.CreateBuildRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateBuildRequest](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.CreateBuildRequest), [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### CreateBuildRequest()\n\n public CreateBuildRequest()\n\n### CreateBuildRequest(CreateBuildRequest)\n\n public CreateBuildRequest(CreateBuildRequest other)\n\nProperties\n----------\n\n### Build\n\n public Build Build { get; set; }\n\nRequired. Build resource to create.\n\n### Parent\n\n public string Parent { get; set; }\n\nThe parent resource where this build 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.CreateBuildRequest#Google_Cloud_CloudBuild_V1_CreateBuildRequest_Parent) resource name property.\n\n### ParentAsProjectName\n\n public ProjectName ParentAsProjectName { get; set; }\n\n[ProjectName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.CreateBuildRequest#Google_Cloud_CloudBuild_V1_CreateBuildRequest_Parent) resource name property.\n\n### ParentAsResourceName\n\n public IResourceName ParentAsResourceName { get; set; }\n\n[IResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.CreateBuildRequest#Google_Cloud_CloudBuild_V1_CreateBuildRequest_Parent) resource name property.\n\n### ProjectId\n\n public string ProjectId { get; set; }\n\nRequired. ID of the project."]]