Google Cloud Build V1 Client - Class PushFilter (0.16.3)

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

Push contains filter properties for matching GitHub git pushes.

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

Namespace

Google \ Cloud \ Build \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ branch
string

Regexes matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

↳ tag
string

Regexes matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

↳ invert_regex
bool

When true, only trigger a build if the revision regex does NOT match the git_ref regex.

getBranch

Regexes matching branches to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

Returns
Type
Description
string

hasBranch

setBranch

Regexes matching branches to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getTag

Regexes matching tags to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

Returns
Type
Description
string

hasTag

setTag

Regexes matching tags to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getInvertRegex

When true, only trigger a build if the revision regex does NOT match the git_ref regex.

Returns
Type
Description
bool

setInvertRegex

When true, only trigger a build if the revision regex does NOT match the git_ref regex.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getGitRef

Returns
Type
Description
string
Design a Mobile Site
View Site in Mobile | Classic
Share by: