Package com.google.cloudbuild.v1
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 TypeMethodDescriptionbuild()clear()Regexes matching branches to build.When true, only trigger a build if the revision regex does NOT match the git_ref regex.clearTag()Regexes matching tags to build.Regexes matching branches to build.com.google.protobuf.ByteStringRegexes matching branches to build.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhen true, only trigger a build if the revision regex does NOT match the git_ref regex.getTag()Regexes matching tags to build.com.google.protobuf.ByteStringRegexes matching tags to build.booleanRegexes matching branches to build.booleanhasTag()Regexes matching tags to build.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PushFilter other) 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.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PushFilter.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PushFilter.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PushFilter.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PushFilter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PushFilter.Builder>- Throws:
IOException
-
getGitRefCase
- Specified by:
getGitRefCasein interfacePushFilterOrBuilder
-
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:
hasBranchin interfacePushFilterOrBuilder- Returns:
- Whether the branch field is set.
-
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:
getBranchin interfacePushFilterOrBuilder- 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:
getBranchBytesin interfacePushFilterOrBuilder- Returns:
- The bytes for branch.
-
setBranch
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
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
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:
hasTagin interfacePushFilterOrBuilder- Returns:
- Whether the tag field is set.
-
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:
getTagin interfacePushFilterOrBuilder- 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:
getTagBytesin interfacePushFilterOrBuilder- Returns:
- The bytes for tag.
-
setTag
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
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
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:
getInvertRegexin interfacePushFilterOrBuilder- Returns:
- The invertRegex.
-
setInvertRegex
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
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.
-