public sealed class SubmitBuildRequest : IMessage<SubmitBuildRequest>, IEquatable<SubmitBuildRequest>, IDeepCloneable<SubmitBuildRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Run Admin v2 API class SubmitBuildRequest.
Required. The project and location to build in. Location must be a region,
e.g., 'us-central1' or 'global' if the global builder is to be used.
Format:
projects/{project}/locations/{location}
Optional. Name of the Cloud Build Custom Worker Pool that should be used to
build the function. The format of this field is
projects/{project}/locations/{region}/workerPools/{workerPool} where
{project} and {region} are the project id and region respectively where
the worker pool is defined and {workerPool} is the short name of the
worker pool.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis documentation page covers the \u003ccode\u003eSubmitBuildRequest\u003c/code\u003e class within the Google Cloud Run Admin v2 API, detailing its properties, constructors, and the various versions of the API available.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eSubmitBuildRequest\u003c/code\u003e class is 2.13.0, and the page lists versions down to 1.0.0-beta02 for developers to choose the version compatible with their systems.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSubmitBuildRequest\u003c/code\u003e class is used to submit a build request to Cloud Run, and it implements multiple interfaces such as \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\u003eKey properties of the \u003ccode\u003eSubmitBuildRequest\u003c/code\u003e include \u003ccode\u003eImageUri\u003c/code\u003e for the built image's storage location, \u003ccode\u003eParent\u003c/code\u003e for the build's project and location, and options for specifying the build type via \u003ccode\u003eBuildpackBuild\u003c/code\u003e or \u003ccode\u003eDockerBuild\u003c/code\u003e, and how to access the source.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can specify a service account, worker pool, and additional tags for the build, along with the source and whether to build using buildpacks or docker using the corresponding build type properties.\u003c/p\u003e\n"]]],[],null,["# Cloud Run Admin v2 API - Class SubmitBuildRequest (2.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.16.0 (latest)](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.SubmitBuildRequest)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.15.0/Google.Cloud.Run.V2.SubmitBuildRequest)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.14.0/Google.Cloud.Run.V2.SubmitBuildRequest)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.13.0/Google.Cloud.Run.V2.SubmitBuildRequest)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.12.0/Google.Cloud.Run.V2.SubmitBuildRequest)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.11.0/Google.Cloud.Run.V2.SubmitBuildRequest)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.10.0/Google.Cloud.Run.V2.SubmitBuildRequest)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.9.0/Google.Cloud.Run.V2.SubmitBuildRequest)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.8.0/Google.Cloud.Run.V2.SubmitBuildRequest)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.7.0/Google.Cloud.Run.V2.SubmitBuildRequest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.6.0/Google.Cloud.Run.V2.SubmitBuildRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.5.0/Google.Cloud.Run.V2.SubmitBuildRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.4.0/Google.Cloud.Run.V2.SubmitBuildRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.3.0/Google.Cloud.Run.V2.SubmitBuildRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.2.0/Google.Cloud.Run.V2.SubmitBuildRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.1.0/Google.Cloud.Run.V2.SubmitBuildRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.0.0/Google.Cloud.Run.V2.SubmitBuildRequest)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.Run.V2/1.0.0-beta02/Google.Cloud.Run.V2.SubmitBuildRequest) \n\n public sealed class SubmitBuildRequest : IMessage\u003cSubmitBuildRequest\u003e, IEquatable\u003cSubmitBuildRequest\u003e, IDeepCloneable\u003cSubmitBuildRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Run Admin v2 API class SubmitBuildRequest.\n\nRequest message for submitting a Build. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SubmitBuildRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SubmitBuildRequest](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.SubmitBuildRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SubmitBuildRequest](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.SubmitBuildRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SubmitBuildRequest](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.SubmitBuildRequest), [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.Run.V2](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Run.V2.dll\n\nConstructors\n------------\n\n### SubmitBuildRequest()\n\n public SubmitBuildRequest()\n\n### SubmitBuildRequest(SubmitBuildRequest)\n\n public SubmitBuildRequest(SubmitBuildRequest other)\n\nProperties\n----------\n\n### BuildTypeCase\n\n public SubmitBuildRequest.BuildTypeOneofCase BuildTypeCase { get; }\n\n### BuildpackBuild\n\n public SubmitBuildRequest.Types.BuildpacksBuild BuildpackBuild { get; set; }\n\nBuild the source using Buildpacks.\n\n### DockerBuild\n\n public SubmitBuildRequest.Types.DockerBuild DockerBuild { get; set; }\n\nBuild the source using Docker. This means the source has a Dockerfile.\n\n### ImageUri\n\n public string ImageUri { get; set; }\n\nRequired. Artifact Registry URI to store the built image.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The project and location to build in. Location must be a region,\ne.g., 'us-central1' or 'global' if the global builder is to be used.\nFormat:\n`projects/{project}/locations/{location}`\n\n### ServiceAccount\n\n public string ServiceAccount { get; set; }\n\nOptional. The service account to use for the build. If not set, the default\nCloud Build service account for the project will be used.\n\n### SourceCase\n\n public SubmitBuildRequest.SourceOneofCase SourceCase { get; }\n\n### StorageSource\n\n public StorageSource StorageSource { get; set; }\n\nRequired. Source for the build.\n\n### Tags\n\n public RepeatedField\u003cstring\u003e Tags { get; }\n\nOptional. Additional tags to annotate the build.\n\n### WorkerPool\n\n public string WorkerPool { get; set; }\n\nOptional. Name of the Cloud Build Custom Worker Pool that should be used to\nbuild the function. The format of this field is\n`projects/{project}/locations/{region}/workerPools/{workerPool}` where\n`{project}` and `{region}` are the project id and region respectively where\nthe worker pool is defined and `{workerPool}` is the short name of the\nworker pool.\n\n### WorkerPoolAsBuildWorkerPoolName\n\n public BuildWorkerPoolName WorkerPoolAsBuildWorkerPoolName { get; set; }\n\n[BuildWorkerPoolName](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.BuildWorkerPoolName)-typed view over the [WorkerPool](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.SubmitBuildRequest#Google_Cloud_Run_V2_SubmitBuildRequest_WorkerPool) resource name property."]]