3.16.0 (latest) 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.4.0 2.3.0 2.2.0

    public sealed class DiscoveryOccurrence : IMessage<DiscoveryOccurrence>, IEquatable<DiscoveryOccurrence>, IDeepCloneable<DiscoveryOccurrence>, IBufferMessage, IMessage

Reference documentation and code samples for the Grafeas v1 API class DiscoveryOccurrence.

Provides information about the analysis status of a discovered resource.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> DiscoveryOccurrence

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DiscoveryOccurrence](https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrence), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DiscoveryOccurrence](https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrence), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DiscoveryOccurrence](https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrence), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Grafeas.V1](https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1)

## Assembly

Grafeas.V1.dll

## Constructors

### DiscoveryOccurrence()

    public DiscoveryOccurrence()

### DiscoveryOccurrence(DiscoveryOccurrence)

    public DiscoveryOccurrence(DiscoveryOccurrence other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrence` |

## Properties

### AnalysisCompleted

    public DiscoveryOccurrence.Types.AnalysisCompleted AnalysisCompleted { get; set; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrencehttps://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrence.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrence.Types.AnalysisCompleted` |   |

### AnalysisError

    public RepeatedField<Status> AnalysisError { get; }

Indicates any errors encountered during analysis of a resource. There
could be 0 or more of these errors.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Status.html` |   |

### AnalysisStatus

    public DiscoveryOccurrence.Types.AnalysisStatus AnalysisStatus { get; set; }

The status of discovery for the resource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrencehttps://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrence.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrence.Types.AnalysisStatus` |   |

### AnalysisStatusError

    public Status AnalysisStatusError { get; set; }

When an error is encountered this will contain a LocalizedMessage under
details to show to the user. The LocalizedMessage is output only and
populated by the API.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Status.html` |   |

### ArchiveTime

    public Timestamp ArchiveTime { get; set; }

The time occurrences related to this discovery occurrence were archived.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### ContinuousAnalysis

    public DiscoveryOccurrence.Types.ContinuousAnalysis ContinuousAnalysis { get; set; }

Whether the resource is continuously analyzed.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrencehttps://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrence.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrence.Types.ContinuousAnalysis` |   |

### Cpe

    public string Cpe { get; set; }

The CPE of the resource being scanned.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Files

    public RepeatedField<DiscoveryOccurrence.Types.File> Files { get; }

Files that make up the resource described by the occurrence.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrencehttps://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrence.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrence.Types.File` |   |

### LastScanTime

    public Timestamp LastScanTime { get; set; }

The last time this resource was scanned.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### LastVulnerabilityUpdateTime

    public Timestamp LastVulnerabilityUpdateTime { get; set; }

The last time vulnerability scan results changed.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### SbomStatus

    public DiscoveryOccurrence.Types.SBOMStatus SbomStatus { get; set; }

The status of an SBOM generation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrencehttps://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrence.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrence.Types.SBOMStatus` |   |

### VulnerabilityAttestation

    public DiscoveryOccurrence.Types.VulnerabilityAttestation VulnerabilityAttestation { get; set; }

The status of an vulnerability attestation generation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrencehttps://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrence.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.DiscoveryOccurrence.Types.VulnerabilityAttestation` |   |