public static final class SbomReferenceIntotoPayload.Builder extends GeneratedMessage.Builder<SbomReferenceIntotoPayload.Builder> implements SbomReferenceIntotoPayloadOrBuilderThe 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SbomReferenceIntotoPayload.BuilderImplements
SbomReferenceIntotoPayloadOrBuilderStatic 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 |
|
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 |
|
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. |
getDefaultInstanceForType()
public SbomReferenceIntotoPayload getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SbomReferenceIntotoPayload |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SbomReferenceIntotoPayload.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SbomReferenceIntotoPayload.Builder |
|
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 |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for predicateType to set. |
| Returns | |
|---|---|
| Type | Description |
SbomReferenceIntotoPayload.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe bytes for type to set. |
| Returns | |
|---|---|
| Type | Description |
SbomReferenceIntotoPayload.Builder |
This builder for chaining. |