Class ResourceMaintenanceSchedule (0.6.0)

public final class ResourceMaintenanceSchedule extends GeneratedMessage implements ResourceMaintenanceScheduleOrBuilder

Maintenance window for the database resource. It specifies preferred time and day of the week and phase in some cases, when the maintenance can start.

Protobuf type google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule

Static Fields

DAY_FIELD_NUMBER

public static final int DAY_FIELD_NUMBER
Field Value
Type Description
int

PHASE_FIELD_NUMBER

public static final int PHASE_FIELD_NUMBER
Field Value
Type Description
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ResourceMaintenanceSchedule getDefaultInstance()
Returns
Type Description
ResourceMaintenanceSchedule

getDescriptor()

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

newBuilder()

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

newBuilder(ResourceMaintenanceSchedule prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDay()

public DayOfWeek getDay()

Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.

.google.type.DayOfWeek day = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.DayOfWeek

The day.

getDayValue()

public int getDayValue()

Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.

.google.type.DayOfWeek day = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for day.

getDefaultInstanceForType()

public ResourceMaintenanceSchedule getDefaultInstanceForType()
Returns
Type Description
ResourceMaintenanceSchedule

getParserForType()

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

getPhase()

public Phase getPhase()

Optional. Phase of the maintenance window. This is to capture order of maintenance. For example, for Cloud SQL resources, this can be used to capture if the maintenance window is in Week1, Week2, Week5, etc. Non production resources are usually part of early phase. For more details, refer to Cloud SQL resources - https://cloud.google.com/sql/docs/mysql/maintenance

.google.cloud.databasecenter.v1beta.Phase phase = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Phase

The phase.

getPhaseValue()

public int getPhaseValue()

Optional. Phase of the maintenance window. This is to capture order of maintenance. For example, for Cloud SQL resources, this can be used to capture if the maintenance window is in Week1, Week2, Week5, etc. Non production resources are usually part of early phase. For more details, refer to Cloud SQL resources - https://cloud.google.com/sql/docs/mysql/maintenance

.google.cloud.databasecenter.v1beta.Phase phase = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for phase.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStartTime()

public TimeOfDay getStartTime()

Optional. Preferred time to start the maintenance operation on the specified day.

.google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.TimeOfDay

The startTime.

getStartTimeOrBuilder()

public TimeOfDayOrBuilder getStartTimeOrBuilder()

Optional. Preferred time to start the maintenance operation on the specified day.

.google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.TimeOfDayOrBuilder

hasStartTime()

public boolean hasStartTime()

Optional. Preferred time to start the maintenance operation on the specified day.

.google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the startTime 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 ResourceMaintenanceSchedule.Builder newBuilderForType()
Returns
Type Description
ResourceMaintenanceSchedule.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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