public static final class MaintenanceInfo.Builder extends GeneratedMessage.Builder<MaintenanceInfo.Builder> implements MaintenanceInfoOrBuilderMaintenanceInfo to capture the maintenance details of database resource.
Protobuf type google.cloud.databasecenter.v1beta.MaintenanceInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > MaintenanceInfo.BuilderImplements
MaintenanceInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDenyMaintenanceSchedules(Iterable<? extends ResourceMaintenanceDenySchedule> values)
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];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule> |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
addAllPossibleFailureReasons(Iterable<? extends PossibleFailureReason> values)
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];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.databasecenter.v1beta.PossibleFailureReason>The possibleFailureReasons to add. |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
This builder for chaining. |
addAllPossibleFailureReasonsValue(Iterable<Integer> values)
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];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<Integer>The enum numeric values on the wire for possibleFailureReasons to add. |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
This builder for chaining. |
addDenyMaintenanceSchedules(ResourceMaintenanceDenySchedule value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
ResourceMaintenanceDenySchedule |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
addDenyMaintenanceSchedules(ResourceMaintenanceDenySchedule.Builder builderForValue)
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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ResourceMaintenanceDenySchedule.Builder |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
addDenyMaintenanceSchedules(int index, ResourceMaintenanceDenySchedule value)
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ResourceMaintenanceDenySchedule |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
addDenyMaintenanceSchedules(int index, ResourceMaintenanceDenySchedule.Builder builderForValue)
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ResourceMaintenanceDenySchedule.Builder |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
ResourceMaintenanceDenySchedule.Builder |
|
addDenyMaintenanceSchedulesBuilder(int index)
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];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ResourceMaintenanceDenySchedule.Builder |
|
addPossibleFailureReasons(PossibleFailureReason value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
PossibleFailureReasonThe possibleFailureReasons to add. |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
This builder for chaining. |
addPossibleFailureReasonsValue(int value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for possibleFailureReasons to add. |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
This builder for chaining. |
build()
public MaintenanceInfo build()| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo |
|
buildPartial()
public MaintenanceInfo buildPartial()| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo |
|
clear()
public MaintenanceInfo.Builder clear()| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
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 | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
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 | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
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 | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
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 | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
This builder for chaining. |
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];
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
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. |
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];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date.Builder |
|
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 |
|
getDenyMaintenanceSchedulesBuilder(int index)
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];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ResourceMaintenanceDenySchedule.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
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> |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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];
| Returns | |
|---|---|
| Type | Description |
ResourceMaintenanceSchedule.Builder |
|
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. |
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 |
intThe 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 |
intThe 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. |
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. |
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];
| Returns | |
|---|---|
| Type | Description |
UpcomingMaintenance.Builder |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCurrentVersionReleaseDate(Date value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
mergeFrom(MaintenanceInfo other)
public MaintenanceInfo.Builder mergeFrom(MaintenanceInfo other)| Parameter | |
|---|---|
| Name | Description |
other |
MaintenanceInfo |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MaintenanceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public MaintenanceInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
mergeMaintenanceSchedule(ResourceMaintenanceSchedule value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
ResourceMaintenanceSchedule |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
mergeUpcomingMaintenance(UpcomingMaintenance value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
UpcomingMaintenance |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
removeDenyMaintenanceSchedules(int index)
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];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
setCurrentVersionReleaseDate(Date value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
setCurrentVersionReleaseDate(Date.Builder builderForValue)
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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Date.Builder |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
setDenyMaintenanceSchedules(int index, ResourceMaintenanceDenySchedule value)
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ResourceMaintenanceDenySchedule |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
setDenyMaintenanceSchedules(int index, ResourceMaintenanceDenySchedule.Builder builderForValue)
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ResourceMaintenanceDenySchedule.Builder |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
setMaintenanceSchedule(ResourceMaintenanceSchedule value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
ResourceMaintenanceSchedule |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
setMaintenanceSchedule(ResourceMaintenanceSchedule.Builder builderForValue)
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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ResourceMaintenanceSchedule.Builder |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
setMaintenanceVersion(String value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe maintenanceVersion to set. |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
This builder for chaining. |
setMaintenanceVersionBytes(ByteString value)
public MaintenanceInfo.Builder setMaintenanceVersionBytes(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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for maintenanceVersion to set. |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
This builder for chaining. |
setPossibleFailureReasons(int index, PossibleFailureReason value)
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 | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
PossibleFailureReasonThe possibleFailureReasons to set. |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
This builder for chaining. |
setPossibleFailureReasonsValue(int index, int value)
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 | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
intThe enum numeric value on the wire for possibleFailureReasons to set. |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
This builder for chaining. |
setPreviousMaintenanceVersion(String value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe previousMaintenanceVersion to set. |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
This builder for chaining. |
setPreviousMaintenanceVersionBytes(ByteString value)
public MaintenanceInfo.Builder setPreviousMaintenanceVersionBytes(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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for previousMaintenanceVersion to set. |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
This builder for chaining. |
setState(MaintenanceState value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
MaintenanceStateThe state to set. |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
This builder for chaining. |
setStateValue(int value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
This builder for chaining. |
setUpcomingMaintenance(UpcomingMaintenance value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
UpcomingMaintenance |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|
setUpcomingMaintenance(UpcomingMaintenance.Builder builderForValue)
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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
UpcomingMaintenance.Builder |
| Returns | |
|---|---|
| Type | Description |
MaintenanceInfo.Builder |
|