Class TriggerRestoreCleanupRequest.Builder (0.62.0)

public static final class TriggerRestoreCleanupRequest.Builder extends GeneratedMessage.Builder<TriggerRestoreCleanupRequest.Builder> implements TriggerRestoreCleanupRequestOrBuilder

Request message for triggering a restore cleanup.

Protobuf type google.cloud.backupdr.v1beta.TriggerRestoreCleanupRequest

Static Methods

getDescriptor()

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

Methods

build()

public TriggerRestoreCleanupRequest build()
Returns
Type Description
TriggerRestoreCleanupRequest

buildPartial()

public TriggerRestoreCleanupRequest buildPartial()
Returns
Type Description
TriggerRestoreCleanupRequest

clear()

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

clearName()

public TriggerRestoreCleanupRequest.Builder clearName()

Required. Name of the restore template execution. Format: 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}/executions/{execution_id}'

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

Returns
Type Description
TriggerRestoreCleanupRequest.Builder

This builder for chaining.

clearRequestId()

public TriggerRestoreCleanupRequest.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.

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
TriggerRestoreCleanupRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public TriggerRestoreCleanupRequest getDefaultInstanceForType()
Returns
Type Description
TriggerRestoreCleanupRequest

getDescriptorForType()

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

getName()

public String getName()

Required. Name of the restore template execution. Format: 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}/executions/{execution_id}'

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the restore template execution. Format: 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}/executions/{execution_id}'

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.

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TriggerRestoreCleanupRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public TriggerRestoreCleanupRequest.Builder setName(String value)

Required. Name of the restore template execution. Format: 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}/executions/{execution_id}'

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
TriggerRestoreCleanupRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TriggerRestoreCleanupRequest.Builder setNameBytes(ByteString value)

Required. Name of the restore template execution. Format: 'projects/{project_id}/locations/{location}/restoreTemplates/{restore_template_id}/executions/{execution_id}'

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
TriggerRestoreCleanupRequest.Builder

This builder for chaining.

setRequestId(String value)

public TriggerRestoreCleanupRequest.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.

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
TriggerRestoreCleanupRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public TriggerRestoreCleanupRequest.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.

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
TriggerRestoreCleanupRequest.Builder

This builder for chaining.