Class ContinuousBackupSource.Builder (0.72.0)

public static final class ContinuousBackupSource.Builder extends GeneratedMessage.Builder<ContinuousBackupSource.Builder> implements ContinuousBackupSourceOrBuilder

Message describing a ContinuousBackupSource.

Protobuf type google.cloud.alloydb.v1alpha.ContinuousBackupSource

Static Methods

getDescriptor()

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

Methods

build()

public ContinuousBackupSource build()
Returns
Type Description
ContinuousBackupSource

buildPartial()

public ContinuousBackupSource buildPartial()
Returns
Type Description
ContinuousBackupSource

clear()

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

clearCluster()

public ContinuousBackupSource.Builder clearCluster()

Required. The source cluster from which to restore. This cluster must have continuous backup enabled for this operation to succeed. For the required format, see the comment on the Cluster.name field.

string cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContinuousBackupSource.Builder

This builder for chaining.

clearPointInTime()

public ContinuousBackupSource.Builder clearPointInTime()

Required. The point in time to restore to.

.google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContinuousBackupSource.Builder

getCluster()

public String getCluster()

Required. The source cluster from which to restore. This cluster must have continuous backup enabled for this operation to succeed. For the required format, see the comment on the Cluster.name field.

string cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The cluster.

getClusterBytes()

public ByteString getClusterBytes()

Required. The source cluster from which to restore. This cluster must have continuous backup enabled for this operation to succeed. For the required format, see the comment on the Cluster.name field.

string cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for cluster.

getDefaultInstanceForType()

public ContinuousBackupSource getDefaultInstanceForType()
Returns
Type Description
ContinuousBackupSource

getDescriptorForType()

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

getPointInTime()

public Timestamp getPointInTime()

Required. The point in time to restore to.

.google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The pointInTime.

getPointInTimeBuilder()

public Timestamp.Builder getPointInTimeBuilder()

Required. The point in time to restore to.

.google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getPointInTimeOrBuilder()

public TimestampOrBuilder getPointInTimeOrBuilder()

Required. The point in time to restore to.

.google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

hasPointInTime()

public boolean hasPointInTime()

Required. The point in time to restore to.

.google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the pointInTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ContinuousBackupSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePointInTime(Timestamp value)

public ContinuousBackupSource.Builder mergePointInTime(Timestamp value)

Required. The point in time to restore to.

.google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
ContinuousBackupSource.Builder

setCluster(String value)

public ContinuousBackupSource.Builder setCluster(String value)

Required. The source cluster from which to restore. This cluster must have continuous backup enabled for this operation to succeed. For the required format, see the comment on the Cluster.name field.

string cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The cluster to set.

Returns
Type Description
ContinuousBackupSource.Builder

This builder for chaining.

setClusterBytes(ByteString value)

public ContinuousBackupSource.Builder setClusterBytes(ByteString value)

Required. The source cluster from which to restore. This cluster must have continuous backup enabled for this operation to succeed. For the required format, see the comment on the Cluster.name field.

string cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for cluster to set.

Returns
Type Description
ContinuousBackupSource.Builder

This builder for chaining.

setPointInTime(Timestamp value)

public ContinuousBackupSource.Builder setPointInTime(Timestamp value)

Required. The point in time to restore to.

.google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
ContinuousBackupSource.Builder

setPointInTime(Timestamp.Builder builderForValue)

public ContinuousBackupSource.Builder setPointInTime(Timestamp.Builder builderForValue)

Required. The point in time to restore to.

.google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ContinuousBackupSource.Builder