Class SlsaProvenance (2.43.0)

public final class SlsaProvenance extends GeneratedMessageV3 implements SlsaProvenanceOrBuilder

Protobuf type grafeas.v1.SlsaProvenance

Static Fields

BUILDER_FIELD_NUMBER

public static final int BUILDER_FIELD_NUMBER
Field Value
Type Description
int

MATERIALS_FIELD_NUMBER

public static final int MATERIALS_FIELD_NUMBER
Field Value
Type Description
int

METADATA_FIELD_NUMBER

public static final int METADATA_FIELD_NUMBER
Field Value
Type Description
int

RECIPE_FIELD_NUMBER

public static final int RECIPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SlsaProvenance getDefaultInstance()
Returns
Type Description
SlsaProvenance

getDescriptor()

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

newBuilder()

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

newBuilder(SlsaProvenance prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBuilder()

public SlsaProvenance.SlsaBuilder getBuilder()

required

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

Returns
Type Description
SlsaProvenance.SlsaBuilder

The builder.

getBuilderOrBuilder()

public SlsaProvenance.SlsaBuilderOrBuilder getBuilderOrBuilder()

required

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

Returns
Type Description
SlsaProvenance.SlsaBuilderOrBuilder

getDefaultInstanceForType()

public SlsaProvenance getDefaultInstanceForType()
Returns
Type Description
SlsaProvenance

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
Name Description
index int
Returns
Type Description
SlsaProvenance.Material

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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends io.grafeas.v1.SlsaProvenance.MaterialOrBuilder>

getMetadata()

public SlsaProvenance.SlsaMetadata getMetadata()

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

Returns
Type Description
SlsaProvenance.SlsaMetadata

The metadata.

getMetadataOrBuilder()

public SlsaProvenance.SlsaMetadataOrBuilder getMetadataOrBuilder()

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

Returns
Type Description
SlsaProvenance.SlsaMetadataOrBuilder

getParserForType()

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

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
Type Description
SlsaProvenance.SlsaRecipe

The recipe.

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
Type Description
SlsaProvenance.SlsaRecipeOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasBuilder()

public boolean hasBuilder()

required

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

Returns
Type Description
boolean

Whether the builder field is set.

hasMetadata()

public boolean hasMetadata()

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

Returns
Type Description
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
Type Description
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SlsaProvenance.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SlsaProvenance.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SlsaProvenance.Builder toBuilder()
Returns
Type Description
SlsaProvenance.Builder

writeTo(CodedOutputStream output)

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