Class PromoteClusterStatus.Builder (0.43.0)

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

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

Protobuf type google.cloud.alloydb.v1alpha.PromoteClusterStatus

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public PromoteClusterStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.v1alpha.PromoteClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PromoteClusterStatus.Builder

This builder for chaining.

clone()

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

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.v1alpha.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.v1alpha.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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public PromoteClusterStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
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.v1alpha.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.v1alpha.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.

setUnknownFields(UnknownFieldSet unknownFields)

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