- 3.56.0 (latest)
- 3.55.0
- 3.54.0
- 3.53.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.6
- 3.4.1
- 3.3.12
public final class BuildTrigger extends GeneratedMessageV3 implements BuildTriggerOrBuilder
Configuration for an automated build in response to source repository changes.
Protobuf type google.devtools.cloudbuild.v1.BuildTrigger
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > BuildTriggerImplements
BuildTriggerOrBuilderStatic Fields
AUTODETECT_FIELD_NUMBER
public static final int AUTODETECT_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
BUILD_FIELD_NUMBER
public static final int BUILD_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
DISABLED_FIELD_NUMBER
public static final int DISABLED_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
FILENAME_FIELD_NUMBER
public static final int FILENAME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
FILTER_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
GITHUB_FIELD_NUMBER
public static final int GITHUB_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
GIT_FILE_SOURCE_FIELD_NUMBER
public static final int GIT_FILE_SOURCE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
IGNORED_FILES_FIELD_NUMBER
public static final int IGNORED_FILES_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
INCLUDED_FILES_FIELD_NUMBER
public static final int INCLUDED_FILES_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
PUBSUB_CONFIG_FIELD_NUMBER
public static final int PUBSUB_CONFIG_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
REPOSITORY_EVENT_CONFIG_FIELD_NUMBER
public static final int REPOSITORY_EVENT_CONFIG_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
RESOURCE_NAME_FIELD_NUMBER
public static final int RESOURCE_NAME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
SOURCE_TO_BUILD_FIELD_NUMBER
public static final int SOURCE_TO_BUILD_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
SUBSTITUTIONS_FIELD_NUMBER
public static final int SUBSTITUTIONS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
TRIGGER_TEMPLATE_FIELD_NUMBER
public static final int TRIGGER_TEMPLATE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
WEBHOOK_CONFIG_FIELD_NUMBER
public static final int WEBHOOK_CONFIG_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static BuildTrigger getDefaultInstance()
Returns | |
---|---|
Type | Description |
BuildTrigger |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static BuildTrigger.Builder newBuilder()
Returns | |
---|---|
Type | Description |
BuildTrigger.Builder |
newBuilder(BuildTrigger prototype)
public static BuildTrigger.Builder newBuilder(BuildTrigger prototype)
Parameter | |
---|---|
Name | Description |
prototype | BuildTrigger |
Returns | |
---|---|
Type | Description |
BuildTrigger.Builder |
parseDelimitedFrom(InputStream input)
public static BuildTrigger parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input | InputStream |
Returns | |
---|---|
Type | Description |
BuildTrigger |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static BuildTrigger parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
BuildTrigger |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static BuildTrigger parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data | byte[] |
Returns | |
---|---|
Type | Description |
BuildTrigger |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BuildTrigger parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
BuildTrigger |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static BuildTrigger parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data | ByteString |
Returns | |
---|---|
Type | Description |
BuildTrigger |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BuildTrigger parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
BuildTrigger |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static BuildTrigger parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input | CodedInputStream |
Returns | |
---|---|
Type | Description |
BuildTrigger |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static BuildTrigger parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
BuildTrigger |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static BuildTrigger parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input | InputStream |
Returns | |
---|---|
Type | Description |
BuildTrigger |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static BuildTrigger parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
BuildTrigger |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static BuildTrigger parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data | ByteBuffer |
Returns | |
---|---|
Type | Description |
BuildTrigger |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BuildTrigger parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
BuildTrigger |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<BuildTrigger> parser()
Returns | |
---|---|
Type | Description |
Parser<BuildTrigger> |
Methods
containsSubstitutions(String key)
public boolean containsSubstitutions(String key)
Substitutions for Build resource. The keys must match the following
regular expression: ^[A-Z0-9]+$
.
map<string, string> substitutions = 11;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj | Object |
Returns | |
---|---|
Type | Description |
boolean |
getAutodetect()
public boolean getAutodetect()
Autodetect build configuration. The following precedence is used (case insensitive):
- cloudbuild.yaml
- cloudbuild.yml
- cloudbuild.json
Dockerfile
Currently only available for GitHub App Triggers.
bool autodetect = 18;
Returns | |
---|---|
Type | Description |
boolean | The autodetect. |
getBuild()
public Build getBuild()
Contents of the build template.
.google.devtools.cloudbuild.v1.Build build = 4;
Returns | |
---|---|
Type | Description |
Build | The build. |
getBuildOrBuilder()
public BuildOrBuilder getBuildOrBuilder()
Contents of the build template.
.google.devtools.cloudbuild.v1.Build build = 4;
Returns | |
---|---|
Type | Description |
BuildOrBuilder |
getBuildTemplateCase()
public BuildTrigger.BuildTemplateCase getBuildTemplateCase()
Returns | |
---|---|
Type | Description |
BuildTrigger.BuildTemplateCase |
getCreateTime()
public Timestamp getCreateTime()
Output only. Time when the trigger was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp | The createTime. |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time when the trigger was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public BuildTrigger getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
BuildTrigger |
getDescription()
public String getDescription()
Human-readable description of this trigger.
string description = 10;
Returns | |
---|---|
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Human-readable description of this trigger.
string description = 10;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for description. |
getDisabled()
public boolean getDisabled()
If true, the trigger will never automatically execute a build.
bool disabled = 9;
Returns | |
---|---|
Type | Description |
boolean | The disabled. |
getFilename()
public String getFilename()
Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
string filename = 8;
Returns | |
---|---|
Type | Description |
String | The filename. |
getFilenameBytes()
public ByteString getFilenameBytes()
Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
string filename = 8;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for filename. |
getFilter()
public String getFilter()
Optional. A Common Expression Language string.
string filter = 30 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String | The filter. |
getFilterBytes()
public ByteString getFilterBytes()
Optional. A Common Expression Language string.
string filter = 30 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for filter. |
getGitFileSource()
public GitFileSource getGitFileSource()
The file source describing the local or remote Build template.
.google.devtools.cloudbuild.v1.GitFileSource git_file_source = 24;
Returns | |
---|---|
Type | Description |
GitFileSource | The gitFileSource. |
getGitFileSourceOrBuilder()
public GitFileSourceOrBuilder getGitFileSourceOrBuilder()
The file source describing the local or remote Build template.
.google.devtools.cloudbuild.v1.GitFileSource git_file_source = 24;
Returns | |
---|---|
Type | Description |
GitFileSourceOrBuilder |
getGithub()
public GitHubEventsConfig getGithub()
GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received.
Mutually exclusive with trigger_template
.
.google.devtools.cloudbuild.v1.GitHubEventsConfig github = 13;
Returns | |
---|---|
Type | Description |
GitHubEventsConfig | The github. |
getGithubOrBuilder()
public GitHubEventsConfigOrBuilder getGithubOrBuilder()
GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received.
Mutually exclusive with trigger_template
.
.google.devtools.cloudbuild.v1.GitHubEventsConfig github = 13;
Returns | |
---|---|
Type | Description |
GitHubEventsConfigOrBuilder |
getId()
public String getId()
Output only. Unique identifier of the trigger.
string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String | The id. |
getIdBytes()
public ByteString getIdBytes()
Output only. Unique identifier of the trigger.
string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for id. |
getIgnoredFiles(int index)
public String getIgnoredFiles(int index)
ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**".
If ignored_files and changed files are both empty, then they are not used to determine whether or not to trigger a build.
If ignored_files is not empty, then we ignore any files that match any of the ignored_file globs. If the change has no files that are outside of the ignored_files globs, then we do not trigger a build.
repeated string ignored_files = 15;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String | The ignoredFiles at the given index. |
getIgnoredFilesBytes(int index)
public ByteString getIgnoredFilesBytes(int index)
ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**".
If ignored_files and changed files are both empty, then they are not used to determine whether or not to trigger a build.
If ignored_files is not empty, then we ignore any files that match any of the ignored_file globs. If the change has no files that are outside of the ignored_files globs, then we do not trigger a build.
repeated string ignored_files = 15;
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString | The bytes of the ignoredFiles at the given index. |
getIgnoredFilesCount()
public int getIgnoredFilesCount()
ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**".
If ignored_files and changed files are both empty, then they are not used to determine whether or not to trigger a build.
If ignored_files is not empty, then we ignore any files that match any of the ignored_file globs. If the change has no files that are outside of the ignored_files globs, then we do not trigger a build.
repeated string ignored_files = 15;
Returns | |
---|---|
Type | Description |
int | The count of ignoredFiles. |
getIgnoredFilesList()
public ProtocolStringList getIgnoredFilesList()
ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**".
If ignored_files and changed files are both empty, then they are not used to determine whether or not to trigger a build.
If ignored_files is not empty, then we ignore any files that match any of the ignored_file globs. If the change has no files that are outside of the ignored_files globs, then we do not trigger a build.
repeated string ignored_files = 15;
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the ignoredFiles. |
getIncludedFiles(int index)
public String getIncludedFiles(int index)
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.
If any of the files altered in the commit pass the ignored_files filter and included_files is not empty, then we make sure that at least one of those files matches a included_files glob. If not, then we do not trigger a build.
repeated string included_files = 16;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String | The includedFiles at the given index. |
getIncludedFilesBytes(int index)
public ByteString getIncludedFilesBytes(int index)
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.
If any of the files altered in the commit pass the ignored_files filter and included_files is not empty, then we make sure that at least one of those files matches a included_files glob. If not, then we do not trigger a build.
repeated string included_files = 16;
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString | The bytes of the includedFiles at the given index. |
getIncludedFilesCount()
public int getIncludedFilesCount()
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.
If any of the files altered in the commit pass the ignored_files filter and included_files is not empty, then we make sure that at least one of those files matches a included_files glob. If not, then we do not trigger a build.
repeated string included_files = 16;
Returns | |
---|---|
Type | Description |
int | The count of includedFiles. |
getIncludedFilesList()
public ProtocolStringList getIncludedFilesList()
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.
If any of the files altered in the commit pass the ignored_files filter and included_files is not empty, then we make sure that at least one of those files matches a included_files glob. If not, then we do not trigger a build.
repeated string included_files = 16;
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the includedFiles. |
getName()
public String getName()
User-assigned name of the trigger. Must be unique within the project. Trigger names must meet the following requirements:
- They must contain only alphanumeric characters and dashes.
- They can be 1-64 characters long.
- They must begin and end with an alphanumeric character.
string name = 21;
Returns | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
User-assigned name of the trigger. Must be unique within the project. Trigger names must meet the following requirements:
- They must contain only alphanumeric characters and dashes.
- They can be 1-64 characters long.
- They must begin and end with an alphanumeric character.
string name = 21;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for name. |
getParserForType()
public Parser<BuildTrigger> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<BuildTrigger> |
getPubsubConfig()
public PubsubConfig getPubsubConfig()
PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
.google.devtools.cloudbuild.v1.PubsubConfig pubsub_config = 29;
Returns | |
---|---|
Type | Description |
PubsubConfig | The pubsubConfig. |
getPubsubConfigOrBuilder()
public PubsubConfigOrBuilder getPubsubConfigOrBuilder()
PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
.google.devtools.cloudbuild.v1.PubsubConfig pubsub_config = 29;
Returns | |
---|---|
Type | Description |
PubsubConfigOrBuilder |
getRepositoryEventConfig()
public RepositoryEventConfig getRepositoryEventConfig()
The configuration of a trigger that creates a build whenever an event from Repo API is received.
.google.devtools.cloudbuild.v1.RepositoryEventConfig repository_event_config = 39;
Returns | |
---|---|
Type | Description |
RepositoryEventConfig | The repositoryEventConfig. |
getRepositoryEventConfigOrBuilder()
public RepositoryEventConfigOrBuilder getRepositoryEventConfigOrBuilder()
The configuration of a trigger that creates a build whenever an event from Repo API is received.
.google.devtools.cloudbuild.v1.RepositoryEventConfig repository_event_config = 39;
Returns | |
---|---|
Type | Description |
RepositoryEventConfigOrBuilder |
getResourceName()
public String getResourceName()
The Trigger
name with format:
projects/{project}/locations/{location}/triggers/{trigger}
, where
{trigger} is a unique identifier generated by the service.
string resource_name = 34;
Returns | |
---|---|
Type | Description |
String | The resourceName. |
getResourceNameBytes()
public ByteString getResourceNameBytes()
The Trigger
name with format:
projects/{project}/locations/{location}/triggers/{trigger}
, where
{trigger} is a unique identifier generated by the service.
string resource_name = 34;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for resourceName. |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
getServiceAccount()
public String getServiceAccount()
The service account used for all user-controlled operations including
UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild.
If no service account is set, then the standard Cloud Build service account
([PROJECT_NUM]@system.gserviceaccount.com) will be used instead.
Format: projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}
string service_account = 33 [(.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String | The serviceAccount. |
getServiceAccountBytes()
public ByteString getServiceAccountBytes()
The service account used for all user-controlled operations including
UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild.
If no service account is set, then the standard Cloud Build service account
([PROJECT_NUM]@system.gserviceaccount.com) will be used instead.
Format: projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}
string service_account = 33 [(.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString | The bytes for serviceAccount. |
getSourceToBuild()
public GitRepoSource getSourceToBuild()
The repo and ref of the repository from which to build. This field is used only for those triggers that do not respond to SCM events. Triggers that respond to such events build source at whatever commit caused the event. This field is currently only used by Webhook, Pub/Sub, Manual, and Cron triggers.
.google.devtools.cloudbuild.v1.GitRepoSource source_to_build = 26;
Returns | |
---|---|
Type | Description |
GitRepoSource | The sourceToBuild. |
getSourceToBuildOrBuilder()
public GitRepoSourceOrBuilder getSourceToBuildOrBuilder()
The repo and ref of the repository from which to build. This field is used only for those triggers that do not respond to SCM events. Triggers that respond to such events build source at whatever commit caused the event. This field is currently only used by Webhook, Pub/Sub, Manual, and Cron triggers.
.google.devtools.cloudbuild.v1.GitRepoSource source_to_build = 26;
Returns | |
---|---|
Type | Description |
GitRepoSourceOrBuilder |
getSubstitutions()
public Map<String,String> getSubstitutions()
Use #getSubstitutionsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getSubstitutionsCount()
public int getSubstitutionsCount()
Substitutions for Build resource. The keys must match the following
regular expression: ^[A-Z0-9]+$
.
map<string, string> substitutions = 11;
Returns | |
---|---|
Type | Description |
int |
getSubstitutionsMap()
public Map<String,String> getSubstitutionsMap()
Substitutions for Build resource. The keys must match the following
regular expression: ^[A-Z0-9]+$
.
map<string, string> substitutions = 11;
Returns | |
---|---|
Type | Description |
Map<String,String> |
getSubstitutionsOrDefault(String key, String defaultValue)
public String getSubstitutionsOrDefault(String key, String defaultValue)
Substitutions for Build resource. The keys must match the following
regular expression: ^[A-Z0-9]+$
.
map<string, string> substitutions = 11;
Parameters | |
---|---|
Name | Description |
key | String |
defaultValue | String |
Returns | |
---|---|
Type | Description |
String |
getSubstitutionsOrThrow(String key)
public String getSubstitutionsOrThrow(String key)
Substitutions for Build resource. The keys must match the following
regular expression: ^[A-Z0-9]+$
.
map<string, string> substitutions = 11;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
String |
getTags(int index)
public String getTags(int index)
Tags for annotation of a BuildTrigger
repeated string tags = 19;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String | The tags at the given index. |
getTagsBytes(int index)
public ByteString getTagsBytes(int index)
Tags for annotation of a BuildTrigger
repeated string tags = 19;
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString | The bytes of the tags at the given index. |
getTagsCount()
public int getTagsCount()
Tags for annotation of a BuildTrigger
repeated string tags = 19;
Returns | |
---|---|
Type | Description |
int | The count of tags. |
getTagsList()
public ProtocolStringList getTagsList()
Tags for annotation of a BuildTrigger
repeated string tags = 19;
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the tags. |
getTriggerTemplate()
public RepoSource getTriggerTemplate()
Template describing the types of source changes to trigger a build.
Branch and tag names in trigger templates are interpreted as regular expressions. Any branch or tag change that matches that regular expression will trigger a build.
Mutually exclusive with github
.
.google.devtools.cloudbuild.v1.RepoSource trigger_template = 7;
Returns | |
---|---|
Type | Description |
RepoSource | The triggerTemplate. |
getTriggerTemplateOrBuilder()
public RepoSourceOrBuilder getTriggerTemplateOrBuilder()
Template describing the types of source changes to trigger a build.
Branch and tag names in trigger templates are interpreted as regular expressions. Any branch or tag change that matches that regular expression will trigger a build.
Mutually exclusive with github
.
.google.devtools.cloudbuild.v1.RepoSource trigger_template = 7;
Returns | |
---|---|
Type | Description |
RepoSourceOrBuilder |
getWebhookConfig()
public WebhookConfig getWebhookConfig()
WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger's webhook URL.
.google.devtools.cloudbuild.v1.WebhookConfig webhook_config = 31;
Returns | |
---|---|
Type | Description |
WebhookConfig | The webhookConfig. |
getWebhookConfigOrBuilder()
public WebhookConfigOrBuilder getWebhookConfigOrBuilder()
WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger's webhook URL.
.google.devtools.cloudbuild.v1.WebhookConfig webhook_config = 31;
Returns | |
---|---|
Type | Description |
WebhookConfigOrBuilder |
hasAutodetect()
public boolean hasAutodetect()
Autodetect build configuration. The following precedence is used (case insensitive):
- cloudbuild.yaml
- cloudbuild.yml
- cloudbuild.json
Dockerfile
Currently only available for GitHub App Triggers.
bool autodetect = 18;
Returns | |
---|---|
Type | Description |
boolean | Whether the autodetect field is set. |
hasBuild()
public boolean hasBuild()
Contents of the build template.
.google.devtools.cloudbuild.v1.Build build = 4;
Returns | |
---|---|
Type | Description |
boolean | Whether the build field is set. |
hasCreateTime()
public boolean hasCreateTime()
Output only. Time when the trigger was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean | Whether the createTime field is set. |
hasFilename()
public boolean hasFilename()
Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
string filename = 8;
Returns | |
---|---|
Type | Description |
boolean | Whether the filename field is set. |
hasGitFileSource()
public boolean hasGitFileSource()
The file source describing the local or remote Build template.
.google.devtools.cloudbuild.v1.GitFileSource git_file_source = 24;
Returns | |
---|---|
Type | Description |
boolean | Whether the gitFileSource field is set. |
hasGithub()
public boolean hasGithub()
GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received.
Mutually exclusive with trigger_template
.
.google.devtools.cloudbuild.v1.GitHubEventsConfig github = 13;
Returns | |
---|---|
Type | Description |
boolean | Whether the github field is set. |
hasPubsubConfig()
public boolean hasPubsubConfig()
PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
.google.devtools.cloudbuild.v1.PubsubConfig pubsub_config = 29;
Returns | |
---|---|
Type | Description |
boolean | Whether the pubsubConfig field is set. |
hasRepositoryEventConfig()
public boolean hasRepositoryEventConfig()
The configuration of a trigger that creates a build whenever an event from Repo API is received.
.google.devtools.cloudbuild.v1.RepositoryEventConfig repository_event_config = 39;
Returns | |
---|---|
Type | Description |
boolean | Whether the repositoryEventConfig field is set. |
hasSourceToBuild()
public boolean hasSourceToBuild()
The repo and ref of the repository from which to build. This field is used only for those triggers that do not respond to SCM events. Triggers that respond to such events build source at whatever commit caused the event. This field is currently only used by Webhook, Pub/Sub, Manual, and Cron triggers.
.google.devtools.cloudbuild.v1.GitRepoSource source_to_build = 26;
Returns | |
---|---|
Type | Description |
boolean | Whether the sourceToBuild field is set. |
hasTriggerTemplate()
public boolean hasTriggerTemplate()
Template describing the types of source changes to trigger a build.
Branch and tag names in trigger templates are interpreted as regular expressions. Any branch or tag change that matches that regular expression will trigger a build.
Mutually exclusive with github
.
.google.devtools.cloudbuild.v1.RepoSource trigger_template = 7;
Returns | |
---|---|
Type | Description |
boolean | Whether the triggerTemplate field is set. |
hasWebhookConfig()
public boolean hasWebhookConfig()
WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger's webhook URL.
.google.devtools.cloudbuild.v1.WebhookConfig webhook_config = 31;
Returns | |
---|---|
Type | Description |
boolean | Whether the webhookConfig field is set. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public BuildTrigger.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
BuildTrigger.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected BuildTrigger.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent | BuilderParent |
Returns | |
---|---|
Type | Description |
BuildTrigger.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused | UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public BuildTrigger.Builder toBuilder()
Returns | |
---|---|
Type | Description |
BuildTrigger.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output | CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |