Class Dependency.GitSourceDependency (3.78.0)

publicstaticfinalclass Dependency.GitSourceDependencyextendsGeneratedMessageV3implementsDependency.GitSourceDependencyOrBuilder

Represents a git repository as a build dependency.

Protobuf type google.devtools.cloudbuild.v1.Dependency.GitSourceDependency

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Dependency.GitSourceDependency

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

DEPTH_FIELD_NUMBER

publicstaticfinalintDEPTH_FIELD_NUMBER
Field Value
Type Description
int

DEST_PATH_FIELD_NUMBER

publicstaticfinalintDEST_PATH_FIELD_NUMBER
Field Value
Type Description
int

RECURSE_SUBMODULES_FIELD_NUMBER

publicstaticfinalintRECURSE_SUBMODULES_FIELD_NUMBER
Field Value
Type Description
int

REPOSITORY_FIELD_NUMBER

publicstaticfinalintREPOSITORY_FIELD_NUMBER
Field Value
Type Description
int

REVISION_FIELD_NUMBER

publicstaticfinalintREVISION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticDependency.GitSourceDependencygetDefaultInstance()
Returns
Type Description
Dependency.GitSourceDependency

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticDependency.GitSourceDependency.BuildernewBuilder()
Returns
Type Description
Dependency.GitSourceDependency.Builder

newBuilder(Dependency.GitSourceDependency prototype)

publicstaticDependency.GitSourceDependency.BuildernewBuilder(Dependency.GitSourceDependencyprototype)
Parameter
Name Description
prototype Dependency.GitSourceDependency
Returns
Type Description
Dependency.GitSourceDependency.Builder

parseDelimitedFrom(InputStream input)

publicstaticDependency.GitSourceDependencyparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDependency.GitSourceDependencyparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticDependency.GitSourceDependencyparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticDependency.GitSourceDependencyparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticDependency.GitSourceDependencyparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticDependency.GitSourceDependencyparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticDependency.GitSourceDependencyparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDependency.GitSourceDependencyparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticDependency.GitSourceDependencyparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDependency.GitSourceDependencyparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticDependency.GitSourceDependencyparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticDependency.GitSourceDependencyparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<Dependency.GitSourceDependency>parser()
Returns
Type Description
Parser<GitSourceDependency>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

publicDependency.GitSourceDependencygetDefaultInstanceForType()
Returns
Type Description
Dependency.GitSourceDependency

getDepth()

publiclonggetDepth()

Optional. How much history should be fetched for the build (default 1, -1 for all history).

int64 depth = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The depth.

getDestPath()

publicStringgetDestPath()

Required. Where should the files be placed on the worker.

string dest_path = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The destPath.

getDestPathBytes()

publicByteStringgetDestPathBytes()

Required. Where should the files be placed on the worker.

string dest_path = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for destPath.

getParserForType()

publicParser<Dependency.GitSourceDependency>getParserForType()
Returns
Type Description
Parser<GitSourceDependency>
Overrides

getRecurseSubmodules()

publicbooleangetRecurseSubmodules()

Optional. True if submodules should be fetched too (default false).

bool recurse_submodules = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The recurseSubmodules.

getRepository()

publicDependency.GitSourceRepositorygetRepository()

Required. The kind of repo (url or dev connect).

.google.devtools.cloudbuild.v1.Dependency.GitSourceRepository repository = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Dependency.GitSourceRepository

The repository.

getRepositoryOrBuilder()

publicDependency.GitSourceRepositoryOrBuildergetRepositoryOrBuilder()

Required. The kind of repo (url or dev connect).

.google.devtools.cloudbuild.v1.Dependency.GitSourceRepository repository = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Dependency.GitSourceRepositoryOrBuilder

getRevision()

publicStringgetRevision()

Required. The revision that we will fetch the repo at.

string revision = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The revision.

getRevisionBytes()

publicByteStringgetRevisionBytes()

Required. The revision that we will fetch the repo at.

string revision = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for revision.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasRepository()

publicbooleanhasRepository()

Required. The kind of repo (url or dev connect).

.google.devtools.cloudbuild.v1.Dependency.GitSourceRepository repository = 1 [(.google.api.field_behavior) = REQUIRED];

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

publicDependency.GitSourceDependency.BuildernewBuilderForType()
Returns
Type Description
Dependency.GitSourceDependency.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedDependency.GitSourceDependency.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Dependency.GitSourceDependency.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicDependency.GitSourceDependency.BuildertoBuilder()
Returns
Type Description
Dependency.GitSourceDependency.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.