public static final class SBOMReferenceOccurrence.Builder extends GeneratedMessage.Builder<SBOMReferenceOccurrence.Builder> implements SBOMReferenceOccurrenceOrBuilderThe occurrence representing an SBOM reference as applied to a specific resource. The occurrence follows the DSSE specification. See https://github.com/secure-systems-lab/dsse/blob/master/envelope.md for more details.
Protobuf type grafeas.v1.SBOMReferenceOccurrence
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SBOMReferenceOccurrence.BuilderImplements
SBOMReferenceOccurrenceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllSignatures(Iterable<? extends EnvelopeSignature> values)
public SBOMReferenceOccurrence.Builder addAllSignatures(Iterable<? extends EnvelopeSignature> values)The signatures over the payload.
repeated .grafeas.v1.EnvelopeSignature signatures = 3;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends io.grafeas.v1.EnvelopeSignature> |
| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
|
addSignatures(int index, EnvelopeSignature value)
public SBOMReferenceOccurrence.Builder addSignatures(int index, EnvelopeSignature value)The signatures over the payload.
repeated .grafeas.v1.EnvelopeSignature signatures = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
EnvelopeSignature |
| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
|
addSignatures(int index, EnvelopeSignature.Builder builderForValue)
public SBOMReferenceOccurrence.Builder addSignatures(int index, EnvelopeSignature.Builder builderForValue)The signatures over the payload.
repeated .grafeas.v1.EnvelopeSignature signatures = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
EnvelopeSignature.Builder |
| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
|
addSignatures(EnvelopeSignature value)
public SBOMReferenceOccurrence.Builder addSignatures(EnvelopeSignature value)The signatures over the payload.
repeated .grafeas.v1.EnvelopeSignature signatures = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
EnvelopeSignature |
| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
|
addSignatures(EnvelopeSignature.Builder builderForValue)
public SBOMReferenceOccurrence.Builder addSignatures(EnvelopeSignature.Builder builderForValue)The signatures over the payload.
repeated .grafeas.v1.EnvelopeSignature signatures = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
EnvelopeSignature.Builder |
| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
|
addSignaturesBuilder()
public EnvelopeSignature.Builder addSignaturesBuilder()The signatures over the payload.
repeated .grafeas.v1.EnvelopeSignature signatures = 3;
| Returns | |
|---|---|
| Type | Description |
EnvelopeSignature.Builder |
|
addSignaturesBuilder(int index)
public EnvelopeSignature.Builder addSignaturesBuilder(int index)The signatures over the payload.
repeated .grafeas.v1.EnvelopeSignature signatures = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
EnvelopeSignature.Builder |
|
build()
public SBOMReferenceOccurrence build()| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence |
|
buildPartial()
public SBOMReferenceOccurrence buildPartial()| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence |
|
clear()
public SBOMReferenceOccurrence.Builder clear()| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
|
clearPayload()
public SBOMReferenceOccurrence.Builder clearPayload()The actual payload that contains the SBOM reference data.
.grafeas.v1.SbomReferenceIntotoPayload payload = 1;
| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
|
clearPayloadType()
public SBOMReferenceOccurrence.Builder clearPayloadType()The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the intoto format, this value is expected to be 'application/vnd.in-toto+json'.
string payload_type = 2;
| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
This builder for chaining. |
clearSignatures()
public SBOMReferenceOccurrence.Builder clearSignatures()The signatures over the payload.
repeated .grafeas.v1.EnvelopeSignature signatures = 3;
| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
|
getDefaultInstanceForType()
public SBOMReferenceOccurrence getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPayload()
public SbomReferenceIntotoPayload getPayload()The actual payload that contains the SBOM reference data.
.grafeas.v1.SbomReferenceIntotoPayload payload = 1;
| Returns | |
|---|---|
| Type | Description |
SbomReferenceIntotoPayload |
The payload. |
getPayloadBuilder()
public SbomReferenceIntotoPayload.Builder getPayloadBuilder()The actual payload that contains the SBOM reference data.
.grafeas.v1.SbomReferenceIntotoPayload payload = 1;
| Returns | |
|---|---|
| Type | Description |
SbomReferenceIntotoPayload.Builder |
|
getPayloadOrBuilder()
public SbomReferenceIntotoPayloadOrBuilder getPayloadOrBuilder()The actual payload that contains the SBOM reference data.
.grafeas.v1.SbomReferenceIntotoPayload payload = 1;
| Returns | |
|---|---|
| Type | Description |
SbomReferenceIntotoPayloadOrBuilder |
|
getPayloadType()
public String getPayloadType()The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the intoto format, this value is expected to be 'application/vnd.in-toto+json'.
string payload_type = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The payloadType. |
getPayloadTypeBytes()
public ByteString getPayloadTypeBytes()The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the intoto format, this value is expected to be 'application/vnd.in-toto+json'.
string payload_type = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for payloadType. |
getSignatures(int index)
public EnvelopeSignature getSignatures(int index)The signatures over the payload.
repeated .grafeas.v1.EnvelopeSignature signatures = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
EnvelopeSignature |
|
getSignaturesBuilder(int index)
public EnvelopeSignature.Builder getSignaturesBuilder(int index)The signatures over the payload.
repeated .grafeas.v1.EnvelopeSignature signatures = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
EnvelopeSignature.Builder |
|
getSignaturesBuilderList()
public List<EnvelopeSignature.Builder> getSignaturesBuilderList()The signatures over the payload.
repeated .grafeas.v1.EnvelopeSignature signatures = 3;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getSignaturesCount()
public int getSignaturesCount()The signatures over the payload.
repeated .grafeas.v1.EnvelopeSignature signatures = 3;
| Returns | |
|---|---|
| Type | Description |
int |
|
getSignaturesList()
public List<EnvelopeSignature> getSignaturesList()The signatures over the payload.
repeated .grafeas.v1.EnvelopeSignature signatures = 3;
| Returns | |
|---|---|
| Type | Description |
List<EnvelopeSignature> |
|
getSignaturesOrBuilder(int index)
public EnvelopeSignatureOrBuilder getSignaturesOrBuilder(int index)The signatures over the payload.
repeated .grafeas.v1.EnvelopeSignature signatures = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
EnvelopeSignatureOrBuilder |
|
getSignaturesOrBuilderList()
public List<? extends EnvelopeSignatureOrBuilder> getSignaturesOrBuilderList()The signatures over the payload.
repeated .grafeas.v1.EnvelopeSignature signatures = 3;
| Returns | |
|---|---|
| Type | Description |
List<? extends io.grafeas.v1.EnvelopeSignatureOrBuilder> |
|
hasPayload()
public boolean hasPayload()The actual payload that contains the SBOM reference data.
.grafeas.v1.SbomReferenceIntotoPayload payload = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the payload 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 SBOMReferenceOccurrence.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SBOMReferenceOccurrence.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
|
mergeFrom(SBOMReferenceOccurrence other)
public SBOMReferenceOccurrence.Builder mergeFrom(SBOMReferenceOccurrence other)| Parameter | |
|---|---|
| Name | Description |
other |
SBOMReferenceOccurrence |
| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
|
mergePayload(SbomReferenceIntotoPayload value)
public SBOMReferenceOccurrence.Builder mergePayload(SbomReferenceIntotoPayload value)The actual payload that contains the SBOM reference data.
.grafeas.v1.SbomReferenceIntotoPayload payload = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
SbomReferenceIntotoPayload |
| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
|
removeSignatures(int index)
public SBOMReferenceOccurrence.Builder removeSignatures(int index)The signatures over the payload.
repeated .grafeas.v1.EnvelopeSignature signatures = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
|
setPayload(SbomReferenceIntotoPayload value)
public SBOMReferenceOccurrence.Builder setPayload(SbomReferenceIntotoPayload value)The actual payload that contains the SBOM reference data.
.grafeas.v1.SbomReferenceIntotoPayload payload = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
SbomReferenceIntotoPayload |
| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
|
setPayload(SbomReferenceIntotoPayload.Builder builderForValue)
public SBOMReferenceOccurrence.Builder setPayload(SbomReferenceIntotoPayload.Builder builderForValue)The actual payload that contains the SBOM reference data.
.grafeas.v1.SbomReferenceIntotoPayload payload = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SbomReferenceIntotoPayload.Builder |
| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
|
setPayloadType(String value)
public SBOMReferenceOccurrence.Builder setPayloadType(String value)The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the intoto format, this value is expected to be 'application/vnd.in-toto+json'.
string payload_type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe payloadType to set. |
| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
This builder for chaining. |
setPayloadTypeBytes(ByteString value)
public SBOMReferenceOccurrence.Builder setPayloadTypeBytes(ByteString value)The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the intoto format, this value is expected to be 'application/vnd.in-toto+json'.
string payload_type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for payloadType to set. |
| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
This builder for chaining. |
setSignatures(int index, EnvelopeSignature value)
public SBOMReferenceOccurrence.Builder setSignatures(int index, EnvelopeSignature value)The signatures over the payload.
repeated .grafeas.v1.EnvelopeSignature signatures = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
EnvelopeSignature |
| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
|
setSignatures(int index, EnvelopeSignature.Builder builderForValue)
public SBOMReferenceOccurrence.Builder setSignatures(int index, EnvelopeSignature.Builder builderForValue)The signatures over the payload.
repeated .grafeas.v1.EnvelopeSignature signatures = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
EnvelopeSignature.Builder |
| Returns | |
|---|---|
| Type | Description |
SBOMReferenceOccurrence.Builder |
|