Class RepoSource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
- com.google.cloud.functions.v2beta.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.GeneratedMessageV3.Builder<RepoSource.Builder> implements RepoSourceOrBuilder
Location of the source in a Google Cloud Source Repository.
Protobuf typegoogle.cloud.functions.v2beta.RepoSource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RepoSource.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RepoSourcebuild()RepoSourcebuildPartial()RepoSource.Builderclear()RepoSource.BuilderclearBranchName()Regex matching branches to build.RepoSource.BuilderclearCommitSha()Explicit commit SHA to build.RepoSource.BuilderclearDir()Directory, relative to the source root, in which to run the build.RepoSource.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RepoSource.BuilderclearInvertRegex()Only trigger a build if the revision regex does NOT match the revision regex.RepoSource.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RepoSource.BuilderclearProjectId()ID of the project that owns the Cloud Source Repository.RepoSource.BuilderclearRepoName()Name of the Cloud Source Repository.RepoSource.BuilderclearRevision()RepoSource.BuilderclearTagName()Regex matching tags to build.RepoSource.Builderclone()StringgetBranchName()Regex matching branches to build.com.google.protobuf.ByteStringgetBranchNameBytes()Regex matching branches to build.StringgetCommitSha()Explicit commit SHA to build.com.google.protobuf.ByteStringgetCommitShaBytes()Explicit commit SHA to build.RepoSourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDir()Directory, relative to the source root, in which to run the build.com.google.protobuf.ByteStringgetDirBytes()Directory, relative to the source root, in which to run the build.booleangetInvertRegex()Only trigger a build if the revision regex does NOT match the revision regex.StringgetProjectId()ID of the project that owns the Cloud Source Repository.com.google.protobuf.ByteStringgetProjectIdBytes()ID of the project that owns the Cloud Source Repository.StringgetRepoName()Name of the Cloud Source Repository.com.google.protobuf.ByteStringgetRepoNameBytes()Name of the Cloud Source Repository.RepoSource.RevisionCasegetRevisionCase()StringgetTagName()Regex matching tags to build.com.google.protobuf.ByteStringgetTagNameBytes()Regex matching tags to build.booleanhasBranchName()Regex matching branches to build.booleanhasCommitSha()Explicit commit SHA to build.booleanhasTagName()Regex matching tags to build.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RepoSource.BuildermergeFrom(RepoSource other)RepoSource.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RepoSource.BuildermergeFrom(com.google.protobuf.Message other)RepoSource.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RepoSource.BuildersetBranchName(String value)Regex matching branches to build.RepoSource.BuildersetBranchNameBytes(com.google.protobuf.ByteString value)Regex matching branches to build.RepoSource.BuildersetCommitSha(String value)Explicit commit SHA to build.RepoSource.BuildersetCommitShaBytes(com.google.protobuf.ByteString value)Explicit commit SHA to build.RepoSource.BuildersetDir(String value)Directory, relative to the source root, in which to run the build.RepoSource.BuildersetDirBytes(com.google.protobuf.ByteString value)Directory, relative to the source root, in which to run the build.RepoSource.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RepoSource.BuildersetInvertRegex(boolean value)Only trigger a build if the revision regex does NOT match the revision regex.RepoSource.BuildersetProjectId(String value)ID of the project that owns the Cloud Source Repository.RepoSource.BuildersetProjectIdBytes(com.google.protobuf.ByteString value)ID of the project that owns the Cloud Source Repository.RepoSource.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RepoSource.BuildersetRepoName(String value)Name of the Cloud Source Repository.RepoSource.BuildersetRepoNameBytes(com.google.protobuf.ByteString value)Name of the Cloud Source Repository.RepoSource.BuildersetTagName(String value)Regex matching tags to build.RepoSource.BuildersetTagNameBytes(com.google.protobuf.ByteString value)Regex matching tags to build.RepoSource.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
clear
public RepoSource.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<RepoSource.Builder>
-
getDefaultInstanceForType
public RepoSource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RepoSource build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RepoSource buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RepoSource.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
setField
public RepoSource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
clearField
public RepoSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
clearOneof
public RepoSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
setRepeatedField
public RepoSource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
addRepeatedField
public RepoSource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
mergeFrom
public RepoSource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RepoSource.Builder>
-
mergeFrom
public RepoSource.Builder mergeFrom(RepoSource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public RepoSource.RevisionCase getRevisionCase()
- Specified by:
getRevisionCasein interfaceRepoSourceOrBuilder
-
clearRevision
public RepoSource.Builder 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
public String 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
public RepoSource.Builder setBranchName(String value)
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
public RepoSource.Builder 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
public RepoSource.Builder setBranchNameBytes(com.google.protobuf.ByteString value)
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
public String 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
public RepoSource.Builder setTagName(String value)
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
public RepoSource.Builder 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
public RepoSource.Builder setTagNameBytes(com.google.protobuf.ByteString value)
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
public String 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
public RepoSource.Builder setCommitSha(String value)
Explicit commit SHA to build.
string commit_sha = 5;- Parameters:
value- The commitSha to set.- Returns:
- This builder for chaining.
-
clearCommitSha
public RepoSource.Builder clearCommitSha()
Explicit commit SHA to build.
string commit_sha = 5;- Returns:
- This builder for chaining.
-
setCommitShaBytes
public RepoSource.Builder setCommitShaBytes(com.google.protobuf.ByteString value)
Explicit commit SHA to build.
string commit_sha = 5;- Parameters:
value- The bytes for commitSha to set.- Returns:
- This builder for chaining.
-
getProjectId
public String 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
public RepoSource.Builder setProjectId(String value)
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
public RepoSource.Builder 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
public RepoSource.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
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
public String 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
public RepoSource.Builder setRepoName(String value)
Name of the Cloud Source Repository.
string repo_name = 2;- Parameters:
value- The repoName to set.- Returns:
- This builder for chaining.
-
clearRepoName
public RepoSource.Builder clearRepoName()
Name of the Cloud Source Repository.
string repo_name = 2;- Returns:
- This builder for chaining.
-
setRepoNameBytes
public RepoSource.Builder setRepoNameBytes(com.google.protobuf.ByteString value)
Name of the Cloud Source Repository.
string repo_name = 2;- Parameters:
value- The bytes for repoName to set.- Returns:
- This builder for chaining.
-
getDir
public String 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
public RepoSource.Builder setDir(String value)
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
public RepoSource.Builder 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
public RepoSource.Builder setDirBytes(com.google.protobuf.ByteString value)
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
public RepoSource.Builder setInvertRegex(boolean value)
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
public RepoSource.Builder clearInvertRegex()
Only trigger a build if the revision regex does NOT match the revision regex.
bool invert_regex = 7;- Returns:
- This builder for chaining.
-
setUnknownFields
public final RepoSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
mergeUnknownFields
public final RepoSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
-