Class GitSource (3.32.0)

publicfinalclass GitSourceextendsGeneratedMessageV3implementsGitSourceOrBuilder

Location of the source in any accessible Git repository.

Protobuf type google.devtools.cloudbuild.v1.GitSource

Implements

GitSourceOrBuilder

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

Static Fields

DIR_FIELD_NUMBER

publicstaticfinalintDIR_FIELD_NUMBER
Field Value
Type Description
int

REVISION_FIELD_NUMBER

publicstaticfinalintREVISION_FIELD_NUMBER
Field Value
Type Description
int

URL_FIELD_NUMBER

publicstaticfinalintURL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticGitSourcegetDefaultInstance()
Returns
Type Description
GitSource

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticGitSource.BuildernewBuilder()
Returns
Type Description
GitSource.Builder

newBuilder(GitSource prototype)

publicstaticGitSource.BuildernewBuilder(GitSourceprototype)
Parameter
Name Description
prototype GitSource
Returns
Type Description
GitSource.Builder

parseDelimitedFrom(InputStream input)

publicstaticGitSourceparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
GitSource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

publicstaticGitSourceparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
GitSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

publicstaticGitSourceparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
GitSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

publicstaticGitSourceparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GitSource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

publicstaticGitSourceparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
GitSource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

publicstaticGitSourceparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GitSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

publicGitSourcegetDefaultInstanceForType()
Returns
Type Description
GitSource

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 = 5;

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 = 5;

Returns
Type Description
ByteString

The bytes for dir.

getParserForType()

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

getRevision()

publicStringgetRevision()

The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.

Cloud Build uses git fetch to fetch the revision from the Git repository; therefore make sure that the string you provide for revision is parsable by the command. For information on string values accepted by git fetch, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information on git fetch, see https://git-scm.com/docs/git-fetch.

string revision = 6;

Returns
Type Description
String

The revision.

getRevisionBytes()

publicByteStringgetRevisionBytes()

The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.

Cloud Build uses git fetch to fetch the revision from the Git repository; therefore make sure that the string you provide for revision is parsable by the command. For information on string values accepted by git fetch, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information on git fetch, see https://git-scm.com/docs/git-fetch.

string revision = 6;

Returns
Type Description
ByteString

The bytes for revision.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getUrl()

publicStringgetUrl()

Location of the Git repo to build.

This will be used as a git remote, see https://git-scm.com/docs/git-remote.

string url = 1;

Returns
Type Description
String

The url.

getUrlBytes()

publicByteStringgetUrlBytes()

Location of the Git repo to build.

This will be used as a git remote, see https://git-scm.com/docs/git-remote.

string url = 1;

Returns
Type Description
ByteString

The bytes for url.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicGitSource.BuildernewBuilderForType()
Returns
Type Description
GitSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedGitSource.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GitSource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicGitSource.BuildertoBuilder()
Returns
Type Description
GitSource.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.