[SDK reference](../../index.md) / [Models](../index.md) / [Events](index.md)

# Topic

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.Events`  

A topic: a named, durable log of CloudEvents published to it, fanned out to its subscriptions (MSG-4; ADR-0805 §4).

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Annotations` | `Models.Events.Topic_annotations?` | `annotations` | At most 256 KiB in all; never policy input. |
| `CreateTime` | `DateTimeOffset?` | `createTime` | The createTime property |
| `DeleteTime` | `DateTimeOffset?` | `deleteTime` | The deleteTime property |
| `Description` | `string?` | `description` | Human-readable description. |
| `DisplayName` | `string?` | `displayName` | Up to 63 characters. |
| `Etag` | `string?` | `etag` | "{generation}"; send it back in If-Match. |
| `Labels` | `Models.Events.Topic_labels?` | `labels` | At most 64. |
| `Location` | `string?` | `location` | Location ID where the topic is homed. |
| `Name` | `string?` | `name` | The resource name, for example projects/p/locations/l/instances/i. |
| `PlatformEvents` | `bool?` | `platformEvents` | Makes this a platform-events topic: the project's own resource events (created, updated, deleted, state changed) at this location arepublished to it as CloudEvents of type `{service}.{kind}.{verb}.v1`, with the extension attribute `lifecycle` (`created`, `updated`,`deleted` or `state-changed`), the resource name as `subject` and data `{"resource": "<name>"}`. Route them with subscription filters.They count against the retained-events quota; an event that finds the quota full is not stored. |
| `PublishedEventCount` | `long?` | `publishedEventCount` | Total events ever published to the topic. |
| `PurgeTime` | `DateTimeOffset?` | `purgeTime` | The purgeTime property |
| `Reconciling` | `bool?` | `reconciling` | True while the platform works toward the spec. |
| `RetainedEventCount` | `long?` | `retainedEventCount` | Events published to the topic and still retained. |
| `RetentionSeconds` | `int?` | `retentionSeconds` | How long published events stay available for delivery and replay, in seconds (60..604800 = 7 days, default 86400). |
| `State` | `Models.Events.TopicState?` | `state` | Topic lifecycle states (MSG-4). |
| `Uid` | `string?` | `uid` | UUIDv7, never reused. |
| `UpdateTime` | `DateTimeOffset?` | `updateTime` | The updateTime property |
