Google Cloud Run V2 Client - Class SourceCode (1.12.2)

Reference documentation and code samples for the Google Cloud Run V2 Client class SourceCode.

Source type for the container.

Generated from protobuf message google.cloud.run.v2.SourceCode

Namespace

Google \ Cloud \ Run \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ cloud_storage_source SourceCode\CloudStorageSource

The source is a Cloud Storage bucket.

getCloudStorageSource

The source is a Cloud Storage bucket.

Returns
Type Description
SourceCode\CloudStorageSource|null

hasCloudStorageSource

setCloudStorageSource

The source is a Cloud Storage bucket.

Parameter
Name Description
var SourceCode\CloudStorageSource
Returns
Type Description
$this

getSourceType

Returns
Type Description
string

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026年03月30日 UTC.