Package com.google.cloud.functions.v2
Class RepoSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RepoSource.Builder>
com.google.cloud.functions.v2.RepoSource.Builder
- All Implemented Interfaces:
RepoSourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RepoSource
public static final class RepoSource.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RepoSource.Builder>
implements RepoSourceOrBuilder
Location of the source in a Google Cloud Source Repository.Protobuf type
google.cloud.functions.v2.RepoSource-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Regex matching branches to build.Explicit commit SHA to build.clearDir()Directory, relative to the source root, in which to run the build.Only trigger a build if the revision regex does NOT match the revision regex.ID of the project that owns the Cloud Source Repository.Name of the Cloud Source Repository.Regex matching tags to build.Regex matching branches to build.com.google.protobuf.ByteStringRegex matching branches to build.Explicit commit SHA to build.com.google.protobuf.ByteStringExplicit commit SHA to build.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDir()Directory, relative to the source root, in which to run the build.com.google.protobuf.ByteStringDirectory, relative to the source root, in which to run the build.booleanOnly trigger a build if the revision regex does NOT match the revision regex.ID of the project that owns the Cloud Source Repository.com.google.protobuf.ByteStringID of the project that owns the Cloud Source Repository.Name of the Cloud Source Repository.com.google.protobuf.ByteStringName of the Cloud Source Repository.Regex matching tags to build.com.google.protobuf.ByteStringRegex matching tags to build.booleanRegex matching branches to build.booleanExplicit commit SHA to build.booleanRegex matching tags to build.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(RepoSource other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setBranchName(String value) Regex matching branches to build.setBranchNameBytes(com.google.protobuf.ByteString value) Regex matching branches to build.setCommitSha(String value) Explicit commit SHA to build.setCommitShaBytes(com.google.protobuf.ByteString value) Explicit commit SHA to build.Directory, relative to the source root, in which to run the build.setDirBytes(com.google.protobuf.ByteString value) Directory, relative to the source root, in which to run the build.setInvertRegex(boolean value) Only trigger a build if the revision regex does NOT match the revision regex.setProjectId(String value) ID of the project that owns the Cloud Source Repository.setProjectIdBytes(com.google.protobuf.ByteString value) ID of the project that owns the Cloud Source Repository.setRepoName(String value) Name of the Cloud Source Repository.setRepoNameBytes(com.google.protobuf.ByteString value) Name of the Cloud Source Repository.setTagName(String value) Regex matching tags to build.setTagNameBytes(com.google.protobuf.ByteString value) Regex 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<RepoSource.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<RepoSource.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<RepoSource.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<RepoSource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RepoSource.Builder>
-
mergeFrom
public RepoSource.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<RepoSource.Builder>- Throws:
IOException
-
getRevisionCase
- Specified by:
getRevisionCasein interfaceRepoSourceOrBuilder
-
clearRevision
-
hasBranchName
public boolean hasBranchName()Regex 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_name = 3;- Specified by:
hasBranchNamein interfaceRepoSourceOrBuilder- Returns:
- Whether the branchName field is set.
-
getBranchName
Regex 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_name = 3;- Specified by:
getBranchNamein interfaceRepoSourceOrBuilder- Returns:
- The branchName.
-
getBranchNameBytes
public com.google.protobuf.ByteString getBranchNameBytes()Regex 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_name = 3;- Specified by:
getBranchNameBytesin interfaceRepoSourceOrBuilder- Returns:
- The bytes for branchName.
-
setBranchName
Regex 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_name = 3;- Parameters:
value- The branchName to set.- Returns:
- This builder for chaining.
-
clearBranchName
Regex 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_name = 3;- Returns:
- This builder for chaining.
-
setBranchNameBytes
Regex 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_name = 3;- Parameters:
value- The bytes for branchName to set.- Returns:
- This builder for chaining.
-
hasTagName
public boolean hasTagName()Regex 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_name = 4;- Specified by:
hasTagNamein interfaceRepoSourceOrBuilder- Returns:
- Whether the tagName field is set.
-
getTagName
Regex 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_name = 4;- Specified by:
getTagNamein interfaceRepoSourceOrBuilder- Returns:
- The tagName.
-
getTagNameBytes
public com.google.protobuf.ByteString getTagNameBytes()Regex 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_name = 4;- Specified by:
getTagNameBytesin interfaceRepoSourceOrBuilder- Returns:
- The bytes for tagName.
-
setTagName
Regex 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_name = 4;- Parameters:
value- The tagName to set.- Returns:
- This builder for chaining.
-
clearTagName
Regex 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_name = 4;- Returns:
- This builder for chaining.
-
setTagNameBytes
Regex 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_name = 4;- Parameters:
value- The bytes for tagName to set.- Returns:
- This builder for chaining.
-
hasCommitSha
public boolean hasCommitSha()Explicit commit SHA to build.
string commit_sha = 5;- Specified by:
hasCommitShain interfaceRepoSourceOrBuilder- Returns:
- Whether the commitSha field is set.
-
getCommitSha
Explicit commit SHA to build.
string commit_sha = 5;- Specified by:
getCommitShain interfaceRepoSourceOrBuilder- Returns:
- The commitSha.
-
getCommitShaBytes
public com.google.protobuf.ByteString getCommitShaBytes()Explicit commit SHA to build.
string commit_sha = 5;- Specified by:
getCommitShaBytesin interfaceRepoSourceOrBuilder- Returns:
- The bytes for commitSha.
-
setCommitSha
Explicit commit SHA to build.
string commit_sha = 5;- Parameters:
value- The commitSha to set.- Returns:
- This builder for chaining.
-
clearCommitSha
Explicit commit SHA to build.
string commit_sha = 5;- Returns:
- This builder for chaining.
-
setCommitShaBytes
Explicit commit SHA to build.
string commit_sha = 5;- Parameters:
value- The bytes for commitSha to set.- Returns:
- This builder for chaining.
-
getProjectId
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
string project_id = 1;- Specified by:
getProjectIdin interfaceRepoSourceOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
string project_id = 1;- Specified by:
getProjectIdBytesin interfaceRepoSourceOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
string project_id = 1;- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
string project_id = 1;- Returns:
- This builder for chaining.
-
setProjectIdBytes
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
string project_id = 1;- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
getRepoName
Name of the Cloud Source Repository.
string repo_name = 2;- Specified by:
getRepoNamein interfaceRepoSourceOrBuilder- Returns:
- The repoName.
-
getRepoNameBytes
public com.google.protobuf.ByteString getRepoNameBytes()Name of the Cloud Source Repository.
string repo_name = 2;- Specified by:
getRepoNameBytesin interfaceRepoSourceOrBuilder- Returns:
- The bytes for repoName.
-
setRepoName
Name of the Cloud Source Repository.
string repo_name = 2;- Parameters:
value- The repoName to set.- Returns:
- This builder for chaining.
-
clearRepoName
Name of the Cloud Source Repository.
string repo_name = 2;- Returns:
- This builder for chaining.
-
setRepoNameBytes
Name of the Cloud Source Repository.
string repo_name = 2;- Parameters:
value- The bytes for repoName to set.- Returns:
- This builder for chaining.
-
getDir
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's `dir` is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)
string dir = 6;- Specified by:
getDirin interfaceRepoSourceOrBuilder- Returns:
- The dir.
-
getDirBytes
public com.google.protobuf.ByteString getDirBytes()Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's `dir` is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)
string dir = 6;- Specified by:
getDirBytesin interfaceRepoSourceOrBuilder- Returns:
- The bytes for dir.
-
setDir
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's `dir` is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)
string dir = 6;- Parameters:
value- The dir to set.- Returns:
- This builder for chaining.
-
clearDir
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's `dir` is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)
string dir = 6;- Returns:
- This builder for chaining.
-
setDirBytes
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's `dir` is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)
string dir = 6;- Parameters:
value- The bytes for dir to set.- Returns:
- This builder for chaining.
-
getInvertRegex
public boolean getInvertRegex()Only trigger a build if the revision regex does NOT match the revision regex.
bool invert_regex = 7;- Specified by:
getInvertRegexin interfaceRepoSourceOrBuilder- Returns:
- The invertRegex.
-
setInvertRegex
Only trigger a build if the revision regex does NOT match the revision regex.
bool invert_regex = 7;- Parameters:
value- The invertRegex to set.- Returns:
- This builder for chaining.
-
clearInvertRegex
Only trigger a build if the revision regex does NOT match the revision regex.
bool invert_regex = 7;- Returns:
- This builder for chaining.
-