Class PushFilter.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PushFilter.Builder>
com.google.cloudbuild.v1.PushFilter.Builder
All Implemented Interfaces:
PushFilterOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PushFilter

public static final class PushFilter.Builder extends com.google.protobuf.GeneratedMessage.Builder<PushFilter.Builder> implements PushFilterOrBuilder
 Push contains filter properties for matching GitHub git pushes.
 
Protobuf type google.devtools.cloudbuild.v1.PushFilter
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Regexes matching branches to build.
     
    When true, only trigger a build if the revision regex does NOT match the git_ref regex.
    Regexes matching tags to build.
    Regexes matching branches to build.
    com.google.protobuf.ByteString
    Regexes matching branches to build.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
     
    boolean
    When true, only trigger a build if the revision regex does NOT match the git_ref regex.
    Regexes matching tags to build.
    com.google.protobuf.ByteString
    Regexes matching tags to build.
    boolean
    Regexes matching branches to build.
    boolean
    Regexes matching tags to build.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    Regexes matching branches to build.
    setBranchBytes(com.google.protobuf.ByteString value)
    Regexes matching branches to build.
    setInvertRegex(boolean value)
    When true, only trigger a build if the revision regex does NOT match the git_ref regex.
    setTag(String value)
    Regexes matching tags to build.
    setTagBytes(com.google.protobuf.ByteString value)
    Regexes matching tags to build.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

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

    • getDescriptor

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

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

      public PushFilter.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<PushFilter.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<PushFilter.Builder>
    • getDefaultInstanceForType

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

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

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

      public PushFilter.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<PushFilter.Builder>
    • mergeFrom

      public PushFilter.Builder mergeFrom(PushFilter other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PushFilter.Builder>
    • mergeFrom

      public PushFilter.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<PushFilter.Builder>
      Throws:
      IOException
    • getGitRefCase

      public PushFilter.GitRefCase getGitRefCase()
      Specified by:
      getGitRefCase in interface PushFilterOrBuilder
    • clearGitRef

      public PushFilter.Builder clearGitRef()
    • hasBranch

      public boolean hasBranch()
       Regexes matching branches to build.
      
       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;
      Specified by:
      hasBranch in interface PushFilterOrBuilder
      Returns:
      Whether the branch field is set.
    • getBranch

      public String getBranch()
       Regexes matching branches to build.
      
       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;
      Specified by:
      getBranch in interface PushFilterOrBuilder
      Returns:
      The branch.
    • getBranchBytes

      public com.google.protobuf.ByteString getBranchBytes()
       Regexes matching branches to build.
      
       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;
      Specified by:
      getBranchBytes in interface PushFilterOrBuilder
      Returns:
      The bytes for branch.
    • setBranch

      public PushFilter.Builder setBranch(String value)
       Regexes matching branches to build.
      
       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;
      Parameters:
      value - The branch to set.
      Returns:
      This builder for chaining.
    • clearBranch

      public PushFilter.Builder clearBranch()
       Regexes matching branches to build.
      
       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:
      This builder for chaining.
    • setBranchBytes

      public PushFilter.Builder setBranchBytes(com.google.protobuf.ByteString value)
       Regexes matching branches to build.
      
       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;
      Parameters:
      value - The bytes for branch to set.
      Returns:
      This builder for chaining.
    • hasTag

      public boolean hasTag()
       Regexes matching tags to build.
      
       The syntax of the regular expressions accepted is the syntax accepted by
       RE2 and described at https://github.com/google/re2/wiki/Syntax
       
      string tag = 3;
      Specified by:
      hasTag in interface PushFilterOrBuilder
      Returns:
      Whether the tag field is set.
    • getTag

      public String getTag()
       Regexes matching tags to build.
      
       The syntax of the regular expressions accepted is the syntax accepted by
       RE2 and described at https://github.com/google/re2/wiki/Syntax
       
      string tag = 3;
      Specified by:
      getTag in interface PushFilterOrBuilder
      Returns:
      The tag.
    • getTagBytes

      public com.google.protobuf.ByteString getTagBytes()
       Regexes matching tags to build.
      
       The syntax of the regular expressions accepted is the syntax accepted by
       RE2 and described at https://github.com/google/re2/wiki/Syntax
       
      string tag = 3;
      Specified by:
      getTagBytes in interface PushFilterOrBuilder
      Returns:
      The bytes for tag.
    • setTag

      public PushFilter.Builder setTag(String value)
       Regexes matching tags to build.
      
       The syntax of the regular expressions accepted is the syntax accepted by
       RE2 and described at https://github.com/google/re2/wiki/Syntax
       
      string tag = 3;
      Parameters:
      value - The tag to set.
      Returns:
      This builder for chaining.
    • clearTag

      public PushFilter.Builder clearTag()
       Regexes matching tags to build.
      
       The syntax of the regular expressions accepted is the syntax accepted by
       RE2 and described at https://github.com/google/re2/wiki/Syntax
       
      string tag = 3;
      Returns:
      This builder for chaining.
    • setTagBytes

      public PushFilter.Builder setTagBytes(com.google.protobuf.ByteString value)
       Regexes matching tags to build.
      
       The syntax of the regular expressions accepted is the syntax accepted by
       RE2 and described at https://github.com/google/re2/wiki/Syntax
       
      string tag = 3;
      Parameters:
      value - The bytes for tag to set.
      Returns:
      This builder for chaining.
    • getInvertRegex

      public boolean getInvertRegex()
       When true, only trigger a build if the revision regex does NOT match the
       git_ref regex.
       
      bool invert_regex = 4;
      Specified by:
      getInvertRegex in interface PushFilterOrBuilder
      Returns:
      The invertRegex.
    • setInvertRegex

      public PushFilter.Builder setInvertRegex(boolean value)
       When true, only trigger a build if the revision regex does NOT match the
       git_ref regex.
       
      bool invert_regex = 4;
      Parameters:
      value - The invertRegex to set.
      Returns:
      This builder for chaining.
    • clearInvertRegex

      public PushFilter.Builder clearInvertRegex()
       When true, only trigger a build if the revision regex does NOT match the
       git_ref regex.
       
      bool invert_regex = 4;
      Returns:
      This builder for chaining.