Package com.google.cloudbuild.v1
Class PullRequestFilter.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PullRequestFilter.Builder>
com.google.cloudbuild.v1.PullRequestFilter.Builder
- All Implemented Interfaces:
PullRequestFilterOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PullRequestFilter
public static final class PullRequestFilter.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PullRequestFilter.Builder>
implements PullRequestFilterOrBuilder
PullRequestFilter contains filter properties for matching GitHub Pull Requests.Protobuf type
google.devtools.cloudbuild.v1.PullRequestFilter-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()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.If true, branches that do NOT match the git_ref will trigger a build.Regex of branches to match.com.google.protobuf.ByteStringRegex 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.intIf 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.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIf true, branches that do NOT match the git_ref will trigger a build.booleanRegex of branches to match.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PullRequestFilter other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Regex of branches to match.setBranchBytes(com.google.protobuf.ByteString value) 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.setCommentControlValue(int value) 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.setInvertRegex(boolean value) If true, branches that do NOT match the git_ref will trigger a 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<PullRequestFilter.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<PullRequestFilter.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<PullRequestFilter.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<PullRequestFilter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PullRequestFilter.Builder>
-
mergeFrom
public PullRequestFilter.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<PullRequestFilter.Builder>- Throws:
IOException
-
getGitRefCase
- Specified by:
getGitRefCasein interfacePullRequestFilterOrBuilder
-
clearGitRef
-
hasBranch
public 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;- Specified by:
hasBranchin interfacePullRequestFilterOrBuilder- Returns:
- Whether the branch field is set.
-
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;- Specified by:
getBranchin interfacePullRequestFilterOrBuilder- Returns:
- The branch.
-
getBranchBytes
public 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;- Specified by:
getBranchBytesin interfacePullRequestFilterOrBuilder- Returns:
- The bytes for branch.
-
setBranch
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;- Parameters:
value- The branch to set.- Returns:
- This builder for chaining.
-
clearBranch
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:
- This builder for chaining.
-
setBranchBytes
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;- Parameters:
value- The bytes for branch to set.- Returns:
- This builder for chaining.
-
getCommentControlValue
public 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;- Specified by:
getCommentControlValuein interfacePullRequestFilterOrBuilder- Returns:
- The enum numeric value on the wire for commentControl.
-
setCommentControlValue
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;- Parameters:
value- The enum numeric value on the wire for commentControl to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getCommentControlin interfacePullRequestFilterOrBuilder- Returns:
- The commentControl.
-
setCommentControl
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;- Parameters:
value- The commentControl to set.- Returns:
- This builder for chaining.
-
clearCommentControl
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:
- This builder for chaining.
-
getInvertRegex
public boolean getInvertRegex()If true, branches that do NOT match the git_ref will trigger a build.
bool invert_regex = 6;- Specified by:
getInvertRegexin interfacePullRequestFilterOrBuilder- Returns:
- The invertRegex.
-
setInvertRegex
If true, branches that do NOT match the git_ref will trigger a build.
bool invert_regex = 6;- Parameters:
value- The invertRegex to set.- Returns:
- This builder for chaining.
-
clearInvertRegex
If true, branches that do NOT match the git_ref will trigger a build.
bool invert_regex = 6;- Returns:
- This builder for chaining.
-