# Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::V1::ConsumerPartitionMetadata (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.2 1.0.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Managed Service for Apache Kafka V1 API class Google::Cloud::ManagedKafka::V1::ConsumerPartitionMetadata.

Metadata for a consumer group corresponding to a specific partition.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #metadata

    def metadata() -> ::String

**Returns**

- (::String) --- Optional. The associated metadata for this partition, or empty if it does not exist.

### #metadata=

    def metadata=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The associated metadata for this partition, or empty if it does not exist.
**Returns**

- (::String) --- Optional. The associated metadata for this partition, or empty if it does not exist.

### #offset

    def offset() -> ::Integer

**Returns**

- (::Integer) --- Required. The current offset for this partition, or 0 if no offset has been committed.

### #offset=

    def offset=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Required. The current offset for this partition, or 0 if no offset has been committed.
**Returns**

- (::Integer) --- Required. The current offset for this partition, or 0 if no offset has been committed.