publicfinalclass RepoSourceextendsGeneratedMessageV3implementsRepoSourceOrBuilder
Location of the source in a Google Cloud Source Repository.
Protobuf type google.devtools.cloudbuild.v1.RepoSource
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
BRANCH_NAME_FIELD_NUMBER
publicstaticfinalintBRANCH_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
COMMIT_SHA_FIELD_NUMBER
publicstaticfinalintCOMMIT_SHA_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
DIR_FIELD_NUMBER
publicstaticfinalintDIR_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
INVERT_REGEX_FIELD_NUMBER
publicstaticfinalintINVERT_REGEX_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
PROJECT_ID_FIELD_NUMBER
publicstaticfinalintPROJECT_ID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
REPO_NAME_FIELD_NUMBER
publicstaticfinalintREPO_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SUBSTITUTIONS_FIELD_NUMBER
publicstaticfinalintSUBSTITUTIONS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
TAG_NAME_FIELD_NUMBER
publicstaticfinalintTAG_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticRepoSourcegetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticRepoSource.BuildernewBuilder()
newBuilder(RepoSource prototype)
publicstaticRepoSource.BuildernewBuilder(RepoSourceprototype)
publicstaticRepoSourceparseDelimitedFrom(InputStreaminput)
publicstaticRepoSourceparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticRepoSourceparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticRepoSourceparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticRepoSourceparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticRepoSourceparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticRepoSourceparseFrom(CodedInputStreaminput)
publicstaticRepoSourceparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticRepoSourceparseFrom(InputStreaminput)
publicstaticRepoSourceparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticRepoSourceparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticRepoSourceparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<RepoSource>parser()
Methods
containsSubstitutions(String key)
publicbooleancontainsSubstitutions(Stringkey)
Substitutions to use in a triggered build.
Should only be used with RunBuildTrigger
map<string, string> substitutions = 9;
| Parameter |
| Name |
Description |
key |
String
|
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getBranchName()
publicStringgetBranchName()
| Returns |
| Type |
Description |
String |
The branchName.
|
getBranchNameBytes()
publicByteStringgetBranchNameBytes()
| Returns |
| Type |
Description |
ByteString |
The bytes for branchName.
|
getCommitSha()
publicStringgetCommitSha()
Explicit commit SHA to build.
string commit_sha = 5;
| Returns |
| Type |
Description |
String |
The commitSha.
|
getCommitShaBytes()
publicByteStringgetCommitShaBytes()
Explicit commit SHA to build.
string commit_sha = 5;
| Returns |
| Type |
Description |
ByteString |
The bytes for commitSha.
|
getDefaultInstanceForType()
publicRepoSourcegetDefaultInstanceForType()
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()
publicByteStringgetDirBytes()
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()
publicbooleangetInvertRegex()
Only trigger a build if the revision regex does NOT match the revision
regex.
bool invert_regex = 8;
| Returns |
| Type |
Description |
boolean |
The invertRegex.
|
getParserForType()
publicParser<RepoSource>getParserForType()
Overrides
getProjectId()
publicStringgetProjectId()
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()
publicByteStringgetProjectIdBytes()
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()
publicStringgetRepoName()
Name of the Cloud Source Repository.
string repo_name = 2;
| Returns |
| Type |
Description |
String |
The repoName.
|
getRepoNameBytes()
publicByteStringgetRepoNameBytes()
Name of the Cloud Source Repository.
string repo_name = 2;
| Returns |
| Type |
Description |
ByteString |
The bytes for repoName.
|
getRevisionCase()
publicRepoSource.RevisionCasegetRevisionCase()
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getSubstitutions() (deprecated)
publicMap<String,String>getSubstitutions()
getSubstitutionsCount()
publicintgetSubstitutionsCount()
Substitutions to use in a triggered build.
Should only be used with RunBuildTrigger
map<string, string> substitutions = 9;
| Returns |
| Type |
Description |
int |
getSubstitutionsMap()
publicMap<String,String>getSubstitutionsMap()
Substitutions to use in a triggered build.
Should only be used with RunBuildTrigger
map<string, string> substitutions = 9;
getSubstitutionsOrDefault(String key, String defaultValue)
publicStringgetSubstitutionsOrDefault(Stringkey,StringdefaultValue)
Substitutions to use in a triggered build.
Should only be used with RunBuildTrigger
map<string, string> substitutions = 9;
| Returns |
| Type |
Description |
String |
getSubstitutionsOrThrow(String key)
publicStringgetSubstitutionsOrThrow(Stringkey)
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()
| Returns |
| Type |
Description |
String |
The tagName.
|
getTagNameBytes()
publicByteStringgetTagNameBytes()
| Returns |
| Type |
Description |
ByteString |
The bytes for tagName.
|
hasBranchName()
publicbooleanhasBranchName()
| Returns |
| Type |
Description |
boolean |
Whether the branchName field is set.
|
hasCommitSha()
publicbooleanhasCommitSha()
Explicit commit SHA to build.
string commit_sha = 5;
| Returns |
| Type |
Description |
boolean |
Whether the commitSha field is set.
|
hasTagName()
publicbooleanhasTagName()
| Returns |
| Type |
Description |
boolean |
Whether the tagName field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protectedMapFieldReflectionAccessorinternalGetMapFieldReflection(intnumber)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicRepoSource.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedRepoSource.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicRepoSource.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides