Package ai.pipestream.data.v1
Interface RetentionConfigOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RetentionConfig,RetentionConfig.Builder
@Generated
public interface RetentionConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintMaximum versions to keep (if policy is VERSION_BASED).Retention policy type.intRetention policy type.longRetention period in days.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
-
getPolicyValue
int getPolicyValue()Retention policy type.
.ai.pipestream.data.v1.RetentionConfig.RetentionPolicy policy = 1 [json_name = "policy"];- Returns:
- The enum numeric value on the wire for policy.
-
getPolicy
RetentionConfig.RetentionPolicy getPolicy()Retention policy type.
.ai.pipestream.data.v1.RetentionConfig.RetentionPolicy policy = 1 [json_name = "policy"];- Returns:
- The policy.
-
getRetentionDays
long getRetentionDays()Retention period in days. -1 = indefinite, 0 = no retention, >0 = number of days.
int64 retention_days = 2 [json_name = "retentionDays"];- Returns:
- The retentionDays.
-
getMaxVersions
int getMaxVersions()Maximum versions to keep (if policy is VERSION_BASED).
int32 max_versions = 3 [json_name = "maxVersions"];- Returns:
- The maxVersions.
-