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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
PullRequestFilter() |
| Modifier and Type | Method and Description |
|---|---|
PullRequestFilter |
clone() |
String |
getBranch()
Regex of branches to match.
|
String |
getCommentControl()
If CommentControl is enabled, depending on the setting, builds may not fire until a repository
writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description.
|
Boolean |
getInvertRegex()
If true, branches that do NOT match the git_ref will trigger a build.
|
PullRequestFilter |
set(String fieldName,
Object value) |
PullRequestFilter |
setBranch(String branch)
Regex of branches to match.
|
PullRequestFilter |
setCommentControl(String commentControl)
If CommentControl is enabled, depending on the setting, builds may not fire until a repository
writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description.
|
PullRequestFilter |
setInvertRegex(Boolean invertRegex)
If true, branches that do NOT match the git_ref will trigger a build.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getBranch()
null for nonepublic PullRequestFilter setBranch(String branch)
branch - branch or null for nonepublic String getCommentControl()
null for nonepublic PullRequestFilter setCommentControl(String commentControl)
commentControl - commentControl or null for nonepublic Boolean getInvertRegex()
null for nonepublic PullRequestFilter setInvertRegex(Boolean invertRegex)
invertRegex - invertRegex or null for nonepublic PullRequestFilter set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic PullRequestFilter clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.