Interface PullRequestFilterOrBuilder (3.36.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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for commentControl.

getGitRefCase()

public abstract PullRequestFilter.GitRefCase getGitRefCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the branch field is set.