Send feedback
Class Topic.RetentionConfig (1.12.16)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.12.16 keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
PERIOD_FIELD_NUMBER
public static final int PERIOD_FIELD_NUMBER
Field Value Type Description int
PER_PARTITION_BYTES_FIELD_NUMBER
public static final int PER_PARTITION_BYTES_FIELD_NUMBER
Field Value Type Description int
Static Methods
getDefaultInstance()
public static Topic . RetentionConfig getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Topic . RetentionConfig . Builder newBuilder ()
newBuilder(Topic.RetentionConfig prototype)
public static Topic . RetentionConfig . Builder newBuilder ( Topic . RetentionConfig prototype )
public static Topic . RetentionConfig parseDelimitedFrom ( InputStream input )
public static Topic . RetentionConfig parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static Topic . RetentionConfig parseFrom ( byte [] data )
Parameter Name Description data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Topic . RetentionConfig parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static Topic . RetentionConfig parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Topic . RetentionConfig parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static Topic . RetentionConfig parseFrom ( CodedInputStream input )
public static Topic . RetentionConfig parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static Topic . RetentionConfig parseFrom ( InputStream input )
public static Topic . RetentionConfig parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static Topic . RetentionConfig parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Topic . RetentionConfig parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<Topic . RetentionConfig > parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
getDefaultInstanceForType()
public Topic . RetentionConfig getDefaultInstanceForType ()
getParserForType()
public Parser<Topic . RetentionConfig > getParserForType ()
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.
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;
getSerializedSize()
public int getSerializedSize ()
Returns Type Description int
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 Type Description int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Topic . RetentionConfig . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Topic . RetentionConfig . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
toBuilder()
public Topic . RetentionConfig . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]