Class RepoSource (3.82.0)

publicfinalclass RepoSourceextendsGeneratedMessageV3implementsRepoSourceOrBuilder

Location of the source in a Google Cloud Source Repository.

Protobuf type google.devtools.cloudbuild.v1.RepoSource

Implements

RepoSourceOrBuilder

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()
Returns
Type Description
RepoSource

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticRepoSource.BuildernewBuilder()
Returns
Type Description
RepoSource.Builder

newBuilder(RepoSource prototype)

publicstaticRepoSource.BuildernewBuilder(RepoSourceprototype)
Parameter
Name Description
prototype RepoSource
Returns
Type Description
RepoSource.Builder

parseDelimitedFrom(InputStream input)

publicstaticRepoSourceparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
RepoSource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticRepoSourceparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RepoSource
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticRepoSourceparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
RepoSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticRepoSourceparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RepoSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticRepoSourceparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
RepoSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticRepoSourceparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RepoSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticRepoSourceparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RepoSource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticRepoSourceparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RepoSource
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticRepoSourceparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
RepoSource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticRepoSourceparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RepoSource
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticRepoSourceparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RepoSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticRepoSourceparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RepoSource
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<RepoSource>parser()
Returns
Type Description
Parser<RepoSource>

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
Returns
Type Description
boolean

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBranchName()

publicStringgetBranchName()

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()

publicByteStringgetBranchNameBytes()

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()

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()
Returns
Type Description
RepoSource

getDir()

publicStringgetDir()

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()
Returns
Type Description
Parser<RepoSource>
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()
Returns
Type Description
RepoSource.RevisionCase

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getSubstitutions() (deprecated)

publicMap<String,String>getSubstitutions()
Returns
Type Description
Map<String,String>

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;

Returns
Type Description
Map<String,String>

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;

Parameters
Name Description
key String
defaultValue String
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()

publicStringgetTagName()

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()

publicByteStringgetTagNameBytes()

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()

publicbooleanhasBranchName()

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()

publicbooleanhasCommitSha()

Explicit commit SHA to build.

string commit_sha = 5;

Returns
Type Description
boolean

Whether the commitSha field is set.

hasTagName()

publicbooleanhasTagName()

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.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
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()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicRepoSource.BuildernewBuilderForType()
Returns
Type Description
RepoSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedRepoSource.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RepoSource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicRepoSource.BuildertoBuilder()
Returns
Type Description
RepoSource.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.