- 3.80.0 (latest)
 - 3.78.0
 - 3.77.0
 - 3.76.0
 - 3.75.0
 - 3.74.0
 - 3.72.0
 - 3.70.0
 - 3.69.0
 - 3.66.0
 - 3.65.0
 - 3.64.0
 - 3.62.0
 - 3.61.0
 - 3.60.0
 - 3.59.0
 - 3.58.0
 - 3.57.0
 - 3.56.0
 - 3.55.0
 - 3.54.0
 - 3.53.0
 - 3.51.0
 - 3.50.0
 - 3.49.0
 - 3.48.0
 - 3.47.0
 - 3.46.0
 - 3.45.0
 - 3.44.0
 - 3.43.0
 - 3.42.0
 - 3.41.0
 - 3.39.0
 - 3.38.0
 - 3.37.0
 - 3.36.0
 - 3.35.0
 - 3.34.0
 - 3.33.0
 - 3.32.0
 - 3.31.0
 - 3.30.0
 - 3.29.0
 - 3.26.0
 - 3.25.0
 - 3.24.0
 - 3.23.0
 - 3.22.0
 - 3.21.0
 - 3.20.0
 - 3.19.0
 - 3.18.0
 - 3.17.0
 - 3.16.0
 - 3.15.0
 - 3.14.0
 - 3.13.0
 - 3.12.0
 - 3.11.0
 - 3.10.0
 - 3.9.0
 - 3.8.0
 - 3.7.0
 - 3.6.0
 - 3.5.6
 - 3.4.1
 - 3.3.12
 
public static final class RepoSource.Builder extends GeneratedMessageV3.Builder<RepoSource.Builder> implements RepoSourceOrBuilderLocation of the source in a Google Cloud Source Repository.
 Protobuf type google.devtools.cloudbuild.v1.RepoSource
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RepoSource.BuilderImplements
RepoSourceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RepoSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        |
build()
public RepoSource build()| Returns | |
|---|---|
| Type | Description | 
RepoSource | 
        |
buildPartial()
public RepoSource buildPartial()| Returns | |
|---|---|
| Type | Description | 
RepoSource | 
        |
clear()
public RepoSource.Builder clear()| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        |
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 | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        This builder for chaining.  | 
      
clearCommitSha()
public RepoSource.Builder clearCommitSha()Explicit commit SHA to build.
 string commit_sha = 5;
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        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.
 string dir = 7;
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        This builder for chaining.  | 
      
clearField(Descriptors.FieldDescriptor field)
public RepoSource.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        |
clearInvertRegex()
public RepoSource.Builder clearInvertRegex()Only trigger a build if the revision regex does NOT match the revision regex.
 bool invert_regex = 8;
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        This builder for chaining.  | 
      
clearOneof(Descriptors.OneofDescriptor oneof)
public RepoSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
oneof | 
        OneofDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        |
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 | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        This builder for chaining.  | 
      
clearRepoName()
public RepoSource.Builder clearRepoName()Name of the Cloud Source Repository.
 string repo_name = 2;
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        This builder for chaining.  | 
      
clearRevision()
public RepoSource.Builder clearRevision()| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        |
clearSubstitutions()
public RepoSource.Builder clearSubstitutions()| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        |
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 | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        This builder for chaining.  | 
      
clone()
public RepoSource.Builder clone()| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        |
containsSubstitutions(String key)
public boolean containsSubstitutions(String key)Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
 map<string, string> substitutions = 9;
| Parameter | |
|---|---|
| Name | Description | 
key | 
        String | 
      
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
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;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The branchName.  | 
      
getBranchNameBytes()
public 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;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for branchName.  | 
      
getCommitSha()
public String getCommitSha()Explicit commit SHA to build.
 string commit_sha = 5;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The commitSha.  | 
      
getCommitShaBytes()
public ByteString getCommitShaBytes()Explicit commit SHA to build.
 string commit_sha = 5;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for commitSha.  | 
      
getDefaultInstanceForType()
public RepoSource getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
RepoSource | 
        |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
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.
 string dir = 7;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The dir.  | 
      
getDirBytes()
public 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.
 string dir = 7;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for dir.  | 
      
getInvertRegex()
public boolean getInvertRegex()Only trigger a build if the revision regex does NOT match the revision regex.
 bool invert_regex = 8;
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        The invertRegex.  | 
      
getMutableSubstitutions() (deprecated)
public Map<String,String> getMutableSubstitutions()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description | 
Map<String,String> | 
        |
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;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The projectId.  | 
      
getProjectIdBytes()
public 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;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for projectId.  | 
      
getRepoName()
public String getRepoName()Name of the Cloud Source Repository.
 string repo_name = 2;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The repoName.  | 
      
getRepoNameBytes()
public ByteString getRepoNameBytes()Name of the Cloud Source Repository.
 string repo_name = 2;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for repoName.  | 
      
getRevisionCase()
public RepoSource.RevisionCase getRevisionCase()| Returns | |
|---|---|
| Type | Description | 
RepoSource.RevisionCase | 
        |
getSubstitutions() (deprecated)
public Map<String,String> getSubstitutions()Use #getSubstitutionsMap() instead.
| Returns | |
|---|---|
| Type | Description | 
Map<String,String> | 
        |
getSubstitutionsCount()
public int getSubstitutionsCount()Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
 map<string, string> substitutions = 9;
| Returns | |
|---|---|
| Type | Description | 
int | 
        |
getSubstitutionsMap()
public Map<String,String> getSubstitutionsMap()Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
 map<string, string> substitutions = 9;
| Returns | |
|---|---|
| Type | Description | 
Map<String,String> | 
        |
getSubstitutionsOrDefault(String key, String defaultValue)
public String getSubstitutionsOrDefault(String key, String defaultValue)Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
 map<string, string> substitutions = 9;
| Parameters | |
|---|---|
| Name | Description | 
key | 
        String | 
      
defaultValue | 
        String | 
      
| Returns | |
|---|---|
| Type | Description | 
String | 
        |
getSubstitutionsOrThrow(String key)
public String getSubstitutionsOrThrow(String key)Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
 map<string, string> substitutions = 9;
| Parameter | |
|---|---|
| Name | Description | 
key | 
        String | 
      
| Returns | |
|---|---|
| Type | Description | 
String | 
        |
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;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The tagName.  | 
      
getTagNameBytes()
public 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;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for tagName.  | 
      
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;
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        Whether the branchName field is set.  | 
      
hasCommitSha()
public boolean hasCommitSha()Explicit commit SHA to build.
 string commit_sha = 5;
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        Whether the commitSha field is set.  | 
      
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;
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        Whether the tagName field is set.  | 
      
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
FieldAccessorTable | 
        |
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description | 
number | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
com.google.protobuf.MapFieldReflectionAccessor | 
        |
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description | 
number | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
com.google.protobuf.MapFieldReflectionAccessor | 
        |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
mergeFrom(RepoSource other)
public RepoSource.Builder mergeFrom(RepoSource other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        RepoSource | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RepoSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
input | 
        CodedInputStream | 
      
extensionRegistry | 
        ExtensionRegistryLite | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        |
| Exceptions | |
|---|---|
| Type | Description | 
IOException | 
        |
mergeFrom(Message other)
public RepoSource.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Message | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RepoSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        |
putAllSubstitutions(Map<String,String> values)
public RepoSource.Builder putAllSubstitutions(Map<String,String> values)Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
 map<string, string> substitutions = 9;
| Parameter | |
|---|---|
| Name | Description | 
values | 
        Map<String,String> | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        |
putSubstitutions(String key, String value)
public RepoSource.Builder putSubstitutions(String key, String value)Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
 map<string, string> substitutions = 9;
| Parameters | |
|---|---|
| Name | Description | 
key | 
        String | 
      
value | 
        String | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        |
removeSubstitutions(String key)
public RepoSource.Builder removeSubstitutions(String key)Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
 map<string, string> substitutions = 9;
| Parameter | |
|---|---|
| Name | Description | 
key | 
        String | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        |
setBranchName(String value)
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;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe branchName to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        This builder for chaining.  | 
      
setBranchNameBytes(ByteString value)
public RepoSource.Builder setBranchNameBytes(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;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for branchName to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        This builder for chaining.  | 
      
setCommitSha(String value)
public RepoSource.Builder setCommitSha(String value)Explicit commit SHA to build.
 string commit_sha = 5;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe commitSha to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        This builder for chaining.  | 
      
setCommitShaBytes(ByteString value)
public RepoSource.Builder setCommitShaBytes(ByteString value)Explicit commit SHA to build.
 string commit_sha = 5;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for commitSha to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        This builder for chaining.  | 
      
setDir(String value)
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.
 string dir = 7;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe dir to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        This builder for chaining.  | 
      
setDirBytes(ByteString value)
public RepoSource.Builder setDirBytes(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.
 string dir = 7;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for dir to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        This builder for chaining.  | 
      
setField(Descriptors.FieldDescriptor field, Object value)
public RepoSource.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        |
setInvertRegex(boolean value)
public RepoSource.Builder setInvertRegex(boolean value)Only trigger a build if the revision regex does NOT match the revision regex.
 bool invert_regex = 8;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        booleanThe invertRegex to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        This builder for chaining.  | 
      
setProjectId(String value)
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;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe projectId to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        This builder for chaining.  | 
      
setProjectIdBytes(ByteString value)
public RepoSource.Builder setProjectIdBytes(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;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for projectId to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        This builder for chaining.  | 
      
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RepoSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
index | 
        int | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        |
setRepoName(String value)
public RepoSource.Builder setRepoName(String value)Name of the Cloud Source Repository.
 string repo_name = 2;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe repoName to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        This builder for chaining.  | 
      
setRepoNameBytes(ByteString value)
public RepoSource.Builder setRepoNameBytes(ByteString value)Name of the Cloud Source Repository.
 string repo_name = 2;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for repoName to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        This builder for chaining.  | 
      
setTagName(String value)
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;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe tagName to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        This builder for chaining.  | 
      
setTagNameBytes(ByteString value)
public RepoSource.Builder setTagNameBytes(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;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for tagName to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        This builder for chaining.  | 
      
setUnknownFields(UnknownFieldSet unknownFields)
public final RepoSource.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
RepoSource.Builder | 
        |