Class InTotoProvenance (2.52.0)

public final class InTotoProvenance extends GeneratedMessageV3 implements InTotoProvenanceOrBuilder

Protobuf type grafeas.v1.InTotoProvenance

Static Fields

BUILDER_CONFIG_FIELD_NUMBER

public static final int BUILDER_CONFIG_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 InTotoProvenance getDefaultInstance()
Returns
Type Description
InTotoProvenance

getDescriptor()

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

newBuilder()

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

newBuilder(InTotoProvenance prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBuilderConfig()

public BuilderConfig getBuilderConfig()

required

.grafeas.v1.BuilderConfig builder_config = 1;

Returns
Type Description
BuilderConfig

The builderConfig.

getBuilderConfigOrBuilder()

public BuilderConfigOrBuilder getBuilderConfigOrBuilder()

required

.grafeas.v1.BuilderConfig builder_config = 1;

Returns
Type Description
BuilderConfigOrBuilder

getDefaultInstanceForType()

public InTotoProvenance getDefaultInstanceForType()
Returns
Type Description
InTotoProvenance

getMaterials(int index)

public String 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 string materials = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The materials at the given index.

getMaterialsBytes(int index)

public ByteString getMaterialsBytes(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 string materials = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the materials at the given index.

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 string materials = 4;

Returns
Type Description
int

The count of materials.

getMaterialsList()

public ProtocolStringList 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 string materials = 4;

Returns
Type Description
ProtocolStringList

A list containing the materials.

getMetadata()

public Metadata getMetadata()

.grafeas.v1.Metadata metadata = 3;

Returns
Type Description
Metadata

The metadata.

getMetadataOrBuilder()

public MetadataOrBuilder getMetadataOrBuilder()

.grafeas.v1.Metadata metadata = 3;

Returns
Type Description
MetadataOrBuilder

getParserForType()

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

getRecipe()

public Recipe 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.Recipe recipe = 2;

Returns
Type Description
Recipe

The recipe.

getRecipeOrBuilder()

public RecipeOrBuilder 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.Recipe recipe = 2;

Returns
Type Description
RecipeOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasBuilderConfig()

public boolean hasBuilderConfig()

required

.grafeas.v1.BuilderConfig builder_config = 1;

Returns
Type Description
boolean

Whether the builderConfig field is set.

hasMetadata()

public boolean hasMetadata()

.grafeas.v1.Metadata 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.Recipe 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 InTotoProvenance.Builder newBuilderForType()
Returns
Type Description
InTotoProvenance.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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