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 CreateOccurrenceRequest : IMessage<CreateOccurrenceRequest>, IEquatable<CreateOccurrenceRequest>, IDeepCloneable<CreateOccurrenceRequest>, IBufferMessage, IMessage

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

Request to create a new occurrence.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateOccurrenceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.CreateOccurrenceRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateOccurrenceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.CreateOccurrenceRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateOccurrenceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.CreateOccurrenceRequest), [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

### CreateOccurrenceRequest()

    public CreateOccurrenceRequest()

### CreateOccurrenceRequest(CreateOccurrenceRequest)

    public CreateOccurrenceRequest(CreateOccurrenceRequest other)

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

## Properties

### Occurrence

    public Occurrence Occurrence { get; set; }

The occurrence to create.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.Occurrence` |   |

### Parent

    public string Parent { get; set; }

The name of the project in the form of `projects/[PROJECT_ID]`, under which
the occurrence is to be created.

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

### ParentAsProjectName

    public ProjectName ParentAsProjectName { get; set; }

[ProjectName](https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.ProjectName)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.CreateOccurrenceRequest#Grafeas_V1_CreateOccurrenceRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.ProjectName` |   |