Class Artifact.Builder (2.19.0)

public static final class Artifact.Builder extends GeneratedMessageV3.Builder<Artifact.Builder> implements ArtifactOrBuilder

Artifact describes a build product.

Protobuf type grafeas.v1.Artifact

Implements

ArtifactOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllNames(Iterable<String> values)

public Artifact.Builder addAllNames(Iterable<String> values)

Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to docker push. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.

repeated string names = 3;

Parameter
NameDescription
valuesIterable<String>

The names to add.

Returns
TypeDescription
Artifact.Builder

This builder for chaining.

addNames(String value)

public Artifact.Builder addNames(String value)

Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to docker push. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.

repeated string names = 3;

Parameter
NameDescription
valueString

The names to add.

Returns
TypeDescription
Artifact.Builder

This builder for chaining.

addNamesBytes(ByteString value)

public Artifact.Builder addNamesBytes(ByteString value)

Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to docker push. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.

repeated string names = 3;

Parameter
NameDescription
valueByteString

The bytes of the names to add.

Returns
TypeDescription
Artifact.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Artifact.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Artifact.Builder
Overrides

build()