Class PostRestoreConfig.Builder (0.62.0)

public static final class PostRestoreConfig.Builder extends GeneratedMessage.Builder<PostRestoreConfig.Builder> implements PostRestoreConfigOrBuilder

Configuration for Post-Restore.

Protobuf type google.cloud.backupdr.v1beta.PostRestoreConfig

Static Methods

getDescriptor()

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

Methods

build()

public PostRestoreConfig build()
Returns
Type Description
PostRestoreConfig

buildPartial()

public PostRestoreConfig buildPartial()
Returns
Type Description
PostRestoreConfig

clear()

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

clearCloudRunJob()

public PostRestoreConfig.Builder clearCloudRunJob()

Cloud Run job action to execute. Format: projects/{project}/locations/{location}/jobs/{job}

string cloud_run_job = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
PostRestoreConfig.Builder

This builder for chaining.

clearPostRestoreAction()

public PostRestoreConfig.Builder clearPostRestoreAction()
Returns
Type Description
PostRestoreConfig.Builder

clearTimeout()

public PostRestoreConfig.Builder clearTimeout()

Optional. The timeout for this phase. If set, the timeout must be positive and less than or equal to 24 hours (86400s).

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

Returns
Type Description
PostRestoreConfig.Builder

getCloudRunJob()

public String getCloudRunJob()

Cloud Run job action to execute. Format: projects/{project}/locations/{location}/jobs/{job}

string cloud_run_job = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The cloudRunJob.

getCloudRunJobBytes()

public ByteString getCloudRunJobBytes()

Cloud Run job action to execute. Format: projects/{project}/locations/{location}/jobs/{job}

string cloud_run_job = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for cloudRunJob.

getDefaultInstanceForType()

public PostRestoreConfig getDefaultInstanceForType()
Returns
Type Description
PostRestoreConfig

getDescriptorForType()

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

getPostRestoreActionCase()

public PostRestoreConfig.PostRestoreActionCase getPostRestoreActionCase()
Returns
Type Description
PostRestoreConfig.PostRestoreActionCase

getTimeout()

public Duration getTimeout()

Optional. The timeout for this phase. If set, the timeout must be positive and less than or equal to 24 hours (86400s).

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

Returns
Type Description
Duration

The timeout.

getTimeoutBuilder()

public Duration.Builder getTimeoutBuilder()

Optional. The timeout for this phase. If set, the timeout must be positive and less than or equal to 24 hours (86400s).

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

Returns
Type Description
Builder

getTimeoutOrBuilder()

public DurationOrBuilder getTimeoutOrBuilder()

Optional. The timeout for this phase. If set, the timeout must be positive and less than or equal to 24 hours (86400s).

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

Returns
Type Description
DurationOrBuilder

hasCloudRunJob()

public boolean hasCloudRunJob()

Cloud Run job action to execute. Format: projects/{project}/locations/{location}/jobs/{job}

string cloud_run_job = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the cloudRunJob field is set.

hasTimeout()

public boolean hasTimeout()

Optional. The timeout for this phase. If set, the timeout must be positive and less than or equal to 24 hours (86400s).

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

Returns
Type Description
boolean

Whether the timeout field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PostRestoreConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTimeout(Duration value)

public PostRestoreConfig.Builder mergeTimeout(Duration value)

Optional. The timeout for this phase. If set, the timeout must be positive and less than or equal to 24 hours (86400s).

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

Parameter
Name Description
value Duration
Returns
Type Description
PostRestoreConfig.Builder

setCloudRunJob(String value)

public PostRestoreConfig.Builder setCloudRunJob(String value)

Cloud Run job action to execute. Format: projects/{project}/locations/{location}/jobs/{job}

string cloud_run_job = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The cloudRunJob to set.

Returns
Type Description
PostRestoreConfig.Builder

This builder for chaining.

setCloudRunJobBytes(ByteString value)

public PostRestoreConfig.Builder setCloudRunJobBytes(ByteString value)

Cloud Run job action to execute. Format: projects/{project}/locations/{location}/jobs/{job}

string cloud_run_job = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for cloudRunJob to set.

Returns
Type Description
PostRestoreConfig.Builder

This builder for chaining.

setTimeout(Duration value)

public PostRestoreConfig.Builder setTimeout(Duration value)

Optional. The timeout for this phase. If set, the timeout must be positive and less than or equal to 24 hours (86400s).

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

Parameter
Name Description
value Duration
Returns
Type Description
PostRestoreConfig.Builder

setTimeout(Duration.Builder builderForValue)

public PostRestoreConfig.Builder setTimeout(Duration.Builder builderForValue)

Optional. The timeout for this phase. If set, the timeout must be positive and less than or equal to 24 hours (86400s).

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PostRestoreConfig.Builder