Class BuildProvenance.Builder (2.37.0)

public static final class BuildProvenance.Builder extends GeneratedMessageV3.Builder<BuildProvenance.Builder> implements BuildProvenanceOrBuilder

Provenance of a build. Contains all information needed to verify the full details about the build from source to completion.

Protobuf type grafeas.v1.BuildProvenance

Static Methods

getDescriptor()

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

Methods

addAllBuiltArtifacts(Iterable<? extends Artifact> values)

public BuildProvenance.Builder addAllBuiltArtifacts(Iterable<? extends Artifact> values)

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Parameter
NameDescription
valuesIterable<? extends io.grafeas.v1.Artifact>
Returns
TypeDescription
BuildProvenance.Builder

addAllCommands(Iterable<? extends Command> values)

public BuildProvenance.Builder addAllCommands(Iterable<? extends Command> values)

Commands requested by the build.

repeated .grafeas.v1.Command commands = 3;

Parameter
NameDescription
valuesIterable<? extends io.grafeas.v1.Command>
Returns
TypeDescription
BuildProvenance.Builder

addBuiltArtifacts(int index, Artifact value)

public BuildProvenance.Builder addBuiltArtifacts(int index, Artifact value)

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Parameters
NameDescription
indexint
valueArtifact
Returns
TypeDescription
BuildProvenance.Builder

addBuiltArtifacts(int index, Artifact.Builder builderForValue)

public BuildProvenance.Builder addBuiltArtifacts(int index, Artifact.Builder builderForValue)

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Parameters
NameDescription
indexint
builderForValueArtifact.Builder
Returns
TypeDescription
BuildProvenance.Builder

addBuiltArtifacts(Artifact value)

public BuildProvenance.Builder addBuiltArtifacts(Artifact value)

Output of the build.

repeated .grafeas.v1.Artifact built_artifacts = 4;

Parameter
NameDescription
valueArtifact
Returns
Type