Class MaintenanceInfo (0.12.0)

public final class MaintenanceInfo extends GeneratedMessage implements MaintenanceInfoOrBuilder

MaintenanceInfo to capture the maintenance details of database resource.

Protobuf type google.cloud.databasecenter.v1beta.MaintenanceInfo

Static Fields

CURRENT_VERSION_RELEASE_DATE_FIELD_NUMBER

public static final int CURRENT_VERSION_RELEASE_DATE_FIELD_NUMBER
Field Value
Type Description
int

DENY_MAINTENANCE_SCHEDULES_FIELD_NUMBER

public static final int DENY_MAINTENANCE_SCHEDULES_FIELD_NUMBER
Field Value
Type Description
int

MAINTENANCE_SCHEDULE_FIELD_NUMBER

public static final int MAINTENANCE_SCHEDULE_FIELD_NUMBER
Field Value
Type Description
int

MAINTENANCE_VERSION_FIELD_NUMBER

public static final int MAINTENANCE_VERSION_FIELD_NUMBER
Field Value
Type Description
int

POSSIBLE_FAILURE_REASONS_FIELD_NUMBER

public static final int POSSIBLE_FAILURE_REASONS_FIELD_NUMBER
Field Value
Type Description
int

PREVIOUS_MAINTENANCE_VERSION_FIELD_NUMBER

public static final int PREVIOUS_MAINTENANCE_VERSION_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

UPCOMING_MAINTENANCE_FIELD_NUMBER

public static final int UPCOMING_MAINTENANCE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MaintenanceInfo getDefaultInstance()
Returns
Type Description
MaintenanceInfo

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static MaintenanceInfo.Builder newBuilder()
Returns
Type Description
MaintenanceInfo.Builder

newBuilder(MaintenanceInfo prototype)

public static MaintenanceInfo.Builder newBuilder(MaintenanceInfo prototype)
Parameter
Name Description
prototype MaintenanceInfo
Returns
Type Description
MaintenanceInfo.Builder

parseDelimitedFrom(InputStream input)

public static MaintenanceInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MaintenanceInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MaintenanceInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MaintenanceInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static MaintenanceInfo parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
MaintenanceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MaintenanceInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MaintenanceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MaintenanceInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
MaintenanceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MaintenanceInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MaintenanceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MaintenanceInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
MaintenanceInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MaintenanceInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MaintenanceInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static MaintenanceInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MaintenanceInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MaintenanceInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MaintenanceInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static MaintenanceInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
MaintenanceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MaintenanceInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MaintenanceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<MaintenanceInfo> parser()
Returns
Type Description
Parser<MaintenanceInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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];

Returns
Type Description
com.google.type.Date

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];

Returns
Type Description
com.google.type.DateOrBuilder

getDefaultInstanceForType()

public MaintenanceInfo getDefaultInstanceForType()
Returns
Type Description
MaintenanceInfo

getDenyMaintenanceSchedules(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
ResourceMaintenanceDenySchedule

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];

Returns
Type Description
int

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];

Returns
Type Description
List<ResourceMaintenanceDenySchedule>

getDenyMaintenanceSchedulesOrBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
ResourceMaintenanceDenyScheduleOrBuilder

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];

Returns
Type Description
List<? extends com.google.cloud.databasecenter.v1beta.ResourceMaintenanceDenyScheduleOrBuilder>

getMaintenanceSchedule()

public ResourceMaintenanceSchedule getMaintenanceSchedule()

Optional. Maintenance window for the database resource.

.google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ResourceMaintenanceSchedule

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];

Returns
Type Description
ResourceMaintenanceScheduleOrBuilder

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];

Returns
Type Description
String

The maintenanceVersion.

getMaintenanceVersionBytes()

public 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];

Returns
Type Description
ByteString

The bytes for maintenanceVersion.

getParserForType()

public Parser<MaintenanceInfo> getParserForType()
Returns
Type Description
Parser<MaintenanceInfo>
Overrides

getPossibleFailureReasons(int index)

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];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
PossibleFailureReason

The possibleFailureReasons at the given index.

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];

Returns
Type Description
int

The count of possibleFailureReasons.

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];

Returns
Type Description
List<PossibleFailureReason>

A list containing the possibleFailureReasons.

getPossibleFailureReasonsValue(int index)

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];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of 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];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for possibleFailureReasons.

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];

Returns
Type Description
String

The previousMaintenanceVersion.

getPreviousMaintenanceVersionBytes()

public 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];

Returns
Type Description
ByteString

The bytes for previousMaintenanceVersion.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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];

Returns
Type Description
MaintenanceState

The state.

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];

Returns
Type Description
int

The enum numeric value on the wire for state.

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];

Returns
Type Description
UpcomingMaintenance

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];

Returns
Type Description
UpcomingMaintenanceOrBuilder

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];

Returns
Type Description
boolean

Whether the currentVersionReleaseDate field is set.

hasMaintenanceSchedule()

public boolean hasMaintenanceSchedule()

Optional. Maintenance window for the database resource.

.google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the maintenanceSchedule field is set.

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];

Returns
Type Description
boolean

Whether the upcomingMaintenance field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public MaintenanceInfo.Builder newBuilderForType()
Returns
Type Description
MaintenanceInfo.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected MaintenanceInfo.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
MaintenanceInfo.Builder
Overrides

toBuilder()

public MaintenanceInfo.Builder toBuilder()
Returns
Type Description
MaintenanceInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException