Google Cloud Build V1 Client - Class RunBuildTriggerRequest (0.4.0)

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

Specifies a build trigger to run and the source to use.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ project_id string

Required. ID of the project.

↳ trigger_id string

Required. ID of the trigger.

↳ source Google\Cloud\Build\V1\RepoSource

Source to build against this trigger.

getProjectId

Required. ID of the project.

Returns
TypeDescription
string

setProjectId

Required. ID of the project.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTriggerId

Required. ID of the trigger.

Returns
TypeDescription
string

setTriggerId

Required. ID of the trigger.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSource

Source to build against this trigger.

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

hasSource

clearSource

setSource

Source to build against this trigger.

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