Class RestoreVerificationCleanupRule.Builder (0.62.0)

public static final class RestoreVerificationCleanupRule.Builder extends GeneratedMessage.Builder<RestoreVerificationCleanupRule.Builder> implements RestoreVerificationCleanupRuleOrBuilder

Defines the specific cleanup action.

Protobuf type google.cloud.backupdr.v1.RestoreVerificationCleanupRule

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public RestoreVerificationCleanupRule build()
Returns
Type Description
RestoreVerificationCleanupRule

buildPartial()

public RestoreVerificationCleanupRule buildPartial()
Returns
Type Description
RestoreVerificationCleanupRule

clear()

public RestoreVerificationCleanupRule.Builder clear()
Returns
Type Description
RestoreVerificationCleanupRule.Builder
Overrides

clearCleanupDelay()

public RestoreVerificationCleanupRule.Builder clearCleanupDelay()

Optional. Duration after restore finishes when cleanup triggers. Delay must be non-negative and at most 30 days (2592000 seconds).

.google.protobuf.Duration cleanup_delay = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RestoreVerificationCleanupRule.Builder

clearSkipCleanup()

public RestoreVerificationCleanupRule.Builder clearSkipCleanup()

Optional. If set to true, the restored resource will not be cleaned up.

optional bool skip_cleanup = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RestoreVerificationCleanupRule.Builder

This builder for chaining.

getCleanupDelay()

public Duration getCleanupDelay()

Optional. Duration after restore finishes when cleanup triggers. Delay must be non-negative and at most 30 days (2592000 seconds).

.google.protobuf.Duration cleanup_delay = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The cleanupDelay.

getCleanupDelayBuilder()

public Duration.Builder getCleanupDelayBuilder()

Optional. Duration after restore finishes when cleanup triggers. Delay must be non-negative and at most 30 days (2592000 seconds).

.google.protobuf.Duration cleanup_delay = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getCleanupDelayOrBuilder()

public DurationOrBuilder getCleanupDelayOrBuilder()

Optional. Duration after restore finishes when cleanup triggers. Delay must be non-negative and at most 30 days (2592000 seconds).

.google.protobuf.Duration cleanup_delay = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

getDefaultInstanceForType()

public RestoreVerificationCleanupRule getDefaultInstanceForType()
Returns
Type Description
RestoreVerificationCleanupRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSkipCleanup()

public boolean getSkipCleanup()

Optional. If set to true, the restored resource will not be cleaned up.

optional bool skip_cleanup = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The skipCleanup.

hasCleanupDelay()

public boolean hasCleanupDelay()

Optional. Duration after restore finishes when cleanup triggers. Delay must be non-negative and at most 30 days (2592000 seconds).

.google.protobuf.Duration cleanup_delay = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the cleanupDelay field is set.

hasSkipCleanup()

public boolean hasSkipCleanup()

Optional. If set to true, the restored resource will not be cleaned up.

optional bool skip_cleanup = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the skipCleanup field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCleanupDelay(Duration value)

public RestoreVerificationCleanupRule.Builder mergeCleanupDelay(Duration value)

Optional. Duration after restore finishes when cleanup triggers. Delay must be non-negative and at most 30 days (2592000 seconds).

.google.protobuf.Duration cleanup_delay = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
RestoreVerificationCleanupRule.Builder

mergeFrom(RestoreVerificationCleanupRule other)

public RestoreVerificationCleanupRule.Builder mergeFrom(RestoreVerificationCleanupRule other)
Parameter
Name Description
other RestoreVerificationCleanupRule
Returns
Type Description
RestoreVerificationCleanupRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RestoreVerificationCleanupRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RestoreVerificationCleanupRule.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RestoreVerificationCleanupRule.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RestoreVerificationCleanupRule.Builder
Overrides

setCleanupDelay(Duration value)

public RestoreVerificationCleanupRule.Builder setCleanupDelay(Duration value)

Optional. Duration after restore finishes when cleanup triggers. Delay must be non-negative and at most 30 days (2592000 seconds).

.google.protobuf.Duration cleanup_delay = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
RestoreVerificationCleanupRule.Builder

setCleanupDelay(Duration.Builder builderForValue)

public RestoreVerificationCleanupRule.Builder setCleanupDelay(Duration.Builder builderForValue)

Optional. Duration after restore finishes when cleanup triggers. Delay must be non-negative and at most 30 days (2592000 seconds).

.google.protobuf.Duration cleanup_delay = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
RestoreVerificationCleanupRule.Builder

setSkipCleanup(boolean value)

public RestoreVerificationCleanupRule.Builder setSkipCleanup(boolean value)

Optional. If set to true, the restored resource will not be cleaned up.

optional bool skip_cleanup = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The skipCleanup to set.

Returns
Type Description
RestoreVerificationCleanupRule.Builder

This builder for chaining.