Class SlsaProvenance.Builder (2.28.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()

public SlsaProvenance.Builder clear()
Returns
TypeDescription
SlsaProvenance.Builder
Overrides

clearBuilder()

public SlsaProvenance.Builder clearBuilder()

required

.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;

Returns
TypeDescription
SlsaProvenance.Builder

clearField(Descriptors.FieldDescriptor field)

public SlsaProvenance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SlsaProvenance.Builder
Overrides

clearMaterials()

public SlsaProvenance.Builder clearMaterials()

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.Builder

clearMetadata()

public SlsaProvenance.Builder clearMetadata()

.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;

Returns
TypeDescription
SlsaProvenance.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SlsaProvenance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SlsaProvenance.Builder
Overrides

clearRecipe()

public SlsaProvenance.Builder clearRecipe()

Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).

.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;

Returns
TypeDescription
SlsaProvenance.Builder

clone()

public SlsaProvenance.Builder clone()
Returns
TypeDescription
SlsaProvenance.Builder
Overrides

getBuilder()

public SlsaProvenance.SlsaBuilder getBuilder()

required

.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;

Returns
TypeDescription
SlsaProvenance.SlsaBuilder

The builder.

getBuilderBuilder()

public SlsaProvenance.SlsaBuilder.Builder getBuilderBuilder()

required

.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;

Returns
TypeDescription
SlsaProvenance.SlsaBuilder.Builder

getBuilderOrBuilder()

public SlsaProvenance.SlsaBuilderOrBuilder getBuilderOrBuilder()

required

.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;

Returns
TypeDescription
SlsaProvenance.SlsaBuilderOrBuilder

getDefaultInstanceForType()

public SlsaProvenance getDefaultInstanceForType()
Returns
TypeDescription
SlsaProvenance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMaterials(int index)

public SlsaProvenance.Material getMaterials(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

getMaterialsBuilder(int index)

public SlsaProvenance.Material.Builder getMaterialsBuilder(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

getMaterialsBuilderList()

public List<SlsaProvenance.Material.Builder> getMaterialsBuilderList()

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
List<Builder>

getMaterialsCount()

public int getMaterialsCount()

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
int

getMaterialsList()

public List<SlsaProvenance.Material> getMaterialsList()

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
List<Material>

getMaterialsOrBuilder(int index)

public SlsaProvenance.MaterialOrBuilder getMaterialsOrBuilder(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.MaterialOrBuilder

getMaterialsOrBuilderList()

public List<? extends SlsaProvenance.MaterialOrBuilder> getMaterialsOrBuilderList()

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
List<? extends io.grafeas.v1.SlsaProvenance.MaterialOrBuilder>

getMetadata()

public SlsaProvenance.SlsaMetadata getMetadata()

.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;

Returns
TypeDescription
SlsaProvenance.SlsaMetadata

The metadata.

getMetadataBuilder()

public SlsaProvenance.SlsaMetadata.Builder getMetadataBuilder()

.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;

Returns
TypeDescription
SlsaProvenance.SlsaMetadata.Builder

getMetadataOrBuilder()

public SlsaProvenance.SlsaMetadataOrBuilder getMetadataOrBuilder()

.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;

Returns
TypeDescription
SlsaProvenance.SlsaMetadataOrBuilder

getRecipe()

public SlsaProvenance.SlsaRecipe getRecipe()

Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).

.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;

Returns
TypeDescription
SlsaProvenance.SlsaRecipe

The recipe.

getRecipeBuilder()

public SlsaProvenance.SlsaRecipe.Builder getRecipeBuilder()

Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).

.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;

Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder

getRecipeOrBuilder()

public SlsaProvenance.SlsaRecipeOrBuilder getRecipeOrBuilder()

Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).

.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;

Returns
TypeDescription
SlsaProvenance.SlsaRecipeOrBuilder

hasBuilder()

public boolean hasBuilder()

required

.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;

Returns
TypeDescription
boolean

Whether the builder field is set.

hasMetadata()

public boolean hasMetadata()

.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;

Returns
TypeDescription
boolean

Whether the metadata field is set.

hasRecipe()

public boolean hasRecipe()

Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).

.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;

Returns
TypeDescription
boolean

Whether the recipe field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBuilder(SlsaProvenance.SlsaBuilder value)

public SlsaProvenance.Builder mergeBuilder(SlsaProvenance.SlsaBuilder value)

required

.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;

Parameter
NameDescription
valueSlsaProvenance.SlsaBuilder
Returns
TypeDescription
SlsaProvenance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SlsaProvenance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SlsaProvenance.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SlsaProvenance.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SlsaProvenance.Builder
Overrides

mergeFrom(SlsaProvenance other)

public SlsaProvenance.Builder mergeFrom(SlsaProvenance other)
Parameter
NameDescription
otherSlsaProvenance
Returns
TypeDescription
SlsaProvenance.Builder

mergeMetadata(SlsaProvenance.SlsaMetadata value)

public SlsaProvenance.Builder mergeMetadata(SlsaProvenance.SlsaMetadata value)

.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;

Parameter
NameDescription
valueSlsaProvenance.SlsaMetadata
Returns
TypeDescription
SlsaProvenance.Builder

mergeRecipe(SlsaProvenance.SlsaRecipe value)

public SlsaProvenance.Builder mergeRecipe(SlsaProvenance.SlsaRecipe value)

Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).

.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;

Parameter
NameDescription
valueSlsaProvenance.SlsaRecipe
Returns
TypeDescription
SlsaProvenance.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SlsaProvenance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SlsaProvenance.Builder
Overrides

removeMaterials(int index)

public SlsaProvenance.Builder removeMaterials(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.Builder

setBuilder(SlsaProvenance.SlsaBuilder value)

public SlsaProvenance.Builder setBuilder(SlsaProvenance.SlsaBuilder value)

required

.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;

Parameter
NameDescription
valueSlsaProvenance.SlsaBuilder
Returns
TypeDescription
SlsaProvenance.Builder

setBuilder(SlsaProvenance.SlsaBuilder.Builder builderForValue)

public SlsaProvenance.Builder setBuilder(SlsaProvenance.SlsaBuilder.Builder builderForValue)

required

.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMaterials(int index, SlsaProvenance.Material value)

public SlsaProvenance.Builder setMaterials(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

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

public SlsaProvenance.Builder setMaterials(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

setMetadata(SlsaProvenance.SlsaMetadata value)

public SlsaProvenance.Builder setMetadata(SlsaProvenance.SlsaMetadata value)

.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;

Parameter
NameDescription
valueSlsaProvenance.SlsaMetadata
Returns
TypeDescription
SlsaProvenance.Builder

setMetadata(SlsaProvenance.SlsaMetadata.Builder builderForValue)

public SlsaProvenance.Builder setMetadata(SlsaProvenance.SlsaMetadata.Builder builderForValue)

.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;

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

setRecipe(SlsaProvenance.SlsaRecipe value)

public SlsaProvenance.Builder setRecipe(SlsaProvenance.SlsaRecipe value)

Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).

.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;

Parameter
NameDescription
valueSlsaProvenance.SlsaRecipe
Returns
TypeDescription
SlsaProvenance.Builder

setRecipe(SlsaProvenance.SlsaRecipe.Builder builderForValue)

public SlsaProvenance.Builder setRecipe(SlsaProvenance.SlsaRecipe.Builder builderForValue)

Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).

.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;

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

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SlsaProvenance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SlsaProvenance.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SlsaProvenance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SlsaProvenance.Builder
Overrides