Package com.google.cloudbuild.v1
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.cloudbuild.v1.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.devtools.cloudbuild.v1.RepoSource-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Regex matching branches to build.Explicit commit SHA to build.clearDir()Optional.Optional.Optional.Required.Regex matching tags to build.booleanOptional.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()Optional.com.google.protobuf.ByteStringOptional.booleanOptional.Deprecated.Optional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.Deprecated.intOptional.Optional.getSubstitutionsOrDefault(String key, String defaultValue) Optional.Optional.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.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(RepoSource other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllSubstitutions(Map<String, String> values) Optional.putSubstitutions(String key, String value) Optional.Optional.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.Optional.setDirBytes(com.google.protobuf.ByteString value) Optional.setInvertRegex(boolean value) Optional.setProjectId(String value) Optional.setProjectIdBytes(com.google.protobuf.ByteString value) Optional.setRepoName(String value) Required.setRepoNameBytes(com.google.protobuf.ByteString value) Required.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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<RepoSource.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<RepoSource.Builder>
-
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
-
getProjectId
Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
string project_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProjectIdin interfaceRepoSourceOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
string project_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProjectIdBytesin interfaceRepoSourceOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
string project_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
string project_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setProjectIdBytes
Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
string project_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
getRepoName
Required. Name of the Cloud Source Repository.
string repo_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRepoNamein interfaceRepoSourceOrBuilder- Returns:
- The repoName.
-
getRepoNameBytes
public com.google.protobuf.ByteString getRepoNameBytes()Required. Name of the Cloud Source Repository.
string repo_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRepoNameBytesin interfaceRepoSourceOrBuilder- Returns:
- The bytes for repoName.
-
setRepoName
Required. Name of the Cloud Source Repository.
string repo_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The repoName to set.- Returns:
- This builder for chaining.
-
clearRepoName
Required. Name of the Cloud Source Repository.
string repo_name = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setRepoNameBytes
Required. Name of the Cloud Source Repository.
string repo_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for repoName to set.- Returns:
- This builder for chaining.
-
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.
-
getDir
Optional. 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.
string dir = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDirin interfaceRepoSourceOrBuilder- Returns:
- The dir.
-
getDirBytes
public com.google.protobuf.ByteString getDirBytes()Optional. 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.
string dir = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDirBytesin interfaceRepoSourceOrBuilder- Returns:
- The bytes for dir.
-
setDir
Optional. 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.
string dir = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The dir to set.- Returns:
- This builder for chaining.
-
clearDir
Optional. 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.
string dir = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDirBytes
Optional. 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.
string dir = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for dir to set.- Returns:
- This builder for chaining.
-
getInvertRegex
public boolean getInvertRegex()Optional. Only trigger a build if the revision regex does NOT match the revision regex.
bool invert_regex = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInvertRegexin interfaceRepoSourceOrBuilder- Returns:
- The invertRegex.
-
setInvertRegex
Optional. Only trigger a build if the revision regex does NOT match the revision regex.
bool invert_regex = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The invertRegex to set.- Returns:
- This builder for chaining.
-
clearInvertRegex
Optional. Only trigger a build if the revision regex does NOT match the revision regex.
bool invert_regex = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getSubstitutionsCount
public int getSubstitutionsCount()Description copied from interface:RepoSourceOrBuilderOptional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSubstitutionsCountin interfaceRepoSourceOrBuilder
-
containsSubstitutions
Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsSubstitutionsin interfaceRepoSourceOrBuilder
-
getSubstitutions
Deprecated.UsegetSubstitutionsMap()instead.- Specified by:
getSubstitutionsin interfaceRepoSourceOrBuilder
-
getSubstitutionsMap
Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSubstitutionsMapin interfaceRepoSourceOrBuilder
-
getSubstitutionsOrDefault
Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSubstitutionsOrDefaultin interfaceRepoSourceOrBuilder
-
getSubstitutionsOrThrow
Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSubstitutionsOrThrowin interfaceRepoSourceOrBuilder
-
clearSubstitutions
-
removeSubstitutions
Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableSubstitutions
Deprecated.Use alternate mutation accessors instead. -
putSubstitutions
Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL]; -
putAllSubstitutions
Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL];
-