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 Summary
Modifier and TypeMethodDescriptionaddAllDenyMaintenanceSchedules(Iterable<? extends ResourceMaintenanceDenySchedule> values) Optional.addAllPossibleFailureReasons(Iterable<? extends PossibleFailureReason> values) Output only.Output only.addDenyMaintenanceSchedules(int index, ResourceMaintenanceDenySchedule value) Optional.addDenyMaintenanceSchedules(int index, ResourceMaintenanceDenySchedule.Builder builderForValue) Optional.Optional.addDenyMaintenanceSchedules(ResourceMaintenanceDenySchedule.Builder builderForValue) Optional.Optional.addDenyMaintenanceSchedulesBuilder(int index) Optional.Output only.addPossibleFailureReasonsValue(int value) Output only.build()clear()Output only.Optional.Optional.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.getDenyMaintenanceSchedules(int index) Optional.getDenyMaintenanceSchedulesBuilder(int index) Optional.Optional.intOptional.Optional.getDenyMaintenanceSchedulesOrBuilder(int index) Optional.List<? extends ResourceMaintenanceDenyScheduleOrBuilder>Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.Output only.com.google.protobuf.ByteStringOutput only.getPossibleFailureReasons(int index) Output only.intOutput only.Output only.intgetPossibleFailureReasonsValue(int index) Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.getState()Output only.intOutput only.Output only.Output only.Output only.booleanOutput only.booleanOptional.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOutput only.mergeFrom(MaintenanceInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.Output only.removeDenyMaintenanceSchedules(int index) Optional.setCurrentVersionReleaseDate(Date value) Output only.setCurrentVersionReleaseDate(Date.Builder builderForValue) Output only.setDenyMaintenanceSchedules(int index, ResourceMaintenanceDenySchedule value) Optional.setDenyMaintenanceSchedules(int index, ResourceMaintenanceDenySchedule.Builder builderForValue) Optional.Optional.setMaintenanceSchedule(ResourceMaintenanceSchedule.Builder builderForValue) Optional.setMaintenanceVersion(String value) Output only.setMaintenanceVersionBytes(com.google.protobuf.ByteString value) Output only.setPossibleFailureReasons(int index, PossibleFailureReason value) Output only.setPossibleFailureReasonsValue(int index, int value) Output only.Output only.setPreviousMaintenanceVersionBytes(com.google.protobuf.ByteString value) Output only.setState(MaintenanceState value) Output only.setStateValue(int value) Output only.Output only.setUpcomingMaintenance(UpcomingMaintenance.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MaintenanceInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MaintenanceInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<MaintenanceInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MaintenanceInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasMaintenanceSchedulein interfaceMaintenanceInfoOrBuilder- Returns:
- Whether the maintenanceSchedule field is set.
-
getMaintenanceSchedule
Optional. Maintenance window for the database resource.
.google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaintenanceSchedulein interfaceMaintenanceInfoOrBuilder- Returns:
- The maintenanceSchedule.
-
setMaintenanceSchedule
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
Optional. Maintenance window for the database resource.
.google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL]; -
clearMaintenanceSchedule
Optional. Maintenance window for the database resource.
.google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL]; -
getMaintenanceScheduleBuilder
Optional. Maintenance window for the database resource.
.google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL]; -
getMaintenanceScheduleOrBuilder
Optional. Maintenance window for the database resource.
.google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaintenanceScheduleOrBuilderin interfaceMaintenanceInfoOrBuilder
-
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:
getDenyMaintenanceSchedulesListin interfaceMaintenanceInfoOrBuilder
-
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:
getDenyMaintenanceSchedulesCountin interfaceMaintenanceInfoOrBuilder
-
getDenyMaintenanceSchedules
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:
getDenyMaintenanceSchedulesin interfaceMaintenanceInfoOrBuilder
-
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
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
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
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
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
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:
getDenyMaintenanceSchedulesOrBuilderin interfaceMaintenanceInfoOrBuilder
-
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:
getDenyMaintenanceSchedulesOrBuilderListin interfaceMaintenanceInfoOrBuilder
-
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
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
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
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:
getMaintenanceVersionin interfaceMaintenanceInfoOrBuilder- 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:
getMaintenanceVersionBytesin interfaceMaintenanceInfoOrBuilder- Returns:
- The bytes for maintenanceVersion.
-
setMaintenanceVersion
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
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
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:
hasCurrentVersionReleaseDatein interfaceMaintenanceInfoOrBuilder- Returns:
- Whether the currentVersionReleaseDate field is set.
-
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:
getCurrentVersionReleaseDatein interfaceMaintenanceInfoOrBuilder- Returns:
- The currentVersionReleaseDate.
-
setCurrentVersionReleaseDate
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
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
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
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
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
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:
getCurrentVersionReleaseDateOrBuilderin interfaceMaintenanceInfoOrBuilder
-
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:
hasUpcomingMaintenancein interfaceMaintenanceInfoOrBuilder- Returns:
- Whether the upcomingMaintenance field is set.
-
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:
getUpcomingMaintenancein interfaceMaintenanceInfoOrBuilder- Returns:
- The upcomingMaintenance.
-
setUpcomingMaintenance
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
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
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
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
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
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:
getUpcomingMaintenanceOrBuilderin interfaceMaintenanceInfoOrBuilder
-
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:
getStateValuein interfaceMaintenanceInfoOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
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
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:
getStatein interfaceMaintenanceInfoOrBuilder- Returns:
- The state.
-
setState
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
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
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:
getPossibleFailureReasonsListin interfaceMaintenanceInfoOrBuilder- 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:
getPossibleFailureReasonsCountin interfaceMaintenanceInfoOrBuilder- Returns:
- The count of possibleFailureReasons.
-
getPossibleFailureReasons
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:
getPossibleFailureReasonsin interfaceMaintenanceInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The possibleFailureReasons at the given index.
-
setPossibleFailureReasons
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
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
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
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:
getPossibleFailureReasonsValueListin interfaceMaintenanceInfoOrBuilder- 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:
getPossibleFailureReasonsValuein interfaceMaintenanceInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of possibleFailureReasons at the given index.
-
setPossibleFailureReasonsValue
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
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
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
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:
getPreviousMaintenanceVersionin interfaceMaintenanceInfoOrBuilder- 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:
getPreviousMaintenanceVersionBytesin interfaceMaintenanceInfoOrBuilder- Returns:
- The bytes for previousMaintenanceVersion.
-
setPreviousMaintenanceVersion
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
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.
-