Class ResourceMaintenanceSchedule.Builder (0.6.0)

public static final class ResourceMaintenanceSchedule.Builder extends GeneratedMessage.Builder<ResourceMaintenanceSchedule.Builder> 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 Methods

getDescriptor()

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

Methods

build()

public ResourceMaintenanceSchedule build()
Returns
Type Description
ResourceMaintenanceSchedule

buildPartial()

public ResourceMaintenanceSchedule buildPartial()
Returns
Type Description
ResourceMaintenanceSchedule

clear()

public ResourceMaintenanceSchedule.Builder clear()
Returns
Type Description
ResourceMaintenanceSchedule.Builder
Overrides

clearDay()

public ResourceMaintenanceSchedule.Builder clearDay()

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
ResourceMaintenanceSchedule.Builder

This builder for chaining.

clearPhase()

public ResourceMaintenanceSchedule.Builder clearPhase()

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
ResourceMaintenanceSchedule.Builder

This builder for chaining.

clearStartTime()

public ResourceMaintenanceSchedule.Builder clearStartTime()

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
ResourceMaintenanceSchedule.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

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.

getStartTimeBuilder()

public TimeOfDay.Builder getStartTimeBuilder()

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.Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourceMaintenanceSchedule other)

public ResourceMaintenanceSchedule.Builder mergeFrom(ResourceMaintenanceSchedule other)
Parameter
Name Description
other ResourceMaintenanceSchedule
Returns
Type Description
ResourceMaintenanceSchedule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResourceMaintenanceSchedule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceMaintenanceSchedule.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ResourceMaintenanceSchedule.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ResourceMaintenanceSchedule.Builder
Overrides

mergeStartTime(TimeOfDay value)

public ResourceMaintenanceSchedule.Builder mergeStartTime(TimeOfDay value)

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

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

Parameter
Name Description
value com.google.type.TimeOfDay
Returns
Type Description
ResourceMaintenanceSchedule.Builder

setDay(DayOfWeek value)

public ResourceMaintenanceSchedule.Builder setDay(DayOfWeek value)

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

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

Parameter
Name Description
value com.google.type.DayOfWeek

The day to set.

Returns
Type Description
ResourceMaintenanceSchedule.Builder

This builder for chaining.

setDayValue(int value)

public ResourceMaintenanceSchedule.Builder setDayValue(int value)

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

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

Parameter
Name Description
value int

The enum numeric value on the wire for day to set.

Returns
Type Description
ResourceMaintenanceSchedule.Builder

This builder for chaining.

setPhase(Phase value)

public ResourceMaintenanceSchedule.Builder setPhase(Phase value)

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];

Parameter
Name Description
value Phase

The phase to set.

Returns
Type Description
ResourceMaintenanceSchedule.Builder

This builder for chaining.

setPhaseValue(int value)

public ResourceMaintenanceSchedule.Builder setPhaseValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for phase to set.

Returns
Type Description
ResourceMaintenanceSchedule.Builder

This builder for chaining.

setStartTime(TimeOfDay value)

public ResourceMaintenanceSchedule.Builder setStartTime(TimeOfDay value)

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

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

Parameter
Name Description
value com.google.type.TimeOfDay
Returns
Type Description
ResourceMaintenanceSchedule.Builder

setStartTime(TimeOfDay.Builder builderForValue)

public ResourceMaintenanceSchedule.Builder setStartTime(TimeOfDay.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue com.google.type.TimeOfDay.Builder
Returns
Type Description
ResourceMaintenanceSchedule.Builder