Class Reservation.ReplicationStatus.Builder (2.84.0)

public static final class Reservation.ReplicationStatus.Builder extends GeneratedMessage.Builder<Reservation.ReplicationStatus.Builder> implements Reservation.ReplicationStatusOrBuilder

Disaster Recovery(DR) replication status of the reservation.

Protobuf type google.cloud.bigquery.reservation.v1.Reservation.ReplicationStatus

Static Methods

getDescriptor()

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

Methods

build()

public Reservation.ReplicationStatus build()
Returns
Type Description
Reservation.ReplicationStatus

buildPartial()

public Reservation.ReplicationStatus buildPartial()
Returns
Type Description
Reservation.ReplicationStatus

clear()

public Reservation.ReplicationStatus.Builder clear()
Returns
Type Description
Reservation.ReplicationStatus.Builder
Overrides

clearError()

public Reservation.ReplicationStatus.Builder clearError()

Output only. The last error encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since.

.google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Reservation.ReplicationStatus.Builder

clearLastErrorTime()

public Reservation.ReplicationStatus.Builder clearLastErrorTime()

Output only. The time at which the last error was encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since.

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

Returns
Type Description
Reservation.ReplicationStatus.Builder

clearLastReplicationTime()

public Reservation.ReplicationStatus.Builder clearLastReplicationTime()

Output only. A timestamp corresponding to the last change on the primary that was successfully replicated to the secondary.

.google.protobuf.Timestamp last_replication_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Reservation.ReplicationStatus.Builder

clearSoftFailoverStartTime()

public Reservation.ReplicationStatus.Builder clearSoftFailoverStartTime()

Output only. The time at which a soft failover for the reservation and its associated datasets was initiated. After this field is set, all subsequent changes to the reservation will be rejected unless a hard failover overrides this operation. This field will be cleared once the failover is complete.

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

Returns
Type Description
Reservation.ReplicationStatus.Builder

getDefaultInstanceForType()

public Reservation.ReplicationStatus getDefaultInstanceForType()
Returns
Type Description
Reservation.ReplicationStatus

getDescriptorForType()

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

getError()

public Status getError()

Output only. The last error encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since.

.google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

Output only. The last error encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since.

.google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Output only. The last error encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since.

.google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.StatusOrBuilder

getLastErrorTime()

public Timestamp getLastErrorTime()

Output only. The time at which the last error was encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since.

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

Returns
Type Description
Timestamp

The lastErrorTime.

getLastErrorTimeBuilder()

public Timestamp.Builder getLastErrorTimeBuilder()

Output only. The time at which the last error was encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since.

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

Returns
Type Description
Builder

getLastErrorTimeOrBuilder()

public TimestampOrBuilder getLastErrorTimeOrBuilder()

Output only. The time at which the last error was encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since.

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

Returns
Type Description
TimestampOrBuilder

getLastReplicationTime()

public Timestamp getLastReplicationTime()

Output only. A timestamp corresponding to the last change on the primary that was successfully replicated to the secondary.

.google.protobuf.Timestamp last_replication_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The lastReplicationTime.

getLastReplicationTimeBuilder()

public Timestamp.Builder getLastReplicationTimeBuilder()

Output only. A timestamp corresponding to the last change on the primary that was successfully replicated to the secondary.

.google.protobuf.Timestamp last_replication_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getLastReplicationTimeOrBuilder()

public TimestampOrBuilder getLastReplicationTimeOrBuilder()

Output only. A timestamp corresponding to the last change on the primary that was successfully replicated to the secondary.

.google.protobuf.Timestamp last_replication_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getSoftFailoverStartTime()

public Timestamp getSoftFailoverStartTime()

Output only. The time at which a soft failover for the reservation and its associated datasets was initiated. After this field is set, all subsequent changes to the reservation will be rejected unless a hard failover overrides this operation. This field will be cleared once the failover is complete.

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

Returns
Type Description
Timestamp

The softFailoverStartTime.

getSoftFailoverStartTimeBuilder()

public Timestamp.Builder getSoftFailoverStartTimeBuilder()

Output only. The time at which a soft failover for the reservation and its associated datasets was initiated. After this field is set, all subsequent changes to the reservation will be rejected unless a hard failover overrides this operation. This field will be cleared once the failover is complete.

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

Returns
Type Description
Builder

getSoftFailoverStartTimeOrBuilder()

public TimestampOrBuilder getSoftFailoverStartTimeOrBuilder()

Output only. The time at which a soft failover for the reservation and its associated datasets was initiated. After this field is set, all subsequent changes to the reservation will be rejected unless a hard failover overrides this operation. This field will be cleared once the failover is complete.

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

Returns
Type Description
TimestampOrBuilder

hasError()

public boolean hasError()

Output only. The last error encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since.

.google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the error field is set.

hasLastErrorTime()

public boolean hasLastErrorTime()

Output only. The time at which the last error was encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since.

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

Returns
Type Description
boolean

Whether the lastErrorTime field is set.

hasLastReplicationTime()

public boolean hasLastReplicationTime()

Output only. A timestamp corresponding to the last change on the primary that was successfully replicated to the secondary.

.google.protobuf.Timestamp last_replication_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the lastReplicationTime field is set.

hasSoftFailoverStartTime()

public boolean hasSoftFailoverStartTime()

Output only. The time at which a soft failover for the reservation and its associated datasets was initiated. After this field is set, all subsequent changes to the reservation will be rejected unless a hard failover overrides this operation. This field will be cleared once the failover is complete.

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

Returns
Type Description
boolean

Whether the softFailoverStartTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeError(Status value)

public Reservation.ReplicationStatus.Builder mergeError(Status value)

Output only. The last error encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since.

.google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
Reservation.ReplicationStatus.Builder

mergeFrom(Reservation.ReplicationStatus other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLastErrorTime(Timestamp value)

public Reservation.ReplicationStatus.Builder mergeLastErrorTime(Timestamp value)

Output only. The time at which the last error was encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Reservation.ReplicationStatus.Builder

mergeLastReplicationTime(Timestamp value)

public Reservation.ReplicationStatus.Builder mergeLastReplicationTime(Timestamp value)

Output only. A timestamp corresponding to the last change on the primary that was successfully replicated to the secondary.

.google.protobuf.Timestamp last_replication_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Reservation.ReplicationStatus.Builder

mergeSoftFailoverStartTime(Timestamp value)

public Reservation.ReplicationStatus.Builder mergeSoftFailoverStartTime(Timestamp value)

Output only. The time at which a soft failover for the reservation and its associated datasets was initiated. After this field is set, all subsequent changes to the reservation will be rejected unless a hard failover overrides this operation. This field will be cleared once the failover is complete.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Reservation.ReplicationStatus.Builder

setError(Status value)

public Reservation.ReplicationStatus.Builder setError(Status value)

Output only. The last error encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since.

.google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
Reservation.ReplicationStatus.Builder

setError(Status.Builder builderForValue)

public Reservation.ReplicationStatus.Builder setError(Status.Builder builderForValue)

Output only. The last error encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since.

.google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
Reservation.ReplicationStatus.Builder

setLastErrorTime(Timestamp value)

public Reservation.ReplicationStatus.Builder setLastErrorTime(Timestamp value)

Output only. The time at which the last error was encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Reservation.ReplicationStatus.Builder

setLastErrorTime(Timestamp.Builder builderForValue)

public Reservation.ReplicationStatus.Builder setLastErrorTime(Timestamp.Builder builderForValue)

Output only. The time at which the last error was encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Reservation.ReplicationStatus.Builder

setLastReplicationTime(Timestamp value)

public Reservation.ReplicationStatus.Builder setLastReplicationTime(Timestamp value)

Output only. A timestamp corresponding to the last change on the primary that was successfully replicated to the secondary.

.google.protobuf.Timestamp last_replication_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Reservation.ReplicationStatus.Builder

setLastReplicationTime(Timestamp.Builder builderForValue)

public Reservation.ReplicationStatus.Builder setLastReplicationTime(Timestamp.Builder builderForValue)

Output only. A timestamp corresponding to the last change on the primary that was successfully replicated to the secondary.

.google.protobuf.Timestamp last_replication_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Reservation.ReplicationStatus.Builder

setSoftFailoverStartTime(Timestamp value)

public Reservation.ReplicationStatus.Builder setSoftFailoverStartTime(Timestamp value)

Output only. The time at which a soft failover for the reservation and its associated datasets was initiated. After this field is set, all subsequent changes to the reservation will be rejected unless a hard failover overrides this operation. This field will be cleared once the failover is complete.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Reservation.ReplicationStatus.Builder

setSoftFailoverStartTime(Timestamp.Builder builderForValue)

public Reservation.ReplicationStatus.Builder setSoftFailoverStartTime(Timestamp.Builder builderForValue)

Output only. The time at which a soft failover for the reservation and its associated datasets was initiated. After this field is set, all subsequent changes to the reservation will be rejected unless a hard failover overrides this operation. This field will be cleared once the failover is complete.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Reservation.ReplicationStatus.Builder