public static interface Topic.RetentionConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.Duration |
getPeriod()
How long a published message is retained.
|
com.google.protobuf.DurationOrBuilder |
getPeriodOrBuilder()
How long a published message is retained.
|
long |
getPerPartitionBytes()
The provisioned storage, in bytes, per partition.
|
boolean |
hasPeriod()
How long a published message is retained.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneoflong getPerPartitionBytes()
The provisioned storage, in bytes, per partition. If the number of bytes stored in any of the topic's partitions grows beyond this value, older messages will be dropped to make room for newer ones, regardless of the value of `period`.
int64 per_partition_bytes = 1;boolean hasPeriod()
How long a published message is retained. If unset, messages will be retained as long as the bytes retained for each partition is below `per_partition_bytes`.
.google.protobuf.Duration period = 2;com.google.protobuf.Duration getPeriod()
How long a published message is retained. If unset, messages will be retained as long as the bytes retained for each partition is below `per_partition_bytes`.
.google.protobuf.Duration period = 2;com.google.protobuf.DurationOrBuilder getPeriodOrBuilder()
How long a published message is retained. If unset, messages will be retained as long as the bytes retained for each partition is below `per_partition_bytes`.
.google.protobuf.Duration period = 2;Copyright © 2023 Google LLC. All rights reserved.