public final class PullRequestFilter
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Build API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
PullRequestFilter() |
Modifier and Type | Method and Description |
---|---|
PullRequestFilter |
clone() |
java.lang.String |
getBranch()
Regex of branches to match.
|
java.lang.String |
getCommentControl()
Whether to block builds on a "/gcbrun" comment from a repository admin or collaborator.
|
java.lang.Boolean |
getInvertRegex()
If true, branches that do NOT match the git_ref will trigger a build.
|
PullRequestFilter |
set(java.lang.String fieldName,
java.lang.Object value) |
PullRequestFilter |
setBranch(java.lang.String branch)
Regex of branches to match.
|
PullRequestFilter |
setCommentControl(java.lang.String commentControl)
Whether to block builds on a "/gcbrun" comment from a repository admin or collaborator.
|
PullRequestFilter |
setInvertRegex(java.lang.Boolean invertRegex)
If true, branches that do NOT match the git_ref will trigger a build.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getBranch()
null
for nonepublic PullRequestFilter setBranch(java.lang.String branch)
branch
- branch or null
for nonepublic java.lang.String getCommentControl()
null
for nonepublic PullRequestFilter setCommentControl(java.lang.String commentControl)
commentControl
- commentControl or null
for nonepublic java.lang.Boolean getInvertRegex()
null
for nonepublic PullRequestFilter setInvertRegex(java.lang.Boolean invertRegex)
invertRegex
- invertRegex or null
for nonepublic PullRequestFilter set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public PullRequestFilter clone()
clone
in class com.google.api.client.json.GenericJson