public static final class Topic.RetentionConfig extends GeneratedMessageV3 implements Topic.RetentionConfigOrBuilder
The settings for a topic's message retention.
Protobuf type google.cloud.pubsublite.v1.Topic.RetentionConfig
Static Fields
PERIOD_FIELD_NUMBER
public static final int PERIOD_FIELD_NUMBER
Field Value
PER_PARTITION_BYTES_FIELD_NUMBER
public static final int PER_PARTITION_BYTES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Topic.RetentionConfig getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Topic.RetentionConfig.Builder newBuilder()
Returns
newBuilder(Topic.RetentionConfig prototype)
public static Topic.RetentionConfig.Builder newBuilder(Topic.RetentionConfig prototype)
Parameter
Returns
public static Topic.RetentionConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Topic.RetentionConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Topic.RetentionConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Topic.RetentionConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Topic.RetentionConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Topic.RetentionConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Topic.RetentionConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Topic.RetentionConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Topic.RetentionConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Topic.RetentionConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Topic.RetentionConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Topic.RetentionConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Topic.RetentionConfig> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Topic.RetentionConfig getDefaultInstanceForType()
Returns
getParserForType()
public Parser<Topic.RetentionConfig> getParserForType()
Returns
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
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;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Topic.RetentionConfig.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Topic.RetentionConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Topic.RetentionConfig.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions