Class PreRestoreConfig.Builder (0.62.0)

public static final class PreRestoreConfig.Builder extends GeneratedMessage.Builder<PreRestoreConfig.Builder> implements PreRestoreConfigOrBuilder

Configuration for Pre-Restore.

Protobuf type google.cloud.backupdr.v1beta.PreRestoreConfig

Static Methods

getDescriptor()

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

Methods

build()

public PreRestoreConfig build()
Returns
Type Description
PreRestoreConfig

buildPartial()

public PreRestoreConfig buildPartial()
Returns
Type Description
PreRestoreConfig

clear()

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

clearCloudRunJob()

public PreRestoreConfig.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
PreRestoreConfig.Builder

This builder for chaining.

clearPreRestoreAction()

public PreRestoreConfig.Builder clearPreRestoreAction()
Returns
Type Description
PreRestoreConfig.Builder

clearTimeout()

public PreRestoreConfig.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
PreRestoreConfig.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 PreRestoreConfig getDefaultInstanceForType()
Returns
Type Description
PreRestoreConfig

getDescriptorForType()

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

getPreRestoreActionCase()

public PreRestoreConfig.PreRestoreActionCase getPreRestoreActionCase()
Returns
Type Description
PreRestoreConfig.PreRestoreActionCase

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(PreRestoreConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTimeout(Duration value)

public PreRestoreConfig.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
PreRestoreConfig.Builder

setCloudRunJob(String value)

public PreRestoreConfig.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
PreRestoreConfig.Builder

This builder for chaining.

setCloudRunJobBytes(ByteString value)

public PreRestoreConfig.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
PreRestoreConfig.Builder

This builder for chaining.

setTimeout(Duration value)

public PreRestoreConfig.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
PreRestoreConfig.Builder

setTimeout(Duration.Builder builderForValue)

public PreRestoreConfig.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
PreRestoreConfig.Builder