Class SlsaProvenance.Builder (2.31.0)

public static final class SlsaProvenance.Builder extends GeneratedMessageV3.Builder<SlsaProvenance.Builder> implements SlsaProvenanceOrBuilder

Protobuf type grafeas.v1.SlsaProvenance

Static Methods

getDescriptor()

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

Methods

addAllMaterials(Iterable<? extends SlsaProvenance.Material> values)

public SlsaProvenance.Builder addAllMaterials(Iterable<? extends SlsaProvenance.Material> values)

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.

repeated .grafeas.v1.SlsaProvenance.Material materials = 4;

Parameter
NameDescription
valuesIterable<? extends io.grafeas.v1.SlsaProvenance.Material>
Returns
TypeDescription
SlsaProvenance.Builder

addMaterials(int index, SlsaProvenance.Material value)

public SlsaProvenance.Builder addMaterials(int index, SlsaProvenance.Material value)

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.

repeated .grafeas.v1.SlsaProvenance.Material materials = 4;

Parameters
NameDescription
indexint
valueSlsaProvenance.Material
Returns
TypeDescription
SlsaProvenance.Builder

addMaterials(int index, SlsaProvenance.Material.Builder builderForValue)

public SlsaProvenance.Builder addMaterials(int index, SlsaProvenance.Material.Builder builderForValue)

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.

repeated .grafeas.v1.SlsaProvenance.Material materials = 4;

Parameters
NameDescription
indexint
builderForValueSlsaProvenance.Material.Builder
Returns
TypeDescription
SlsaProvenance.Builder

addMaterials(SlsaProvenance.Material value)

public SlsaProvenance.Builder addMaterials(SlsaProvenance.Material value)

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.

repeated .grafeas.v1.SlsaProvenance.Material materials = 4;

Parameter
NameDescription
valueSlsaProvenance.Material
Returns
TypeDescription
SlsaProvenance.Builder

addMaterials(SlsaProvenance.Material.Builder builderForValue)

public SlsaProvenance.Builder addMaterials(SlsaProvenance.Material.Builder builderForValue)

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.

repeated .grafeas.v1.SlsaProvenance.Material materials = 4;

Parameter
NameDescription
builderForValueSlsaProvenance.Material.Builder
Returns
TypeDescription
SlsaProvenance.Builder

addMaterialsBuilder()

public SlsaProvenance.Material.Builder addMaterialsBuilder()

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.

repeated .grafeas.v1.SlsaProvenance.Material materials = 4;

Returns
TypeDescription
SlsaProvenance.Material.Builder

addMaterialsBuilder(int index)

public SlsaProvenance.Material.Builder addMaterialsBuilder(int index)

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.

repeated .grafeas.v1.SlsaProvenance.Material materials = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
SlsaProvenance.Material.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SlsaProvenance build()
Returns
TypeDescription
SlsaProvenance

buildPartial()

public SlsaProvenance buildPartial()
Returns
TypeDescription
SlsaProvenance

clear()