public final class MaintenanceInfo extends GeneratedMessage implements MaintenanceInfoOrBuilder
MaintenanceInfo to capture the maintenance details of database resource.
Protobuf type google.cloud.databasecenter.v1beta.MaintenanceInfo
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static MaintenanceInfo.Builder newBuilder()
newBuilder(MaintenanceInfo prototype)
public static MaintenanceInfo.Builder newBuilder(MaintenanceInfo prototype)
parseDelimitedFrom(InputStream input)
public static MaintenanceInfo parseDelimitedFrom(InputStream input)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MaintenanceInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static MaintenanceInfo parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MaintenanceInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static MaintenanceInfo parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MaintenanceInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
parseFrom(CodedInputStream input)
public static MaintenanceInfo parseFrom(CodedInputStream input)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MaintenanceInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(InputStream input)
public static MaintenanceInfo parseFrom(InputStream input)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MaintenanceInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static MaintenanceInfo parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MaintenanceInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<MaintenanceInfo> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
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()
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
|
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];
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
|
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];
getMaintenanceScheduleOrBuilder()
public ResourceMaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder()
Optional. Maintenance window for the database resource.
.google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.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];
| 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()
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.
|
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];
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];
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];
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];
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()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public MaintenanceInfo.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected MaintenanceInfo.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public MaintenanceInfo.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides