Class SbomReferenceIntotoPayload (2.55.0)

public final class SbomReferenceIntotoPayload extends GeneratedMessageV3 implements SbomReferenceIntotoPayloadOrBuilder

The actual payload that contains the SBOM Reference data. The payload follows the intoto statement specification. See https://github.com/in-toto/attestation/blob/main/spec/v1.0/statement.md for more details.

Protobuf type grafeas.v1.SbomReferenceIntotoPayload

Static Fields

PREDICATE_FIELD_NUMBER

public static final int PREDICATE_FIELD_NUMBER
Field Value
Type Description
int

PREDICATE_TYPE_FIELD_NUMBER

public static final int PREDICATE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

SUBJECT_FIELD_NUMBER

public static final int SUBJECT_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SbomReferenceIntotoPayload getDefaultInstance()
Returns
Type Description
SbomReferenceIntotoPayload

getDescriptor()

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

newBuilder()

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

newBuilder(SbomReferenceIntotoPayload prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SbomReferenceIntotoPayload getDefaultInstanceForType()
Returns
Type Description
SbomReferenceIntotoPayload

getParserForType()

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

getPredicate()

public SbomReferenceIntotoPredicate getPredicate()

Additional parameters of the Predicate. Includes the actual data about the SBOM.

.grafeas.v1.SbomReferenceIntotoPredicate predicate = 4;

Returns
Type Description
SbomReferenceIntotoPredicate

The predicate.

getPredicateOrBuilder()

public SbomReferenceIntotoPredicateOrBuilder getPredicateOrBuilder()

Additional parameters of the Predicate. Includes the actual data about the SBOM.

.grafeas.v1.SbomReferenceIntotoPredicate predicate = 4;

Returns
Type Description
SbomReferenceIntotoPredicateOrBuilder

getPredicateType()

public String getPredicateType()

URI identifying the type of the Predicate.

string predicate_type = 2;

Returns
Type Description
String

The predicateType.

getPredicateTypeBytes()

public ByteString getPredicateTypeBytes()

URI identifying the type of the Predicate.

string predicate_type = 2;

Returns
Type Description
ByteString

The bytes for predicateType.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSubject(int index)

public Subject getSubject(int index)

Set of software artifacts that the attestation applies to. Each element represents a single software artifact.

repeated .grafeas.v1.Subject subject = 3;

Parameter
Name Description
index int
Returns
Type Description
Subject

getSubjectCount()

public int getSubjectCount()

Set of software artifacts that the attestation applies to. Each element represents a single software artifact.

repeated .grafeas.v1.Subject subject = 3;

Returns
Type Description
int

getSubjectList()

public List<Subject> getSubjectList()

Set of software artifacts that the attestation applies to. Each element represents a single software artifact.

repeated .grafeas.v1.Subject subject = 3;

Returns
Type Description
List<Subject>

getSubjectOrBuilder(int index)

public SubjectOrBuilder getSubjectOrBuilder(int index)

Set of software artifacts that the attestation applies to. Each element represents a single software artifact.

repeated .grafeas.v1.Subject subject = 3;

Parameter
Name Description
index int
Returns
Type Description
SubjectOrBuilder

getSubjectOrBuilderList()

public List<? extends SubjectOrBuilder> getSubjectOrBuilderList()

Set of software artifacts that the attestation applies to. Each element represents a single software artifact.

repeated .grafeas.v1.Subject subject = 3;

Returns
Type Description
List<? extends io.grafeas.v1.SubjectOrBuilder>

getType()

public String getType()

Identifier for the schema of the Statement.

string type = 1 [json_name = "_type"];

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Identifier for the schema of the Statement.

string type = 1 [json_name = "_type"];

Returns
Type Description
ByteString

The bytes for type.

hasPredicate()

public boolean hasPredicate()

Additional parameters of the Predicate. Includes the actual data about the SBOM.

.grafeas.v1.SbomReferenceIntotoPredicate predicate = 4;

Returns
Type Description
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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