Class PromoteClusterStatus.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PromoteClusterStatus.Builder>
com.google.cloud.alloydb.v1beta.PromoteClusterStatus.Builder
All Implemented Interfaces:
PromoteClusterStatusOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PromoteClusterStatus

public static final class PromoteClusterStatus.Builder extends com.google.protobuf.GeneratedMessage.Builder<PromoteClusterStatus.Builder> implements PromoteClusterStatusOrBuilder
 Message for current status of the database during Promote Cluster operation.
 
Protobuf type google.cloud.alloydb.v1beta.PromoteClusterStatus
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PromoteClusterStatus.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PromoteClusterStatus.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PromoteClusterStatus.Builder>
    • getDefaultInstanceForType

      public PromoteClusterStatus getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public PromoteClusterStatus build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PromoteClusterStatus buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PromoteClusterStatus.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PromoteClusterStatus.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PromoteClusterStatus.Builder>
    • mergeFrom

      public PromoteClusterStatus.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PromoteClusterStatus.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getStateValue in interface PromoteClusterStatusOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      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];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getState in interface PromoteClusterStatusOrBuilder
      Returns:
      The state.
    • setState

       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];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.