Class SlsaProvenance (2.31.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
TypeDescription
int

MATERIALS_FIELD_NUMBER

public static final int MATERIALS_FIELD_NUMBER
Field Value
TypeDescription
int

METADATA_FIELD_NUMBER

public static final int METADATA_FIELD_NUMBER
Field Value
TypeDescription
int

RECIPE_FIELD_NUMBER

public static final int RECIPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SlsaProvenance getDefaultInstance()
Returns
TypeDescription
SlsaProvenance

getDescriptor()

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

newBuilder()

public static SlsaProvenance.Builder newBuilder()
Returns
TypeDescription
SlsaProvenance.Builder

newBuilder(SlsaProvenance prototype)

public static SlsaProvenance.Builder newBuilder(SlsaProvenance prototype)
Parameter
NameDescription
prototypeSlsaProvenance
Returns
TypeDescription
SlsaProvenance.Builder

parseDelimitedFrom(InputStream input)

public static SlsaProvenance parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SlsaProvenance
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SlsaProvenance parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SlsaProvenance
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SlsaProvenance parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SlsaProvenance
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SlsaProvenance parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SlsaProvenance
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SlsaProvenance parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SlsaProvenance
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SlsaProvenance parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SlsaProvenance
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SlsaProvenance parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SlsaProvenance
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SlsaProvenance parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SlsaProvenance
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SlsaProvenance parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SlsaProvenance
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SlsaProvenance parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SlsaProvenance
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SlsaProvenance parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SlsaProvenance
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SlsaProvenance parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SlsaProvenance
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SlsaProvenance> parser()
Returns
TypeDescription
Parser<SlsaProvenance>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBuilder()

public SlsaProvenance.SlsaBuilder getBuilder()

required

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

Returns
TypeDescription
SlsaProvenance.SlsaBuilder

The builder.

getBuilderOrBuilder()

public SlsaProvenance.SlsaBuilderOrBuilder getBuilderOrBuilder()

required

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

Returns
TypeDescription
SlsaProvenance.SlsaBuilderOrBuilder

getDefaultInstanceForType()

public SlsaProvenance getDefaultInstanceForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
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.

getMetadataOrBuilder()

public SlsaProvenance.SlsaMetadataOrBuilder getMetadataOrBuilder()

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

Returns
TypeDescription
SlsaProvenance.SlsaMetadataOrBuilder

getParserForType()

public Parser<SlsaProvenance> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
SlsaProvenance.SlsaRecipeOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SlsaProvenance.Builder newBuilderForType()
Returns
TypeDescription
SlsaProvenance.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SlsaProvenance.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SlsaProvenance.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SlsaProvenance.Builder toBuilder()
Returns
TypeDescription
SlsaProvenance.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException