Class Dependency.GitSourceDependency (3.61.0)

public static final class Dependency.GitSourceDependency extends GeneratedMessageV3 implements Dependency.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

Static Fields

DEPTH_FIELD_NUMBER

public static final int DEPTH_FIELD_NUMBER
Field Value
Type Description
int

DEST_PATH_FIELD_NUMBER

public static final int DEST_PATH_FIELD_NUMBER
Field Value
Type Description
int

RECURSE_SUBMODULES_FIELD_NUMBER

public static final int RECURSE_SUBMODULES_FIELD_NUMBER
Field Value
Type Description
int

REPOSITORY_FIELD_NUMBER

public static final int REPOSITORY_FIELD_NUMBER
Field Value
Type Description
int

REVISION_FIELD_NUMBER

public static final int REVISION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Dependency.GitSourceDependency getDefaultInstance()
Returns
Type Description
Dependency.GitSourceDependency

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Dependency.GitSourceDependency.Builder newBuilder()
Returns
Type Description
Dependency.GitSourceDependency.Builder

newBuilder(Dependency.GitSourceDependency prototype)

public static Dependency.GitSourceDependency.Builder newBuilder(Dependency.GitSourceDependency prototype)
Parameter
Name Description
prototype Dependency.GitSourceDependency
Returns
Type Description
Dependency.GitSourceDependency.Builder

parseDelimitedFrom(InputStream input)

public static Dependency.GitSourceDependency parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Dependency.GitSourceDependency parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Dependency.GitSourceDependency parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Dependency.GitSourceDependency parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Dependency.GitSourceDependency parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Dependency.GitSourceDependency parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Dependency.GitSourceDependency parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Dependency.GitSourceDependency parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Dependency.GitSourceDependency parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Dependency.GitSourceDependency parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Dependency.GitSourceDependency parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Dependency.GitSourceDependency parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dependency.GitSourceDependency
Exceptions
Type Description
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Dependency.GitSourceDependency getDefaultInstanceForType()
Returns
Type Description
Dependency.GitSourceDependency

getDepth()

public long getDepth()

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

public String getDestPath()

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

public ByteString getDestPathBytes()

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

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

getRecurseSubmodules()

public boolean getRecurseSubmodules()

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

public Dependency.GitSourceRepository getRepository()

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

public Dependency.GitSourceRepositoryOrBuilder getRepositoryOrBuilder()

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

public String getRevision()

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

public ByteString getRevisionBytes()

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

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasRepository()

public boolean hasRepository()

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

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Dependency.GitSourceDependency.Builder newBuilderForType()
Returns
Type Description
Dependency.GitSourceDependency.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Dependency.GitSourceDependency.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Dependency.GitSourceDependency.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Dependency.GitSourceDependency.Builder toBuilder()
Returns
Type Description
Dependency.GitSourceDependency.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException