public static final class RetentionSettingsInfo.Builder extends GeneratedMessage.Builder<RetentionSettingsInfo.Builder> implements RetentionSettingsInfoOrBuilderMetadata about backup retention settings for a database resource.
Protobuf type google.cloud.databasecenter.v1beta.RetentionSettingsInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RetentionSettingsInfo.BuilderImplements
RetentionSettingsInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public RetentionSettingsInfo build()| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo |
|
buildPartial()
public RetentionSettingsInfo buildPartial()| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo |
|
clear()
public RetentionSettingsInfo.Builder clear()| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
clearDurationBasedRetention()
public RetentionSettingsInfo.Builder clearDurationBasedRetention()Duration based retention period i.e. 172800 seconds (2 days)
.google.protobuf.Duration duration_based_retention = 5;
| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
clearQuantityBasedRetention()
public RetentionSettingsInfo.Builder clearQuantityBasedRetention()Number of backups that will be retained.
.google.protobuf.Int32Value quantity_based_retention = 3;
| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
clearRetention()
public RetentionSettingsInfo.Builder clearRetention()| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
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;
| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
getDefaultInstanceForType()
public RetentionSettingsInfo getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getDurationBasedRetentionOrBuilder()
public DurationOrBuilder getDurationBasedRetentionOrBuilder()Duration based retention period i.e. 172800 seconds (2 days)
.google.protobuf.Duration duration_based_retention = 5;
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
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;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getQuantityBasedRetentionOrBuilder()
public Int32ValueOrBuilder getQuantityBasedRetentionOrBuilder()Number of backups that will be retained.
.google.protobuf.Int32Value quantity_based_retention = 3;
| Returns | |
|---|---|
| Type | Description |
Int32ValueOrBuilder |
|
getRetentionCase()
public RetentionSettingsInfo.RetentionCase getRetentionCase()| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.RetentionCase |
|
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];
| Returns | |
|---|---|
| Type | Description |
SubResource |
The subResource. |
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];
| Returns | |
|---|---|
| Type | Description |
SubResource.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
SubResourceOrBuilder |
|
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;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getTimestampBasedRetentionTimeOrBuilder()
public TimestampOrBuilder getTimestampBasedRetentionTimeOrBuilder()Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
.google.protobuf.Timestamp timestamp_based_retention_time = 6;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
mergeFrom(RetentionSettingsInfo other)
public RetentionSettingsInfo.Builder mergeFrom(RetentionSettingsInfo other)| Parameter | |
|---|---|
| Name | Description |
other |
RetentionSettingsInfo |
| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RetentionSettingsInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RetentionSettingsInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
mergeQuantityBasedRetention(Int32Value value)
public RetentionSettingsInfo.Builder mergeQuantityBasedRetention(Int32Value value)Number of backups that will be retained.
.google.protobuf.Int32Value quantity_based_retention = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Int32Value |
| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
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];
| Parameter | |
|---|---|
| Name | Description |
value |
SubResource |
| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
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;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
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 |
| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
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 |
| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
setQuantityBasedRetention(Int32Value value)
public RetentionSettingsInfo.Builder setQuantityBasedRetention(Int32Value value)Number of backups that will be retained.
.google.protobuf.Int32Value quantity_based_retention = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Int32Value |
| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
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 |
| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
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];
| Parameter | |
|---|---|
| Name | Description |
value |
SubResource |
| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SubResource.Builder |
| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
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;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|
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 |
| Returns | |
|---|---|
| Type | Description |
RetentionSettingsInfo.Builder |
|