# Google Cloud Managed Kafka V1 Client - Class ConsumerTopicMetadata (0.8.0)

0.8.0 (latest) 0.7.2 0.6.1 0.5.0 0.4.1 0.3.1 0.2.3 0.1.3 Reference documentation and code samples for the Google Cloud Managed Kafka V1 Client class ConsumerTopicMetadata.

Metadata for a consumer group corresponding to a specific topic.

Generated from protobuf message `google.cloud.managedkafka.v1.ConsumerTopicMetadata`

## Namespace

Google \\ Cloud \\ ManagedKafka \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ partitions` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. Metadata for this consumer group and topic for all partition indexes it has metadata for. |

### getPartitions

Optional. Metadata for this consumer group and topic for all partition
indexes it has metadata for.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setPartitions

Optional. Metadata for this consumer group and topic for all partition
indexes it has metadata for.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |