Class GitFileSource (3.43.0)

publicfinalclass GitFileSourceextendsGeneratedMessageV3implementsGitFileSourceOrBuilder

GitFileSource describes a file within a (possibly remote) code repository.

Protobuf type google.devtools.cloudbuild.v1.GitFileSource

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

PATH_FIELD_NUMBER

publicstaticfinalintPATH_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

REVISION_FIELD_NUMBER

publicstaticfinalintREVISION_FIELD_NUMBER
Field Value
Type Description
int

URI_FIELD_NUMBER

publicstaticfinalintURI_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticGitFileSourcegetDefaultInstance()
Returns
Type Description
GitFileSource

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticGitFileSource.BuildernewBuilder()
Returns
Type Description
GitFileSource.Builder

newBuilder(GitFileSource prototype)

publicstaticGitFileSource.BuildernewBuilder(GitFileSourceprototype)
Parameter
Name Description
prototype GitFileSource
Returns
Type Description
GitFileSource.Builder

parseDelimitedFrom(InputStream input)

publicstaticGitFileSourceparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
GitFileSource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

publicstaticGitFileSourceparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
GitFileSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

publicstaticGitFileSourceparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
GitFileSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

publicstaticGitFileSourceparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GitFileSource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

publicstaticGitFileSourceparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
GitFileSource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

publicstaticGitFileSourceparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GitFileSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

publicGitFileSourcegetDefaultInstanceForType()
Returns
Type Description
GitFileSource

getEnterpriseConfigCase()

publicGitFileSource.EnterpriseConfigCasegetEnterpriseConfigCase()
Returns
Type Description
GitFileSource.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 = 5 [(.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 = 5 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for githubEnterpriseConfig.

getParserForType()

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

getPath()

publicStringgetPath()

The path of the file, with the repo root as the root of the path.

string path = 1;

Returns
Type Description
String

The path.

getPathBytes()

publicByteStringgetPathBytes()

The path of the file, with the repo root as the root of the path.

string path = 1;

Returns
Type Description
ByteString

The bytes for path.

getRepoType()

publicGitFileSource.RepoTypegetRepoType()

See RepoType above.

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

Returns
Type Description
GitFileSource.RepoType

The repoType.

getRepoTypeValue()

publicintgetRepoTypeValue()

See RepoType above.

.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 fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.

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

Returns
Type Description
String

The repository.

getRepositoryBytes()

publicByteStringgetRepositoryBytes()

The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.

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

Returns
Type Description
ByteString

The bytes for repository.

getRevision()

publicStringgetRevision()

The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.

string revision = 4;

Returns
Type Description
String

The revision.

getRevisionBytes()

publicByteStringgetRevisionBytes()

The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.

string revision = 4;

Returns
Type Description
ByteString

The bytes for revision.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getSourceCase()

publicGitFileSource.SourceCasegetSourceCase()
Returns
Type Description
GitFileSource.SourceCase

getUri()

publicStringgetUri()

The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.

string uri = 2;

Returns
Type Description
String

The uri.

getUriBytes()

publicByteStringgetUriBytes()

The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.

string uri = 2;

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 = 5 [(.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the githubEnterpriseConfig field is set.

hasRepository()

publicbooleanhasRepository()

The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.

string repository = 7 [(.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()

publicGitFileSource.BuildernewBuilderForType()
Returns
Type Description
GitFileSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedGitFileSource.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GitFileSource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicGitFileSource.BuildertoBuilder()
Returns
Type Description
GitFileSource.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.