publicfinalclass GitSourceextendsGeneratedMessageV3implementsGitSourceOrBuilder
Location of the source in any accessible Git repository.
Protobuf type google.devtools.cloudbuild.v1.GitSource
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()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticGitSource.BuildernewBuilder()
newBuilder(GitSource prototype)
publicstaticGitSource.BuildernewBuilder(GitSourceprototype)
| Parameter |
| Name |
Description |
prototype |
GitSource
|
publicstaticGitSourceparseDelimitedFrom(InputStreaminput)
publicstaticGitSourceparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticGitSourceparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticGitSourceparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticGitSourceparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticGitSourceparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticGitSourceparseFrom(CodedInputStreaminput)
publicstaticGitSourceparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticGitSourceparseFrom(InputStreaminput)
publicstaticGitSourceparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticGitSourceparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticGitSourceparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<GitSource>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
publicGitSourcegetDefaultInstanceForType()
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 = 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()
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()
| Returns |
| Type |
Description |
String |
The url.
|
getUrlBytes()
publicByteStringgetUrlBytes()
| Returns |
| Type |
Description |
ByteString |
The bytes for url.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicGitSource.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedGitSource.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicGitSource.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides