Interface PullRequestFilterOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
PullRequestFilter, PullRequestFilter.Builder

@Generated public interface PullRequestFilterOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Regex of branches to match.
    com.google.protobuf.ByteString
    Regex of branches to match.
    If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description.
    int
    If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description.
     
    boolean
    If true, branches that do NOT match the git_ref will trigger a build.
    boolean
    Regex of branches to match.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasBranch

      boolean hasBranch()
       Regex of branches to match.
      
       The syntax of the regular expressions accepted is the syntax accepted by
       RE2 and described at https://github.com/google/re2/wiki/Syntax
       
      string branch = 2;
      Returns:
      Whether the branch field is set.
    • getBranch

      String getBranch()
       Regex of branches to match.
      
       The syntax of the regular expressions accepted is the syntax accepted by
       RE2 and described at https://github.com/google/re2/wiki/Syntax
       
      string branch = 2;
      Returns:
      The branch.
    • getBranchBytes

      com.google.protobuf.ByteString getBranchBytes()
       Regex of branches to match.
      
       The syntax of the regular expressions accepted is the syntax accepted by
       RE2 and described at https://github.com/google/re2/wiki/Syntax
       
      string branch = 2;
      Returns:
      The bytes for branch.
    • getCommentControlValue

      int getCommentControlValue()
       If CommentControl is enabled, depending on the setting, builds may not
       fire until a repository writer comments `/gcbrun` on a pull
       request or `/gcbrun` is in the pull request description.
       Only PR comments that contain `/gcbrun` will trigger builds.
      
       If CommentControl is set to disabled, comments with `/gcbrun` from a user
       with repository write permission or above will
       still trigger builds to run.
       
      .google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl comment_control = 5;
      Returns:
      The enum numeric value on the wire for commentControl.
    • getCommentControl

       If CommentControl is enabled, depending on the setting, builds may not
       fire until a repository writer comments `/gcbrun` on a pull
       request or `/gcbrun` is in the pull request description.
       Only PR comments that contain `/gcbrun` will trigger builds.
      
       If CommentControl is set to disabled, comments with `/gcbrun` from a user
       with repository write permission or above will
       still trigger builds to run.
       
      .google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl comment_control = 5;
      Returns:
      The commentControl.
    • getInvertRegex

      boolean getInvertRegex()
       If true, branches that do NOT match the git_ref will trigger a build.
       
      bool invert_regex = 6;
      Returns:
      The invertRegex.
    • getGitRefCase