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

# Queue

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

A PostgreSQL-backed transactional customer queue with visibility leases and dead-letter routing (W54; ADR-0805 §3).

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Annotations` | `Models.Messaging.Queue_annotations?` | `annotations` | At most 256 KiB in all; never policy input. |
| `ConsumerCount` | `int?` | `consumerCount` | How many distinct callers received from this queue in the last 15 minutes. |
| `CreateTime` | `DateTimeOffset?` | `createTime` | The createTime property |
| `DeadLetterPolicy` | `Models.Messaging.DeadLetterPolicy?` | `deadLetterPolicy` | Optional dead-letter queue policy (moves message after maxDeliveryAttempts). |
| `DeadLetterSources` | `List<string>?` | `deadLetterSources` | Queues in the same project and location that name this queue as their dead-letter queue (empty when it is nobody's). |
| `DelayedMessageCount` | `long?` | `delayedMessageCount` | Approximate count of messages sent with a delay that are not yet visible. |
| `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. |
| `InFlightMessageCount` | `long?` | `inFlightMessageCount` | Approximate count of messages currently leased in flight. |
| `Labels` | `Models.Messaging.Queue_labels?` | `labels` | At most 64. |
| `Location` | `string?` | `location` | Location ID where the queue is homed. |
| `MaxMessageSizeBytes` | `int?` | `maxMessageSizeBytes` | Maximum payload size per message in bytes (1024..65536 = 64 KiB, default 65536). |
| `MessageRetentionSeconds` | `int?` | `messageRetentionSeconds` | Message retention window in seconds (60..1209600 = 14 days on paid tier; max 259200 = 3 days on free tier; default 345600 = 4 days). |
| `Name` | `string?` | `name` | The resource name, for example projects/p/locations/l/instances/i. |
| `OldestMessageTime` | `DateTimeOffset?` | `oldestMessageTime` | When the oldest message that is waiting or in flight was enqueued; unset when the queue holds none. |
| `PurgeTime` | `DateTimeOffset?` | `purgeTime` | The purgeTime property |
| `Reconciling` | `bool?` | `reconciling` | True while the platform works toward the spec. |
| `State` | `Models.Messaging.QueueState?` | `state` | Customer queue lifecycle states (ADR-0805, ADR-1103). |
| `StorageBytes` | `long?` | `storageBytes` | Total stored message payload bytes in this queue. |
| `SuspendReason` | `string?` | `suspendReason` | Why the queue is paused (for example spend-cap), if paused. |
| `Tier` | `string?` | `tier` | Service tier: standard (default) \| free (requires trust tier T1; trust tier T0 is refused per ADR-0805 §6). |
| `Uid` | `string?` | `uid` | UUIDv7, never reused. |
| `UpdateTime` | `DateTimeOffset?` | `updateTime` | The updateTime property |
| `VisibilityTimeoutSeconds` | `int?` | `visibilityTimeoutSeconds` | Default visibility lease timeout in seconds for `:receive` (1..43200 = 12 hours, default 30). |
| `VisibleMessageCount` | `long?` | `visibleMessageCount` | Approximate count of messages currently visible for `:receive`. |
