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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<RepoSource.Builder> implements RepoSourceOrBuilder
Location of the source in a Google Cloud Source Repository.
Protobuf typegoogle.cloud.functions.v2.RepoSource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RepoSource.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RepoSource
build()
RepoSource
buildPartial()
RepoSource.Builder
clear()
RepoSource.Builder
clearBranchName()
Regex matching branches to build.RepoSource.Builder
clearCommitSha()
Explicit commit SHA to build.RepoSource.Builder
clearDir()
Directory, relative to the source root, in which to run the build.RepoSource.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
RepoSource.Builder
clearInvertRegex()
Only trigger a build if the revision regex does NOT match the revision regex.RepoSource.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
RepoSource.Builder
clearProjectId()
ID of the project that owns the Cloud Source Repository.RepoSource.Builder
clearRepoName()
Name of the Cloud Source Repository.RepoSource.Builder
clearRevision()
RepoSource.Builder
clearTagName()
Regex matching tags to build.RepoSource.Builder
clone()
String
getBranchName()
Regex matching branches to build.com.google.protobuf.ByteString
getBranchNameBytes()
Regex matching branches to build.String
getCommitSha()
Explicit commit SHA to build.com.google.protobuf.ByteString
getCommitShaBytes()
Explicit commit SHA to build.RepoSource
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDir()
Directory, relative to the source root, in which to run the build.com.google.protobuf.ByteString
getDirBytes()
Directory, relative to the source root, in which to run the build.boolean
getInvertRegex()
Only trigger a build if the revision regex does NOT match the revision regex.String
getProjectId()
ID of the project that owns the Cloud Source Repository.com.google.protobuf.ByteString
getProjectIdBytes()
ID of the project that owns the Cloud Source Repository.String
getRepoName()
Name of the Cloud Source Repository.com.google.protobuf.ByteString
getRepoNameBytes()
Name of the Cloud Source Repository.RepoSource.RevisionCase
getRevisionCase()
String
getTagName()
Regex matching tags to build.com.google.protobuf.ByteString
getTagNameBytes()
Regex matching tags to build.boolean
hasBranchName()
Regex matching branches to build.boolean
hasCommitSha()
Explicit commit SHA to build.boolean
hasTagName()
Regex matching tags to build.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
RepoSource.Builder
mergeFrom(RepoSource other)
RepoSource.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RepoSource.Builder
mergeFrom(com.google.protobuf.Message other)
RepoSource.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RepoSource.Builder
setBranchName(String value)
Regex matching branches to build.RepoSource.Builder
setBranchNameBytes(com.google.protobuf.ByteString value)
Regex matching branches to build.RepoSource.Builder
setCommitSha(String value)
Explicit commit SHA to build.RepoSource.Builder
setCommitShaBytes(com.google.protobuf.ByteString value)
Explicit commit SHA to build.RepoSource.Builder
setDir(String value)
Directory, relative to the source root, in which to run the build.RepoSource.Builder
setDirBytes(com.google.protobuf.ByteString value)
Directory, relative to the source root, in which to run the build.RepoSource.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RepoSource.Builder
setInvertRegex(boolean value)
Only trigger a build if the revision regex does NOT match the revision regex.RepoSource.Builder
setProjectId(String value)
ID of the project that owns the Cloud Source Repository.RepoSource.Builder
setProjectIdBytes(com.google.protobuf.ByteString value)
ID of the project that owns the Cloud Source Repository.RepoSource.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
RepoSource.Builder
setRepoName(String value)
Name of the Cloud Source Repository.RepoSource.Builder
setRepoNameBytes(com.google.protobuf.ByteString value)
Name of the Cloud Source Repository.RepoSource.Builder
setTagName(String value)
Regex matching tags to build.RepoSource.Builder
setTagNameBytes(com.google.protobuf.ByteString value)
Regex matching tags to build.RepoSource.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
clear
public RepoSource.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
getDefaultInstanceForType
public RepoSource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RepoSource build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RepoSource buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RepoSource.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
setField
public RepoSource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
clearField
public RepoSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
clearOneof
public RepoSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
setRepeatedField
public RepoSource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
addRepeatedField
public RepoSource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
mergeFrom
public RepoSource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RepoSource.Builder>
-
mergeFrom
public RepoSource.Builder mergeFrom(RepoSource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RepoSource.Builder>
- Throws:
IOException
-
getRevisionCase
public RepoSource.RevisionCase getRevisionCase()
- Specified by:
getRevisionCase
in 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:
hasBranchName
in 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:
getBranchName
in 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:
getBranchNameBytes
in 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:
hasTagName
in 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:
getTagName
in 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:
getTagNameBytes
in 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:
hasCommitSha
in interfaceRepoSourceOrBuilder
- Returns:
- Whether the commitSha field is set.
-
getCommitSha
public String getCommitSha()
Explicit commit SHA to build.
string commit_sha = 5;
- Specified by:
getCommitSha
in interfaceRepoSourceOrBuilder
- Returns:
- The commitSha.
-
getCommitShaBytes
public com.google.protobuf.ByteString getCommitShaBytes()
Explicit commit SHA to build.
string commit_sha = 5;
- Specified by:
getCommitShaBytes
in 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:
getProjectId
in 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:
getProjectIdBytes
in 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:
getRepoName
in interfaceRepoSourceOrBuilder
- Returns:
- The repoName.
-
getRepoNameBytes
public com.google.protobuf.ByteString getRepoNameBytes()
Name of the Cloud Source Repository.
string repo_name = 2;
- Specified by:
getRepoNameBytes
in 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:
getDir
in 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:
getDirBytes
in 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:
getInvertRegex
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
mergeUnknownFields
public final RepoSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RepoSource.Builder>
-
-