Class UpgradeClusterResponse.Builder

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

public static final class UpgradeClusterResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpgradeClusterResponse.Builder> implements UpgradeClusterResponseOrBuilder
 UpgradeClusterResponse contains the response for upgrade cluster operation.
 
Protobuf type google.cloud.alloydb.v1beta.UpgradeClusterResponse
  • 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<UpgradeClusterResponse.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<UpgradeClusterResponse.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<UpgradeClusterResponse.Builder>
    • getDefaultInstanceForType

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

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

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

      public UpgradeClusterResponse.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<UpgradeClusterResponse.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<UpgradeClusterResponse.Builder>
    • mergeFrom

      public UpgradeClusterResponse.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<UpgradeClusterResponse.Builder>
      Throws:
      IOException
    • getStatusValue

      public int getStatusValue()
       Status of upgrade operation.
       
      .google.cloud.alloydb.v1beta.UpgradeClusterResponse.Status status = 1;
      Specified by:
      getStatusValue in interface UpgradeClusterResponseOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public UpgradeClusterResponse.Builder setStatusValue(int value)
       Status of upgrade operation.
       
      .google.cloud.alloydb.v1beta.UpgradeClusterResponse.Status status = 1;
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

      public UpgradeClusterResponse.Status getStatus()
       Status of upgrade operation.
       
      .google.cloud.alloydb.v1beta.UpgradeClusterResponse.Status status = 1;
      Specified by:
      getStatus in interface UpgradeClusterResponseOrBuilder
      Returns:
      The status.
    • setStatus

       Status of upgrade operation.
       
      .google.cloud.alloydb.v1beta.UpgradeClusterResponse.Status status = 1;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public UpgradeClusterResponse.Builder clearStatus()
       Status of upgrade operation.
       
      .google.cloud.alloydb.v1beta.UpgradeClusterResponse.Status status = 1;
      Returns:
      This builder for chaining.
    • getMessage

      public String getMessage()
       A user friendly message summarising the upgrade operation details and the
       next steps for the user if there is any.
       
      string message = 2;
      Specified by:
      getMessage in interface UpgradeClusterResponseOrBuilder
      Returns:
      The message.
    • getMessageBytes

      public com.google.protobuf.ByteString getMessageBytes()
       A user friendly message summarising the upgrade operation details and the
       next steps for the user if there is any.
       
      string message = 2;
      Specified by:
      getMessageBytes in interface UpgradeClusterResponseOrBuilder
      Returns:
      The bytes for message.
    • setMessage

      public UpgradeClusterResponse.Builder setMessage(String value)
       A user friendly message summarising the upgrade operation details and the
       next steps for the user if there is any.
       
      string message = 2;
      Parameters:
      value - The message to set.
      Returns:
      This builder for chaining.
    • clearMessage

      public UpgradeClusterResponse.Builder clearMessage()
       A user friendly message summarising the upgrade operation details and the
       next steps for the user if there is any.
       
      string message = 2;
      Returns:
      This builder for chaining.
    • setMessageBytes

      public UpgradeClusterResponse.Builder setMessageBytes(com.google.protobuf.ByteString value)
       A user friendly message summarising the upgrade operation details and the
       next steps for the user if there is any.
       
      string message = 2;
      Parameters:
      value - The bytes for message to set.
      Returns:
      This builder for chaining.
    • getClusterUpgradeDetailsList

      public List<UpgradeClusterResponse.ClusterUpgradeDetails> getClusterUpgradeDetailsList()
       Array of upgrade details for the current cluster and all the secondary
       clusters associated with this cluster.
       
      repeated .google.cloud.alloydb.v1beta.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3;
      Specified by:
      getClusterUpgradeDetailsList in interface UpgradeClusterResponseOrBuilder
    • getClusterUpgradeDetailsCount

      public int getClusterUpgradeDetailsCount()
       Array of upgrade details for the current cluster and all the secondary
       clusters associated with this cluster.
       
      repeated .google.cloud.alloydb.v1beta.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3;
      Specified by:
      getClusterUpgradeDetailsCount in interface UpgradeClusterResponseOrBuilder
    • getClusterUpgradeDetails

      public UpgradeClusterResponse.ClusterUpgradeDetails getClusterUpgradeDetails(int index)
       Array of upgrade details for the current cluster and all the secondary
       clusters associated with this cluster.
       
      repeated .google.cloud.alloydb.v1beta.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3;
      Specified by:
      getClusterUpgradeDetails in interface UpgradeClusterResponseOrBuilder
    • setClusterUpgradeDetails

      public UpgradeClusterResponse.Builder setClusterUpgradeDetails(int index, UpgradeClusterResponse.ClusterUpgradeDetails value)
       Array of upgrade details for the current cluster and all the secondary
       clusters associated with this cluster.
       
      repeated .google.cloud.alloydb.v1beta.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3;
    • setClusterUpgradeDetails

      public UpgradeClusterResponse.Builder setClusterUpgradeDetails(int index, UpgradeClusterResponse.ClusterUpgradeDetails.Builder builderForValue)
       Array of upgrade details for the current cluster and all the secondary
       clusters associated with this cluster.
       
      repeated .google.cloud.alloydb.v1beta.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3;
    • addClusterUpgradeDetails

       Array of upgrade details for the current cluster and all the secondary
       clusters associated with this cluster.
       
      repeated .google.cloud.alloydb.v1beta.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3;
    • addClusterUpgradeDetails

      public UpgradeClusterResponse.Builder addClusterUpgradeDetails(int index, UpgradeClusterResponse.ClusterUpgradeDetails value)
       Array of upgrade details for the current cluster and all the secondary
       clusters associated with this cluster.
       
      repeated .google.cloud.alloydb.v1beta.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3;
    • addClusterUpgradeDetails

       Array of upgrade details for the current cluster and all the secondary
       clusters associated with this cluster.
       
      repeated .google.cloud.alloydb.v1beta.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3;
    • addClusterUpgradeDetails

      public UpgradeClusterResponse.Builder addClusterUpgradeDetails(int index, UpgradeClusterResponse.ClusterUpgradeDetails.Builder builderForValue)
       Array of upgrade details for the current cluster and all the secondary
       clusters associated with this cluster.
       
      repeated .google.cloud.alloydb.v1beta.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3;
    • addAllClusterUpgradeDetails

      public UpgradeClusterResponse.Builder addAllClusterUpgradeDetails(Iterable<? extends UpgradeClusterResponse.ClusterUpgradeDetails> values)
       Array of upgrade details for the current cluster and all the secondary
       clusters associated with this cluster.
       
      repeated .google.cloud.alloydb.v1beta.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3;
    • clearClusterUpgradeDetails

      public UpgradeClusterResponse.Builder clearClusterUpgradeDetails()
       Array of upgrade details for the current cluster and all the secondary
       clusters associated with this cluster.
       
      repeated .google.cloud.alloydb.v1beta.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3;
    • removeClusterUpgradeDetails

      public UpgradeClusterResponse.Builder removeClusterUpgradeDetails(int index)
       Array of upgrade details for the current cluster and all the secondary
       clusters associated with this cluster.
       
      repeated .google.cloud.alloydb.v1beta.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3;
    • getClusterUpgradeDetailsBuilder

      public UpgradeClusterResponse.ClusterUpgradeDetails.Builder getClusterUpgradeDetailsBuilder(int index)
       Array of upgrade details for the current cluster and all the secondary
       clusters associated with this cluster.
       
      repeated .google.cloud.alloydb.v1beta.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3;
    • getClusterUpgradeDetailsOrBuilder

      public UpgradeClusterResponse.ClusterUpgradeDetailsOrBuilder getClusterUpgradeDetailsOrBuilder(int index)
       Array of upgrade details for the current cluster and all the secondary
       clusters associated with this cluster.
       
      repeated .google.cloud.alloydb.v1beta.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3;
      Specified by:
      getClusterUpgradeDetailsOrBuilder in interface UpgradeClusterResponseOrBuilder
    • getClusterUpgradeDetailsOrBuilderList

      public List<? extends UpgradeClusterResponse.ClusterUpgradeDetailsOrBuilder> getClusterUpgradeDetailsOrBuilderList()
       Array of upgrade details for the current cluster and all the secondary
       clusters associated with this cluster.
       
      repeated .google.cloud.alloydb.v1beta.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3;
      Specified by:
      getClusterUpgradeDetailsOrBuilderList in interface UpgradeClusterResponseOrBuilder
    • addClusterUpgradeDetailsBuilder

      public UpgradeClusterResponse.ClusterUpgradeDetails.Builder addClusterUpgradeDetailsBuilder()
       Array of upgrade details for the current cluster and all the secondary
       clusters associated with this cluster.
       
      repeated .google.cloud.alloydb.v1beta.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3;
    • addClusterUpgradeDetailsBuilder

      public UpgradeClusterResponse.ClusterUpgradeDetails.Builder addClusterUpgradeDetailsBuilder(int index)
       Array of upgrade details for the current cluster and all the secondary
       clusters associated with this cluster.
       
      repeated .google.cloud.alloydb.v1beta.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3;
    • getClusterUpgradeDetailsBuilderList

      public List<UpgradeClusterResponse.ClusterUpgradeDetails.Builder> getClusterUpgradeDetailsBuilderList()
       Array of upgrade details for the current cluster and all the secondary
       clusters associated with this cluster.
       
      repeated .google.cloud.alloydb.v1beta.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3;