Package com.google.cloudbuild.v1
Class BuildTrigger.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuildTrigger.Builder>
com.google.cloudbuild.v1.BuildTrigger.Builder
- All Implemented Interfaces:
BuildTriggerOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BuildTrigger
public static final class BuildTrigger.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BuildTrigger.Builder>
implements BuildTriggerOrBuilder
Configuration for an automated build in response to source repository changes.Protobuf type
google.devtools.cloudbuild.v1.BuildTrigger-
Method Summary
Modifier and TypeMethodDescriptionaddAllIgnoredFiles(Iterable<String> values) ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**".addAllIncludedFiles(Iterable<String> values) 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.addAllTags(Iterable<String> values) Tags for annotation of a `BuildTrigger`addIgnoredFiles(String value) ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**".addIgnoredFilesBytes(com.google.protobuf.ByteString value) ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**".addIncludedFiles(String value) 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.addIncludedFilesBytes(com.google.protobuf.ByteString value) 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.Tags for annotation of a `BuildTrigger`addTagsBytes(com.google.protobuf.ByteString value) Tags for annotation of a `BuildTrigger`build()clear()Autodetect build configuration.Contents of the build template.Output only.Human-readable description of this trigger.If true, the trigger will never automatically execute a build.Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).Optional.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.clearId()Output only.ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**".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.User-assigned name of the trigger.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 `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service.The 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.Tags for annotation of a `BuildTrigger`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.booleanSubstitutions for Build resource.booleanAutodetect build configuration.getBuild()Contents of the build template.Contents of the build template.Contents of the build template.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Human-readable description of this trigger.com.google.protobuf.ByteStringHuman-readable description of this trigger.static final com.google.protobuf.Descriptors.Descriptorcom.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.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.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.Deprecated.getName()User-assigned name of the trigger.com.google.protobuf.ByteStringUser-assigned name of the trigger.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.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 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.The 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.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.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.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.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) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeBuild(Build value) Contents of the build template.mergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(BuildTrigger other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeGitFileSource(GitFileSource value) The file source describing the local or remote Build template.mergeGithub(GitHubEventsConfig value) GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received.mergePubsubConfig(PubsubConfig value) 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.mergeSourceToBuild(GitRepoSource value) The repo and ref of the repository from which to build.mergeTriggerTemplate(RepoSource value) Template describing the types of source changes to trigger a build.mergeWebhookConfig(WebhookConfig value) WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger's webhook URL.putAllSubstitutions(Map<String, String> values) Substitutions for Build resource.putSubstitutions(String key, String value) Substitutions for Build resource.Substitutions for Build resource.setAutodetect(boolean value) Autodetect build configuration.Contents of the build template.setBuild(Build.Builder builderForValue) Contents of the build template.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDescription(String value) Human-readable description of this trigger.setDescriptionBytes(com.google.protobuf.ByteString value) Human-readable description of this trigger.setDisabled(boolean value) If true, the trigger will never automatically execute a build.setFilename(String value) Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).setFilenameBytes(com.google.protobuf.ByteString value) Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).Optional.setFilterBytes(com.google.protobuf.ByteString value) Optional.setGitFileSource(GitFileSource value) The file source describing the local or remote Build template.setGitFileSource(GitFileSource.Builder builderForValue) The file source describing the local or remote Build template.setGithub(GitHubEventsConfig value) GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received.setGithub(GitHubEventsConfig.Builder builderForValue) GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received.Output only.setIdBytes(com.google.protobuf.ByteString value) Output only.setIgnoredFiles(int index, String value) ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**".setIncludedFiles(int index, String value) 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.User-assigned name of the trigger.setNameBytes(com.google.protobuf.ByteString value) User-assigned name of the trigger.setPubsubConfig(PubsubConfig value) PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.setPubsubConfig(PubsubConfig.Builder builderForValue) 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.setRepositoryEventConfig(RepositoryEventConfig.Builder builderForValue) The configuration of a trigger that creates a build whenever an event from Repo API is received.setResourceName(String value) The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service.setResourceNameBytes(com.google.protobuf.ByteString value) The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service.setServiceAccount(String value) The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild.setServiceAccountBytes(com.google.protobuf.ByteString value) The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild.setSourceToBuild(GitRepoSource value) The repo and ref of the repository from which to build.setSourceToBuild(GitRepoSource.Builder builderForValue) The repo and ref of the repository from which to build.Tags for annotation of a `BuildTrigger`setTriggerTemplate(RepoSource value) Template describing the types of source changes to trigger a build.setTriggerTemplate(RepoSource.Builder builderForValue) Template describing the types of source changes to trigger a build.setWebhookConfig(WebhookConfig value) WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger's webhook URL.setWebhookConfig(WebhookConfig.Builder builderForValue) WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger's webhook URL.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<BuildTrigger.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<BuildTrigger.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BuildTrigger.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BuildTrigger.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BuildTrigger.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BuildTrigger.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BuildTrigger.Builder>
-
mergeFrom
public BuildTrigger.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BuildTrigger.Builder>- Throws:
IOException
-
getBuildTemplateCase
- Specified by:
getBuildTemplateCasein interfaceBuildTriggerOrBuilder
-
clearBuildTemplate
-
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.
-
setResourceName
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;- Parameters:
value- The resourceName to set.- Returns:
- This builder for chaining.
-
clearResourceName
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:
- This builder for chaining.
-
setResourceNameBytes
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;- Parameters:
value- The bytes for resourceName to set.- Returns:
- This builder for chaining.
-
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.
-
setId
Output only. Unique identifier of the trigger.
string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Output only. Unique identifier of the trigger.
string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setIdBytes
Output only. Unique identifier of the trigger.
string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
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.
-
setDescription
Human-readable description of this trigger.
string description = 10;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Human-readable description of this trigger.
string description = 10;- Returns:
- This builder for chaining.
-
setDescriptionBytes
Human-readable description of this trigger.
string description = 10;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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.
-
setTags
Tags for annotation of a `BuildTrigger`
repeated string tags = 19;- Parameters:
index- The index to set the value at.value- The tags to set.- Returns:
- This builder for chaining.
-
addTags
Tags for annotation of a `BuildTrigger`
repeated string tags = 19;- Parameters:
value- The tags to add.- Returns:
- This builder for chaining.
-
addAllTags
Tags for annotation of a `BuildTrigger`
repeated string tags = 19;- Parameters:
values- The tags to add.- Returns:
- This builder for chaining.
-
clearTags
Tags for annotation of a `BuildTrigger`
repeated string tags = 19;- Returns:
- This builder for chaining.
-
addTagsBytes
Tags for annotation of a `BuildTrigger`
repeated string tags = 19;- Parameters:
value- The bytes of the tags to add.- Returns:
- This builder for chaining.
-
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.
-
setTriggerTemplate
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; -
setTriggerTemplate
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; -
mergeTriggerTemplate
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; -
clearTriggerTemplate
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; -
getTriggerTemplateBuilder
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; -
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.
-
setGithub
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; -
setGithub
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; -
mergeGithub
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; -
clearGithub
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; -
getGithubBuilder
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; -
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.
-
setPubsubConfig
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; -
setPubsubConfig
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; -
mergePubsubConfig
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; -
clearPubsubConfig
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; -
getPubsubConfigBuilder
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; -
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.
-
setWebhookConfig
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; -
setWebhookConfig
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; -
mergeWebhookConfig
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; -
clearWebhookConfig
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; -
getWebhookConfigBuilder
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; -
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.
-
setAutodetect
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;- Parameters:
value- The autodetect to set.- Returns:
- This builder for chaining.
-
clearAutodetect
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;- Returns:
- This builder for chaining.
-
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.
-
setBuild
Contents of the build template.
.google.devtools.cloudbuild.v1.Build build = 4; -
setBuild
Contents of the build template.
.google.devtools.cloudbuild.v1.Build build = 4; -
mergeBuild
Contents of the build template.
.google.devtools.cloudbuild.v1.Build build = 4; -
clearBuild
Contents of the build template.
.google.devtools.cloudbuild.v1.Build build = 4; -
getBuildBuilder
Contents of the build template.
.google.devtools.cloudbuild.v1.Build build = 4; -
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.
-
setFilename
Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
string filename = 8;- Parameters:
value- The filename to set.- Returns:
- This builder for chaining.
-
clearFilename
Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
string filename = 8;- Returns:
- This builder for chaining.
-
setFilenameBytes
Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
string filename = 8;- Parameters:
value- The bytes for filename to set.- Returns:
- This builder for chaining.
-
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.
-
setGitFileSource
The file source describing the local or remote Build template.
.google.devtools.cloudbuild.v1.GitFileSource git_file_source = 24; -
setGitFileSource
The file source describing the local or remote Build template.
.google.devtools.cloudbuild.v1.GitFileSource git_file_source = 24; -
mergeGitFileSource
The file source describing the local or remote Build template.
.google.devtools.cloudbuild.v1.GitFileSource git_file_source = 24; -
clearGitFileSource
The file source describing the local or remote Build template.
.google.devtools.cloudbuild.v1.GitFileSource git_file_source = 24; -
getGitFileSourceBuilder
The file source describing the local or remote Build template.
.google.devtools.cloudbuild.v1.GitFileSource git_file_source = 24; -
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.
-
setCreateTime
Output only. Time when the trigger was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. Time when the trigger was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Time when the trigger was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. Time when the trigger was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Time when the trigger was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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.
-
setDisabled
If true, the trigger will never automatically execute a build.
bool disabled = 9;- Parameters:
value- The disabled to set.- Returns:
- This builder for chaining.
-
clearDisabled
If true, the trigger will never automatically execute a build.
bool disabled = 9;- Returns:
- This builder for chaining.
-
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
-
clearSubstitutions
-
removeSubstitutions
Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
map<string, string> substitutions = 11; -
getMutableSubstitutions
Deprecated.Use alternate mutation accessors instead. -
putSubstitutions
Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
map<string, string> substitutions = 11; -
putAllSubstitutions
Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
map<string, string> substitutions = 11; -
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.
-
setIgnoredFiles
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;- Parameters:
index- The index to set the value at.value- The ignoredFiles to set.- Returns:
- This builder for chaining.
-
addIgnoredFiles
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;- Parameters:
value- The ignoredFiles to add.- Returns:
- This builder for chaining.
-
addAllIgnoredFiles
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;- Parameters:
values- The ignoredFiles to add.- Returns:
- This builder for chaining.
-
clearIgnoredFiles
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:
- This builder for chaining.
-
addIgnoredFilesBytes
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;- Parameters:
value- The bytes of the ignoredFiles to add.- Returns:
- This builder for chaining.
-
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.
-
setIncludedFiles
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;- Parameters:
index- The index to set the value at.value- The includedFiles to set.- Returns:
- This builder for chaining.
-
addIncludedFiles
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;- Parameters:
value- The includedFiles to add.- Returns:
- This builder for chaining.
-
addAllIncludedFiles
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;- Parameters:
values- The includedFiles to add.- Returns:
- This builder for chaining.
-
clearIncludedFiles
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:
- This builder for chaining.
-
addIncludedFilesBytes
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;- Parameters:
value- The bytes of the includedFiles to add.- Returns:
- This builder for chaining.
-
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.
-
setFilter
Optional. A Common Expression Language string.
string filter = 30 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The filter to set.- Returns:
- This builder for chaining.
-
clearFilter
Optional. A Common Expression Language string.
string filter = 30 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setFilterBytes
Optional. A Common Expression Language string.
string filter = 30 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for filter to set.- Returns:
- This builder for chaining.
-
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.
-
setSourceToBuild
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; -
setSourceToBuild
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; -
mergeSourceToBuild
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; -
clearSourceToBuild
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; -
getSourceToBuildBuilder
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; -
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.
-
setServiceAccount
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) = { ... }- Parameters:
value- The serviceAccount to set.- Returns:
- This builder for chaining.
-
clearServiceAccount
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) = { ... }- Returns:
- This builder for chaining.
-
setServiceAccountBytes
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) = { ... }- Parameters:
value- The bytes for serviceAccount to set.- Returns:
- This builder for chaining.
-
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.
-
setRepositoryEventConfig
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; -
setRepositoryEventConfig
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; -
mergeRepositoryEventConfig
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; -
clearRepositoryEventConfig
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; -
getRepositoryEventConfigBuilder
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; -
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
-