# Class SubmitBuildRequest (0.16.1)

0.16.1 (latest) 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.19 0.9.1 0.8.1 0.7.1 0.6.0 0.5.0 0.4.2 0.3.0 0.2.1 0.1.0

    SubmitBuildRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Request message for submitting a Build.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `parent` | `str` 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}` |
| `storage_source` | `https://docs.cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.StorageSource` Required. Source for the build. This field is a member of `oneof`_ `source`. |
| `image_uri` | `str` Required. Artifact Registry URI to store the built image. |
| `buildpack_build` | `https://docs.cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.SubmitBuildRequest.BuildpacksBuild` Build the source using Buildpacks. This field is a member of `oneof`_ `build_type`. |
| `docker_build` | `https://docs.cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.SubmitBuildRequest.DockerBuild` Build the source using Docker. This means the source has a Dockerfile. This field is a member of `oneof`_ `build_type`. |
| `service_account` | `str` 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` | `str` 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. |
| `tags` | `MutableSequence[str]` Optional. Additional tags to annotate the build. |
| `machine_type` | `str` Optional. The machine type from default pool to use for the build. If left blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8 is supported. If worker_pool is set, this field will be ignored. |
| `release_track` | `google.api.launch_stage_pb2.LaunchStage` Optional. The release track of the client that initiated the build request. |
| `client` | `str` Optional. The client that initiated the build request. |

## Classes

### BuildpacksBuild

    BuildpacksBuild(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Build the source using Buildpacks.

### DockerBuild

    DockerBuild(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Build the source using Docker. This means the source has a
Dockerfile.