Class BuildTrigger

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloudbuild.v1.BuildTrigger
All Implemented Interfaces:
BuildTriggerOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class BuildTrigger extends com.google.protobuf.GeneratedMessage implements BuildTriggerOrBuilder
 Configuration for an automated build in response to source repository
 changes.
 
Protobuf type google.devtools.cloudbuild.v1.BuildTrigger
See Also:
  • Field Details

    • RESOURCE_NAME_FIELD_NUMBER

      public static final int RESOURCE_NAME_FIELD_NUMBER
      See Also:
    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • TAGS_FIELD_NUMBER

      public static final int TAGS_FIELD_NUMBER
      See Also:
    • TRIGGER_TEMPLATE_FIELD_NUMBER

      public static final int TRIGGER_TEMPLATE_FIELD_NUMBER
      See Also:
    • GITHUB_FIELD_NUMBER

      public static final int GITHUB_FIELD_NUMBER
      See Also:
    • PUBSUB_CONFIG_FIELD_NUMBER

      public static final int PUBSUB_CONFIG_FIELD_NUMBER
      See Also:
    • WEBHOOK_CONFIG_FIELD_NUMBER

      public static final int WEBHOOK_CONFIG_FIELD_NUMBER
      See Also:
    • AUTODETECT_FIELD_NUMBER

      public static final int AUTODETECT_FIELD_NUMBER
      See Also:
    • BUILD_FIELD_NUMBER

      public static final int BUILD_FIELD_NUMBER
      See Also:
    • FILENAME_FIELD_NUMBER

      public static final int FILENAME_FIELD_NUMBER
      See Also:
    • GIT_FILE_SOURCE_FIELD_NUMBER

      public static final int GIT_FILE_SOURCE_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • DISABLED_FIELD_NUMBER

      public static final int DISABLED_FIELD_NUMBER
      See Also:
    • SUBSTITUTIONS_FIELD_NUMBER

      public static final int SUBSTITUTIONS_FIELD_NUMBER
      See Also:
    • IGNORED_FILES_FIELD_NUMBER

      public static final int IGNORED_FILES_FIELD_NUMBER
      See Also:
    • INCLUDED_FILES_FIELD_NUMBER

      public static final int INCLUDED_FILES_FIELD_NUMBER
      See Also:
    • FILTER_FIELD_NUMBER

      public static final int FILTER_FIELD_NUMBER
      See Also:
    • SOURCE_TO_BUILD_FIELD_NUMBER

      public static final int SOURCE_TO_BUILD_FIELD_NUMBER
      See Also:
    • SERVICE_ACCOUNT_FIELD_NUMBER

      public static final int SERVICE_ACCOUNT_FIELD_NUMBER
      See Also:
    • REPOSITORY_EVENT_CONFIG_FIELD_NUMBER

      public static final int REPOSITORY_EVENT_CONFIG_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getBuildTemplateCase

      public BuildTrigger.BuildTemplateCase getBuildTemplateCase()
      Specified by:
      getBuildTemplateCase in interface BuildTriggerOrBuilder
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static BuildTrigger parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BuildTrigger parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BuildTrigger parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BuildTrigger parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BuildTrigger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BuildTrigger parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BuildTrigger parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BuildTrigger parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BuildTrigger parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BuildTrigger parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BuildTrigger parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BuildTrigger parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static BuildTrigger.Builder newBuilder()
    • newBuilder

      public static BuildTrigger.Builder newBuilder(BuildTrigger prototype)
    • toBuilder

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

      protected BuildTrigger.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static BuildTrigger getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<BuildTrigger> parser()
    • getParserForType

      public com.google.protobuf.Parser<BuildTrigger> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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