public final class BuildTrigger
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 |
|---|
BuildTrigger() |
| Modifier and Type | Method and Description |
|---|---|
BuildTrigger |
clone() |
ApprovalConfig |
getApprovalConfig()
Configuration for manual approval to start a build invocation of this BuildTrigger.
|
Boolean |
getAutodetect()
Autodetect build configuration.
|
BitbucketServerTriggerConfig |
getBitbucketServerTriggerConfig()
BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build
whenever a Bitbucket Server event is received.
|
Build |
getBuild()
Contents of the build template.
|
String |
getCreateTime()
Output only.
|
String |
getDescription()
Human-readable description of this trigger.
|
Boolean |
getDisabled()
If true, the trigger will never automatically execute a build.
|
String |
getEventType()
EventType allows the user to explicitly set the type of event to which this BuildTrigger should
respond.
|
String |
getFilename()
Path, from the source root, to the build configuration file (i.e.
|
String |
getFilter()
A Common Expression Language string.
|
GitFileSource |
getGitFileSource()
The file source describing the local or remote Build template.
|
GitHubEventsConfig |
getGithub()
GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a
GitHub event is received.
|
GitLabEventsConfig |
getGitlabEnterpriseEventsConfig()
GitLabEnterpriseEventsConfig describes the configuration of a trigger that creates a build
whenever a GitLab Enterprise event is received.
|
String |
getId()
Output only.
|
List<String> |
getIgnoredFiles()
ignored_files and included_files are file glob matches using
https://golang.org/pkg/path/filepath/#Match extended with support for "**".
|
String |
getIncludeBuildLogs()
If set to INCLUDE_BUILD_LOGS_WITH_STATUS, log url will be shown on GitHub page when build
status is final.
|
List<String> |
getIncludedFiles()
If any of the files altered in the commit pass the ignored_files filter and included_files is
empty, then as far as this filter is concerned, we should trigger the build.
|
String |
getName()
User-assigned name of the trigger.
|
PubsubConfig |
getPubsubConfig()
PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub
message is published.
|
RepositoryEventConfig |
getRepositoryEventConfig()
The configuration of a trigger that creates a build whenever an event from Repo API is
received.
|
String |
getResourceName()
The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`,
where {trigger} is a unique identifier generated by the service.
|
String |
getServiceAccount()
The service account used for all user-controlled operations including UpdateBuildTrigger,
RunBuildTrigger, CreateBuild, and CancelBuild.
|
GitRepoSource |
getSourceToBuild()
The repo and ref of the repository from which to build.
|
Map<String,String> |
getSubstitutions()
Substitutions for Build resource.
|
List<String> |
getTags()
Tags for annotation of a `BuildTrigger`
|
RepoSource |
getTriggerTemplate()
Template describing the types of source changes to trigger a build.
|
WebhookConfig |
getWebhookConfig()
WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook
is sent to a trigger's webhook URL.
|
BuildTrigger |
set(String fieldName,
Object value) |
BuildTrigger |
setApprovalConfig(ApprovalConfig approvalConfig)
Configuration for manual approval to start a build invocation of this BuildTrigger.
|
BuildTrigger |
setAutodetect(Boolean autodetect)
Autodetect build configuration.
|
BuildTrigger |
setBitbucketServerTriggerConfig(BitbucketServerTriggerConfig bitbucketServerTriggerConfig)
BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build
whenever a Bitbucket Server event is received.
|
BuildTrigger |
setBuild(Build build)
Contents of the build template.
|
BuildTrigger |
setCreateTime(String createTime)
Output only.
|
BuildTrigger |
setDescription(String description)
Human-readable description of this trigger.
|
BuildTrigger |
setDisabled(Boolean disabled)
If true, the trigger will never automatically execute a build.
|
BuildTrigger |
setEventType(String eventType)
EventType allows the user to explicitly set the type of event to which this BuildTrigger should
respond.
|
BuildTrigger |
setFilename(String filename)
Path, from the source root, to the build configuration file (i.e.
|
BuildTrigger |
setFilter(String filter)
A Common Expression Language string.
|
BuildTrigger |
setGitFileSource(GitFileSource gitFileSource)
The file source describing the local or remote Build template.
|
BuildTrigger |
setGithub(GitHubEventsConfig github)
GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a
GitHub event is received.
|
BuildTrigger |
setGitlabEnterpriseEventsConfig(GitLabEventsConfig gitlabEnterpriseEventsConfig)
GitLabEnterpriseEventsConfig describes the configuration of a trigger that creates a build
whenever a GitLab Enterprise event is received.
|
BuildTrigger |
setId(String id)
Output only.
|
BuildTrigger |
setIgnoredFiles(List<String> ignoredFiles)
ignored_files and included_files are file glob matches using
https://golang.org/pkg/path/filepath/#Match extended with support for "**".
|
BuildTrigger |
setIncludeBuildLogs(String includeBuildLogs)
If set to INCLUDE_BUILD_LOGS_WITH_STATUS, log url will be shown on GitHub page when build
status is final.
|
BuildTrigger |
setIncludedFiles(List<String> includedFiles)
If any of the files altered in the commit pass the ignored_files filter and included_files is
empty, then as far as this filter is concerned, we should trigger the build.
|
BuildTrigger |
setName(String name)
User-assigned name of the trigger.
|
BuildTrigger |
setPubsubConfig(PubsubConfig pubsubConfig)
PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub
message is published.
|
BuildTrigger |
setRepositoryEventConfig(RepositoryEventConfig repositoryEventConfig)
The configuration of a trigger that creates a build whenever an event from Repo API is
received.
|
BuildTrigger |
setResourceName(String resourceName)
The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`,
where {trigger} is a unique identifier generated by the service.
|
BuildTrigger |
setServiceAccount(String serviceAccount)
The service account used for all user-controlled operations including UpdateBuildTrigger,
RunBuildTrigger, CreateBuild, and CancelBuild.
|
BuildTrigger |
setSourceToBuild(GitRepoSource sourceToBuild)
The repo and ref of the repository from which to build.
|
BuildTrigger |
setSubstitutions(Map<String,String> substitutions)
Substitutions for Build resource.
|
BuildTrigger |
setTags(List<String> tags)
Tags for annotation of a `BuildTrigger`
|
BuildTrigger |
setTriggerTemplate(RepoSource triggerTemplate)
Template describing the types of source changes to trigger a build.
|
BuildTrigger |
setWebhookConfig(WebhookConfig webhookConfig)
WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook
is sent to a trigger's webhook URL.
|
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 ApprovalConfig getApprovalConfig()
null for nonepublic BuildTrigger setApprovalConfig(ApprovalConfig approvalConfig)
approvalConfig - approvalConfig or null for nonepublic Boolean getAutodetect()
null for nonepublic BuildTrigger setAutodetect(Boolean autodetect)
autodetect - autodetect or null for nonepublic BitbucketServerTriggerConfig getBitbucketServerTriggerConfig()
null for nonepublic BuildTrigger setBitbucketServerTriggerConfig(BitbucketServerTriggerConfig bitbucketServerTriggerConfig)
bitbucketServerTriggerConfig - bitbucketServerTriggerConfig or null for nonepublic Build getBuild()
null for nonepublic BuildTrigger setBuild(Build build)
build - build or null for nonepublic String getCreateTime()
null for nonepublic BuildTrigger setCreateTime(String createTime)
createTime - createTime or null for nonepublic String getDescription()
null for nonepublic BuildTrigger setDescription(String description)
description - description or null for nonepublic Boolean getDisabled()
null for nonepublic BuildTrigger setDisabled(Boolean disabled)
disabled - disabled or null for nonepublic String getEventType()
null for nonepublic BuildTrigger setEventType(String eventType)
eventType - eventType or null for nonepublic String getFilename()
null for nonepublic BuildTrigger setFilename(String filename)
filename - filename or null for nonepublic String getFilter()
null for nonepublic BuildTrigger setFilter(String filter)
filter - filter or null for nonepublic GitFileSource getGitFileSource()
null for nonepublic BuildTrigger setGitFileSource(GitFileSource gitFileSource)
gitFileSource - gitFileSource or null for nonepublic GitHubEventsConfig getGithub()
null for nonepublic BuildTrigger setGithub(GitHubEventsConfig github)
github - github or null for nonepublic GitLabEventsConfig getGitlabEnterpriseEventsConfig()
null for nonepublic BuildTrigger setGitlabEnterpriseEventsConfig(GitLabEventsConfig gitlabEnterpriseEventsConfig)
gitlabEnterpriseEventsConfig - gitlabEnterpriseEventsConfig or null for nonepublic String getId()
null for nonepublic BuildTrigger setId(String id)
id - id or null for nonepublic List<String> getIgnoredFiles()
null for nonepublic BuildTrigger setIgnoredFiles(List<String> ignoredFiles)
ignoredFiles - ignoredFiles or null for nonepublic String getIncludeBuildLogs()
null for nonepublic BuildTrigger setIncludeBuildLogs(String includeBuildLogs)
includeBuildLogs - includeBuildLogs or null for nonepublic List<String> getIncludedFiles()
null for nonepublic BuildTrigger setIncludedFiles(List<String> includedFiles)
includedFiles - includedFiles or null for nonepublic String getName()
null for nonepublic BuildTrigger setName(String name)
name - name or null for nonepublic PubsubConfig getPubsubConfig()
null for nonepublic BuildTrigger setPubsubConfig(PubsubConfig pubsubConfig)
pubsubConfig - pubsubConfig or null for nonepublic RepositoryEventConfig getRepositoryEventConfig()
null for nonepublic BuildTrigger setRepositoryEventConfig(RepositoryEventConfig repositoryEventConfig)
repositoryEventConfig - repositoryEventConfig or null for nonepublic String getResourceName()
null for nonepublic BuildTrigger setResourceName(String resourceName)
resourceName - resourceName or null for nonepublic String getServiceAccount()
null for nonepublic BuildTrigger setServiceAccount(String serviceAccount)
serviceAccount - serviceAccount or null for nonepublic GitRepoSource getSourceToBuild()
null for nonepublic BuildTrigger setSourceToBuild(GitRepoSource sourceToBuild)
sourceToBuild - sourceToBuild or null for nonepublic Map<String,String> getSubstitutions()
null for nonepublic BuildTrigger setSubstitutions(Map<String,String> substitutions)
substitutions - substitutions or null for nonepublic List<String> getTags()
null for nonepublic BuildTrigger setTags(List<String> tags)
tags - tags or null for nonepublic RepoSource getTriggerTemplate()
null for nonepublic BuildTrigger setTriggerTemplate(RepoSource triggerTemplate)
triggerTemplate - triggerTemplate or null for nonepublic WebhookConfig getWebhookConfig()
null for nonepublic BuildTrigger setWebhookConfig(WebhookConfig webhookConfig)
webhookConfig - webhookConfig or null for nonepublic BuildTrigger set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic BuildTrigger clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.