2.9.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.3.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Eventarc v1 API class Enrollment.

An enrollment represents a subscription for messages on a particular message
bus. It defines a matching criteria for messages on the bus and the
subscriber endpoint where matched messages should be delivered.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Enrollment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.Enrollment.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Enrollment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.Enrollment.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Enrollment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.Enrollment.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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

[Google.Cloud.Eventarc.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.md.txt)

## Assembly

Google.Cloud.Eventarc.V1.dll

## Constructors

### Enrollment()

    public Enrollment()

### Enrollment(Enrollment)

    public Enrollment(Enrollment other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `Enrollment` |

## Properties

### Annotations

    public MapField<string, string> Annotations { get; }

Optional. Resource annotations.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringstring` |   |

### CelMatch

    public string CelMatch { get; set; }

Required. A CEL expression identifying which messages this enrollment
applies to.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The creation time.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### Destination

    public string Destination { get; set; }

Required. Destination is the Pipeline that the Enrollment is delivering to.
It must point to the full resource name of a Pipeline. Format:
"projects/{PROJECT_ID}/locations/{region}/pipelines/{PIPELINE_ID)"

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### DisplayName

    public string DisplayName { get; set; }

Optional. Resource display name.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### EnrollmentName

    public EnrollmentName EnrollmentName { get; set; }

[EnrollmentName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.EnrollmentName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.Enrollment.md.txt#Google_Cloud_Eventarc_V1_Enrollment_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `EnrollmentName` |   |

### Etag

    public string Etag { get; set; }

Output only. This checksum is computed by the server based on the value of
other fields, and might be sent only on update and delete requests to
ensure that the client has an up-to-date value before proceeding.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Labels

    public MapField<string, string> Labels { get; }

Optional. Resource labels.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringstring` |   |

### MessageBus

    public string MessageBus { get; set; }

Required. Immutable. Resource name of the message bus identifying the
source of the messages. It matches the form
projects/{project}/locations/{location}/messageBuses/{messageBus}.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### MessageBusAsMessageBusName

    public MessageBusName MessageBusAsMessageBusName { get; set; }

[MessageBusName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.MessageBusName.md.txt)-typed view over the [MessageBus](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.Enrollment.md.txt#Google_Cloud_Eventarc_V1_Enrollment_MessageBus) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MessageBusName` |   |

### Name

    public string Name { get; set; }

Identifier. Resource name of the form
projects/{project}/locations/{location}/enrollments/{enrollment}

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Uid

    public string Uid { get; set; }

Output only. Server assigned unique identifier for the channel. The value
is a UUID4 string and guaranteed to remain unchanged until the resource is
deleted.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The last-modified time.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |