public static final class ResourceMaintenanceSchedule.Builder extends GeneratedMessageV3.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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResourceMaintenanceSchedule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ResourceMaintenanceSchedule build()
buildPartial()
public ResourceMaintenanceSchedule buildPartial()
clear()
public ResourceMaintenanceSchedule.Builder clear()
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];
clearField(Descriptors.FieldDescriptor field)
public ResourceMaintenanceSchedule.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ResourceMaintenanceSchedule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
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];
clone()
public ResourceMaintenanceSchedule.Builder clone()
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()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ResourceMaintenanceSchedule other)
public ResourceMaintenanceSchedule.Builder mergeFrom(ResourceMaintenanceSchedule other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ResourceMaintenanceSchedule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ResourceMaintenanceSchedule.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
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
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResourceMaintenanceSchedule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public ResourceMaintenanceSchedule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResourceMaintenanceSchedule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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
|
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
|
setUnknownFields(UnknownFieldSet unknownFields)
public final ResourceMaintenanceSchedule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides