Service Client: Google::Cloud::Run::V2::Build::BuildsClient
Client stub representing the remote Builds gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to run.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Run::V2::Build - Compiled Protocol Buffers messages for google/cloud/run/v2/build.proto
SYNOPSIS
use Google::Cloud::Run::V2::Build;
my $msg = Google::Cloud::Run::V2::Build::SubmitBuildRequest->new({
parent => $parent,
storage_source => $storage_source,
image_uri => $image_uri,
buildpack_build => $buildpack_build,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Run::V2::Build::SubmitBuildRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/run/v2/build.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Run::V2::Build::SubmitBuildRequest
Request message for submitting a Build.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. 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}`
$msg->storage_source()/$msg->storage_source($value)Type:
Message(Google::Cloud::Run::V2::Build::StorageSource)Required. Source for the build.
$msg->image_uri()/$msg->image_uri($value)Type:
StringRequired. Artifact Registry URI to store the built image.
$msg->buildpack_build()/$msg->buildpack_build($value)Type:
Message(Google::Cloud::Run::V2::Build::SubmitBuildRequest::BuildpacksBuild)Build the source using Buildpacks.
$msg->docker_build()/$msg->docker_build($value)Type:
Message(Google::Cloud::Run::V2::Build::SubmitBuildRequest::DockerBuild)Build the source using Docker. This means the source has a Dockerfile.
$msg->service_account()/$msg->service_account($value)Type:
StringOptional. The service account to use for the build. If not set, the default Cloud Build service account for the project will be used.
$msg->worker_pool()/$msg->worker_pool($value)Type:
StringOptional. Name of the Cloud Build private 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.
$msg->tags()/$msg->tags($value)Type:
StringOptional. Additional tags to annotate the build.
$msg->machine_type()/$msg->machine_type($value)Type:
StringOptional. 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.
$msg->release_track()/$msg->release_track($value)Type:
Enum(Google::Api::LaunchStage)Optional. The release track of the client that initiated the build request.
$msg->client()/$msg->client($value)Type:
StringOptional. The client that initiated the build request.
Google::Cloud::Run::V2::Build::SubmitBuildResponse
Response message for submitting a Build.
Inherits from Protobuf::Message.
Accessors
$msg->build_operation()/$msg->build_operation($value)Type:
Message(Google::Longrunning::Operations::Operation)Cloud Build operation to be polled via CloudBuild API.
$msg->base_image_uri()/$msg->base_image_uri($value)Type:
StringURI of the base builder image in Artifact Registry being used in the build. Used to opt into automatic base image updates.
$msg->base_image_warning()/$msg->base_image_warning($value)Type:
StringWarning message for the base image.
Google::Cloud::Run::V2::Build::StorageSource
Location of the source in an archive file in Google Cloud Storage.
Inherits from Protobuf::Message.
Accessors
$msg->bucket()/$msg->bucket($value)Type:
StringRequired. Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
$msg->object()/$msg->object($value)Type:
StringRequired. Google Cloud Storage object containing the source.
This object must be a gzipped archive file (`.tar.gz`) containing source to build.
$msg->generation()/$msg->generation($value)Type:
Int64Optional. Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Run::V2::Build::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.