Class SbomReferenceIntotoPayload.Builder (2.49.0)

public static final class SbomReferenceIntotoPayload.Builder extends GeneratedMessageV3.Builder<SbomReferenceIntotoPayload.Builder> 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 Methods

getDescriptor()

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

Methods

addAllSubject(Iterable<? extends Subject> values)

public SbomReferenceIntotoPayload.Builder addAllSubject(Iterable<? extends Subject> values)

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
values Iterable<? extends io.grafeas.v1.Subject>
Returns
Type Description
SbomReferenceIntotoPayload.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SbomReferenceIntotoPayload.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SbomReferenceIntotoPayload.Builder
Overrides

addSubject(int index, Subject value)

public SbomReferenceIntotoPayload.Builder addSubject(int index, Subject value)

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

repeated .grafeas.v1.Subject subject = 3;

Parameters
Name Description
index int
value Subject
Returns
Type Description
SbomReferenceIntotoPayload.Builder

addSubject(int index, Subject.Builder builderForValue)

public SbomReferenceIntotoPayload.Builder addSubject(int index, Subject.Builder builderForValue)

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

repeated .grafeas.v1.Subject subject = 3;

Parameters
Name Description
index int
builderForValue Subject.Builder
Returns
Type Description
SbomReferenceIntotoPayload.Builder

addSubject(Subject value)

public SbomReferenceIntotoPayload.Builder addSubject(Subject value)

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
value Subject
Returns
Type Description
SbomReferenceIntotoPayload.Builder

addSubject(Subject.Builder builderForValue)

public SbomReferenceIntotoPayload.Builder addSubject(Subject.Builder builderForValue)

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
builderForValue Subject.Builder
Returns
Type Description
SbomReferenceIntotoPayload.Builder

addSubjectBuilder()

public Subject.Builder addSubjectBuilder()

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

addSubjectBuilder(int index)

public Subject.Builder addSubjectBuilder(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.Builder

build()

public SbomReferenceIntotoPayload build()
Returns
Type Description
SbomReferenceIntotoPayload

buildPartial()

public SbomReferenceIntotoPayload buildPartial()
Returns
Type Description
SbomReferenceIntotoPayload

clear()

public SbomReferenceIntotoPayload.Builder clear()
Returns
Type Description
SbomReferenceIntotoPayload.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SbomReferenceIntotoPayload.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SbomReferenceIntotoPayload.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SbomReferenceIntotoPayload.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SbomReferenceIntotoPayload.Builder
Overrides

clearPredicate()

public SbomReferenceIntotoPayload.Builder clearPredicate()

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

.grafeas.v1.SbomReferenceIntotoPredicate predicate = 4;

Returns
Type Description
SbomReferenceIntotoPayload.Builder

clearPredicateType()

public SbomReferenceIntotoPayload.Builder clearPredicateType()

URI identifying the type of the Predicate.

string predicate_type = 2;

Returns
Type Description
SbomReferenceIntotoPayload.Builder

This builder for chaining.

clearSubject()

public SbomReferenceIntotoPayload.Builder clearSubject()

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

clearType()

public SbomReferenceIntotoPayload.Builder clearType()

Identifier for the schema of the Statement.

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

Returns
Type Description
SbomReferenceIntotoPayload.Builder

This builder for chaining.

clone()

public SbomReferenceIntotoPayload.Builder clone()
Returns
Type Description
SbomReferenceIntotoPayload.Builder
Overrides

getDefaultInstanceForType()

public SbomReferenceIntotoPayload getDefaultInstanceForType()
Returns
Type Description
SbomReferenceIntotoPayload

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

getPredicateBuilder()

public SbomReferenceIntotoPredicate.Builder getPredicateBuilder()

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

.grafeas.v1.SbomReferenceIntotoPredicate predicate = 4;

Returns
Type Description
SbomReferenceIntotoPredicate.Builder

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.

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

getSubjectBuilder(int index)

public Subject.Builder getSubjectBuilder(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.Builder

getSubjectBuilderList()

public List<Subject.Builder> getSubjectBuilderList()

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SbomReferenceIntotoPayload.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SbomReferenceIntotoPayload.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SbomReferenceIntotoPayload.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SbomReferenceIntotoPayload.Builder
Overrides

mergeFrom(SbomReferenceIntotoPayload other)

public SbomReferenceIntotoPayload.Builder mergeFrom(SbomReferenceIntotoPayload other)
Parameter
Name Description
other SbomReferenceIntotoPayload
Returns
Type Description
SbomReferenceIntotoPayload.Builder

mergePredicate(SbomReferenceIntotoPredicate value)

public SbomReferenceIntotoPayload.Builder mergePredicate(SbomReferenceIntotoPredicate value)

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

.grafeas.v1.SbomReferenceIntotoPredicate predicate = 4;

Parameter
Name Description
value SbomReferenceIntotoPredicate
Returns
Type Description
SbomReferenceIntotoPayload.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SbomReferenceIntotoPayload.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SbomReferenceIntotoPayload.Builder
Overrides

removeSubject(int index)

public SbomReferenceIntotoPayload.Builder removeSubject(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
SbomReferenceIntotoPayload.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SbomReferenceIntotoPayload.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SbomReferenceIntotoPayload.Builder
Overrides

setPredicate(SbomReferenceIntotoPredicate value)

public SbomReferenceIntotoPayload.Builder setPredicate(SbomReferenceIntotoPredicate value)

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

.grafeas.v1.SbomReferenceIntotoPredicate predicate = 4;

Parameter
Name Description
value SbomReferenceIntotoPredicate
Returns
Type Description
SbomReferenceIntotoPayload.Builder

setPredicate(SbomReferenceIntotoPredicate.Builder builderForValue)

public SbomReferenceIntotoPayload.Builder setPredicate(SbomReferenceIntotoPredicate.Builder builderForValue)

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

.grafeas.v1.SbomReferenceIntotoPredicate predicate = 4;

Parameter
Name Description
builderForValue SbomReferenceIntotoPredicate.Builder
Returns
Type Description
SbomReferenceIntotoPayload.Builder

setPredicateType(String value)

public SbomReferenceIntotoPayload.Builder setPredicateType(String value)

URI identifying the type of the Predicate.

string predicate_type = 2;

Parameter
Name Description
value String

The predicateType to set.

Returns
Type Description
SbomReferenceIntotoPayload.Builder

This builder for chaining.

setPredicateTypeBytes(ByteString value)

public SbomReferenceIntotoPayload.Builder setPredicateTypeBytes(ByteString value)

URI identifying the type of the Predicate.

string predicate_type = 2;

Parameter
Name Description
value ByteString

The bytes for predicateType to set.

Returns
Type Description
SbomReferenceIntotoPayload.Builder

This builder for chaining.

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

public SbomReferenceIntotoPayload.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SbomReferenceIntotoPayload.Builder
Overrides

setSubject(int index, Subject value)

public SbomReferenceIntotoPayload.Builder setSubject(int index, Subject value)

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

repeated .grafeas.v1.Subject subject = 3;

Parameters
Name Description
index int
value Subject
Returns
Type Description
SbomReferenceIntotoPayload.Builder

setSubject(int index, Subject.Builder builderForValue)

public SbomReferenceIntotoPayload.Builder setSubject(int index, Subject.Builder builderForValue)

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

repeated .grafeas.v1.Subject subject = 3;

Parameters
Name Description
index int
builderForValue Subject.Builder
Returns
Type Description
SbomReferenceIntotoPayload.Builder

setType(String value)

public SbomReferenceIntotoPayload.Builder setType(String value)

Identifier for the schema of the Statement.

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

Parameter
Name Description
value String

The type to set.

Returns
Type Description
SbomReferenceIntotoPayload.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public SbomReferenceIntotoPayload.Builder setTypeBytes(ByteString value)

Identifier for the schema of the Statement.

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

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
SbomReferenceIntotoPayload.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SbomReferenceIntotoPayload.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SbomReferenceIntotoPayload.Builder
Overrides