Class Dependency (3.61.0)

public final class Dependency extends GeneratedMessageV3 implements DependencyOrBuilder

A dependency that the Cloud Build worker will fetch before executing user steps.

Protobuf type google.devtools.cloudbuild.v1.Dependency

Implements

DependencyOrBuilder

Static Fields

EMPTY_FIELD_NUMBER

public static final int EMPTY_FIELD_NUMBER
Field Value
Type Description
int

GIT_SOURCE_FIELD_NUMBER

public static final int GIT_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Dependency getDefaultInstance()
Returns
Type Description
Dependency

getDescriptor()

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

newBuilder()

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

newBuilder(Dependency prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Dependency getDefaultInstanceForType()
Returns
Type Description
Dependency

getDepCase()

public Dependency.DepCase getDepCase()
Returns
Type Description
Dependency.DepCase

getEmpty()

public boolean getEmpty()

If set to true disable all dependency fetching (ignoring the default source as well).

bool empty = 1;

Returns
Type Description
boolean

The empty.

getGitSource()

public Dependency.GitSourceDependency getGitSource()

Represents a git repository as a build dependency.

.google.devtools.cloudbuild.v1.Dependency.GitSourceDependency git_source = 2;

Returns
Type Description
Dependency.GitSourceDependency

The gitSource.

getGitSourceOrBuilder()

public Dependency.GitSourceDependencyOrBuilder getGitSourceOrBuilder()

Represents a git repository as a build dependency.

.google.devtools.cloudbuild.v1.Dependency.GitSourceDependency git_source = 2;

Returns
Type Description
Dependency.GitSourceDependencyOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasEmpty()

public boolean hasEmpty()

If set to true disable all dependency fetching (ignoring the default source as well).

bool empty = 1;

Returns
Type Description
boolean

Whether the empty field is set.

hasGitSource()

public boolean hasGitSource()

Represents a git repository as a build dependency.

.google.devtools.cloudbuild.v1.Dependency.GitSourceDependency git_source = 2;

Returns
Type Description
boolean

Whether the gitSource 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.Builder newBuilderForType()
Returns
Type Description
Dependency.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Dependency.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Dependency.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.Builder toBuilder()
Returns
Type Description
Dependency.Builder

writeTo(CodedOutputStream output)

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