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
Modifier and TypeMethodDescriptioncom.google.protobuf.DurationHow long a published message is retained.com.google.protobuf.DurationOrBuilderHow long a published message is retained.longThe provisioned storage, in bytes, per partition.booleanHow long a published message is retained.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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;
-