Package com.google.cloudbuild.v1
Class BuildTrigger
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloudbuild.v1.BuildTrigger
- All Implemented Interfaces:
BuildTriggerOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class BuildTrigger
extends com.google.protobuf.GeneratedMessage
implements BuildTriggerOrBuilder
Configuration for an automated build in response to source repository changes.Protobuf type
google.devtools.cloudbuild.v1.BuildTrigger- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfiguration for an automated build in response to source repository changes.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanSubstitutions for Build resource.booleanbooleanAutodetect build configuration.getBuild()Contents of the build template.Contents of the build template.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static BuildTriggerHuman-readable description of this trigger.com.google.protobuf.ByteStringHuman-readable description of this trigger.static final com.google.protobuf.Descriptors.DescriptorbooleanIf true, the trigger will never automatically execute a build.Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).com.google.protobuf.ByteStringPath, from the source root, to the build configuration file (i.e. cloudbuild.yaml).Optional.com.google.protobuf.ByteStringOptional.The file source describing the local or remote Build template.The file source describing the local or remote Build template.GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received.GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received.getId()Output only.com.google.protobuf.ByteStringOutput only.getIgnoredFiles(int index) ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**".com.google.protobuf.ByteStringgetIgnoredFilesBytes(int index) ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**".intignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**".com.google.protobuf.ProtocolStringListignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**".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.com.google.protobuf.ByteStringgetIncludedFilesBytes(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.intIf 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.com.google.protobuf.ProtocolStringListIf 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.getName()User-assigned name of the trigger.com.google.protobuf.ByteStringUser-assigned name of the trigger.com.google.protobuf.Parser<BuildTrigger>PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.The configuration of a trigger that creates a build whenever an event from Repo API is received.The configuration of a trigger that creates a build whenever an event from Repo API is received.The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service.com.google.protobuf.ByteStringThe `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service.intThe service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild.com.google.protobuf.ByteStringThe service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild.The repo and ref of the repository from which to build.The repo and ref of the repository from which to build.Deprecated.intSubstitutions for Build resource.Substitutions for Build resource.getSubstitutionsOrDefault(String key, String defaultValue) Substitutions for Build resource.Substitutions for Build resource.getTags(int index) Tags for annotation of a `BuildTrigger`com.google.protobuf.ByteStringgetTagsBytes(int index) Tags for annotation of a `BuildTrigger`intTags for annotation of a `BuildTrigger`com.google.protobuf.ProtocolStringListTags for annotation of a `BuildTrigger`Template describing the types of source changes to trigger a build.Template describing the types of source changes to trigger a build.WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger's webhook URL.WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger's webhook URL.booleanAutodetect build configuration.booleanhasBuild()Contents of the build template.booleanOutput only.booleanPath, from the source root, to the build configuration file (i.e. cloudbuild.yaml).booleanThe file source describing the local or remote Build template.booleanGitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received.inthashCode()booleanPubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.booleanThe configuration of a trigger that creates a build whenever an event from Repo API is received.booleanThe repo and ref of the repository from which to build.booleanTemplate describing the types of source changes to trigger a build.booleanWebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger's webhook URL.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic BuildTrigger.Builderstatic BuildTrigger.BuildernewBuilder(BuildTrigger prototype) protected BuildTrigger.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static BuildTriggerparseDelimitedFrom(InputStream input) static BuildTriggerparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BuildTriggerparseFrom(byte[] data) static BuildTriggerparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BuildTriggerparseFrom(com.google.protobuf.ByteString data) static BuildTriggerparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BuildTriggerparseFrom(com.google.protobuf.CodedInputStream input) static BuildTriggerparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BuildTriggerparseFrom(InputStream input) static BuildTriggerparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BuildTriggerparseFrom(ByteBuffer data) static BuildTriggerparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<BuildTrigger>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
RESOURCE_NAME_FIELD_NUMBER
public static final int RESOURCE_NAME_FIELD_NUMBER- See Also:
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER- See Also:
-
TRIGGER_TEMPLATE_FIELD_NUMBER
public static final int TRIGGER_TEMPLATE_FIELD_NUMBER- See Also:
-
GITHUB_FIELD_NUMBER
public static final int GITHUB_FIELD_NUMBER- See Also:
-
PUBSUB_CONFIG_FIELD_NUMBER
public static final int PUBSUB_CONFIG_FIELD_NUMBER- See Also:
-
WEBHOOK_CONFIG_FIELD_NUMBER
public static final int WEBHOOK_CONFIG_FIELD_NUMBER- See Also:
-
AUTODETECT_FIELD_NUMBER
public static final int AUTODETECT_FIELD_NUMBER- See Also:
-
BUILD_FIELD_NUMBER
public static final int BUILD_FIELD_NUMBER- See Also:
-
FILENAME_FIELD_NUMBER
public static final int FILENAME_FIELD_NUMBER- See Also:
-
GIT_FILE_SOURCE_FIELD_NUMBER
public static final int GIT_FILE_SOURCE_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
DISABLED_FIELD_NUMBER
public static final int DISABLED_FIELD_NUMBER- See Also:
-
SUBSTITUTIONS_FIELD_NUMBER
public static final int SUBSTITUTIONS_FIELD_NUMBER- See Also:
-
IGNORED_FILES_FIELD_NUMBER
public static final int IGNORED_FILES_FIELD_NUMBER- See Also:
-
INCLUDED_FILES_FIELD_NUMBER
public static final int INCLUDED_FILES_FIELD_NUMBER- See Also:
-
FILTER_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER- See Also:
-
SOURCE_TO_BUILD_FIELD_NUMBER
public static final int SOURCE_TO_BUILD_FIELD_NUMBER- See Also:
-
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER- See Also:
-
REPOSITORY_EVENT_CONFIG_FIELD_NUMBER
public static final int REPOSITORY_EVENT_CONFIG_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getBuildTemplateCase
- Specified by:
getBuildTemplateCasein interfaceBuildTriggerOrBuilder
-
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;- Specified by:
getResourceNamein interfaceBuildTriggerOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.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;- Specified by:
getResourceNameBytesin interfaceBuildTriggerOrBuilder- Returns:
- The bytes for resourceName.
-
getId
Output only. Unique identifier of the trigger.
string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceBuildTriggerOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Output only. Unique identifier of the trigger.
string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdBytesin interfaceBuildTriggerOrBuilder- Returns:
- The bytes for id.
-
getDescription
Human-readable description of this trigger.
string description = 10;- Specified by:
getDescriptionin interfaceBuildTriggerOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Human-readable description of this trigger.
string description = 10;- Specified by:
getDescriptionBytesin interfaceBuildTriggerOrBuilder- Returns:
- The bytes for description.
-
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;- Specified by:
getNamein interfaceBuildTriggerOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;- Specified by:
getNameBytesin interfaceBuildTriggerOrBuilder- Returns:
- The bytes for name.
-
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()Tags for annotation of a `BuildTrigger`
repeated string tags = 19;- Specified by:
getTagsListin interfaceBuildTriggerOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()Tags for annotation of a `BuildTrigger`
repeated string tags = 19;- Specified by:
getTagsCountin interfaceBuildTriggerOrBuilder- Returns:
- The count of tags.
-
getTags
Tags for annotation of a `BuildTrigger`
repeated string tags = 19;- Specified by:
getTagsin interfaceBuildTriggerOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.ByteString getTagsBytes(int index) Tags for annotation of a `BuildTrigger`
repeated string tags = 19;- Specified by:
getTagsBytesin interfaceBuildTriggerOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
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;- Specified by:
hasTriggerTemplatein interfaceBuildTriggerOrBuilder- Returns:
- Whether the triggerTemplate field is set.
-
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;- Specified by:
getTriggerTemplatein interfaceBuildTriggerOrBuilder- Returns:
- The triggerTemplate.
-
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;- Specified by:
getTriggerTemplateOrBuilderin interfaceBuildTriggerOrBuilder
-
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;- Specified by:
hasGithubin interfaceBuildTriggerOrBuilder- Returns:
- Whether the github field is set.
-
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;- Specified by:
getGithubin interfaceBuildTriggerOrBuilder- Returns:
- The github.
-
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;- Specified by:
getGithubOrBuilderin interfaceBuildTriggerOrBuilder
-
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;- Specified by:
hasPubsubConfigin interfaceBuildTriggerOrBuilder- Returns:
- Whether the pubsubConfig field is set.
-
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;- Specified by:
getPubsubConfigin interfaceBuildTriggerOrBuilder- Returns:
- The pubsubConfig.
-
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;- Specified by:
getPubsubConfigOrBuilderin interfaceBuildTriggerOrBuilder
-
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;- Specified by:
hasWebhookConfigin interfaceBuildTriggerOrBuilder- Returns:
- Whether the webhookConfig field is set.
-
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;- Specified by:
getWebhookConfigin interfaceBuildTriggerOrBuilder- Returns:
- The webhookConfig.
-
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;- Specified by:
getWebhookConfigOrBuilderin interfaceBuildTriggerOrBuilder
-
hasAutodetect
public boolean hasAutodetect()Autodetect build configuration. The following precedence is used (case insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json 4. Dockerfile Currently only available for GitHub App Triggers.
bool autodetect = 18;- Specified by:
hasAutodetectin interfaceBuildTriggerOrBuilder- Returns:
- Whether the autodetect field is set.
-
getAutodetect
public boolean getAutodetect()Autodetect build configuration. The following precedence is used (case insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json 4. Dockerfile Currently only available for GitHub App Triggers.
bool autodetect = 18;- Specified by:
getAutodetectin interfaceBuildTriggerOrBuilder- Returns:
- The autodetect.
-
hasBuild
public boolean hasBuild()Contents of the build template.
.google.devtools.cloudbuild.v1.Build build = 4;- Specified by:
hasBuildin interfaceBuildTriggerOrBuilder- Returns:
- Whether the build field is set.
-
getBuild
Contents of the build template.
.google.devtools.cloudbuild.v1.Build build = 4;- Specified by:
getBuildin interfaceBuildTriggerOrBuilder- Returns:
- The build.
-
getBuildOrBuilder
Contents of the build template.
.google.devtools.cloudbuild.v1.Build build = 4;- Specified by:
getBuildOrBuilderin interfaceBuildTriggerOrBuilder
-
hasFilename
public boolean hasFilename()Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
string filename = 8;- Specified by:
hasFilenamein interfaceBuildTriggerOrBuilder- Returns:
- Whether the filename field is set.
-
getFilename
Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
string filename = 8;- Specified by:
getFilenamein interfaceBuildTriggerOrBuilder- Returns:
- The filename.
-
getFilenameBytes
public com.google.protobuf.ByteString getFilenameBytes()Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
string filename = 8;- Specified by:
getFilenameBytesin interfaceBuildTriggerOrBuilder- Returns:
- The bytes for filename.
-
hasGitFileSource
public boolean hasGitFileSource()The file source describing the local or remote Build template.
.google.devtools.cloudbuild.v1.GitFileSource git_file_source = 24;- Specified by:
hasGitFileSourcein interfaceBuildTriggerOrBuilder- Returns:
- Whether the gitFileSource field is set.
-
getGitFileSource
The file source describing the local or remote Build template.
.google.devtools.cloudbuild.v1.GitFileSource git_file_source = 24;- Specified by:
getGitFileSourcein interfaceBuildTriggerOrBuilder- Returns:
- The gitFileSource.
-
getGitFileSourceOrBuilder
The file source describing the local or remote Build template.
.google.devtools.cloudbuild.v1.GitFileSource git_file_source = 24;- Specified by:
getGitFileSourceOrBuilderin interfaceBuildTriggerOrBuilder
-
hasCreateTime
public boolean hasCreateTime()Output only. Time when the trigger was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceBuildTriggerOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Time when the trigger was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceBuildTriggerOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Time when the trigger was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceBuildTriggerOrBuilder
-
getDisabled
public boolean getDisabled()If true, the trigger will never automatically execute a build.
bool disabled = 9;- Specified by:
getDisabledin interfaceBuildTriggerOrBuilder- Returns:
- The disabled.
-
getSubstitutionsCount
public int getSubstitutionsCount()Description copied from interface:BuildTriggerOrBuilderSubstitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
map<string, string> substitutions = 11;- Specified by:
getSubstitutionsCountin interfaceBuildTriggerOrBuilder
-
containsSubstitutions
Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
map<string, string> substitutions = 11;- Specified by:
containsSubstitutionsin interfaceBuildTriggerOrBuilder
-
getSubstitutions
Deprecated.UsegetSubstitutionsMap()instead.- Specified by:
getSubstitutionsin interfaceBuildTriggerOrBuilder
-
getSubstitutionsMap
Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
map<string, string> substitutions = 11;- Specified by:
getSubstitutionsMapin interfaceBuildTriggerOrBuilder
-
getSubstitutionsOrDefault
Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
map<string, string> substitutions = 11;- Specified by:
getSubstitutionsOrDefaultin interfaceBuildTriggerOrBuilder
-
getSubstitutionsOrThrow
Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
map<string, string> substitutions = 11;- Specified by:
getSubstitutionsOrThrowin interfaceBuildTriggerOrBuilder
-
getIgnoredFilesList
public com.google.protobuf.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;- Specified by:
getIgnoredFilesListin interfaceBuildTriggerOrBuilder- Returns:
- A list containing the ignoredFiles.
-
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;- Specified by:
getIgnoredFilesCountin interfaceBuildTriggerOrBuilder- Returns:
- The count of ignoredFiles.
-
getIgnoredFiles
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;- Specified by:
getIgnoredFilesin interfaceBuildTriggerOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The ignoredFiles at the given index.
-
getIgnoredFilesBytes
public com.google.protobuf.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;- Specified by:
getIgnoredFilesBytesin interfaceBuildTriggerOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the ignoredFiles at the given index.
-
getIncludedFilesList
public com.google.protobuf.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;- Specified by:
getIncludedFilesListin interfaceBuildTriggerOrBuilder- Returns:
- A list containing the includedFiles.
-
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;- Specified by:
getIncludedFilesCountin interfaceBuildTriggerOrBuilder- Returns:
- The count of includedFiles.
-
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. 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;- Specified by:
getIncludedFilesin interfaceBuildTriggerOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The includedFiles at the given index.
-
getIncludedFilesBytes
public com.google.protobuf.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;- Specified by:
getIncludedFilesBytesin interfaceBuildTriggerOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the includedFiles at the given index.
-
getFilter
Optional. A Common Expression Language string.
string filter = 30 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFilterin interfaceBuildTriggerOrBuilder- Returns:
- The filter.
-
getFilterBytes
public com.google.protobuf.ByteString getFilterBytes()Optional. A Common Expression Language string.
string filter = 30 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFilterBytesin interfaceBuildTriggerOrBuilder- Returns:
- The bytes for filter.
-
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;- Specified by:
hasSourceToBuildin interfaceBuildTriggerOrBuilder- Returns:
- Whether the sourceToBuild field is set.
-
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;- Specified by:
getSourceToBuildin interfaceBuildTriggerOrBuilder- Returns:
- The sourceToBuild.
-
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;- Specified by:
getSourceToBuildOrBuilderin interfaceBuildTriggerOrBuilder
-
getServiceAccount
The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service account is set and the legacy Cloud Build service account (`[PROJECT_NUM]@cloudbuild.gserviceaccount.com`) is the default for the project then it will be used instead. Format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}`string service_account = 33 [(.google.api.resource_reference) = { ... }- Specified by:
getServiceAccountin interfaceBuildTriggerOrBuilder- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.ByteString getServiceAccountBytes()The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service account is set and the legacy Cloud Build service account (`[PROJECT_NUM]@cloudbuild.gserviceaccount.com`) is the default for the project then it will be used instead. Format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}`string service_account = 33 [(.google.api.resource_reference) = { ... }- Specified by:
getServiceAccountBytesin interfaceBuildTriggerOrBuilder- Returns:
- The bytes for serviceAccount.
-
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;- Specified by:
hasRepositoryEventConfigin interfaceBuildTriggerOrBuilder- Returns:
- Whether the repositoryEventConfig field is set.
-
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;- Specified by:
getRepositoryEventConfigin interfaceBuildTriggerOrBuilder- Returns:
- The repositoryEventConfig.
-
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;- Specified by:
getRepositoryEventConfigOrBuilderin interfaceBuildTriggerOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static BuildTrigger parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BuildTrigger parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BuildTrigger parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BuildTrigger parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BuildTrigger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BuildTrigger parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BuildTrigger parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static BuildTrigger parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BuildTrigger parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BuildTrigger.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-