# Google Cloud Run V2 Client - Class BuildpacksBuild (1.12.2)

1.12.2 (latest) 1.12.1 1.11.0 1.10.1 1.9.0 1.8.0 1.7.0 1.6.0 1.5.2 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.9.3 0.8.0 0.7.2 0.6.0 0.5.2 0.4.0 0.3.4 Reference documentation and code samples for the Google Cloud Run V2 Client class BuildpacksBuild.

Build the source using Buildpacks.

Generated from protobuf message `google.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. |
| `↳ base_image` | `string` Optional. The base image to use for the build. |
| `↳ environment_variables` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. User-provided build-time environment variables. |
| `↳ enable_automatic_updates` | `bool` 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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBaseImage

Optional. The base image to use for the build.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setBaseImage

Optional. The base image to use for the build.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEnvironmentVariables

Optional. User-provided build-time environment variables.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setEnvironmentVariables

Optional. User-provided build-time environment variables.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEnableAutomaticUpdates

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |