Google Cloud Build V1 Client - Class CreateBuildRequest (0.3.8)

Reference documentation and code samples for the Google Cloud Build V1 Client class CreateBuildRequest.

Request to create a new build.

Generated from protobuf message google.devtools.cloudbuild.v1.CreateBuildRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

The parent resource where this build will be created. Format: projects/{project}/locations/{location}

↳ project_id string

Required. ID of the project.

↳ build Google\Cloud\Build\V1\Build

Required. Build resource to create.

getParent

The parent resource where this build will be created.

Format: projects/{project}/locations/{location}

Returns
TypeDescription
string

setParent

The parent resource where this build will be created.

Format: projects/{project}/locations/{location}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProjectId

Required. ID of the project.

Returns
TypeDescription
string

setProjectId

Required. ID of the project.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBuild

Required. Build resource to create.

Returns
TypeDescription
Google\Cloud\Build\V1\Build|null

hasBuild

clearBuild

setBuild

Required. Build resource to create.

Parameter
NameDescription
var Google\Cloud\Build\V1\Build
Returns
TypeDescription
$this