Class MaintenanceInfo.Builder

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

public static final class MaintenanceInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<MaintenanceInfo.Builder> implements MaintenanceInfoOrBuilder
 MaintenanceInfo to capture the maintenance details of database resource.
 
Protobuf type google.cloud.databasecenter.v1beta.MaintenanceInfo
  • 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<MaintenanceInfo.Builder>
    • clear

      public MaintenanceInfo.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<MaintenanceInfo.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<MaintenanceInfo.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public MaintenanceInfo.Builder mergeFrom(MaintenanceInfo other)
    • isInitialized

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

      public MaintenanceInfo.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<MaintenanceInfo.Builder>
      Throws:
      IOException
    • 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.
    • setMaintenanceSchedule

      public MaintenanceInfo.Builder setMaintenanceSchedule(ResourceMaintenanceSchedule value)
       Optional. Maintenance window for the database resource.
       
      .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setMaintenanceSchedule

      public MaintenanceInfo.Builder setMaintenanceSchedule(ResourceMaintenanceSchedule.Builder builderForValue)
       Optional. Maintenance window for the database resource.
       
      .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL];
    • mergeMaintenanceSchedule

      public MaintenanceInfo.Builder mergeMaintenanceSchedule(ResourceMaintenanceSchedule value)
       Optional. Maintenance window for the database resource.
       
      .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearMaintenanceSchedule

      public MaintenanceInfo.Builder clearMaintenanceSchedule()
       Optional. Maintenance window for the database resource.
       
      .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getMaintenanceScheduleBuilder

      public ResourceMaintenanceSchedule.Builder getMaintenanceScheduleBuilder()
       Optional. Maintenance window for the database resource.
       
      .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL];
    • 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
    • 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
    • setDenyMaintenanceSchedules

      public MaintenanceInfo.Builder setDenyMaintenanceSchedules(int index, ResourceMaintenanceDenySchedule value)
       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];
    • setDenyMaintenanceSchedules

      public MaintenanceInfo.Builder setDenyMaintenanceSchedules(int index, ResourceMaintenanceDenySchedule.Builder builderForValue)
       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];
    • addDenyMaintenanceSchedules

      public MaintenanceInfo.Builder addDenyMaintenanceSchedules(ResourceMaintenanceDenySchedule value)
       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];
    • addDenyMaintenanceSchedules

      public MaintenanceInfo.Builder addDenyMaintenanceSchedules(int index, ResourceMaintenanceDenySchedule value)
       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];
    • addDenyMaintenanceSchedules

      public MaintenanceInfo.Builder addDenyMaintenanceSchedules(ResourceMaintenanceDenySchedule.Builder builderForValue)
       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];
    • addDenyMaintenanceSchedules

      public MaintenanceInfo.Builder addDenyMaintenanceSchedules(int index, ResourceMaintenanceDenySchedule.Builder builderForValue)
       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];
    • addAllDenyMaintenanceSchedules

      public MaintenanceInfo.Builder addAllDenyMaintenanceSchedules(Iterable<? extends ResourceMaintenanceDenySchedule> values)
       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];
    • clearDenyMaintenanceSchedules

      public MaintenanceInfo.Builder clearDenyMaintenanceSchedules()
       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];
    • removeDenyMaintenanceSchedules

      public MaintenanceInfo.Builder removeDenyMaintenanceSchedules(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];
    • getDenyMaintenanceSchedulesBuilder

      public ResourceMaintenanceDenySchedule.Builder getDenyMaintenanceSchedulesBuilder(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];
    • 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
    • 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
    • addDenyMaintenanceSchedulesBuilder

      public ResourceMaintenanceDenySchedule.Builder addDenyMaintenanceSchedulesBuilder()
       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];
    • addDenyMaintenanceSchedulesBuilder

      public ResourceMaintenanceDenySchedule.Builder addDenyMaintenanceSchedulesBuilder(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];
    • getDenyMaintenanceSchedulesBuilderList

      public List<ResourceMaintenanceDenySchedule.Builder> getDenyMaintenanceSchedulesBuilderList()
       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];
    • 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.
    • setMaintenanceVersion

      public MaintenanceInfo.Builder setMaintenanceVersion(String value)
       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];
      Parameters:
      value - The maintenanceVersion to set.
      Returns:
      This builder for chaining.
    • clearMaintenanceVersion

      public MaintenanceInfo.Builder clearMaintenanceVersion()
       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];
      Returns:
      This builder for chaining.
    • setMaintenanceVersionBytes

      public MaintenanceInfo.Builder setMaintenanceVersionBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for maintenanceVersion to set.
      Returns:
      This builder for chaining.
    • 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.
    • setCurrentVersionReleaseDate

      public MaintenanceInfo.Builder setCurrentVersionReleaseDate(Date value)
       Output only. The date when the maintenance version was released.
       
      .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCurrentVersionReleaseDate

      public MaintenanceInfo.Builder setCurrentVersionReleaseDate(Date.Builder builderForValue)
       Output only. The date when the maintenance version was released.
       
      .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCurrentVersionReleaseDate

      public MaintenanceInfo.Builder mergeCurrentVersionReleaseDate(Date value)
       Output only. The date when the maintenance version was released.
       
      .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCurrentVersionReleaseDate

      public MaintenanceInfo.Builder clearCurrentVersionReleaseDate()
       Output only. The date when the maintenance version was released.
       
      .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCurrentVersionReleaseDateBuilder

      public Date.Builder getCurrentVersionReleaseDateBuilder()
       Output only. The date when the maintenance version was released.
       
      .google.type.Date current_version_release_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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.
    • setUpcomingMaintenance

      public MaintenanceInfo.Builder setUpcomingMaintenance(UpcomingMaintenance value)
       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];
    • setUpcomingMaintenance

      public MaintenanceInfo.Builder setUpcomingMaintenance(UpcomingMaintenance.Builder builderForValue)
       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];
    • mergeUpcomingMaintenance

      public MaintenanceInfo.Builder mergeUpcomingMaintenance(UpcomingMaintenance value)
       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];
    • clearUpcomingMaintenance

      public MaintenanceInfo.Builder clearUpcomingMaintenance()
       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];
    • getUpcomingMaintenanceBuilder

      public UpcomingMaintenance.Builder getUpcomingMaintenanceBuilder()
       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];
    • 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.
    • setStateValue

      public MaintenanceInfo.Builder setStateValue(int value)
       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];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • 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.
    • setState

      public MaintenanceInfo.Builder setState(MaintenanceState value)
       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];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public MaintenanceInfo.Builder clearState()
       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];
      Returns:
      This builder for chaining.
    • 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.
    • setPossibleFailureReasons

      public MaintenanceInfo.Builder setPossibleFailureReasons(int index, PossibleFailureReason value)
       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];
      Parameters:
      index - The index to set the value at.
      value - The possibleFailureReasons to set.
      Returns:
      This builder for chaining.
    • addPossibleFailureReasons

      public MaintenanceInfo.Builder addPossibleFailureReasons(PossibleFailureReason value)
       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];
      Parameters:
      value - The possibleFailureReasons to add.
      Returns:
      This builder for chaining.
    • addAllPossibleFailureReasons

      public MaintenanceInfo.Builder addAllPossibleFailureReasons(Iterable<? extends PossibleFailureReason> values)
       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];
      Parameters:
      values - The possibleFailureReasons to add.
      Returns:
      This builder for chaining.
    • clearPossibleFailureReasons

      public MaintenanceInfo.Builder clearPossibleFailureReasons()
       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];
      Returns:
      This builder for chaining.
    • 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.
    • setPossibleFailureReasonsValue

      public MaintenanceInfo.Builder setPossibleFailureReasonsValue(int index, int value)
       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];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for possibleFailureReasons to set.
      Returns:
      This builder for chaining.
    • addPossibleFailureReasonsValue

      public MaintenanceInfo.Builder addPossibleFailureReasonsValue(int value)
       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];
      Parameters:
      value - The enum numeric value on the wire for possibleFailureReasons to add.
      Returns:
      This builder for chaining.
    • addAllPossibleFailureReasonsValue

      public MaintenanceInfo.Builder addAllPossibleFailureReasonsValue(Iterable<Integer> values)
       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];
      Parameters:
      values - The enum numeric values on the wire for possibleFailureReasons to add.
      Returns:
      This builder for chaining.
    • 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.
    • setPreviousMaintenanceVersion

      public MaintenanceInfo.Builder setPreviousMaintenanceVersion(String value)
       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];
      Parameters:
      value - The previousMaintenanceVersion to set.
      Returns:
      This builder for chaining.
    • clearPreviousMaintenanceVersion

      public MaintenanceInfo.Builder clearPreviousMaintenanceVersion()
       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];
      Returns:
      This builder for chaining.
    • setPreviousMaintenanceVersionBytes

      public MaintenanceInfo.Builder setPreviousMaintenanceVersionBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for previousMaintenanceVersion to set.
      Returns:
      This builder for chaining.