Class ContinuousBackupInfo.Builder (0.19.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.v1beta.ContinuousBackupInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.type.DayOfWeek>

The schedule to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
ContinuousBackupInfo.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ContinuousBackupInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuecom.google.type.DayOfWeek

The schedule to add.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
ContinuousBackupInfo.Builder

This builder for chaining.

build()

public ContinuousBackupInfo build()
Returns
TypeDescription
ContinuousBackupInfo

buildPartial()

public ContinuousBackupInfo buildPartial()
Returns
TypeDescription
ContinuousBackupInfo

clear()

public ContinuousBackupInfo.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ContinuousBackupInfo.Builder

clearEncryptionInfo()

public ContinuousBackupInfo.Builder clearEncryptionInfo()

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

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

Returns
TypeDescription
ContinuousBackupInfo.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ContinuousBackupInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ContinuousBackupInfo.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ContinuousBackupInfo getDefaultInstanceForType()
Returns
TypeDescription
ContinuousBackupInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getEncryptionInfo()

public EncryptionInfo getEncryptionInfo()

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

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

Returns
TypeDescription
EncryptionInfo

The encryptionInfo.

getEncryptionInfoBuilder()

public EncryptionInfo.Builder getEncryptionInfoBuilder()

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

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

Returns
TypeDescription
EncryptionInfo.Builder

getEncryptionInfoOrBuilder()

public EncryptionInfoOrBuilder getEncryptionInfoOrBuilder()

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

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

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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.v1beta.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the encryptionInfo field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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.v1beta.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueEncryptionInfo
Returns
TypeDescription
ContinuousBackupInfo.Builder

mergeFrom(ContinuousBackupInfo other)

public ContinuousBackupInfo.Builder mergeFrom(ContinuousBackupInfo other)
Parameter
NameDescription
otherContinuousBackupInfo
Returns
TypeDescription
ContinuousBackupInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ContinuousBackupInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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.v1beta.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueEncryptionInfo
Returns
TypeDescription
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.v1beta.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueEncryptionInfo.Builder
Returns
TypeDescription
ContinuousBackupInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ContinuousBackupInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valuecom.google.type.DayOfWeek

The schedule to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
ContinuousBackupInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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