Class GitRepoSource (3.70.0)

publicfinalclass GitRepoSourceextendsGeneratedMessageV3implementsGitRepoSourceOrBuilder

GitRepoSource describes a repo and ref of a code repository.

Protobuf type google.devtools.cloudbuild.v1.GitRepoSource

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

GITHUB_ENTERPRISE_CONFIG_FIELD_NUMBER

publicstaticfinalintGITHUB_ENTERPRISE_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

REF_FIELD_NUMBER

publicstaticfinalintREF_FIELD_NUMBER
Field Value
Type Description
int

REPOSITORY_FIELD_NUMBER

publicstaticfinalintREPOSITORY_FIELD_NUMBER
Field Value
Type Description
int

REPO_TYPE_FIELD_NUMBER

publicstaticfinalintREPO_TYPE_FIELD_NUMBER
Field Value
Type Description
int

URI_FIELD_NUMBER

publicstaticfinalintURI_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticGitRepoSourcegetDefaultInstance()
Returns
Type Description
GitRepoSource

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticGitRepoSource.BuildernewBuilder()
Returns
Type Description
GitRepoSource.Builder

newBuilder(GitRepoSource prototype)

publicstaticGitRepoSource.BuildernewBuilder(GitRepoSourceprototype)
Parameter
Name Description
prototype GitRepoSource
Returns
Type Description
GitRepoSource.Builder

parseDelimitedFrom(InputStream input)

publicstaticGitRepoSourceparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
GitRepoSource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

publicstaticGitRepoSourceparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
GitRepoSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

publicstaticGitRepoSourceparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
GitRepoSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

publicstaticGitRepoSourceparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GitRepoSource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

publicstaticGitRepoSourceparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
GitRepoSource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

publicstaticGitRepoSourceparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GitRepoSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

publicGitRepoSourcegetDefaultInstanceForType()
Returns
Type Description
GitRepoSource

getEnterpriseConfigCase()

publicGitRepoSource.EnterpriseConfigCasegetEnterpriseConfigCase()
Returns
Type Description
GitRepoSource.EnterpriseConfigCase

getGithubEnterpriseConfig()

publicStringgetGithubEnterpriseConfig()

The full resource name of the github enterprise config. Format: projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}. projects/{project}/githubEnterpriseConfigs/{id}.

string github_enterprise_config = 4 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The githubEnterpriseConfig.

getGithubEnterpriseConfigBytes()

publicByteStringgetGithubEnterpriseConfigBytes()

The full resource name of the github enterprise config. Format: projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}. projects/{project}/githubEnterpriseConfigs/{id}.

string github_enterprise_config = 4 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for githubEnterpriseConfig.

getParserForType()

publicParser<GitRepoSource>getParserForType()
Returns
Type Description
Parser<GitRepoSource>
Overrides

getRef()

publicStringgetRef()

The branch or tag to use. Must start with "refs/" (required).

string ref = 2;

Returns
Type Description
String

The ref.

getRefBytes()

publicByteStringgetRefBytes()

The branch or tag to use. Must start with "refs/" (required).

string ref = 2;

Returns
Type Description
ByteString

The bytes for ref.

getRepoType()

publicGitFileSource.RepoTypegetRepoType()

See RepoType below.

.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;

Returns
Type Description
GitFileSource.RepoType

The repoType.

getRepoTypeValue()

publicintgetRepoTypeValue()

See RepoType below.

.google.devtools.cloudbuild.v1.GitFileSource.RepoType repo_type = 3;

Returns
Type Description
int

The enum numeric value on the wire for repoType.

getRepository()

publicStringgetRepository()

The connected repository resource name, in the format projects/*/locations/*/connections/*/repositories/*. Either uri or repository can be specified and is required.

string repository = 6 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The repository.

getRepositoryBytes()

publicByteStringgetRepositoryBytes()

The connected repository resource name, in the format projects/*/locations/*/connections/*/repositories/*. Either uri or repository can be specified and is required.

string repository = 6 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for repository.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getSourceCase()

publicGitRepoSource.SourceCasegetSourceCase()
Returns
Type Description
GitRepoSource.SourceCase

getUri()

publicStringgetUri()

The URI of the repo (e.g. https://github.com/user/repo.git). Either uri or repository can be specified and is required.

string uri = 1;

Returns
Type Description
String

The uri.

getUriBytes()

publicByteStringgetUriBytes()

The URI of the repo (e.g. https://github.com/user/repo.git). Either uri or repository can be specified and is required.

string uri = 1;

Returns
Type Description
ByteString

The bytes for uri.

hasGithubEnterpriseConfig()

publicbooleanhasGithubEnterpriseConfig()

The full resource name of the github enterprise config. Format: projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}. projects/{project}/githubEnterpriseConfigs/{id}.

string github_enterprise_config = 4 [(.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the githubEnterpriseConfig field is set.

hasRepository()

publicbooleanhasRepository()

The connected repository resource name, in the format projects/*/locations/*/connections/*/repositories/*. Either uri or repository can be specified and is required.

string repository = 6 [(.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the repository field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicGitRepoSource.BuildernewBuilderForType()
Returns
Type Description
GitRepoSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedGitRepoSource.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GitRepoSource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicGitRepoSource.BuildertoBuilder()
Returns
Type Description
GitRepoSource.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.