public final class RepoSource
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 |
|---|
RepoSource() |
| Modifier and Type | Method and Description |
|---|---|
RepoSource |
clone() |
String |
getBranchName()
Regex matching branches to build.
|
String |
getCommitSha()
Explicit commit SHA to build.
|
String |
getDir()
Directory, relative to the source root, in which to run the build.
|
Boolean |
getInvertRegex()
Only trigger a build if the revision regex does NOT match the revision regex.
|
String |
getProjectId()
ID of the project that owns the Cloud Source Repository.
|
String |
getRepoName()
Name of the Cloud Source Repository.
|
Map<String,String> |
getSubstitutions()
Substitutions to use in a triggered build.
|
String |
getTagName()
Regex matching tags to build.
|
RepoSource |
set(String fieldName,
Object value) |
RepoSource |
setBranchName(String branchName)
Regex matching branches to build.
|
RepoSource |
setCommitSha(String commitSha)
Explicit commit SHA to build.
|
RepoSource |
setDir(String dir)
Directory, relative to the source root, in which to run the build.
|
RepoSource |
setInvertRegex(Boolean invertRegex)
Only trigger a build if the revision regex does NOT match the revision regex.
|
RepoSource |
setProjectId(String projectId)
ID of the project that owns the Cloud Source Repository.
|
RepoSource |
setRepoName(String repoName)
Name of the Cloud Source Repository.
|
RepoSource |
setSubstitutions(Map<String,String> substitutions)
Substitutions to use in a triggered build.
|
RepoSource |
setTagName(String tagName)
Regex matching tags to 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 getBranchName()
null for nonepublic RepoSource setBranchName(String branchName)
branchName - branchName or null for nonepublic String getCommitSha()
null for nonepublic RepoSource setCommitSha(String commitSha)
commitSha - commitSha or null for nonepublic String getDir()
null for nonepublic RepoSource setDir(String dir)
dir - dir or null for nonepublic Boolean getInvertRegex()
null for nonepublic RepoSource setInvertRegex(Boolean invertRegex)
invertRegex - invertRegex or null for nonepublic String getProjectId()
null for nonepublic RepoSource setProjectId(String projectId)
projectId - projectId or null for nonepublic String getRepoName()
null for nonepublic RepoSource setRepoName(String repoName)
repoName - repoName or null for nonepublic Map<String,String> getSubstitutions()
null for nonepublic RepoSource setSubstitutions(Map<String,String> substitutions)
substitutions - substitutions or null for nonepublic String getTagName()
null for nonepublic RepoSource setTagName(String tagName)
tagName - tagName or null for nonepublic RepoSource set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic RepoSource clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.