Class ContinuousBackupInfo.Builder (0.43.0)

public static final class ContinuousBackupInfo.Builder extends GeneratedMessageV3.Builder<ContinuousBackupInfo.Builder> implements ContinuousBackupInfoOrBuilder

ContinuousBackupInfo describes the continuous backup properties of a cluster.

Protobuf type google.cloud.alloydb.v1.ContinuousBackupInfo

Static Methods

getDescriptor()

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

Methods

addAllSchedule(Iterable<? extends DayOfWeek> values)

public ContinuousBackupInfo.Builder addAllSchedule(Iterable<? extends DayOfWeek> values)

Output only. Days of the week on which a continuous backup is taken. Output only field. Ignored if passed into the request.

repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.type.DayOfWeek>

The schedule to add.

Returns
Type Description
ContinuousBackupInfo.Builder

This builder for chaining.

addAllScheduleValue(Iterable<Integer> values)

public ContinuousBackupInfo.Builder addAllScheduleValue(Iterable<Integer> values)

Output only. Days of the week on which a continuous backup is taken. Output only field. Ignored if passed into the request.

repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for schedule to add.

Returns
Type Description
ContinuousBackupInfo.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSchedule(DayOfWeek value)

public ContinuousBackupInfo.Builder addSchedule(DayOfWeek value)

Output only. Days of the week on which a continuous backup is taken. Output only field. Ignored if passed into the request.

repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.type.DayOfWeek

The schedule to add.

Returns
Type Description
ContinuousBackupInfo.Builder

This builder for chaining.

addScheduleValue(int value)

public ContinuousBackupInfo.Builder addScheduleValue(int value)

Output only. Days of the week on which a continuous backup is taken. Output only field. Ignored if passed into the request.

repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for schedule to add.

Returns
Type Description
ContinuousBackupInfo.Builder

This builder for chaining.

build()

public ContinuousBackupInfo build()
Returns
Type Description
ContinuousBackupInfo

buildPartial()

public ContinuousBackupInfo buildPartial()
Returns
Type Description
ContinuousBackupInfo

clear()

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

clearEarliestRestorableTime()

public ContinuousBackupInfo.Builder clearEarliestRestorableTime()

Output only. The earliest restorable time that can be restored to. Output only field.

.google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ContinuousBackupInfo.Builder

clearEnabledTime()

public ContinuousBackupInfo.Builder clearEnabledTime()

Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.

.google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ContinuousBackupInfo.Builder

clearEncryptionInfo()

public ContinuousBackupInfo.Builder clearEncryptionInfo()

Output only. The encryption information for the WALs and backups required for ContinuousBackup.

.google.cloud.alloydb.v1.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ContinuousBackupInfo.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSchedule()

public ContinuousBackupInfo.Builder clearSchedule()

Output only. Days of the week on which a continuous backup is taken. Output only field. Ignored if passed into the request.

repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ContinuousBackupInfo.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ContinuousBackupInfo getDefaultInstanceForType()
Returns
Type Description
ContinuousBackupInfo

getDescriptorForType()

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

getEarliestRestorableTime()

public Timestamp getEarliestRestorableTime()

Output only. The earliest restorable time that can be restored to. Output only field.

.google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The earliestRestorableTime.

getEarliestRestorableTimeBuilder()

public Timestamp.Builder getEarliestRestorableTimeBuilder()

Output only. The earliest restorable time that can be restored to. Output only field.

.google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getEarliestRestorableTimeOrBuilder()

public TimestampOrBuilder getEarliestRestorableTimeOrBuilder()

Output only. The earliest restorable time that can be restored to. Output only field.

.google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getEnabledTime()

public Timestamp getEnabledTime()

Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.

.google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The enabledTime.

getEnabledTimeBuilder()

public Timestamp.Builder getEnabledTimeBuilder()

Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.

.google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getEnabledTimeOrBuilder()

public TimestampOrBuilder getEnabledTimeOrBuilder()

Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.

.google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getEncryptionInfo()

public EncryptionInfo getEncryptionInfo()

Output only. The encryption information for the WALs and backups required for ContinuousBackup.

.google.cloud.alloydb.v1.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EncryptionInfo

The encryptionInfo.

getEncryptionInfoBuilder()

public EncryptionInfo.Builder getEncryptionInfoBuilder()

Output only. The encryption information for the WALs and backups required for ContinuousBackup.

.google.cloud.alloydb.v1.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EncryptionInfo.Builder

getEncryptionInfoOrBuilder()

public EncryptionInfoOrBuilder getEncryptionInfoOrBuilder()

Output only. The encryption information for the WALs and backups required for ContinuousBackup.

.google.cloud.alloydb.v1.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EncryptionInfoOrBuilder

getSchedule(int index)

public DayOfWeek getSchedule(int index)

Output only. Days of the week on which a continuous backup is taken. Output only field. Ignored if passed into the request.

repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
com.google.type.DayOfWeek

The schedule at the given index.

getScheduleCount()

public int getScheduleCount()

Output only. Days of the week on which a continuous backup is taken. Output only field. Ignored if passed into the request.

repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of schedule.

getScheduleList()

public List<DayOfWeek> getScheduleList()

Output only. Days of the week on which a continuous backup is taken. Output only field. Ignored if passed into the request.

repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<com.google.type.DayOfWeek>

A list containing the schedule.

getScheduleValue(int index)

public int getScheduleValue(int index)

Output only. Days of the week on which a continuous backup is taken. Output only field. Ignored if passed into the request.

repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of schedule at the given index.

getScheduleValueList()

public List<Integer> getScheduleValueList()

Output only. Days of the week on which a continuous backup is taken. Output only field. Ignored if passed into the request.

repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for schedule.

hasEarliestRestorableTime()

public boolean hasEarliestRestorableTime()

Output only. The earliest restorable time that can be restored to. Output only field.

.google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the earliestRestorableTime field is set.

hasEnabledTime()

public boolean hasEnabledTime()

Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.

.google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the enabledTime field is set.

hasEncryptionInfo()

public boolean hasEncryptionInfo()

Output only. The encryption information for the WALs and backups required for ContinuousBackup.

.google.cloud.alloydb.v1.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the encryptionInfo field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEarliestRestorableTime(Timestamp value)

public ContinuousBackupInfo.Builder mergeEarliestRestorableTime(Timestamp value)

Output only. The earliest restorable time that can be restored to. Output only field.

.google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ContinuousBackupInfo.Builder

mergeEnabledTime(Timestamp value)

public ContinuousBackupInfo.Builder mergeEnabledTime(Timestamp value)

Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.

.google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ContinuousBackupInfo.Builder

mergeEncryptionInfo(EncryptionInfo value)

public ContinuousBackupInfo.Builder mergeEncryptionInfo(EncryptionInfo value)

Output only. The encryption information for the WALs and backups required for ContinuousBackup.

.google.cloud.alloydb.v1.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value EncryptionInfo
Returns
Type Description
ContinuousBackupInfo.Builder

mergeFrom(ContinuousBackupInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEarliestRestorableTime(Timestamp value)

public ContinuousBackupInfo.Builder setEarliestRestorableTime(Timestamp value)

Output only. The earliest restorable time that can be restored to. Output only field.

.google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ContinuousBackupInfo.Builder

setEarliestRestorableTime(Timestamp.Builder builderForValue)

public ContinuousBackupInfo.Builder setEarliestRestorableTime(Timestamp.Builder builderForValue)

Output only. The earliest restorable time that can be restored to. Output only field.

.google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ContinuousBackupInfo.Builder

setEnabledTime(Timestamp value)

public ContinuousBackupInfo.Builder setEnabledTime(Timestamp value)

Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.

.google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ContinuousBackupInfo.Builder

setEnabledTime(Timestamp.Builder builderForValue)

public ContinuousBackupInfo.Builder setEnabledTime(Timestamp.Builder builderForValue)

Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.

.google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ContinuousBackupInfo.Builder

setEncryptionInfo(EncryptionInfo value)

public ContinuousBackupInfo.Builder setEncryptionInfo(EncryptionInfo value)

Output only. The encryption information for the WALs and backups required for ContinuousBackup.

.google.cloud.alloydb.v1.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value EncryptionInfo
Returns
Type Description
ContinuousBackupInfo.Builder

setEncryptionInfo(EncryptionInfo.Builder builderForValue)

public ContinuousBackupInfo.Builder setEncryptionInfo(EncryptionInfo.Builder builderForValue)

Output only. The encryption information for the WALs and backups required for ContinuousBackup.

.google.cloud.alloydb.v1.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue EncryptionInfo.Builder
Returns
Type Description
ContinuousBackupInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSchedule(int index, DayOfWeek value)

public ContinuousBackupInfo.Builder setSchedule(int index, DayOfWeek value)

Output only. Days of the week on which a continuous backup is taken. Output only field. Ignored if passed into the request.

repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value com.google.type.DayOfWeek

The schedule to set.

Returns
Type Description
ContinuousBackupInfo.Builder

This builder for chaining.

setScheduleValue(int index, int value)

public ContinuousBackupInfo.Builder setScheduleValue(int index, int value)

Output only. Days of the week on which a continuous backup is taken. Output only field. Ignored if passed into the request.

repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for schedule to set.

Returns
Type Description
ContinuousBackupInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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