Class PromoteClusterStatus.Builder (0.65.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.v1beta.PromoteClusterStatus
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public PromoteClusterStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public PromoteClusterStatus build()
public PromoteClusterStatus buildPartial()
public PromoteClusterStatus.Builder clear()
Overrides
public PromoteClusterStatus.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public PromoteClusterStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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:
- PROMOTE_CLUSTER_AVAILABLE_FOR_READ, indicating that the promote
operation has failed mid-way, the database is still only available for
read.
- 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];
public PromoteClusterStatus.Builder clone()
Overrides
public PromoteClusterStatus getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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:
- PROMOTE_CLUSTER_AVAILABLE_FOR_READ, indicating that the promote
operation has failed mid-way, the database is still only available for
read.
- 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];
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:
- PROMOTE_CLUSTER_AVAILABLE_FOR_READ, indicating that the promote
operation has failed mid-way, the database is still only available for
read.
- 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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public PromoteClusterStatus.Builder mergeFrom(PromoteClusterStatus other)
public PromoteClusterStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public PromoteClusterStatus.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final PromoteClusterStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public PromoteClusterStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public PromoteClusterStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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:
- PROMOTE_CLUSTER_AVAILABLE_FOR_READ, indicating that the promote
operation has failed mid-way, the database is still only available for
read.
- 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];
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:
- PROMOTE_CLUSTER_AVAILABLE_FOR_READ, indicating that the promote
operation has failed mid-way, the database is still only available for
read.
- 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.
|
public final PromoteClusterStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-10 UTC."],[],[]]