Class MaintenanceInfo (0.6.0)

public final class MaintenanceInfo extends GeneratedMessage implements MaintenanceInfoOrBuilder

MaintenanceInfo to capture the maintenance details of database resource.

Protobuf type google.cloud.databasecenter.v1beta.MaintenanceInfo

Static Fields

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

Static Methods

getDefaultInstance()

public static MaintenanceInfo getDefaultInstance()
Returns
Type Description
MaintenanceInfo

getDescriptor()

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

newBuilder()

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

newBuilder(MaintenanceInfo prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public MaintenanceInfo getDefaultInstanceForType()
Returns
Type Description
MaintenanceInfo

getDenyMaintenanceSchedules(int index)

public ResourceMaintenanceDenySchedule getDenyMaintenanceSchedules(int index)

Optional. List of Deny maintenance period for the database resource.

repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ResourceMaintenanceDenySchedule

getDenyMaintenanceSchedulesCount()

public int getDenyMaintenanceSchedulesCount()

Optional. List of Deny maintenance period for the database resource.

repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getDenyMaintenanceSchedulesList()

public List<ResourceMaintenanceDenySchedule> getDenyMaintenanceSchedulesList()

Optional. List of Deny maintenance period for the database resource.

repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ResourceMaintenanceDenySchedule>

getDenyMaintenanceSchedulesOrBuilder(int index)

public ResourceMaintenanceDenyScheduleOrBuilder getDenyMaintenanceSchedulesOrBuilder(int index)

Optional. List of Deny maintenance period for the database resource.

repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ResourceMaintenanceDenyScheduleOrBuilder

getDenyMaintenanceSchedulesOrBuilderList()

public List<? extends ResourceMaintenanceDenyScheduleOrBuilder> getDenyMaintenanceSchedulesOrBuilderList()

Optional. List of Deny maintenance period for the database resource.

repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(.google.api.field_behavior) = OPTIONAL];

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

getMaintenanceSchedule()

public ResourceMaintenanceSchedule getMaintenanceSchedule()

Optional. Maintenance window for the database resource.

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

Returns
Type Description
ResourceMaintenanceSchedule

The maintenanceSchedule.

getMaintenanceScheduleOrBuilder()

public ResourceMaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder()

Optional. Maintenance window for the database resource.

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

Returns
Type Description
ResourceMaintenanceScheduleOrBuilder

getMaintenanceVersion()

public String getMaintenanceVersion()

Output only. Current Maintenance version of the database resource. Example: "MYSQL_8_0_41.R20250531.01_15"

string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The maintenanceVersion.

getMaintenanceVersionBytes()

public ByteString getMaintenanceVersionBytes()

Output only. Current Maintenance version of the database resource. Example: "MYSQL_8_0_41.R20250531.01_15"

string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for maintenanceVersion.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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