Class RestoreBackupRequest.Builder (0.11.0)

public static final class RestoreBackupRequest.Builder extends GeneratedMessageV3.Builder<RestoreBackupRequest.Builder> implements RestoreBackupRequestOrBuilder

Request message for restoring from a Backup.

Protobuf type google.cloud.backupdr.v1.RestoreBackupRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RestoreBackupRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RestoreBackupRequest.Builder
Overrides

build()

public RestoreBackupRequest build()
Returns
Type Description
RestoreBackupRequest

buildPartial()

public RestoreBackupRequest buildPartial()
Returns
Type Description
RestoreBackupRequest

clear()

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

clearComputeInstanceRestoreProperties()

public RestoreBackupRequest.Builder clearComputeInstanceRestoreProperties()

Compute Engine instance properties to be overridden during restore.

.google.cloud.backupdr.v1.ComputeInstanceRestoreProperties compute_instance_restore_properties = 4;

Returns
Type Description
RestoreBackupRequest.Builder

clearComputeInstanceTargetEnvironment()

public RestoreBackupRequest.Builder clearComputeInstanceTargetEnvironment()

Compute Engine target environment to be used during restore.

.google.cloud.backupdr.v1.ComputeInstanceTargetEnvironment compute_instance_target_environment = 3;

Returns
Type Description
RestoreBackupRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public RestoreBackupRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RestoreBackupRequest.Builder
Overrides

clearInstanceProperties()

public RestoreBackupRequest.Builder clearInstanceProperties()
Returns
Type Description
RestoreBackupRequest.Builder

clearName()

public RestoreBackupRequest.Builder clearName()

Required. The resource name of the Backup instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/*/backups/'.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
RestoreBackupRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RestoreBackupRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RestoreBackupRequest.Builder
Overrides

clearRequestId()

public RestoreBackupRequest.Builder clearRequestId()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
RestoreBackupRequest.Builder

This builder for chaining.

clearTargetEnvironment()

public RestoreBackupRequest.Builder clearTargetEnvironment()
Returns
Type Description
RestoreBackupRequest.Builder

clone()

public RestoreBackupRequest.Builder clone()
Returns
Type Description
RestoreBackupRequest.Builder
Overrides

getComputeInstanceRestoreProperties()

public ComputeInstanceRestoreProperties getComputeInstanceRestoreProperties()

Compute Engine instance properties to be overridden during restore.

.google.cloud.backupdr.v1.ComputeInstanceRestoreProperties compute_instance_restore_properties = 4;

Returns
Type Description
ComputeInstanceRestoreProperties

The computeInstanceRestoreProperties.

getComputeInstanceRestorePropertiesBuilder()

public ComputeInstanceRestoreProperties.Builder getComputeInstanceRestorePropertiesBuilder()

Compute Engine instance properties to be overridden during restore.

.google.cloud.backupdr.v1.ComputeInstanceRestoreProperties compute_instance_restore_properties = 4;

Returns
Type Description
ComputeInstanceRestoreProperties.Builder

getComputeInstanceRestorePropertiesOrBuilder()

public ComputeInstanceRestorePropertiesOrBuilder getComputeInstanceRestorePropertiesOrBuilder()

Compute Engine instance properties to be overridden during restore.

.google.cloud.backupdr.v1.ComputeInstanceRestoreProperties compute_instance_restore_properties = 4;

Returns
Type Description
ComputeInstanceRestorePropertiesOrBuilder

getComputeInstanceTargetEnvironment()

public ComputeInstanceTargetEnvironment getComputeInstanceTargetEnvironment()

Compute Engine target environment to be used during restore.

.google.cloud.backupdr.v1.ComputeInstanceTargetEnvironment compute_instance_target_environment = 3;

Returns
Type Description
ComputeInstanceTargetEnvironment

The computeInstanceTargetEnvironment.

getComputeInstanceTargetEnvironmentBuilder()

public ComputeInstanceTargetEnvironment.Builder getComputeInstanceTargetEnvironmentBuilder()

Compute Engine target environment to be used during restore.

.google.cloud.backupdr.v1.ComputeInstanceTargetEnvironment compute_instance_target_environment = 3;

Returns
Type Description
ComputeInstanceTargetEnvironment.Builder

getComputeInstanceTargetEnvironmentOrBuilder()

public ComputeInstanceTargetEnvironmentOrBuilder getComputeInstanceTargetEnvironmentOrBuilder()

Compute Engine target environment to be used during restore.

.google.cloud.backupdr.v1.ComputeInstanceTargetEnvironment compute_instance_target_environment = 3;

Returns
Type Description
ComputeInstanceTargetEnvironmentOrBuilder

getDefaultInstanceForType()

public RestoreBackupRequest getDefaultInstanceForType()
Returns
Type Description
RestoreBackupRequest

getDescriptorForType()

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

getInstancePropertiesCase()

public RestoreBackupRequest.InstancePropertiesCase getInstancePropertiesCase()
Returns
Type Description
RestoreBackupRequest.InstancePropertiesCase

getName()

public String getName()

Required. The resource name of the Backup instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/*/backups/'.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the Backup instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/*/backups/'.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getRequestId()

public String getRequestId()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for requestId.

getTargetEnvironmentCase()

public RestoreBackupRequest.TargetEnvironmentCase getTargetEnvironmentCase()
Returns
Type Description
RestoreBackupRequest.TargetEnvironmentCase

hasComputeInstanceRestoreProperties()

public boolean hasComputeInstanceRestoreProperties()

Compute Engine instance properties to be overridden during restore.

.google.cloud.backupdr.v1.ComputeInstanceRestoreProperties compute_instance_restore_properties = 4;

Returns
Type Description
boolean

Whether the computeInstanceRestoreProperties field is set.

hasComputeInstanceTargetEnvironment()

public boolean hasComputeInstanceTargetEnvironment()

Compute Engine target environment to be used during restore.

.google.cloud.backupdr.v1.ComputeInstanceTargetEnvironment compute_instance_target_environment = 3;

Returns
Type Description
boolean

Whether the computeInstanceTargetEnvironment field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeComputeInstanceRestoreProperties(ComputeInstanceRestoreProperties value)

public RestoreBackupRequest.Builder mergeComputeInstanceRestoreProperties(ComputeInstanceRestoreProperties value)

Compute Engine instance properties to be overridden during restore.

.google.cloud.backupdr.v1.ComputeInstanceRestoreProperties compute_instance_restore_properties = 4;

Parameter
Name Description
value ComputeInstanceRestoreProperties
Returns
Type Description
RestoreBackupRequest.Builder

mergeComputeInstanceTargetEnvironment(ComputeInstanceTargetEnvironment value)

public RestoreBackupRequest.Builder mergeComputeInstanceTargetEnvironment(ComputeInstanceTargetEnvironment value)

Compute Engine target environment to be used during restore.

.google.cloud.backupdr.v1.ComputeInstanceTargetEnvironment compute_instance_target_environment = 3;

Parameter
Name Description
value ComputeInstanceTargetEnvironment
Returns
Type Description
RestoreBackupRequest.Builder

mergeFrom(RestoreBackupRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RestoreBackupRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RestoreBackupRequest.Builder
Overrides

setComputeInstanceRestoreProperties(ComputeInstanceRestoreProperties value)

public RestoreBackupRequest.Builder setComputeInstanceRestoreProperties(ComputeInstanceRestoreProperties value)

Compute Engine instance properties to be overridden during restore.

.google.cloud.backupdr.v1.ComputeInstanceRestoreProperties compute_instance_restore_properties = 4;

Parameter
Name Description
value ComputeInstanceRestoreProperties
Returns
Type Description
RestoreBackupRequest.Builder

setComputeInstanceRestoreProperties(ComputeInstanceRestoreProperties.Builder builderForValue)

public RestoreBackupRequest.Builder setComputeInstanceRestoreProperties(ComputeInstanceRestoreProperties.Builder builderForValue)

Compute Engine instance properties to be overridden during restore.

.google.cloud.backupdr.v1.ComputeInstanceRestoreProperties compute_instance_restore_properties = 4;

Parameter
Name Description
builderForValue ComputeInstanceRestoreProperties.Builder
Returns
Type Description
RestoreBackupRequest.Builder

setComputeInstanceTargetEnvironment(ComputeInstanceTargetEnvironment value)

public RestoreBackupRequest.Builder setComputeInstanceTargetEnvironment(ComputeInstanceTargetEnvironment value)

Compute Engine target environment to be used during restore.

.google.cloud.backupdr.v1.ComputeInstanceTargetEnvironment compute_instance_target_environment = 3;

Parameter
Name Description
value ComputeInstanceTargetEnvironment
Returns
Type Description
RestoreBackupRequest.Builder

setComputeInstanceTargetEnvironment(ComputeInstanceTargetEnvironment.Builder builderForValue)

public RestoreBackupRequest.Builder setComputeInstanceTargetEnvironment(ComputeInstanceTargetEnvironment.Builder builderForValue)

Compute Engine target environment to be used during restore.

.google.cloud.backupdr.v1.ComputeInstanceTargetEnvironment compute_instance_target_environment = 3;

Parameter
Name Description
builderForValue ComputeInstanceTargetEnvironment.Builder
Returns
Type Description
RestoreBackupRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public RestoreBackupRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RestoreBackupRequest.Builder
Overrides

setName(String value)

public RestoreBackupRequest.Builder setName(String value)

Required. The resource name of the Backup instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/*/backups/'.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RestoreBackupRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RestoreBackupRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the Backup instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/*/backups/'.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RestoreBackupRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RestoreBackupRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RestoreBackupRequest.Builder
Overrides

setRequestId(String value)

public RestoreBackupRequest.Builder setRequestId(String value)

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
RestoreBackupRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public RestoreBackupRequest.Builder setRequestIdBytes(ByteString value)

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
RestoreBackupRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RestoreBackupRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RestoreBackupRequest.Builder
Overrides