Reference documentation and code samples for the Google Cloud Managed Kafka V1 Client class ConsumerPartitionMetadata.
Metadata for a consumer group corresponding to a specific partition.
Generated from protobuf message google.cloud.managedkafka.v1.ConsumerPartitionMetadata
Namespace
Google \ Cloud \ ManagedKafka \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ offset |
int|string
Required. The current offset for this partition, or 0 if no offset has been committed. |
↳ metadata |
string
Optional. The associated metadata for this partition, or empty if it does not exist. |
getOffset
Required. The current offset for this partition, or 0 if no offset has been committed.
Returns | |
---|---|
Type | Description |
int|string |
setOffset
Required. The current offset for this partition, or 0 if no offset has been committed.
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getMetadata
Optional. The associated metadata for this partition, or empty if it does not exist.
Returns | |
---|---|
Type | Description |
string |
setMetadata
Optional. The associated metadata for this partition, or empty if it does not exist.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |