Interface Topic.RetentionConfigOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Topic.RetentionConfig
,Topic.RetentionConfig.Builder
- Enclosing class:
- Topic
public static interface Topic.RetentionConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getPerPartitionBytes
long 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;
- Returns:
- The perPartitionBytes.
-
hasPeriod
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;
- Returns:
- Whether the period field is set.
-
getPeriod
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;
- Returns:
- The period.
-
getPeriodOrBuilder
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;
-
-