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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BuildTrigger.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BuildTrigger.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BuildTrigger.Builder>
    • clear

      public BuildTrigger.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<BuildTrigger.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<BuildTrigger.Builder>
    • getDefaultInstanceForType

      public BuildTrigger getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public BuildTrigger build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public BuildTrigger buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public BuildTrigger.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BuildTrigger.Builder>
    • mergeFrom

      public BuildTrigger.Builder mergeFrom(BuildTrigger other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BuildTrigger.Builder>
      Throws:
      IOException
    • getBuildTemplateCase

      public BuildTrigger.BuildTemplateCase getBuildTemplateCase()
      Specified by:
      getBuildTemplateCase in interface BuildTriggerOrBuilder
    • clearBuildTemplate

      public BuildTrigger.Builder clearBuildTemplate()
    • getResourceName

      public String getResourceName()
       The `Trigger` name with format:
       `projects/{project}/locations/{location}/triggers/{trigger}`, where
       {trigger} is a unique identifier generated by the service.
       
      string resource_name = 34;
      Specified by:
      getResourceName in interface BuildTriggerOrBuilder
      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:
      getResourceNameBytes in interface BuildTriggerOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public BuildTrigger.Builder setResourceName(String value)
       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

      public BuildTrigger.Builder 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

      public BuildTrigger.Builder 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.
       
      string resource_name = 34;
      Parameters:
      value - The bytes for resourceName to set.
      Returns:
      This builder for chaining.
    • getId

      public String getId()
       Output only. Unique identifier of the trigger.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getId in interface BuildTriggerOrBuilder
      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:
      getIdBytes in interface BuildTriggerOrBuilder
      Returns:
      The bytes for id.
    • setId

      public BuildTrigger.Builder setId(String value)
       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

      public BuildTrigger.Builder clearId()
       Output only. Unique identifier of the trigger.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setIdBytes

      public BuildTrigger.Builder setIdBytes(com.google.protobuf.ByteString value)
       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

      public String getDescription()
       Human-readable description of this trigger.
       
      string description = 10;
      Specified by:
      getDescription in interface BuildTriggerOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Human-readable description of this trigger.
       
      string description = 10;
      Specified by:
      getDescriptionBytes in interface BuildTriggerOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public BuildTrigger.Builder setDescription(String value)
       Human-readable description of this trigger.
       
      string description = 10;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public BuildTrigger.Builder clearDescription()
       Human-readable description of this trigger.
       
      string description = 10;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public BuildTrigger.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Human-readable description of this trigger.
       
      string description = 10;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       User-assigned name of the trigger. Must be unique within the project.
       Trigger names must meet the following requirements:
      
       + They must contain only alphanumeric characters and dashes.
       + They can be 1-64 characters long.
       + They must begin and end with an alphanumeric character.
       
      string name = 21;
      Specified by:
      getName in interface BuildTriggerOrBuilder
      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:
      getNameBytes in interface BuildTriggerOrBuilder
      Returns:
      The bytes for name.
    • setName

      public BuildTrigger.Builder setName(String value)
       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

      public BuildTrigger.Builder 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

      public BuildTrigger.Builder setNameBytes(com.google.protobuf.ByteString value)
       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:
      getTagsList in interface BuildTriggerOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

      public int getTagsCount()
       Tags for annotation of a `BuildTrigger`
       
      repeated string tags = 19;
      Specified by:
      getTagsCount in interface BuildTriggerOrBuilder
      Returns:
      The count of tags.
    • getTags

      public String getTags(int index)
       Tags for annotation of a `BuildTrigger`
       
      repeated string tags = 19;
      Specified by:
      getTags in interface BuildTriggerOrBuilder
      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:
      getTagsBytes in interface BuildTriggerOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tags at the given index.
    • setTags

      public BuildTrigger.Builder setTags(int index, String value)
       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

      public BuildTrigger.Builder addTags(String value)
       Tags for annotation of a `BuildTrigger`
       
      repeated string tags = 19;
      Parameters:
      value - The tags to add.
      Returns:
      This builder for chaining.
    • addAllTags

      public BuildTrigger.Builder addAllTags(Iterable<String> values)
       Tags for annotation of a `BuildTrigger`
       
      repeated string tags = 19;
      Parameters:
      values - The tags to add.
      Returns:
      This builder for chaining.
    • clearTags

      public BuildTrigger.Builder clearTags()
       Tags for annotation of a `BuildTrigger`
       
      repeated string tags = 19;
      Returns:
      This builder for chaining.
    • addTagsBytes

      public BuildTrigger.Builder addTagsBytes(com.google.protobuf.ByteString value)
       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:
      hasTriggerTemplate in interface BuildTriggerOrBuilder
      Returns:
      Whether the triggerTemplate field is set.
    • getTriggerTemplate

      public RepoSource getTriggerTemplate()
       Template describing the types of source changes to trigger a build.
      
       Branch and tag names in trigger templates are interpreted as regular
       expressions. Any branch or tag change that matches that regular expression
       will trigger a build.
      
       Mutually exclusive with `github`.
       
      .google.devtools.cloudbuild.v1.RepoSource trigger_template = 7;
      Specified by:
      getTriggerTemplate in interface BuildTriggerOrBuilder
      Returns:
      The triggerTemplate.
    • setTriggerTemplate

      public BuildTrigger.Builder setTriggerTemplate(RepoSource value)
       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

      public BuildTrigger.Builder setTriggerTemplate(RepoSource.Builder builderForValue)
       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

      public BuildTrigger.Builder mergeTriggerTemplate(RepoSource value)
       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

      public BuildTrigger.Builder 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

      public RepoSource.Builder 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

      public RepoSourceOrBuilder getTriggerTemplateOrBuilder()
       Template describing the types of source changes to trigger a build.
      
       Branch and tag names in trigger templates are interpreted as regular
       expressions. Any branch or tag change that matches that regular expression
       will trigger a build.
      
       Mutually exclusive with `github`.
       
      .google.devtools.cloudbuild.v1.RepoSource trigger_template = 7;
      Specified by:
      getTriggerTemplateOrBuilder in interface BuildTriggerOrBuilder
    • 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:
      hasGithub in interface BuildTriggerOrBuilder
      Returns:
      Whether the github field is set.
    • getGithub

      public GitHubEventsConfig getGithub()
       GitHubEventsConfig describes the configuration of a trigger that creates
       a build whenever a GitHub event is received.
      
       Mutually exclusive with `trigger_template`.
       
      .google.devtools.cloudbuild.v1.GitHubEventsConfig github = 13;
      Specified by:
      getGithub in interface BuildTriggerOrBuilder
      Returns:
      The github.
    • setGithub

      public BuildTrigger.Builder setGithub(GitHubEventsConfig value)
       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

      public BuildTrigger.Builder setGithub(GitHubEventsConfig.Builder builderForValue)
       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

      public BuildTrigger.Builder mergeGithub(GitHubEventsConfig value)
       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

      public BuildTrigger.Builder 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

      public GitHubEventsConfig.Builder 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

      public GitHubEventsConfigOrBuilder getGithubOrBuilder()
       GitHubEventsConfig describes the configuration of a trigger that creates
       a build whenever a GitHub event is received.
      
       Mutually exclusive with `trigger_template`.
       
      .google.devtools.cloudbuild.v1.GitHubEventsConfig github = 13;
      Specified by:
      getGithubOrBuilder in interface BuildTriggerOrBuilder
    • 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:
      hasPubsubConfig in interface BuildTriggerOrBuilder
      Returns:
      Whether the pubsubConfig field is set.
    • getPubsubConfig

      public PubsubConfig getPubsubConfig()
       PubsubConfig describes the configuration of a trigger that
       creates a build whenever a Pub/Sub message is published.
       
      .google.devtools.cloudbuild.v1.PubsubConfig pubsub_config = 29;
      Specified by:
      getPubsubConfig in interface BuildTriggerOrBuilder
      Returns:
      The pubsubConfig.
    • setPubsubConfig

      public BuildTrigger.Builder setPubsubConfig(PubsubConfig value)
       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

      public BuildTrigger.Builder setPubsubConfig(PubsubConfig.Builder builderForValue)
       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

      public BuildTrigger.Builder mergePubsubConfig(PubsubConfig value)
       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

      public BuildTrigger.Builder 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

      public PubsubConfig.Builder 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

      public PubsubConfigOrBuilder getPubsubConfigOrBuilder()
       PubsubConfig describes the configuration of a trigger that
       creates a build whenever a Pub/Sub message is published.
       
      .google.devtools.cloudbuild.v1.PubsubConfig pubsub_config = 29;
      Specified by:
      getPubsubConfigOrBuilder in interface BuildTriggerOrBuilder
    • 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:
      hasWebhookConfig in interface BuildTriggerOrBuilder
      Returns:
      Whether the webhookConfig field is set.
    • getWebhookConfig

      public WebhookConfig getWebhookConfig()
       WebhookConfig describes the configuration of a trigger that
       creates a build whenever a webhook is sent to a trigger's webhook URL.
       
      .google.devtools.cloudbuild.v1.WebhookConfig webhook_config = 31;
      Specified by:
      getWebhookConfig in interface BuildTriggerOrBuilder
      Returns:
      The webhookConfig.
    • setWebhookConfig

      public BuildTrigger.Builder 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.
       
      .google.devtools.cloudbuild.v1.WebhookConfig webhook_config = 31;
    • setWebhookConfig

      public BuildTrigger.Builder 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.
       
      .google.devtools.cloudbuild.v1.WebhookConfig webhook_config = 31;
    • mergeWebhookConfig

      public BuildTrigger.Builder 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.
       
      .google.devtools.cloudbuild.v1.WebhookConfig webhook_config = 31;
    • clearWebhookConfig

      public BuildTrigger.Builder 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

      public WebhookConfig.Builder 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

      public WebhookConfigOrBuilder getWebhookConfigOrBuilder()
       WebhookConfig describes the configuration of a trigger that
       creates a build whenever a webhook is sent to a trigger's webhook URL.
       
      .google.devtools.cloudbuild.v1.WebhookConfig webhook_config = 31;
      Specified by:
      getWebhookConfigOrBuilder in interface BuildTriggerOrBuilder
    • 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:
      hasAutodetect in interface BuildTriggerOrBuilder
      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:
      getAutodetect in interface BuildTriggerOrBuilder
      Returns:
      The autodetect.
    • setAutodetect

      public BuildTrigger.Builder setAutodetect(boolean value)
       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

      public BuildTrigger.Builder 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:
      hasBuild in interface BuildTriggerOrBuilder
      Returns:
      Whether the build field is set.
    • getBuild

      public Build getBuild()
       Contents of the build template.
       
      .google.devtools.cloudbuild.v1.Build build = 4;
      Specified by:
      getBuild in interface BuildTriggerOrBuilder
      Returns:
      The build.
    • setBuild

      public BuildTrigger.Builder setBuild(Build value)
       Contents of the build template.
       
      .google.devtools.cloudbuild.v1.Build build = 4;
    • setBuild

      public BuildTrigger.Builder setBuild(Build.Builder builderForValue)
       Contents of the build template.
       
      .google.devtools.cloudbuild.v1.Build build = 4;
    • mergeBuild

      public BuildTrigger.Builder mergeBuild(Build value)
       Contents of the build template.
       
      .google.devtools.cloudbuild.v1.Build build = 4;
    • clearBuild

      public BuildTrigger.Builder clearBuild()
       Contents of the build template.
       
      .google.devtools.cloudbuild.v1.Build build = 4;
    • getBuildBuilder

      public Build.Builder getBuildBuilder()
       Contents of the build template.
       
      .google.devtools.cloudbuild.v1.Build build = 4;
    • getBuildOrBuilder

      public BuildOrBuilder getBuildOrBuilder()
       Contents of the build template.
       
      .google.devtools.cloudbuild.v1.Build build = 4;
      Specified by:
      getBuildOrBuilder in interface BuildTriggerOrBuilder
    • hasFilename

      public boolean hasFilename()
       Path, from the source root, to the build configuration file
       (i.e. cloudbuild.yaml).
       
      string filename = 8;
      Specified by:
      hasFilename in interface BuildTriggerOrBuilder
      Returns:
      Whether the filename field is set.
    • getFilename

      public String getFilename()
       Path, from the source root, to the build configuration file
       (i.e. cloudbuild.yaml).
       
      string filename = 8;
      Specified by:
      getFilename in interface BuildTriggerOrBuilder
      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:
      getFilenameBytes in interface BuildTriggerOrBuilder
      Returns:
      The bytes for filename.
    • setFilename

      public BuildTrigger.Builder setFilename(String value)
       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

      public BuildTrigger.Builder clearFilename()
       Path, from the source root, to the build configuration file
       (i.e. cloudbuild.yaml).
       
      string filename = 8;
      Returns:
      This builder for chaining.
    • setFilenameBytes

      public BuildTrigger.Builder setFilenameBytes(com.google.protobuf.ByteString value)
       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:
      hasGitFileSource in interface BuildTriggerOrBuilder
      Returns:
      Whether the gitFileSource field is set.
    • getGitFileSource

      public GitFileSource getGitFileSource()
       The file source describing the local or remote Build template.
       
      .google.devtools.cloudbuild.v1.GitFileSource git_file_source = 24;
      Specified by:
      getGitFileSource in interface BuildTriggerOrBuilder
      Returns:
      The gitFileSource.
    • setGitFileSource

      public BuildTrigger.Builder setGitFileSource(GitFileSource value)
       The file source describing the local or remote Build template.
       
      .google.devtools.cloudbuild.v1.GitFileSource git_file_source = 24;
    • setGitFileSource

      public BuildTrigger.Builder setGitFileSource(GitFileSource.Builder builderForValue)
       The file source describing the local or remote Build template.
       
      .google.devtools.cloudbuild.v1.GitFileSource git_file_source = 24;
    • mergeGitFileSource

      public BuildTrigger.Builder mergeGitFileSource(GitFileSource value)
       The file source describing the local or remote Build template.
       
      .google.devtools.cloudbuild.v1.GitFileSource git_file_source = 24;
    • clearGitFileSource

      public BuildTrigger.Builder clearGitFileSource()
       The file source describing the local or remote Build template.
       
      .google.devtools.cloudbuild.v1.GitFileSource git_file_source = 24;
    • getGitFileSourceBuilder

      public GitFileSource.Builder getGitFileSourceBuilder()
       The file source describing the local or remote Build template.
       
      .google.devtools.cloudbuild.v1.GitFileSource git_file_source = 24;
    • getGitFileSourceOrBuilder

      public GitFileSourceOrBuilder getGitFileSourceOrBuilder()
       The file source describing the local or remote Build template.
       
      .google.devtools.cloudbuild.v1.GitFileSource git_file_source = 24;
      Specified by:
      getGitFileSourceOrBuilder in interface BuildTriggerOrBuilder
    • 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:
      hasCreateTime in interface BuildTriggerOrBuilder
      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:
      getCreateTime in interface BuildTriggerOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public BuildTrigger.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when the trigger was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public BuildTrigger.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time when the trigger was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public BuildTrigger.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when the trigger was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public BuildTrigger.Builder 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:
      getCreateTimeOrBuilder in interface BuildTriggerOrBuilder
    • getDisabled

      public boolean getDisabled()
       If true, the trigger will never automatically execute a build.
       
      bool disabled = 9;
      Specified by:
      getDisabled in interface BuildTriggerOrBuilder
      Returns:
      The disabled.
    • setDisabled

      public BuildTrigger.Builder setDisabled(boolean value)
       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

      public BuildTrigger.Builder 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: BuildTriggerOrBuilder
       Substitutions for Build resource. The keys must match the following
       regular expression: `^_[A-Z0-9_]+$`.
       
      map<string, string> substitutions = 11;
      Specified by:
      getSubstitutionsCount in interface BuildTriggerOrBuilder
    • containsSubstitutions

      public boolean containsSubstitutions(String key)
       Substitutions for Build resource. The keys must match the following
       regular expression: `^_[A-Z0-9_]+$`.
       
      map<string, string> substitutions = 11;
      Specified by:
      containsSubstitutions in interface BuildTriggerOrBuilder
    • getSubstitutions

      @Deprecated public Map<String,String> getSubstitutions()
      Deprecated.
      Specified by:
      getSubstitutions in interface BuildTriggerOrBuilder
    • getSubstitutionsMap

      public Map<String,String> getSubstitutionsMap()
       Substitutions for Build resource. The keys must match the following
       regular expression: `^_[A-Z0-9_]+$`.
       
      map<string, string> substitutions = 11;
      Specified by:
      getSubstitutionsMap in interface BuildTriggerOrBuilder
    • getSubstitutionsOrDefault

      public String getSubstitutionsOrDefault(String key, String defaultValue)
       Substitutions for Build resource. The keys must match the following
       regular expression: `^_[A-Z0-9_]+$`.
       
      map<string, string> substitutions = 11;
      Specified by:
      getSubstitutionsOrDefault in interface BuildTriggerOrBuilder
    • getSubstitutionsOrThrow

      public String getSubstitutionsOrThrow(String key)
       Substitutions for Build resource. The keys must match the following
       regular expression: `^_[A-Z0-9_]+$`.
       
      map<string, string> substitutions = 11;
      Specified by:
      getSubstitutionsOrThrow in interface BuildTriggerOrBuilder
    • clearSubstitutions

      public BuildTrigger.Builder clearSubstitutions()
    • removeSubstitutions

      public BuildTrigger.Builder removeSubstitutions(String key)
       Substitutions for Build resource. The keys must match the following
       regular expression: `^_[A-Z0-9_]+$`.
       
      map<string, string> substitutions = 11;
    • getMutableSubstitutions

      @Deprecated public Map<String,String> getMutableSubstitutions()
      Deprecated.
      Use alternate mutation accessors instead.
    • putSubstitutions

      public BuildTrigger.Builder putSubstitutions(String key, String value)
       Substitutions for Build resource. The keys must match the following
       regular expression: `^_[A-Z0-9_]+$`.
       
      map<string, string> substitutions = 11;
    • putAllSubstitutions

      public BuildTrigger.Builder putAllSubstitutions(Map<String,String> values)
       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:
      getIgnoredFilesList in interface BuildTriggerOrBuilder
      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:
      getIgnoredFilesCount in interface BuildTriggerOrBuilder
      Returns:
      The count of ignoredFiles.
    • getIgnoredFiles

      public String getIgnoredFiles(int index)
       ignored_files and included_files are file glob matches using
       https://golang.org/pkg/path/filepath/#Match extended with support for "**".
      
       If ignored_files and changed files are both empty, then they are
       not used to determine whether or not to trigger a build.
      
       If ignored_files is not empty, then we ignore any files that match
       any of the ignored_file globs. If the change has no files that are
       outside of the ignored_files globs, then we do not trigger a build.
       
      repeated string ignored_files = 15;
      Specified by:
      getIgnoredFiles in interface BuildTriggerOrBuilder
      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:
      getIgnoredFilesBytes in interface BuildTriggerOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the ignoredFiles at the given index.
    • setIgnoredFiles

      public BuildTrigger.Builder 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 "**".
      
       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

      public BuildTrigger.Builder addIgnoredFiles(String value)
       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

      public BuildTrigger.Builder addAllIgnoredFiles(Iterable<String> values)
       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

      public BuildTrigger.Builder 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

      public BuildTrigger.Builder 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 "**".
      
       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:
      getIncludedFilesList in interface BuildTriggerOrBuilder
      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:
      getIncludedFilesCount in interface BuildTriggerOrBuilder
      Returns:
      The count of includedFiles.
    • getIncludedFiles

      public String getIncludedFiles(int index)
       If any of the files altered in the commit pass the ignored_files
       filter and included_files is empty, then as far as this filter is
       concerned, we should trigger the build.
      
       If any of the files altered in the commit pass the ignored_files
       filter and included_files is not empty, then we make sure that at
       least one of those files matches a included_files glob. If not,
       then we do not trigger a build.
       
      repeated string included_files = 16;
      Specified by:
      getIncludedFiles in interface BuildTriggerOrBuilder
      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:
      getIncludedFilesBytes in interface BuildTriggerOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the includedFiles at the given index.
    • setIncludedFiles

      public BuildTrigger.Builder 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.
      
       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

      public BuildTrigger.Builder 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.
      
       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

      public BuildTrigger.Builder 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.
      
       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

      public BuildTrigger.Builder 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

      public BuildTrigger.Builder 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.
      
       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

      public String getFilter()
       Optional. A Common Expression Language string.
       
      string filter = 30 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilter in interface BuildTriggerOrBuilder
      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:
      getFilterBytes in interface BuildTriggerOrBuilder
      Returns:
      The bytes for filter.
    • setFilter

      public BuildTrigger.Builder setFilter(String value)
       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

      public BuildTrigger.Builder clearFilter()
       Optional. A Common Expression Language string.
       
      string filter = 30 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setFilterBytes

      public BuildTrigger.Builder setFilterBytes(com.google.protobuf.ByteString value)
       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:
      hasSourceToBuild in interface BuildTriggerOrBuilder
      Returns:
      Whether the sourceToBuild field is set.
    • getSourceToBuild

      public GitRepoSource getSourceToBuild()
       The repo and ref of the repository from which to build. This field
       is used only for those triggers that do not respond to SCM events.
       Triggers that respond to such events build source at whatever commit
       caused the event.
       This field is currently only used by Webhook, Pub/Sub, Manual, and Cron
       triggers.
       
      .google.devtools.cloudbuild.v1.GitRepoSource source_to_build = 26;
      Specified by:
      getSourceToBuild in interface BuildTriggerOrBuilder
      Returns:
      The sourceToBuild.
    • setSourceToBuild

      public BuildTrigger.Builder setSourceToBuild(GitRepoSource value)
       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

      public BuildTrigger.Builder setSourceToBuild(GitRepoSource.Builder builderForValue)
       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

      public BuildTrigger.Builder mergeSourceToBuild(GitRepoSource value)
       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

      public BuildTrigger.Builder 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

      public GitRepoSource.Builder 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

      public GitRepoSourceOrBuilder getSourceToBuildOrBuilder()
       The repo and ref of the repository from which to build. This field
       is used only for those triggers that do not respond to SCM events.
       Triggers that respond to such events build source at whatever commit
       caused the event.
       This field is currently only used by Webhook, Pub/Sub, Manual, and Cron
       triggers.
       
      .google.devtools.cloudbuild.v1.GitRepoSource source_to_build = 26;
      Specified by:
      getSourceToBuildOrBuilder in interface BuildTriggerOrBuilder
    • getServiceAccount

      public String getServiceAccount()
       The service account used for all user-controlled operations including
       UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild.
       If no service account is set 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:
      getServiceAccount in interface BuildTriggerOrBuilder
      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:
      getServiceAccountBytes in interface BuildTriggerOrBuilder
      Returns:
      The bytes for serviceAccount.
    • setServiceAccount

      public BuildTrigger.Builder setServiceAccount(String value)
       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

      public BuildTrigger.Builder 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

      public BuildTrigger.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
       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:
      hasRepositoryEventConfig in interface BuildTriggerOrBuilder
      Returns:
      Whether the repositoryEventConfig field is set.
    • getRepositoryEventConfig

      public RepositoryEventConfig getRepositoryEventConfig()
       The configuration of a trigger that creates a build whenever an event from
       Repo API is received.
       
      .google.devtools.cloudbuild.v1.RepositoryEventConfig repository_event_config = 39;
      Specified by:
      getRepositoryEventConfig in interface BuildTriggerOrBuilder
      Returns:
      The repositoryEventConfig.
    • setRepositoryEventConfig

      public BuildTrigger.Builder setRepositoryEventConfig(RepositoryEventConfig value)
       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

      public BuildTrigger.Builder setRepositoryEventConfig(RepositoryEventConfig.Builder builderForValue)
       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

      public BuildTrigger.Builder mergeRepositoryEventConfig(RepositoryEventConfig value)
       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

      public BuildTrigger.Builder 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

      public RepositoryEventConfig.Builder 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

      public RepositoryEventConfigOrBuilder getRepositoryEventConfigOrBuilder()
       The configuration of a trigger that creates a build whenever an event from
       Repo API is received.
       
      .google.devtools.cloudbuild.v1.RepositoryEventConfig repository_event_config = 39;
      Specified by:
      getRepositoryEventConfigOrBuilder in interface BuildTriggerOrBuilder