Class PreRestoreConfig (0.62.0)

public final class PreRestoreConfig extends GeneratedMessage implements PreRestoreConfigOrBuilder

Configuration for Pre-Restore.

Protobuf type google.cloud.backupdr.v1.PreRestoreConfig

Static Fields

CLOUD_RUN_JOB_FIELD_NUMBER

public static final int CLOUD_RUN_JOB_FIELD_NUMBER
Field Value
Type Description
int

TIMEOUT_FIELD_NUMBER

public static final int TIMEOUT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PreRestoreConfig getDefaultInstance()
Returns
Type Description
PreRestoreConfig

getDescriptor()

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

newBuilder()

public static PreRestoreConfig.Builder newBuilder()
Returns
Type Description
PreRestoreConfig.Builder

newBuilder(PreRestoreConfig prototype)

public static PreRestoreConfig.Builder newBuilder(PreRestoreConfig prototype)
Parameter
Name Description
prototype PreRestoreConfig
Returns
Type Description
PreRestoreConfig.Builder

parseDelimitedFrom(InputStream input)

public static PreRestoreConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PreRestoreConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PreRestoreConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreRestoreConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PreRestoreConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PreRestoreConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PreRestoreConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreRestoreConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PreRestoreConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PreRestoreConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PreRestoreConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreRestoreConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PreRestoreConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PreRestoreConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PreRestoreConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreRestoreConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PreRestoreConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PreRestoreConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PreRestoreConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreRestoreConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PreRestoreConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PreRestoreConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PreRestoreConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreRestoreConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PreRestoreConfig> parser()
Returns
Type Description
Parser<PreRestoreConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

getParserForType()

public Parser<PreRestoreConfig> getParserForType()
Returns
Type Description
Parser<PreRestoreConfig>
Overrides

getPreRestoreActionCase()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected PreRestoreConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PreRestoreConfig.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException