Class ContinuousBackupSource.Builder (0.19.0)

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

Message describing a ContinuousBackupSource.

Protobuf type google.cloud.alloydb.v1beta.ContinuousBackupSource

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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