public static final class Topic.RetentionConfig.Builder extends GeneratedMessageV3.Builder<Topic.RetentionConfig.Builder> implements Topic.RetentionConfigOrBuilder
The settings for a topic's message retention.
Protobuf type google.cloud.pubsublite.v1.Topic.RetentionConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Topic.RetentionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Topic.RetentionConfig build()
buildPartial()
public Topic.RetentionConfig buildPartial()
clear()
public Topic.RetentionConfig.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Topic.RetentionConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Topic.RetentionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPerPartitionBytes()
public Topic.RetentionConfig.Builder clearPerPartitionBytes()
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;
clearPeriod()
public Topic.RetentionConfig.Builder clearPeriod()
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;
clone()
public Topic.RetentionConfig.Builder clone()
Overrides
getDefaultInstanceForType()
public Topic.RetentionConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getPerPartitionBytes()
public 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 |
---|
Type | Description |
long | The perPartitionBytes.
|
getPeriod()
public 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 |
---|
Type | Description |
Duration | The period.
|
getPeriodBuilder()
public Duration.Builder getPeriodBuilder()
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;
getPeriodOrBuilder()
public 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;
hasPeriod()
public 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 |
---|
Type | Description |
boolean | Whether the period field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Topic.RetentionConfig other)
public Topic.RetentionConfig.Builder mergeFrom(Topic.RetentionConfig other)
public Topic.RetentionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Topic.RetentionConfig.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergePeriod(Duration value)
public Topic.RetentionConfig.Builder mergePeriod(Duration value)
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Topic.RetentionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Topic.RetentionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setPerPartitionBytes(long value)
public Topic.RetentionConfig.Builder setPerPartitionBytes(long value)
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;
Parameter |
---|
Name | Description |
value | long
The perPartitionBytes to set.
|
setPeriod(Duration value)
public Topic.RetentionConfig.Builder setPeriod(Duration value)
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;
setPeriod(Duration.Builder builderForValue)
public Topic.RetentionConfig.Builder setPeriod(Duration.Builder builderForValue)
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;
Parameter |
---|
Name | Description |
builderForValue | Builder
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Topic.RetentionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Topic.RetentionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides