Enum PullRequestFilter.CommentControl

java.lang.Object
java.lang.Enum<PullRequestFilter.CommentControl>
com.google.cloudbuild.v1.PullRequestFilter.CommentControl
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<PullRequestFilter.CommentControl>
Enclosing class:
PullRequestFilter

public static enum PullRequestFilter.CommentControl extends Enum<PullRequestFilter.CommentControl> implements com.google.protobuf.ProtocolMessageEnum
 Controls whether or not a `/gcbrun` comment is required from a user with
 repository write permission or above in order to
 trigger Build runs for pull requests. Pull Request update events differ
 between repo types.
 Check repo specific guides
 ([GitHub](https://cloud.google.com/build/docs/automating-builds/github/build-repos-from-github-enterprise#creating_a_github_enterprise_trigger),
 [Bitbucket](https://cloud.google.com/build/docs/automating-builds/bitbucket/build-repos-from-bitbucket-server#creating_a_bitbucket_server_trigger),
 [GitLab](https://cloud.google.com/build/docs/automating-builds/gitlab/build-repos-from-gitlab#creating_a_gitlab_trigger)
 for details.
 
Protobuf enum google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl
  • Enum Constant Details

    • COMMENTS_DISABLED

      public static final PullRequestFilter.CommentControl COMMENTS_DISABLED
       Do not require `/gcbrun` comments from a user with repository write
       permission or above on pull requests before builds are triggered.
       Comments that contain `/gcbrun` will still fire builds so this should
       be thought of as comments not required.
       
      COMMENTS_DISABLED = 0;
    • COMMENTS_ENABLED

      public static final PullRequestFilter.CommentControl COMMENTS_ENABLED
       Builds will only fire in response to pull requests if:
       1. The pull request author has repository write permission or above and
       `/gcbrun` is in the PR description.
       2. A user with repository writer permissions or above comments `/gcbrun`
       on a pull request authored by any user.
       
      COMMENTS_ENABLED = 1;
    • COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY

      public static final PullRequestFilter.CommentControl COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY
       Builds will only fire in response to pull requests if:
       1. The pull request author is a repository writer or above.
       2. If the author does not have write permissions, a user with write
       permissions or above must comment `/gcbrun` in order to fire a build.
       
      COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY = 2;
    • UNRECOGNIZED

      public static final PullRequestFilter.CommentControl UNRECOGNIZED
  • Field Details

    • COMMENTS_DISABLED_VALUE

      public static final int COMMENTS_DISABLED_VALUE
       Do not require `/gcbrun` comments from a user with repository write
       permission or above on pull requests before builds are triggered.
       Comments that contain `/gcbrun` will still fire builds so this should
       be thought of as comments not required.
       
      COMMENTS_DISABLED = 0;
      See Also:
    • COMMENTS_ENABLED_VALUE

      public static final int COMMENTS_ENABLED_VALUE
       Builds will only fire in response to pull requests if:
       1. The pull request author has repository write permission or above and
       `/gcbrun` is in the PR description.
       2. A user with repository writer permissions or above comments `/gcbrun`
       on a pull request authored by any user.
       
      COMMENTS_ENABLED = 1;
      See Also:
    • COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY_VALUE

      public static final int COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY_VALUE
       Builds will only fire in response to pull requests if:
       1. The pull request author is a repository writer or above.
       2. If the author does not have write permissions, a user with write
       permissions or above must comment `/gcbrun` in order to fire a build.
       
      COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY = 2;
      See Also:
  • Method Details

    • values

      public static PullRequestFilter.CommentControl[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PullRequestFilter.CommentControl valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static PullRequestFilter.CommentControl valueOf(int value)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static PullRequestFilter.CommentControl forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<PullRequestFilter.CommentControl> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static PullRequestFilter.CommentControl valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null