Note: The following fields are mutually exclusive: buildpack_build, docker_build. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: buildpack_build, docker_build. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: buildpack_build, docker_build. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: docker_build, buildpack_build. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: docker_build, buildpack_build. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: docker_build, buildpack_build. If a field in that set is populated, all other fields in the set will automatically be cleared.
#image_uri
defimage_uri()->::String
Returns
(::String) โ Required. Artifact Registry URI to store the built image.
#image_uri=
defimage_uri=(value)->::String
Parameter
value (::String) โ Required. Artifact Registry URI to store the built image.
Returns
(::String) โ Required. Artifact Registry URI to store the built image.
#parent
defparent()->::String
Returns
(::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}
#parent=
defparent=(value)->::String
Parameter
value (::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}
Returns
(::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}
#service_account
defservice_account()->::String
Returns
(::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.
#service_account=
defservice_account=(value)->::String
Parameter
value (::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.
Returns
(::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.
(::Array<::String>) โ Optional. Additional tags to annotate the build.
#tags=
deftags=(value)->::Array<::String>
Parameter
value (::Array<::String>) โ Optional. Additional tags to annotate the build.
Returns
(::Array<::String>) โ Optional. Additional tags to annotate the build.
#worker_pool
defworker_pool()->::String
Returns
(::String) โ 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.
#worker_pool=
defworker_pool=(value)->::String
Parameter
value (::String) โ 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.
Returns
(::String) โ 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."],[],[],null,["# Cloud Run V2 API - Class Google::Cloud::Run::V2::SubmitBuildRequest (v0.26.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.26.0 (latest)](/ruby/docs/reference/google-cloud-run-v2/latest/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.25.0](/ruby/docs/reference/google-cloud-run-v2/0.25.0/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.24.1](/ruby/docs/reference/google-cloud-run-v2/0.24.1/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.23.0](/ruby/docs/reference/google-cloud-run-v2/0.23.0/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.22.1](/ruby/docs/reference/google-cloud-run-v2/0.22.1/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.21.0](/ruby/docs/reference/google-cloud-run-v2/0.21.0/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.20.0](/ruby/docs/reference/google-cloud-run-v2/0.20.0/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.19.0](/ruby/docs/reference/google-cloud-run-v2/0.19.0/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.18.0](/ruby/docs/reference/google-cloud-run-v2/0.18.0/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.17.0](/ruby/docs/reference/google-cloud-run-v2/0.17.0/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.16.1](/ruby/docs/reference/google-cloud-run-v2/0.16.1/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.15.0](/ruby/docs/reference/google-cloud-run-v2/0.15.0/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.14.0](/ruby/docs/reference/google-cloud-run-v2/0.14.0/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.13.2](/ruby/docs/reference/google-cloud-run-v2/0.13.2/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.12.0](/ruby/docs/reference/google-cloud-run-v2/0.12.0/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.11.0](/ruby/docs/reference/google-cloud-run-v2/0.11.0/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.10.1](/ruby/docs/reference/google-cloud-run-v2/0.10.1/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.9.1](/ruby/docs/reference/google-cloud-run-v2/0.9.1/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-run-v2/0.8.0/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-run-v2/0.7.0/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-run-v2/0.6.0/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.5.0](/ruby/docs/reference/google-cloud-run-v2/0.5.0/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-run-v2/0.4.0/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.3.1](/ruby/docs/reference/google-cloud-run-v2/0.3.1/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.2.0](/ruby/docs/reference/google-cloud-run-v2/0.2.0/Google-Cloud-Run-V2-SubmitBuildRequest)\n- [0.1.0](/ruby/docs/reference/google-cloud-run-v2/0.1.0/Google-Cloud-Run-V2-SubmitBuildRequest) \nReference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::SubmitBuildRequest.\n\nRequest message for submitting a Build. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #buildpack_build\n\n def buildpack_build() -\u003e ::Google::Cloud::Run::V2::SubmitBuildRequest::BuildpacksBuild\n\n**Returns**\n\n- ([::Google::Cloud::Run::V2::SubmitBuildRequest::BuildpacksBuild](./Google-Cloud-Run-V2-SubmitBuildRequest-BuildpacksBuild)) --- Build the source using Buildpacks.\n\n\n Note: The following fields are mutually exclusive: `buildpack_build`, `docker_build`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #buildpack_build=\n\n def buildpack_build=(value) -\u003e ::Google::Cloud::Run::V2::SubmitBuildRequest::BuildpacksBuild\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Run::V2::SubmitBuildRequest::BuildpacksBuild](./Google-Cloud-Run-V2-SubmitBuildRequest-BuildpacksBuild)) --- Build the source using Buildpacks.\n\n\nNote: The following fields are mutually exclusive: `buildpack_build`, `docker_build`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Run::V2::SubmitBuildRequest::BuildpacksBuild](./Google-Cloud-Run-V2-SubmitBuildRequest-BuildpacksBuild)) --- Build the source using Buildpacks.\n\n\n Note: The following fields are mutually exclusive: `buildpack_build`, `docker_build`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #docker_build\n\n def docker_build() -\u003e ::Google::Cloud::Run::V2::SubmitBuildRequest::DockerBuild\n\n**Returns**\n\n- ([::Google::Cloud::Run::V2::SubmitBuildRequest::DockerBuild](./Google-Cloud-Run-V2-SubmitBuildRequest-DockerBuild)) --- Build the source using Docker. This means the source has a Dockerfile.\n\n\n Note: The following fields are mutually exclusive: `docker_build`, `buildpack_build`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #docker_build=\n\n def docker_build=(value) -\u003e ::Google::Cloud::Run::V2::SubmitBuildRequest::DockerBuild\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Run::V2::SubmitBuildRequest::DockerBuild](./Google-Cloud-Run-V2-SubmitBuildRequest-DockerBuild)) --- Build the source using Docker. This means the source has a Dockerfile.\n\n\nNote: The following fields are mutually exclusive: `docker_build`, `buildpack_build`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Run::V2::SubmitBuildRequest::DockerBuild](./Google-Cloud-Run-V2-SubmitBuildRequest-DockerBuild)) --- Build the source using Docker. This means the source has a Dockerfile.\n\n\n Note: The following fields are mutually exclusive: `docker_build`, `buildpack_build`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #image_uri\n\n def image_uri() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. Artifact Registry URI to store the built image.\n\n### #image_uri=\n\n def image_uri=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. Artifact Registry URI to store the built image. \n**Returns**\n\n- (::String) --- Required. Artifact Registry URI to store the built image.\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::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}`\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::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}` \n**Returns**\n\n- (::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}`\n\n### #service_account\n\n def service_account() -\u003e ::String\n\n**Returns**\n\n- (::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.\n\n### #service_account=\n\n def service_account=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::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. \n**Returns**\n\n- (::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.\n\n### #storage_source\n\n def storage_source() -\u003e ::Google::Cloud::Run::V2::StorageSource\n\n**Returns**\n\n- ([::Google::Cloud::Run::V2::StorageSource](./Google-Cloud-Run-V2-StorageSource)) --- Required. Source for the build.\n\n### #storage_source=\n\n def storage_source=(value) -\u003e ::Google::Cloud::Run::V2::StorageSource\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Run::V2::StorageSource](./Google-Cloud-Run-V2-StorageSource)) --- Required. Source for the build. \n**Returns**\n\n- ([::Google::Cloud::Run::V2::StorageSource](./Google-Cloud-Run-V2-StorageSource)) --- Required. Source for the build.\n\n### #tags\n\n def tags() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Optional. Additional tags to annotate the build.\n\n### #tags=\n\n def tags=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) --- Optional. Additional tags to annotate the build. \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Optional. Additional tags to annotate the build.\n\n### #worker_pool\n\n def worker_pool() -\u003e ::String\n\n**Returns**\n\n- (::String) --- 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.\n\n### #worker_pool=\n\n def worker_pool=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- 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. \n**Returns**\n\n- (::String) --- 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."]]