Interface PullRequestFilterOrBuilder (3.56.0)

public interface PullRequestFilterOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBranch()

public abstract String getBranch()

Regex of branches to match.

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

string branch = 2;

Returns
Type Description
String

The branch.

getBranchBytes()

public abstract ByteString getBranchBytes()

Regex of branches to match.

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

string branch = 2;

Returns
Type Description
ByteString

The bytes for branch.

getCommentControl()

public abstract PullRequestFilter.CommentControl getCommentControl()

Configure builds to run whether a repository owner or collaborator need to comment /gcbrun.

.google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl comment_control = 5;

Returns
Type Description
PullRequestFilter.CommentControl

The commentControl.

getCommentControlValue()

public abstract int getCommentControlValue()

Configure builds to run whether a repository owner or collaborator need to comment /gcbrun.

.google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl comment_control = 5;

Returns
Type Description
int

The enum numeric value on the wire for commentControl.

getGitRefCase()

public abstract PullRequestFilter.GitRefCase getGitRefCase()
Returns
Type Description
PullRequestFilter.GitRefCase

getInvertRegex()

public abstract boolean getInvertRegex()

If true, branches that do NOT match the git_ref will trigger a build.

bool invert_regex = 6;

Returns
Type Description
boolean

The invertRegex.

hasBranch()

public abstract boolean hasBranch()

Regex of branches to match.

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

string branch = 2;

Returns
Type Description
boolean

Whether the branch field is set.