Class MaintenanceInfo

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.databasecenter.v1beta.MaintenanceInfo
All Implemented Interfaces:
MaintenanceInfoOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class MaintenanceInfo extends com.google.protobuf.GeneratedMessage implements MaintenanceInfoOrBuilder
 MaintenanceInfo to capture the maintenance details of database resource.
 
Protobuf type google.cloud.databasecenter.v1beta.MaintenanceInfo
See Also:
  • Field Details

    • MAINTENANCE_SCHEDULE_FIELD_NUMBER

      public static final int MAINTENANCE_SCHEDULE_FIELD_NUMBER
      See Also:
    • DENY_MAINTENANCE_SCHEDULES_FIELD_NUMBER

      public static final int DENY_MAINTENANCE_SCHEDULES_FIELD_NUMBER
      See Also:
    • MAINTENANCE_VERSION_FIELD_NUMBER

      public static final int MAINTENANCE_VERSION_FIELD_NUMBER
      See Also:
    • CURRENT_VERSION_RELEASE_DATE_FIELD_NUMBER

      public static final int CURRENT_VERSION_RELEASE_DATE_FIELD_NUMBER
      See Also:
    • UPCOMING_MAINTENANCE_FIELD_NUMBER

      public static final int UPCOMING_MAINTENANCE_FIELD_NUMBER
      See Also:
    • STATE_FIELD_NUMBER

      public static final int STATE_FIELD_NUMBER
      See Also:
    • POSSIBLE_FAILURE_REASONS_FIELD_NUMBER

      public static final int POSSIBLE_FAILURE_REASONS_FIELD_NUMBER
      See Also:
    • PREVIOUS_MAINTENANCE_VERSION_FIELD_NUMBER

      public static final int PREVIOUS_MAINTENANCE_VERSION_FIELD_NUMBER
      See Also:
  • 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
    • hasMaintenanceSchedule

      public boolean hasMaintenanceSchedule()
       Optional. Maintenance window for the database resource.
       
      .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMaintenanceSchedule in interface MaintenanceInfoOrBuilder
      Returns:
      Whether the maintenanceSchedule field is set.
    • getMaintenanceSchedule

      public ResourceMaintenanceSchedule getMaintenanceSchedule()
       Optional. Maintenance window for the database resource.
       
      .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMaintenanceSchedule in interface MaintenanceInfoOrBuilder
      Returns:
      The maintenanceSchedule.
    • getMaintenanceScheduleOrBuilder

      public ResourceMaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder()
       Optional. Maintenance window for the database resource.
       
      .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMaintenanceScheduleOrBuilder in interface MaintenanceInfoOrBuilder
    • getDenyMaintenanceSchedulesList

      public List<ResourceMaintenanceDenySchedule> getDenyMaintenanceSchedulesList()
       Optional. List of Deny maintenance period for the database resource.
       
      repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDenyMaintenanceSchedulesList in interface MaintenanceInfoOrBuilder
    • getDenyMaintenanceSchedulesOrBuilderList

      public List<? extends ResourceMaintenanceDenyScheduleOrBuilder> getDenyMaintenanceSchedulesOrBuilderList()
       Optional. List of Deny maintenance period for the database resource.
       
      repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDenyMaintenanceSchedulesOrBuilderList in interface MaintenanceInfoOrBuilder
    • getDenyMaintenanceSchedulesCount

      public int getDenyMaintenanceSchedulesCount()
       Optional. List of Deny maintenance period for the database resource.
       
      repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDenyMaintenanceSchedulesCount in interface MaintenanceInfoOrBuilder
    • getDenyMaintenanceSchedules

      public ResourceMaintenanceDenySchedule getDenyMaintenanceSchedules(int index)
       Optional. List of Deny maintenance period for the database resource.
       
      repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDenyMaintenanceSchedules in interface MaintenanceInfoOrBuilder
    • getDenyMaintenanceSchedulesOrBuilder

      public ResourceMaintenanceDenyScheduleOrBuilder getDenyMaintenanceSchedulesOrBuilder(int index)
       Optional. List of Deny maintenance period for the database resource.
       
      repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDenyMaintenanceSchedulesOrBuilder in interface MaintenanceInfoOrBuilder
    • getMaintenanceVersion

      public String getMaintenanceVersion()
       Output only. Current Maintenance version of the database resource. Example:
       "MYSQL_8_0_41.R20250531.01_15"
       
      string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMaintenanceVersion in interface MaintenanceInfoOrBuilder
      Returns:
      The maintenanceVersion.
    • getMaintenanceVersionBytes

      public com.google.protobuf.ByteString getMaintenanceVersionBytes()
       Output only. Current Maintenance version of the database resource. Example:
       "MYSQL_8_0_41.R20250531.01_15"
       
      string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMaintenanceVersionBytes in interface MaintenanceInfoOrBuilder
      Returns:
      The bytes for maintenanceVersion.
    • hasCurrentVersionReleaseDate

      public boolean hasCurrentVersionReleaseDate()
       Output only. The date when the maintenance version was released.
       
      .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCurrentVersionReleaseDate in interface MaintenanceInfoOrBuilder
      Returns:
      Whether the currentVersionReleaseDate field is set.
    • getCurrentVersionReleaseDate

      public Date getCurrentVersionReleaseDate()
       Output only. The date when the maintenance version was released.
       
      .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCurrentVersionReleaseDate in interface MaintenanceInfoOrBuilder
      Returns:
      The currentVersionReleaseDate.
    • getCurrentVersionReleaseDateOrBuilder

      public DateOrBuilder getCurrentVersionReleaseDateOrBuilder()
       Output only. The date when the maintenance version was released.
       
      .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCurrentVersionReleaseDateOrBuilder in interface MaintenanceInfoOrBuilder
    • hasUpcomingMaintenance

      public boolean hasUpcomingMaintenance()
       Output only. Upcoming maintenance window for the database resource. This is
       only populated for an engine, if upcoming maintenance is scheduled for the
       resource. This schedule is generated per engine and engine version, and
       there is only one upcoming maintenance window at any given time. In case of
       upcoming maintenance, the maintenance_state will be set to SCHEDULED first,
       and then IN_PROGRESS when the maintenance window starts.
       
      .google.cloud.databasecenter.v1beta.UpcomingMaintenance upcoming_maintenance = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpcomingMaintenance in interface MaintenanceInfoOrBuilder
      Returns:
      Whether the upcomingMaintenance field is set.
    • getUpcomingMaintenance

      public UpcomingMaintenance getUpcomingMaintenance()
       Output only. Upcoming maintenance window for the database resource. This is
       only populated for an engine, if upcoming maintenance is scheduled for the
       resource. This schedule is generated per engine and engine version, and
       there is only one upcoming maintenance window at any given time. In case of
       upcoming maintenance, the maintenance_state will be set to SCHEDULED first,
       and then IN_PROGRESS when the maintenance window starts.
       
      .google.cloud.databasecenter.v1beta.UpcomingMaintenance upcoming_maintenance = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpcomingMaintenance in interface MaintenanceInfoOrBuilder
      Returns:
      The upcomingMaintenance.
    • getUpcomingMaintenanceOrBuilder

      public UpcomingMaintenanceOrBuilder getUpcomingMaintenanceOrBuilder()
       Output only. Upcoming maintenance window for the database resource. This is
       only populated for an engine, if upcoming maintenance is scheduled for the
       resource. This schedule is generated per engine and engine version, and
       there is only one upcoming maintenance window at any given time. In case of
       upcoming maintenance, the maintenance_state will be set to SCHEDULED first,
       and then IN_PROGRESS when the maintenance window starts.
       
      .google.cloud.databasecenter.v1beta.UpcomingMaintenance upcoming_maintenance = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpcomingMaintenanceOrBuilder in interface MaintenanceInfoOrBuilder
    • getStateValue

      public int getStateValue()
       Output only. Resource maintenance state. This is to capture the current
       state of the maintenance.
       
      .google.cloud.databasecenter.v1beta.MaintenanceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface MaintenanceInfoOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • getState

      public MaintenanceState getState()
       Output only. Resource maintenance state. This is to capture the current
       state of the maintenance.
       
      .google.cloud.databasecenter.v1beta.MaintenanceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface MaintenanceInfoOrBuilder
      Returns:
      The state.
    • getPossibleFailureReasonsList

      public List<PossibleFailureReason> getPossibleFailureReasonsList()
       Output only. List of possible reasons why the maintenance is not completed.
       This is an optional field and is only populated if there are any
       reasons for failures recorded for the maintenance by DB Center.
       FAILURE maintenance status may not always have a failure reason.
       
      repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPossibleFailureReasonsList in interface MaintenanceInfoOrBuilder
      Returns:
      A list containing the possibleFailureReasons.
    • getPossibleFailureReasonsCount

      public int getPossibleFailureReasonsCount()
       Output only. List of possible reasons why the maintenance is not completed.
       This is an optional field and is only populated if there are any
       reasons for failures recorded for the maintenance by DB Center.
       FAILURE maintenance status may not always have a failure reason.
       
      repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPossibleFailureReasonsCount in interface MaintenanceInfoOrBuilder
      Returns:
      The count of possibleFailureReasons.
    • getPossibleFailureReasons

      public PossibleFailureReason getPossibleFailureReasons(int index)
       Output only. List of possible reasons why the maintenance is not completed.
       This is an optional field and is only populated if there are any
       reasons for failures recorded for the maintenance by DB Center.
       FAILURE maintenance status may not always have a failure reason.
       
      repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPossibleFailureReasons in interface MaintenanceInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The possibleFailureReasons at the given index.
    • getPossibleFailureReasonsValueList

      public List<Integer> getPossibleFailureReasonsValueList()
       Output only. List of possible reasons why the maintenance is not completed.
       This is an optional field and is only populated if there are any
       reasons for failures recorded for the maintenance by DB Center.
       FAILURE maintenance status may not always have a failure reason.
       
      repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPossibleFailureReasonsValueList in interface MaintenanceInfoOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for possibleFailureReasons.
    • getPossibleFailureReasonsValue

      public int getPossibleFailureReasonsValue(int index)
       Output only. List of possible reasons why the maintenance is not completed.
       This is an optional field and is only populated if there are any
       reasons for failures recorded for the maintenance by DB Center.
       FAILURE maintenance status may not always have a failure reason.
       
      repeated .google.cloud.databasecenter.v1beta.PossibleFailureReason possible_failure_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPossibleFailureReasonsValue in interface MaintenanceInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of possibleFailureReasons at the given index.
    • getPreviousMaintenanceVersion

      public String getPreviousMaintenanceVersion()
       Output only. Previous maintenance version of the database resource.
       Example: "MYSQL_8_0_41.R20250531.01_15". This is available once a minor
       version maintenance is complete on a database resource.
       
      string previous_maintenance_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPreviousMaintenanceVersion in interface MaintenanceInfoOrBuilder
      Returns:
      The previousMaintenanceVersion.
    • getPreviousMaintenanceVersionBytes

      public com.google.protobuf.ByteString getPreviousMaintenanceVersionBytes()
       Output only. Previous maintenance version of the database resource.
       Example: "MYSQL_8_0_41.R20250531.01_15". This is available once a minor
       version maintenance is complete on a database resource.
       
      string previous_maintenance_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPreviousMaintenanceVersionBytes in interface MaintenanceInfoOrBuilder
      Returns:
      The bytes for previousMaintenanceVersion.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static MaintenanceInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MaintenanceInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MaintenanceInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MaintenanceInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MaintenanceInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MaintenanceInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MaintenanceInfo parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MaintenanceInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MaintenanceInfo parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MaintenanceInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MaintenanceInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MaintenanceInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public MaintenanceInfo.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static MaintenanceInfo.Builder newBuilder()
    • newBuilder

      public static MaintenanceInfo.Builder newBuilder(MaintenanceInfo prototype)
    • toBuilder

      public MaintenanceInfo.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected MaintenanceInfo.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static MaintenanceInfo getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<MaintenanceInfo> parser()
    • getParserForType

      public com.google.protobuf.Parser<MaintenanceInfo> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public MaintenanceInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder