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