Class UpgradeClusterResponse.StageInfo.Builder

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

public static final class UpgradeClusterResponse.StageInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpgradeClusterResponse.StageInfo.Builder> implements UpgradeClusterResponse.StageInfoOrBuilder
 Stage information for different stages in the upgrade process.
 
Protobuf type google.cloud.alloydb.v1beta.UpgradeClusterResponse.StageInfo
  • 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.StageInfo.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.StageInfo.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.StageInfo.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

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

      public int getStageValue()
       The stage.
       
      .google.cloud.alloydb.v1beta.UpgradeClusterResponse.Stage stage = 1;
      Specified by:
      getStageValue in interface UpgradeClusterResponse.StageInfoOrBuilder
      Returns:
      The enum numeric value on the wire for stage.
    • setStageValue

      public UpgradeClusterResponse.StageInfo.Builder setStageValue(int value)
       The stage.
       
      .google.cloud.alloydb.v1beta.UpgradeClusterResponse.Stage stage = 1;
      Parameters:
      value - The enum numeric value on the wire for stage to set.
      Returns:
      This builder for chaining.
    • getStage

      public UpgradeClusterResponse.Stage getStage()
       The stage.
       
      .google.cloud.alloydb.v1beta.UpgradeClusterResponse.Stage stage = 1;
      Specified by:
      getStage in interface UpgradeClusterResponse.StageInfoOrBuilder
      Returns:
      The stage.
    • setStage

       The stage.
       
      .google.cloud.alloydb.v1beta.UpgradeClusterResponse.Stage stage = 1;
      Parameters:
      value - The stage to set.
      Returns:
      This builder for chaining.
    • clearStage

       The stage.
       
      .google.cloud.alloydb.v1beta.UpgradeClusterResponse.Stage stage = 1;
      Returns:
      This builder for chaining.
    • getStatusValue

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

      public UpgradeClusterResponse.StageInfo.Builder setStatusValue(int value)
       Status of the stage.
       
      .google.cloud.alloydb.v1beta.UpgradeClusterResponse.Status status = 2;
      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 the stage.
       
      .google.cloud.alloydb.v1beta.UpgradeClusterResponse.Status status = 2;
      Specified by:
      getStatus in interface UpgradeClusterResponse.StageInfoOrBuilder
      Returns:
      The status.
    • setStatus

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

       Status of the stage.
       
      .google.cloud.alloydb.v1beta.UpgradeClusterResponse.Status status = 2;
      Returns:
      This builder for chaining.
    • getLogsUrl

      public String getLogsUrl()
       logs_url is the URL for the logs associated with a stage if that stage
       has logs. Right now, only three stages have logs: ALLOYDB_PRECHECK,
       PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE.
       
      string logs_url = 3;
      Specified by:
      getLogsUrl in interface UpgradeClusterResponse.StageInfoOrBuilder
      Returns:
      The logsUrl.
    • getLogsUrlBytes

      public com.google.protobuf.ByteString getLogsUrlBytes()
       logs_url is the URL for the logs associated with a stage if that stage
       has logs. Right now, only three stages have logs: ALLOYDB_PRECHECK,
       PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE.
       
      string logs_url = 3;
      Specified by:
      getLogsUrlBytes in interface UpgradeClusterResponse.StageInfoOrBuilder
      Returns:
      The bytes for logsUrl.
    • setLogsUrl

       logs_url is the URL for the logs associated with a stage if that stage
       has logs. Right now, only three stages have logs: ALLOYDB_PRECHECK,
       PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE.
       
      string logs_url = 3;
      Parameters:
      value - The logsUrl to set.
      Returns:
      This builder for chaining.
    • clearLogsUrl

       logs_url is the URL for the logs associated with a stage if that stage
       has logs. Right now, only three stages have logs: ALLOYDB_PRECHECK,
       PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE.
       
      string logs_url = 3;
      Returns:
      This builder for chaining.
    • setLogsUrlBytes

      public UpgradeClusterResponse.StageInfo.Builder setLogsUrlBytes(com.google.protobuf.ByteString value)
       logs_url is the URL for the logs associated with a stage if that stage
       has logs. Right now, only three stages have logs: ALLOYDB_PRECHECK,
       PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE.
       
      string logs_url = 3;
      Parameters:
      value - The bytes for logsUrl to set.
      Returns:
      This builder for chaining.