Reference documentation and code samples for the Google Cloud Run V2 Client class BuildpacksBuild.
Build the source using Buildpacks.
Generated from protobuf messagegoogle.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild
Namespace
Google \ Cloud \ Run \ V2 \ SubmitBuildRequest
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ runtime
string
The runtime name, e.g. 'go113'. Leave blank for generic builds.
↳ function_target
string
Optional. Name of the function target if the source is a function source. Required for function builds.
↳ cache_image_uri
string
Optional. cache_image_uri is the GCR/AR URL where the cache image will be stored. cache_image_uri is optional and omitting it will disable caching. This URL must be stable across builds. It is used to derive a build-specific temporary URL by substituting the tag with the build ID. The build will clean up the temporary image on a best-effort basis.
Optional. Whether or not the application container will be enrolled in automatic base image updates. When true, the application will be built on a scratch base image, so the base layers can be appended at run time.
↳ project_descriptor
string
Optional. project_descriptor stores the path to the project descriptor file. When empty, it means that there is no project descriptor file in the source.
getRuntime
The runtime name, e.g. 'go113'. Leave blank for generic builds.
Returns
Type
Description
string
setRuntime
The runtime name, e.g. 'go113'. Leave blank for generic builds.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getFunctionTarget
Optional. Name of the function target if the source is a function source.
Required for function builds.
Returns
Type
Description
string
setFunctionTarget
Optional. Name of the function target if the source is a function source.
Required for function builds.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCacheImageUri
Optional. cache_image_uri is the GCR/AR URL where the cache image will be
stored. cache_image_uri is optional and omitting it will disable caching.
This URL must be stable across builds. It is used to derive a
build-specific temporary URL by substituting the tag with the build ID.
The build will clean up the temporary image on a best-effort basis.
Returns
Type
Description
string
setCacheImageUri
Optional. cache_image_uri is the GCR/AR URL where the cache image will be
stored. cache_image_uri is optional and omitting it will disable caching.
This URL must be stable across builds. It is used to derive a
build-specific temporary URL by substituting the tag with the build ID.
The build will clean up the temporary image on a best-effort basis.
Optional. Whether or not the application container will be enrolled in
automatic base image updates. When true, the application will be built on
a scratch base image, so the base layers can be appended at run time.
Returns
Type
Description
bool
setEnableAutomaticUpdates
Optional. Whether or not the application container will be enrolled in
automatic base image updates. When true, the application will be built on
a scratch base image, so the base layers can be appended at run time.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getProjectDescriptor
Optional. project_descriptor stores the path to the project descriptor
file. When empty, it means that there is no project descriptor file in
the source.
Returns
Type
Description
string
setProjectDescriptor
Optional. project_descriptor stores the path to the project descriptor
file. When empty, it means that there is no project descriptor file in
the source.
[[["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 BuildpacksBuild (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/php/docs/reference/cloud-run/latest/V2.SubmitBuildRequest.BuildpacksBuild)\n- [1.8.0](/php/docs/reference/cloud-run/1.8.0/V2.SubmitBuildRequest.BuildpacksBuild)\n- [1.7.0](/php/docs/reference/cloud-run/1.7.0/V2.SubmitBuildRequest.BuildpacksBuild)\n- [1.6.0](/php/docs/reference/cloud-run/1.6.0/V2.SubmitBuildRequest.BuildpacksBuild)\n- [1.5.2](/php/docs/reference/cloud-run/1.5.2/V2.SubmitBuildRequest.BuildpacksBuild)\n- [1.4.0](/php/docs/reference/cloud-run/1.4.0/V2.SubmitBuildRequest.BuildpacksBuild)\n- [1.3.0](/php/docs/reference/cloud-run/1.3.0/V2.SubmitBuildRequest.BuildpacksBuild)\n- [1.2.0](/php/docs/reference/cloud-run/1.2.0/V2.SubmitBuildRequest.BuildpacksBuild)\n- [1.1.0](/php/docs/reference/cloud-run/1.1.0/V2.SubmitBuildRequest.BuildpacksBuild)\n- [1.0.0](/php/docs/reference/cloud-run/1.0.0/V2.SubmitBuildRequest.BuildpacksBuild)\n- [0.9.3](/php/docs/reference/cloud-run/0.9.3/V2.SubmitBuildRequest.BuildpacksBuild)\n- [0.8.0](/php/docs/reference/cloud-run/0.8.0/V2.SubmitBuildRequest.BuildpacksBuild)\n- [0.7.2](/php/docs/reference/cloud-run/0.7.2/V2.SubmitBuildRequest.BuildpacksBuild)\n- [0.6.0](/php/docs/reference/cloud-run/0.6.0/V2.SubmitBuildRequest.BuildpacksBuild)\n- [0.5.2](/php/docs/reference/cloud-run/0.5.2/V2.SubmitBuildRequest.BuildpacksBuild)\n- [0.4.0](/php/docs/reference/cloud-run/0.4.0/V2.SubmitBuildRequest.BuildpacksBuild)\n- [0.3.4](/php/docs/reference/cloud-run/0.3.4/V2.SubmitBuildRequest.BuildpacksBuild) \nReference documentation and code samples for the Google Cloud Run V2 Client class BuildpacksBuild.\n\nBuild the source using Buildpacks.\n\nGenerated from protobuf message `google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Run \\\\ V2 \\\\ SubmitBuildRequest\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getRuntime\n\nThe runtime name, e.g. 'go113'. Leave blank for generic builds.\n\n### setRuntime\n\nThe runtime name, e.g. 'go113'. Leave blank for generic builds.\n\n### getFunctionTarget\n\nOptional. Name of the function target if the source is a function source.\n\nRequired for function builds.\n\n### setFunctionTarget\n\nOptional. Name of the function target if the source is a function source.\n\nRequired for function builds.\n\n### getCacheImageUri\n\nOptional. cache_image_uri is the GCR/AR URL where the cache image will be\nstored. cache_image_uri is optional and omitting it will disable caching.\n\nThis URL must be stable across builds. It is used to derive a\nbuild-specific temporary URL by substituting the tag with the build ID.\nThe build will clean up the temporary image on a best-effort basis.\n\n### setCacheImageUri\n\nOptional. cache_image_uri is the GCR/AR URL where the cache image will be\nstored. cache_image_uri is optional and omitting it will disable caching.\n\nThis URL must be stable across builds. It is used to derive a\nbuild-specific temporary URL by substituting the tag with the build ID.\nThe build will clean up the temporary image on a best-effort basis.\n\n### getBaseImage\n\nOptional. The base image to use for the build.\n\n### setBaseImage\n\nOptional. The base image to use for the build.\n\n### getEnvironmentVariables\n\nOptional. User-provided build-time environment variables.\n\n### setEnvironmentVariables\n\nOptional. User-provided build-time environment variables.\n\n### getEnableAutomaticUpdates\n\nOptional. Whether or not the application container will be enrolled in\nautomatic base image updates. When true, the application will be built on\na scratch base image, so the base layers can be appended at run time.\n\n### setEnableAutomaticUpdates\n\nOptional. Whether or not the application container will be enrolled in\nautomatic base image updates. When true, the application will be built on\na scratch base image, so the base layers can be appended at run time.\n\n### getProjectDescriptor\n\nOptional. project_descriptor stores the path to the project descriptor\nfile. When empty, it means that there is no project descriptor file in\nthe source.\n\n### setProjectDescriptor\n\nOptional. project_descriptor stores the path to the project descriptor\nfile. When empty, it means that there is no project descriptor file in\nthe source."]]