Class ResourceMaintenanceDenySchedule.Builder (0.6.0)

public static final class ResourceMaintenanceDenySchedule.Builder extends GeneratedMessage.Builder<ResourceMaintenanceDenySchedule.Builder> implements ResourceMaintenanceDenyScheduleOrBuilder

Deny maintenance period for the database resource. It specifies the time range during which the maintenance cannot start. This is configured by the customer.

Protobuf type google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule

Static Methods

getDescriptor()

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

Methods

build()

public ResourceMaintenanceDenySchedule build()
Returns
Type Description
ResourceMaintenanceDenySchedule

buildPartial()

public ResourceMaintenanceDenySchedule buildPartial()
Returns
Type Description
ResourceMaintenanceDenySchedule

clear()

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

clearEndDate()

public ResourceMaintenanceDenySchedule.Builder clearEndDate()

Optional. Deny period end date.

.google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ResourceMaintenanceDenySchedule.Builder

clearStartDate()

public ResourceMaintenanceDenySchedule.Builder clearStartDate()

Optional. The start date of the deny maintenance period.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ResourceMaintenanceDenySchedule.Builder

clearTime()

public ResourceMaintenanceDenySchedule.Builder clearTime()

Optional. Time in UTC when the deny period starts on start_date and ends on end_date.

.google.type.TimeOfDay time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ResourceMaintenanceDenySchedule.Builder

getDefaultInstanceForType()

public ResourceMaintenanceDenySchedule getDefaultInstanceForType()
Returns
Type Description
ResourceMaintenanceDenySchedule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndDate()

public Date getEndDate()

Optional. Deny period end date.

.google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.Date

The endDate.

getEndDateBuilder()

public Date.Builder getEndDateBuilder()

Optional. Deny period end date.

.google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.Date.Builder

getEndDateOrBuilder()

public DateOrBuilder getEndDateOrBuilder()

Optional. Deny period end date.

.google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.DateOrBuilder

getStartDate()

public Date getStartDate()

Optional. The start date of the deny maintenance period.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.Date

The startDate.

getStartDateBuilder()

public Date.Builder getStartDateBuilder()

Optional. The start date of the deny maintenance period.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.Date.Builder

getStartDateOrBuilder()

public DateOrBuilder getStartDateOrBuilder()

Optional. The start date of the deny maintenance period.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.DateOrBuilder

getTime()

public TimeOfDay getTime()

Optional. Time in UTC when the deny period starts on start_date and ends on end_date.

.google.type.TimeOfDay time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.TimeOfDay

The time.

getTimeBuilder()

public TimeOfDay.Builder getTimeBuilder()

Optional. Time in UTC when the deny period starts on start_date and ends on end_date.

.google.type.TimeOfDay time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.TimeOfDay.Builder

getTimeOrBuilder()

public TimeOfDayOrBuilder getTimeOrBuilder()

Optional. Time in UTC when the deny period starts on start_date and ends on end_date.

.google.type.TimeOfDay time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.TimeOfDayOrBuilder

hasEndDate()

public boolean hasEndDate()

Optional. Deny period end date.

.google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the endDate field is set.

hasStartDate()

public boolean hasStartDate()

Optional. The start date of the deny maintenance period.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the startDate field is set.

hasTime()

public boolean hasTime()

Optional. Time in UTC when the deny period starts on start_date and ends on end_date.

.google.type.TimeOfDay time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the time field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndDate(Date value)

public ResourceMaintenanceDenySchedule.Builder mergeEndDate(Date value)

Optional. Deny period end date.

.google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
ResourceMaintenanceDenySchedule.Builder

mergeFrom(ResourceMaintenanceDenySchedule other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartDate(Date value)

public ResourceMaintenanceDenySchedule.Builder mergeStartDate(Date value)

Optional. The start date of the deny maintenance period.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
ResourceMaintenanceDenySchedule.Builder

mergeTime(TimeOfDay value)

public ResourceMaintenanceDenySchedule.Builder mergeTime(TimeOfDay value)

Optional. Time in UTC when the deny period starts on start_date and ends on end_date.

.google.type.TimeOfDay time = 3 [(.google.api.field_behavior) = OPTIONAL];

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

setEndDate(Date value)

public ResourceMaintenanceDenySchedule.Builder setEndDate(Date value)

Optional. Deny period end date.

.google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
ResourceMaintenanceDenySchedule.Builder

setEndDate(Date.Builder builderForValue)

public ResourceMaintenanceDenySchedule.Builder setEndDate(Date.Builder builderForValue)

Optional. Deny period end date.

.google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
ResourceMaintenanceDenySchedule.Builder

setStartDate(Date value)

public ResourceMaintenanceDenySchedule.Builder setStartDate(Date value)

Optional. The start date of the deny maintenance period.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
ResourceMaintenanceDenySchedule.Builder

setStartDate(Date.Builder builderForValue)

public ResourceMaintenanceDenySchedule.Builder setStartDate(Date.Builder builderForValue)

Optional. The start date of the deny maintenance period.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
ResourceMaintenanceDenySchedule.Builder

setTime(TimeOfDay value)

public ResourceMaintenanceDenySchedule.Builder setTime(TimeOfDay value)

Optional. Time in UTC when the deny period starts on start_date and ends on end_date.

.google.type.TimeOfDay time = 3 [(.google.api.field_behavior) = OPTIONAL];

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

setTime(TimeOfDay.Builder builderForValue)

public ResourceMaintenanceDenySchedule.Builder setTime(TimeOfDay.Builder builderForValue)

Optional. Time in UTC when the deny period starts on start_date and ends on end_date.

.google.type.TimeOfDay time = 3 [(.google.api.field_behavior) = OPTIONAL];

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