Class RestoreClusterRequest.Builder (0.30.0)

public static final class RestoreClusterRequest.Builder extends GeneratedMessageV3.Builder<RestoreClusterRequest.Builder> implements RestoreClusterRequestOrBuilder

Message for restoring a Cluster from a backup or another cluster at a given point in time.

Protobuf type google.cloud.alloydb.v1alpha.RestoreClusterRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RestoreClusterRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RestoreClusterRequest.Builder
Overrides

build()

public RestoreClusterRequest build()
Returns
TypeDescription
RestoreClusterRequest

buildPartial()

public RestoreClusterRequest buildPartial()
Returns
TypeDescription
RestoreClusterRequest

clear()

public RestoreClusterRequest.Builder clear()
Returns
TypeDescription
RestoreClusterRequest.Builder
Overrides

clearBackupSource()

public RestoreClusterRequest.Builder clearBackupSource()

Backup source.

.google.cloud.alloydb.v1alpha.BackupSource backup_source = 4;

Returns
TypeDescription
RestoreClusterRequest.Builder

clearCluster()

public RestoreClusterRequest.Builder clearCluster()

Required. The resource being created

.google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RestoreClusterRequest.Builder

clearClusterId()

public RestoreClusterRequest.Builder clearClusterId()

Required. ID of the requesting object.

string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RestoreClusterRequest.Builder

This builder for chaining.

clearContinuousBackupSource()

public RestoreClusterRequest.Builder clearContinuousBackupSource()

ContinuousBackup source. Continuous backup needs to be enabled in the source cluster for this operation to succeed.

.google.cloud.alloydb.v1alpha.ContinuousBackupSource continuous_backup_source = 8;

Returns
TypeDescription
RestoreClusterRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public RestoreClusterRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RestoreClusterRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RestoreClusterRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RestoreClusterRequest.Builder
Overrides

clearParent()

public RestoreClusterRequest.Builder clearParent()

Required. The name of the parent resource. For the required format, see the comment on the Cluster.name field.

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

Returns
TypeDescription
RestoreClusterRequest.Builder

This builder for chaining.

clearRequestId()

public RestoreClusterRequest.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 since 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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RestoreClusterRequest.Builder

This builder for chaining.

clearSource()

public RestoreClusterRequest.Builder clearSource()
Returns
TypeDescription
RestoreClusterRequest.Builder

clearValidateOnly()

public RestoreClusterRequest.Builder clearValidateOnly()

Optional. If set, performs request validation (e.g. permission checks and any other type of validation), but do not actually execute the import request.

bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RestoreClusterRequest.Builder

This builder for chaining.

clone()

public RestoreClusterRequest.Builder clone()
Returns
TypeDescription
RestoreClusterRequest.Builder
Overrides

getBackupSource()

public BackupSource getBackupSource()

Backup source.

.google.cloud.alloydb.v1alpha.BackupSource backup_source = 4;

Returns
TypeDescription
BackupSource

The backupSource.

getBackupSourceBuilder()

public BackupSource.Builder getBackupSourceBuilder()

Backup source.

.google.cloud.alloydb.v1alpha.BackupSource backup_source = 4;

Returns
TypeDescription
BackupSource.Builder

getBackupSourceOrBuilder()

public BackupSourceOrBuilder getBackupSourceOrBuilder()

Backup source.

.google.cloud.alloydb.v1alpha.BackupSource backup_source = 4;

Returns
TypeDescription
BackupSourceOrBuilder

getCluster()

public Cluster getCluster()

Required. The resource being created

.google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Cluster

The cluster.

getClusterBuilder()

public Cluster.Builder getClusterBuilder()

Required. The resource being created

.google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Cluster.Builder

getClusterId()

public String getClusterId()

Required. ID of the requesting object.

string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The clusterId.

getClusterIdBytes()

public ByteString getClusterIdBytes()

Required. ID of the requesting object.

string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for clusterId.

getClusterOrBuilder()

public ClusterOrBuilder getClusterOrBuilder()

Required. The resource being created

.google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ClusterOrBuilder

getContinuousBackupSource()

public ContinuousBackupSource getContinuousBackupSource()

ContinuousBackup source. Continuous backup needs to be enabled in the source cluster for this operation to succeed.

.google.cloud.alloydb.v1alpha.ContinuousBackupSource continuous_backup_source = 8;

Returns
TypeDescription
ContinuousBackupSource

The continuousBackupSource.

getContinuousBackupSourceBuilder()

public ContinuousBackupSource.Builder getContinuousBackupSourceBuilder()

ContinuousBackup source. Continuous backup needs to be enabled in the source cluster for this operation to succeed.

.google.cloud.alloydb.v1alpha.ContinuousBackupSource continuous_backup_source = 8;

Returns
TypeDescription
ContinuousBackupSource.Builder

getContinuousBackupSourceOrBuilder()

public ContinuousBackupSourceOrBuilder getContinuousBackupSourceOrBuilder()

ContinuousBackup source. Continuous backup needs to be enabled in the source cluster for this operation to succeed.

.google.cloud.alloydb.v1alpha.ContinuousBackupSource continuous_backup_source = 8;

Returns
TypeDescription
ContinuousBackupSourceOrBuilder

getDefaultInstanceForType()

public RestoreClusterRequest getDefaultInstanceForType()
Returns
TypeDescription
RestoreClusterRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The name of the parent resource. For the required format, see the comment on the Cluster.name field.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The name of the parent resource. For the required format, see the comment on the Cluster.name field.

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

Returns
TypeDescription
ByteString

The bytes for parent.

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 since 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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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 since 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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for requestId.

getSourceCase()

public RestoreClusterRequest.SourceCase getSourceCase()
Returns
TypeDescription
RestoreClusterRequest.SourceCase

getValidateOnly()

public boolean getValidateOnly()

Optional. If set, performs request validation (e.g. permission checks and any other type of validation), but do not actually execute the import request.

bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The validateOnly.

hasBackupSource()

public boolean hasBackupSource()

Backup source.

.google.cloud.alloydb.v1alpha.BackupSource backup_source = 4;

Returns
TypeDescription
boolean

Whether the backupSource field is set.

hasCluster()

public boolean hasCluster()

Required. The resource being created

.google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the cluster field is set.

hasContinuousBackupSource()

public boolean hasContinuousBackupSource()

ContinuousBackup source. Continuous backup needs to be enabled in the source cluster for this operation to succeed.

.google.cloud.alloydb.v1alpha.ContinuousBackupSource continuous_backup_source = 8;

Returns
TypeDescription
boolean

Whether the continuousBackupSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBackupSource(BackupSource value)

public RestoreClusterRequest.Builder mergeBackupSource(BackupSource value)

Backup source.

.google.cloud.alloydb.v1alpha.BackupSource backup_source = 4;

Parameter
NameDescription
valueBackupSource
Returns
TypeDescription
RestoreClusterRequest.Builder

mergeCluster(Cluster value)

public RestoreClusterRequest.Builder mergeCluster(Cluster value)

Required. The resource being created

.google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCluster
Returns
TypeDescription
RestoreClusterRequest.Builder

mergeContinuousBackupSource(ContinuousBackupSource value)

public RestoreClusterRequest.Builder mergeContinuousBackupSource(ContinuousBackupSource value)

ContinuousBackup source. Continuous backup needs to be enabled in the source cluster for this operation to succeed.

.google.cloud.alloydb.v1alpha.ContinuousBackupSource continuous_backup_source = 8;

Parameter
NameDescription
valueContinuousBackupSource
Returns
TypeDescription
RestoreClusterRequest.Builder

mergeFrom(RestoreClusterRequest other)

public RestoreClusterRequest.Builder mergeFrom(RestoreClusterRequest other)
Parameter
NameDescription
otherRestoreClusterRequest
Returns
TypeDescription
RestoreClusterRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RestoreClusterRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreClusterRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RestoreClusterRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RestoreClusterRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RestoreClusterRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RestoreClusterRequest.Builder
Overrides

setBackupSource(BackupSource value)

public RestoreClusterRequest.Builder setBackupSource(BackupSource value)

Backup source.

.google.cloud.alloydb.v1alpha.BackupSource backup_source = 4;

Parameter
NameDescription
valueBackupSource
Returns
TypeDescription
RestoreClusterRequest.Builder

setBackupSource(BackupSource.Builder builderForValue)

public RestoreClusterRequest.Builder setBackupSource(BackupSource.Builder builderForValue)

Backup source.

.google.cloud.alloydb.v1alpha.BackupSource backup_source = 4;

Parameter
NameDescription
builderForValueBackupSource.Builder
Returns
TypeDescription
RestoreClusterRequest.Builder

setCluster(Cluster value)

public RestoreClusterRequest.Builder setCluster(Cluster value)

Required. The resource being created

.google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCluster
Returns
TypeDescription
RestoreClusterRequest.Builder

setCluster(Cluster.Builder builderForValue)

public RestoreClusterRequest.Builder setCluster(Cluster.Builder builderForValue)

Required. The resource being created

.google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueCluster.Builder
Returns
TypeDescription
RestoreClusterRequest.Builder

setClusterId(String value)

public RestoreClusterRequest.Builder setClusterId(String value)

Required. ID of the requesting object.

string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The clusterId to set.

Returns
TypeDescription
RestoreClusterRequest.Builder

This builder for chaining.

setClusterIdBytes(ByteString value)

public RestoreClusterRequest.Builder setClusterIdBytes(ByteString value)

Required. ID of the requesting object.

string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for clusterId to set.

Returns
TypeDescription
RestoreClusterRequest.Builder

This builder for chaining.

setContinuousBackupSource(ContinuousBackupSource value)

public RestoreClusterRequest.Builder setContinuousBackupSource(ContinuousBackupSource value)

ContinuousBackup source. Continuous backup needs to be enabled in the source cluster for this operation to succeed.

.google.cloud.alloydb.v1alpha.ContinuousBackupSource continuous_backup_source = 8;

Parameter
NameDescription
valueContinuousBackupSource
Returns
TypeDescription
RestoreClusterRequest.Builder

setContinuousBackupSource(ContinuousBackupSource.Builder builderForValue)

public RestoreClusterRequest.Builder setContinuousBackupSource(ContinuousBackupSource.Builder builderForValue)

ContinuousBackup source. Continuous backup needs to be enabled in the source cluster for this operation to succeed.

.google.cloud.alloydb.v1alpha.ContinuousBackupSource continuous_backup_source = 8;

Parameter
NameDescription
builderForValueContinuousBackupSource.Builder
Returns
TypeDescription
RestoreClusterRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public RestoreClusterRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RestoreClusterRequest.Builder
Overrides

setParent(String value)

public RestoreClusterRequest.Builder setParent(String value)

Required. The name of the parent resource. For the required format, see the comment on the Cluster.name field.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
RestoreClusterRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public RestoreClusterRequest.Builder setParentBytes(ByteString value)

Required. The name of the parent resource. For the required format, see the comment on the Cluster.name field.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
RestoreClusterRequest.Builder

This builder for chaining.

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

public RestoreClusterRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RestoreClusterRequest.Builder
Overrides

setRequestId(String value)

public RestoreClusterRequest.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 since 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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
RestoreClusterRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public RestoreClusterRequest.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 since 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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
RestoreClusterRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RestoreClusterRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RestoreClusterRequest.Builder
Overrides

setValidateOnly(boolean value)

public RestoreClusterRequest.Builder setValidateOnly(boolean value)

Optional. If set, performs request validation (e.g. permission checks and any other type of validation), but do not actually execute the import request.

bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
RestoreClusterRequest.Builder

This builder for chaining.