public final class RetentionSettingsInfo extends GeneratedMessage implements RetentionSettingsInfoOrBuilder
Metadata about backup retention settings for a database resource.
Protobuf type google.cloud.databasecenter.v1beta.RetentionSettingsInfo
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
DURATION_BASED_RETENTION_FIELD_NUMBER
public static final int DURATION_BASED_RETENTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
QUANTITY_BASED_RETENTION_FIELD_NUMBER
public static final int QUANTITY_BASED_RETENTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SUB_RESOURCE_FIELD_NUMBER
public static final int SUB_RESOURCE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TIMESTAMP_BASED_RETENTION_TIME_FIELD_NUMBER
public static final int TIMESTAMP_BASED_RETENTION_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static RetentionSettingsInfo getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static RetentionSettingsInfo.Builder newBuilder()
newBuilder(RetentionSettingsInfo prototype)
public static RetentionSettingsInfo.Builder newBuilder(RetentionSettingsInfo prototype)
public static RetentionSettingsInfo parseDelimitedFrom(InputStream input)
public static RetentionSettingsInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static RetentionSettingsInfo parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RetentionSettingsInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static RetentionSettingsInfo parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RetentionSettingsInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RetentionSettingsInfo parseFrom(CodedInputStream input)
public static RetentionSettingsInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RetentionSettingsInfo parseFrom(InputStream input)
public static RetentionSettingsInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static RetentionSettingsInfo parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RetentionSettingsInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<RetentionSettingsInfo> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public RetentionSettingsInfo getDefaultInstanceForType()
getDurationBasedRetention()
public Duration getDurationBasedRetention()
Duration based retention period i.e. 172800 seconds (2 days)
.google.protobuf.Duration duration_based_retention = 5;
| Returns |
| Type |
Description |
Duration |
The durationBasedRetention.
|
getDurationBasedRetentionOrBuilder()
public DurationOrBuilder getDurationBasedRetentionOrBuilder()
Duration based retention period i.e. 172800 seconds (2 days)
.google.protobuf.Duration duration_based_retention = 5;
getParserForType()
public Parser<RetentionSettingsInfo> getParserForType()
Overrides
getQuantityBasedRetention()
public Int32Value getQuantityBasedRetention()
Number of backups that will be retained.
.google.protobuf.Int32Value quantity_based_retention = 3;
| Returns |
| Type |
Description |
Int32Value |
The quantityBasedRetention.
|
getQuantityBasedRetentionOrBuilder()
public Int32ValueOrBuilder getQuantityBasedRetentionOrBuilder()
Number of backups that will be retained.
.google.protobuf.Int32Value quantity_based_retention = 3;
getRetentionCase()
public RetentionSettingsInfo.RetentionCase getRetentionCase()
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getSubResource()
public SubResource getSubResource()
Optional. Sub resource details associated with the backup configuration.
.google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL];
getSubResourceOrBuilder()
public SubResourceOrBuilder getSubResourceOrBuilder()
Optional. Sub resource details associated with the backup configuration.
.google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL];
getTimestampBasedRetentionTime()
public Timestamp getTimestampBasedRetentionTime()
Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
.google.protobuf.Timestamp timestamp_based_retention_time = 6;
| Returns |
| Type |
Description |
Timestamp |
The timestampBasedRetentionTime.
|
getTimestampBasedRetentionTimeOrBuilder()
public TimestampOrBuilder getTimestampBasedRetentionTimeOrBuilder()
Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
.google.protobuf.Timestamp timestamp_based_retention_time = 6;
hasDurationBasedRetention()
public boolean hasDurationBasedRetention()
Duration based retention period i.e. 172800 seconds (2 days)
.google.protobuf.Duration duration_based_retention = 5;
| Returns |
| Type |
Description |
boolean |
Whether the durationBasedRetention field is set.
|
hasQuantityBasedRetention()
public boolean hasQuantityBasedRetention()
Number of backups that will be retained.
.google.protobuf.Int32Value quantity_based_retention = 3;
| Returns |
| Type |
Description |
boolean |
Whether the quantityBasedRetention field is set.
|
hasSubResource()
public boolean hasSubResource()
Optional. Sub resource details associated with the backup configuration.
.google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the subResource field is set.
|
hasTimestampBasedRetentionTime()
public boolean hasTimestampBasedRetentionTime()
Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
.google.protobuf.Timestamp timestamp_based_retention_time = 6;
| Returns |
| Type |
Description |
boolean |
Whether the timestampBasedRetentionTime field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public RetentionSettingsInfo.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected RetentionSettingsInfo.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public RetentionSettingsInfo.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides