public static final class RetentionSettingsInfo.Builder extends GeneratedMessageV3.Builder<RetentionSettingsInfo.Builder> implements RetentionSettingsInfoOrBuilder
Metadata about backup retention settings for a database resource.
Protobuf type google.cloud.databasecenter.v1beta.RetentionSettingsInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RetentionSettingsInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public RetentionSettingsInfo build()
buildPartial()
public RetentionSettingsInfo buildPartial()
clear()
public RetentionSettingsInfo.Builder clear()
Overrides
clearDurationBasedRetention()
public RetentionSettingsInfo.Builder clearDurationBasedRetention()
Duration based retention period i.e. 172800 seconds (2 days)
.google.protobuf.Duration duration_based_retention = 5;
clearField(Descriptors.FieldDescriptor field)
public RetentionSettingsInfo.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public RetentionSettingsInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearQuantityBasedRetention()
public RetentionSettingsInfo.Builder clearQuantityBasedRetention()
Number of backups that will be retained.
.google.protobuf.Int32Value quantity_based_retention = 3;
clearRetention()
public RetentionSettingsInfo.Builder clearRetention()
clearSubResource()
public RetentionSettingsInfo.Builder clearSubResource()
Optional. Sub resource details associated with the backup configuration.
.google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL];
clearTimestampBasedRetentionTime()
public RetentionSettingsInfo.Builder clearTimestampBasedRetentionTime()
Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
.google.protobuf.Timestamp timestamp_based_retention_time = 6;
clone()
public RetentionSettingsInfo.Builder clone()
Overrides
getDefaultInstanceForType()
public RetentionSettingsInfo getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
getDurationBasedRetentionBuilder()
public Duration.Builder getDurationBasedRetentionBuilder()
Duration based retention period i.e. 172800 seconds (2 days)
.google.protobuf.Duration duration_based_retention = 5;
getDurationBasedRetentionOrBuilder()
public DurationOrBuilder getDurationBasedRetentionOrBuilder()
Duration based retention period i.e. 172800 seconds (2 days)
.google.protobuf.Duration duration_based_retention = 5;
getQuantityBasedRetention()
public Int32Value getQuantityBasedRetention()
Number of backups that will be retained.
.google.protobuf.Int32Value quantity_based_retention = 3;
| Returns |
| Type |
Description |
Int32Value |
The quantityBasedRetention.
|
getQuantityBasedRetentionBuilder()
public Int32Value.Builder getQuantityBasedRetentionBuilder()
Number of backups that will be retained.
.google.protobuf.Int32Value quantity_based_retention = 3;
getQuantityBasedRetentionOrBuilder()
public Int32ValueOrBuilder getQuantityBasedRetentionOrBuilder()
Number of backups that will be retained.
.google.protobuf.Int32Value quantity_based_retention = 3;
getRetentionCase()
public RetentionSettingsInfo.RetentionCase getRetentionCase()
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];
getSubResourceBuilder()
public SubResource.Builder getSubResourceBuilder()
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.
|
getTimestampBasedRetentionTimeBuilder()
public Timestamp.Builder getTimestampBasedRetentionTimeBuilder()
Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
.google.protobuf.Timestamp timestamp_based_retention_time = 6;
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeDurationBasedRetention(Duration value)
public RetentionSettingsInfo.Builder mergeDurationBasedRetention(Duration value)
Duration based retention period i.e. 172800 seconds (2 days)
.google.protobuf.Duration duration_based_retention = 5;
| Parameter |
| Name |
Description |
value |
Duration
|
mergeFrom(RetentionSettingsInfo other)
public RetentionSettingsInfo.Builder mergeFrom(RetentionSettingsInfo other)
public RetentionSettingsInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public RetentionSettingsInfo.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeQuantityBasedRetention(Int32Value value)
public RetentionSettingsInfo.Builder mergeQuantityBasedRetention(Int32Value value)
Number of backups that will be retained.
.google.protobuf.Int32Value quantity_based_retention = 3;
mergeSubResource(SubResource value)
public RetentionSettingsInfo.Builder mergeSubResource(SubResource value)
Optional. Sub resource details associated with the backup configuration.
.google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL];
mergeTimestampBasedRetentionTime(Timestamp value)
public RetentionSettingsInfo.Builder mergeTimestampBasedRetentionTime(Timestamp value)
Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
.google.protobuf.Timestamp timestamp_based_retention_time = 6;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RetentionSettingsInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setDurationBasedRetention(Duration value)
public RetentionSettingsInfo.Builder setDurationBasedRetention(Duration value)
Duration based retention period i.e. 172800 seconds (2 days)
.google.protobuf.Duration duration_based_retention = 5;
| Parameter |
| Name |
Description |
value |
Duration
|
setDurationBasedRetention(Duration.Builder builderForValue)
public RetentionSettingsInfo.Builder setDurationBasedRetention(Duration.Builder builderForValue)
Duration based retention period i.e. 172800 seconds (2 days)
.google.protobuf.Duration duration_based_retention = 5;
| Parameter |
| Name |
Description |
builderForValue |
Builder
|
setField(Descriptors.FieldDescriptor field, Object value)
public RetentionSettingsInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setQuantityBasedRetention(Int32Value value)
public RetentionSettingsInfo.Builder setQuantityBasedRetention(Int32Value value)
Number of backups that will be retained.
.google.protobuf.Int32Value quantity_based_retention = 3;
setQuantityBasedRetention(Int32Value.Builder builderForValue)
public RetentionSettingsInfo.Builder setQuantityBasedRetention(Int32Value.Builder builderForValue)
Number of backups that will be retained.
.google.protobuf.Int32Value quantity_based_retention = 3;
| Parameter |
| Name |
Description |
builderForValue |
Builder
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RetentionSettingsInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSubResource(SubResource value)
public RetentionSettingsInfo.Builder setSubResource(SubResource value)
Optional. Sub resource details associated with the backup configuration.
.google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL];
setSubResource(SubResource.Builder builderForValue)
public RetentionSettingsInfo.Builder setSubResource(SubResource.Builder builderForValue)
Optional. Sub resource details associated with the backup configuration.
.google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL];
setTimestampBasedRetentionTime(Timestamp value)
public RetentionSettingsInfo.Builder setTimestampBasedRetentionTime(Timestamp value)
Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
.google.protobuf.Timestamp timestamp_based_retention_time = 6;
setTimestampBasedRetentionTime(Timestamp.Builder builderForValue)
public RetentionSettingsInfo.Builder setTimestampBasedRetentionTime(Timestamp.Builder builderForValue)
Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
.google.protobuf.Timestamp timestamp_based_retention_time = 6;
| Parameter |
| Name |
Description |
builderForValue |
Builder
|
setUnknownFields(UnknownFieldSet unknownFields)
public final RetentionSettingsInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides