Class SBOMReferenceOccurrence.Builder (2.45.0)

public static final class SBOMReferenceOccurrence.Builder extends GeneratedMessageV3.Builder<SBOMReferenceOccurrence.Builder> implements SBOMReferenceOccurrenceOrBuilder

The 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

Static 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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

clone()

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

getDefaultInstanceForType()

public SBOMReferenceOccurrence getDefaultInstanceForType()
Returns
Type Description
SBOMReferenceOccurrence

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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 String

The 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 ByteString

The bytes for payloadType to set.

Returns
Type Description
SBOMReferenceOccurrence.Builder

This builder for chaining.

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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