# Grafeas V1 API - Class Grafeas::V1::SBOMReferenceOccurrence (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.0 1.5.1 1.4.0 1.3.1 1.2.0 1.1.1 1.0.0 0.16.1 0.15.0 0.14.2 0.13.0 0.12.1 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.1 Reference documentation and code samples for the Grafeas V1 API class Grafeas::V1::SBOMReferenceOccurrence.

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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #payload

    def payload() -> ::Grafeas::V1::SbomReferenceIntotoPayload

**Returns**

- ([::Grafeas::V1::SbomReferenceIntotoPayload](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-SbomReferenceIntotoPayload)) --- The actual payload that contains the SBOM reference data.

### #payload=

    def payload=(value) -> ::Grafeas::V1::SbomReferenceIntotoPayload

**Parameter**

- **value** ([::Grafeas::V1::SbomReferenceIntotoPayload](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-SbomReferenceIntotoPayload)) --- The actual payload that contains the SBOM reference data.
**Returns**

- ([::Grafeas::V1::SbomReferenceIntotoPayload](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-SbomReferenceIntotoPayload)) --- The actual payload that contains the SBOM reference data.

### #payload_type

    def payload_type() -> ::String

**Returns**

- (::String) --- 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'.

### #payload_type=

    def payload_type=(value) -> ::String

**Parameter**

- **value** (::String) --- 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'.
**Returns**

- (::String) --- 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'.

### #signatures

    def signatures() -> ::Array<::Grafeas::V1::EnvelopeSignature>

**Returns**

- (::Array\<[::Grafeas::V1::EnvelopeSignature](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-EnvelopeSignature)\>) --- The signatures over the payload.

### #signatures=

    def signatures=(value) -> ::Array<::Grafeas::V1::EnvelopeSignature>

**Parameter**

- **value** (::Array\<[::Grafeas::V1::EnvelopeSignature](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-EnvelopeSignature)\>) --- The signatures over the payload.
**Returns**

- (::Array\<[::Grafeas::V1::EnvelopeSignature](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-EnvelopeSignature)\>) --- The signatures over the payload.