Class AlloyDbPitrWindow.Builder (0.58.0)

public static final class AlloyDbPitrWindow.Builder extends GeneratedMessage.Builder<AlloyDbPitrWindow.Builder> implements AlloyDbPitrWindowOrBuilder

Point in time recovery window for an AlloyDB cluster.

Protobuf type google.cloud.backupdr.v1beta.AlloyDbPitrWindow

Static Methods

getDescriptor()

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

Methods

build()

public AlloyDbPitrWindow build()
Returns
Type Description
AlloyDbPitrWindow

buildPartial()

public AlloyDbPitrWindow buildPartial()
Returns
Type Description
AlloyDbPitrWindow

clear()

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

clearEndTime()

public AlloyDbPitrWindow.Builder clearEndTime()

Output only. The end time of the PITR window. It is not set if the corresponding Backup Plan Association is active.

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

Returns
Type Description
AlloyDbPitrWindow.Builder

clearLogRetentionDays()

public AlloyDbPitrWindow.Builder clearLogRetentionDays()

Output only. Log retention days for the PITR window.

int64 log_retention_days = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AlloyDbPitrWindow.Builder

This builder for chaining.

clearStartTime()

public AlloyDbPitrWindow.Builder clearStartTime()

Output only. The start time of the PITR window.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AlloyDbPitrWindow.Builder

getDefaultInstanceForType()

public AlloyDbPitrWindow getDefaultInstanceForType()
Returns
Type Description
AlloyDbPitrWindow

getDescriptorForType()

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

getEndTime()

public Timestamp getEndTime()

Output only. The end time of the PITR window. It is not set if the corresponding Backup Plan Association is active.

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

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Output only. The end time of the PITR window. It is not set if the corresponding Backup Plan Association is active.

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

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. The end time of the PITR window. It is not set if the corresponding Backup Plan Association is active.

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

Returns
Type Description
TimestampOrBuilder

getLogRetentionDays()

public long getLogRetentionDays()

Output only. Log retention days for the PITR window.

int64 log_retention_days = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The logRetentionDays.

getStartTime()

public Timestamp getStartTime()

Output only. The start time of the PITR window.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Output only. The start time of the PITR window.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. The start time of the PITR window.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

Output only. The end time of the PITR window. It is not set if the corresponding Backup Plan Association is active.

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

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Output only. The start time of the PITR window.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public AlloyDbPitrWindow.Builder mergeEndTime(Timestamp value)

Output only. The end time of the PITR window. It is not set if the corresponding Backup Plan Association is active.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
AlloyDbPitrWindow.Builder

mergeFrom(AlloyDbPitrWindow other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public AlloyDbPitrWindow.Builder mergeStartTime(Timestamp value)

Output only. The start time of the PITR window.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AlloyDbPitrWindow.Builder

setEndTime(Timestamp value)

public AlloyDbPitrWindow.Builder setEndTime(Timestamp value)

Output only. The end time of the PITR window. It is not set if the corresponding Backup Plan Association is active.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
AlloyDbPitrWindow.Builder

setEndTime(Timestamp.Builder builderForValue)

public AlloyDbPitrWindow.Builder setEndTime(Timestamp.Builder builderForValue)

Output only. The end time of the PITR window. It is not set if the corresponding Backup Plan Association is active.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AlloyDbPitrWindow.Builder

setLogRetentionDays(long value)

public AlloyDbPitrWindow.Builder setLogRetentionDays(long value)

Output only. Log retention days for the PITR window.

int64 log_retention_days = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The logRetentionDays to set.

Returns
Type Description
AlloyDbPitrWindow.Builder

This builder for chaining.

setStartTime(Timestamp value)

public AlloyDbPitrWindow.Builder setStartTime(Timestamp value)

Output only. The start time of the PITR window.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AlloyDbPitrWindow.Builder

setStartTime(Timestamp.Builder builderForValue)

public AlloyDbPitrWindow.Builder setStartTime(Timestamp.Builder builderForValue)

Output only. The start time of the PITR window.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AlloyDbPitrWindow.Builder