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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Topic.RetentionConfigImplements
Topic.RetentionConfigOrBuilderStatic Fields
PERIOD_FIELD_NUMBER
public static final int PERIOD_FIELD_NUMBER
Type | Description |
int |
PER_PARTITION_BYTES_FIELD_NUMBER
public static final int PER_PARTITION_BYTES_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Topic.RetentionConfig getDefaultInstance()
Type | Description |
Topic.RetentionConfig |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static Topic.RetentionConfig.Builder newBuilder()
Type | Description |
Topic.RetentionConfig.Builder |
newBuilder(Topic.RetentionConfig prototype)
public static Topic.RetentionConfig.Builder newBuilder(Topic.RetentionConfig prototype)
Name | Description |
prototype | Topic.RetentionConfig |
Type | Description |
Topic.RetentionConfig.Builder |
parseDelimitedFrom(InputStream input)
public static Topic.RetentionConfig parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Topic.RetentionConfig |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Topic.RetentionConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Topic.RetentionConfig |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Topic.RetentionConfig parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Topic.RetentionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Topic.RetentionConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Topic.RetentionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Topic.RetentionConfig parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Topic.RetentionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Topic.RetentionConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Topic.RetentionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Topic.RetentionConfig parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Topic.RetentionConfig |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Topic.RetentionConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Topic.RetentionConfig |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Topic.RetentionConfig parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Topic.RetentionConfig |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Topic.RetentionConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Topic.RetentionConfig |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Topic.RetentionConfig parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Topic.RetentionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Topic.RetentionConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Topic.RetentionConfig |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Topic.RetentionConfig> parser()
Type | Description |
Parser<RetentionConfig> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public Topic.RetentionConfig getDefaultInstanceForType()
Type | Description |
Topic.RetentionConfig |
getParserForType()
public Parser<Topic.RetentionConfig> getParserForType()
Type | Description |
Parser<RetentionConfig> |
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;
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;
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;
Type | Description |
DurationOrBuilder |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
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;
Type | Description |
boolean | Whether the period field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public Topic.RetentionConfig.Builder newBuilderForType()
Type | Description |
Topic.RetentionConfig.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Topic.RetentionConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Topic.RetentionConfig.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public Topic.RetentionConfig.Builder toBuilder()
Type | Description |
Topic.RetentionConfig.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |