Class PromoteClusterStatus.Builder (0.72.0)

public static final class PromoteClusterStatus.Builder extends GeneratedMessage.Builder<PromoteClusterStatus.Builder> implements PromoteClusterStatusOrBuilder

Message for current status of the database during Promote Cluster operation.

Protobuf type google.cloud.alloydb.v1beta.PromoteClusterStatus

Static Methods

getDescriptor()

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

Methods

build()

public PromoteClusterStatus build()
Returns
Type Description
PromoteClusterStatus

buildPartial()

public PromoteClusterStatus buildPartial()
Returns
Type Description
PromoteClusterStatus

clear()

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

clearState()

public PromoteClusterStatus.Builder clearState()

Output only. The current state of the promoted secondary's database. Once the operation is complete, the final state of the database in the LRO can be one of:

  1. PROMOTE_CLUSTER_AVAILABLE_FOR_READ, indicating that the promote operation has failed mid-way, the database is still only available for read.
  2. PROMOTE_CLUSTER_COMPLETED, indicating that a promote operation completed successfully. The database is available for both read and write requests

.google.cloud.alloydb.v1beta.PromoteClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PromoteClusterStatus.Builder

This builder for chaining.

getDefaultInstanceForType()

public PromoteClusterStatus getDefaultInstanceForType()
Returns
Type Description
PromoteClusterStatus

getDescriptorForType()

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

getState()

public PromoteClusterStatus.State getState()

Output only. The current state of the promoted secondary's database. Once the operation is complete, the final state of the database in the LRO can be one of:

  1. PROMOTE_CLUSTER_AVAILABLE_FOR_READ, indicating that the promote operation has failed mid-way, the database is still only available for read.
  2. PROMOTE_CLUSTER_COMPLETED, indicating that a promote operation completed successfully. The database is available for both read and write requests

.google.cloud.alloydb.v1beta.PromoteClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PromoteClusterStatus.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the promoted secondary's database. Once the operation is complete, the final state of the database in the LRO can be one of:

  1. PROMOTE_CLUSTER_AVAILABLE_FOR_READ, indicating that the promote operation has failed mid-way, the database is still only available for read.
  2. PROMOTE_CLUSTER_COMPLETED, indicating that a promote operation completed successfully. The database is available for both read and write requests

.google.cloud.alloydb.v1beta.PromoteClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PromoteClusterStatus other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setState(PromoteClusterStatus.State value)

public PromoteClusterStatus.Builder setState(PromoteClusterStatus.State value)

Output only. The current state of the promoted secondary's database. Once the operation is complete, the final state of the database in the LRO can be one of:

  1. PROMOTE_CLUSTER_AVAILABLE_FOR_READ, indicating that the promote operation has failed mid-way, the database is still only available for read.
  2. PROMOTE_CLUSTER_COMPLETED, indicating that a promote operation completed successfully. The database is available for both read and write requests

.google.cloud.alloydb.v1beta.PromoteClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value PromoteClusterStatus.State

The state to set.

Returns
Type Description
PromoteClusterStatus.Builder

This builder for chaining.

setStateValue(int value)

public PromoteClusterStatus.Builder setStateValue(int value)

Output only. The current state of the promoted secondary's database. Once the operation is complete, the final state of the database in the LRO can be one of:

  1. PROMOTE_CLUSTER_AVAILABLE_FOR_READ, indicating that the promote operation has failed mid-way, the database is still only available for read.
  2. PROMOTE_CLUSTER_COMPLETED, indicating that a promote operation completed successfully. The database is available for both read and write requests

.google.cloud.alloydb.v1beta.PromoteClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
PromoteClusterStatus.Builder

This builder for chaining.