Reference documentation and code samples for the Google Cloud Run V2 Client class SubmitBuildRequest.
Request message for submitting a Build.
Generated from protobuf messagegoogle.cloud.run.v2.SubmitBuildRequest
Namespace
Google \ Cloud \ Run \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
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}
Build the source using Docker. This means the source has a Dockerfile.
↳ service_account
string
Optional. The service account to use for the build. If not set, the default Cloud Build service account for the project will be used.
↳ worker_pool
string
Optional. Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field isprojects/{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.
↳ tags
array
Optional. Additional tags to annotate the build.
getParent
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}
Returns
Type
Description
string
setParent
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.
Optional. The service account to use for the build. If not set, the default
Cloud Build service account for the project will be used.
Returns
Type
Description
string
setServiceAccount
Optional. The service account to use for the build. If not set, the default
Cloud Build service account for the project will be used.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getWorkerPool
Optional. Name of the Cloud Build Custom Worker Pool that should be used to
build the function. The format of this field isprojects/{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.
Returns
Type
Description
string
setWorkerPool
Optional. Name of the Cloud Build Custom Worker Pool that should be used to
build the function. The format of this field isprojects/{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."],[],[],null,["# Google Cloud Run V2 Client - Class SubmitBuildRequest (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/php/docs/reference/cloud-run/latest/V2.SubmitBuildRequest)\n- [1.8.0](/php/docs/reference/cloud-run/1.8.0/V2.SubmitBuildRequest)\n- [1.7.0](/php/docs/reference/cloud-run/1.7.0/V2.SubmitBuildRequest)\n- [1.6.0](/php/docs/reference/cloud-run/1.6.0/V2.SubmitBuildRequest)\n- [1.5.2](/php/docs/reference/cloud-run/1.5.2/V2.SubmitBuildRequest)\n- [1.4.0](/php/docs/reference/cloud-run/1.4.0/V2.SubmitBuildRequest)\n- [1.3.0](/php/docs/reference/cloud-run/1.3.0/V2.SubmitBuildRequest)\n- [1.2.0](/php/docs/reference/cloud-run/1.2.0/V2.SubmitBuildRequest)\n- [1.1.0](/php/docs/reference/cloud-run/1.1.0/V2.SubmitBuildRequest)\n- [1.0.0](/php/docs/reference/cloud-run/1.0.0/V2.SubmitBuildRequest)\n- [0.9.3](/php/docs/reference/cloud-run/0.9.3/V2.SubmitBuildRequest)\n- [0.8.0](/php/docs/reference/cloud-run/0.8.0/V2.SubmitBuildRequest)\n- [0.7.2](/php/docs/reference/cloud-run/0.7.2/V2.SubmitBuildRequest)\n- [0.6.0](/php/docs/reference/cloud-run/0.6.0/V2.SubmitBuildRequest)\n- [0.5.2](/php/docs/reference/cloud-run/0.5.2/V2.SubmitBuildRequest)\n- [0.4.0](/php/docs/reference/cloud-run/0.4.0/V2.SubmitBuildRequest)\n- [0.3.4](/php/docs/reference/cloud-run/0.3.4/V2.SubmitBuildRequest) \nReference documentation and code samples for the Google Cloud Run V2 Client class SubmitBuildRequest.\n\nRequest message for submitting a Build.\n\nGenerated from protobuf message `google.cloud.run.v2.SubmitBuildRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Run \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\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.\n\nFormat:\n`projects/{project}/locations/{location}`\n\n### setParent\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.\n\nFormat:\n`projects/{project}/locations/{location}`\n\n### getStorageSource\n\nRequired. Source for the build.\n\n### hasStorageSource\n\n### setStorageSource\n\nRequired. Source for the build.\n\n### getImageUri\n\nRequired. Artifact Registry URI to store the built image.\n\n### setImageUri\n\nRequired. Artifact Registry URI to store the built image.\n\n### getBuildpackBuild\n\nBuild the source using Buildpacks.\n\n### hasBuildpackBuild\n\n### setBuildpackBuild\n\nBuild the source using Buildpacks.\n\n### getDockerBuild\n\nBuild the source using Docker. This means the source has a Dockerfile.\n\n### hasDockerBuild\n\n### setDockerBuild\n\nBuild the source using Docker. This means the source has a Dockerfile.\n\n### getServiceAccount\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### setServiceAccount\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### getWorkerPool\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### setWorkerPool\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### getTags\n\nOptional. Additional tags to annotate the build.\n\n### setTags\n\nOptional. Additional tags to annotate the build.\n\n### getSource\n\n### getBuildType"]]