Class ResourceMaintenanceDenySchedule.Builder (0.3.0)

public static final class ResourceMaintenanceDenySchedule.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourceMaintenanceDenySchedule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResourceMaintenanceDenySchedule.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public ResourceMaintenanceDenySchedule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ResourceMaintenanceDenySchedule.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourceMaintenanceDenySchedule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ResourceMaintenanceDenySchedule.Builder
Overrides

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceMaintenanceDenySchedule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceMaintenanceDenySchedule.Builder
Overrides

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

setField(Descriptors.FieldDescriptor field, Object value)

public ResourceMaintenanceDenySchedule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResourceMaintenanceDenySchedule.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ResourceMaintenanceDenySchedule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ResourceMaintenanceDenySchedule.Builder
Overrides

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourceMaintenanceDenySchedule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceMaintenanceDenySchedule.Builder
Overrides