Class MaintenancePolicy.MaintenanceExclusionWindow.Builder (0.39.0)

public static final class MaintenancePolicy.MaintenanceExclusionWindow.Builder extends GeneratedMessage.Builder<MaintenancePolicy.MaintenanceExclusionWindow.Builder> implements MaintenancePolicy.MaintenanceExclusionWindowOrBuilder

Exclusion period when maintenance updates should not occur. An exclusion window can be in either of the following two formats:

  • Non-recurring : A full date, with non-zero year, month and day values.
  • Recurring : A month and day value, with a zero year. Time zone is UTC.

Protobuf type google.cloud.lustre.v1.MaintenancePolicy.MaintenanceExclusionWindow

Static Methods

getDescriptor()

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

Methods

build()

public MaintenancePolicy.MaintenanceExclusionWindow build()
Returns
Type Description
MaintenancePolicy.MaintenanceExclusionWindow

buildPartial()

public MaintenancePolicy.MaintenanceExclusionWindow buildPartial()
Returns
Type Description
MaintenancePolicy.MaintenanceExclusionWindow

clear()

public MaintenancePolicy.MaintenanceExclusionWindow.Builder clear()
Returns
Type Description
MaintenancePolicy.MaintenanceExclusionWindow.Builder
Overrides

clearEndDate()

public MaintenancePolicy.MaintenanceExclusionWindow.Builder clearEndDate()

Required. End date of the exclusion period in UTC time zone. This date is inclusive.

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

Returns
Type Description
MaintenancePolicy.MaintenanceExclusionWindow.Builder

clearStartDate()

public MaintenancePolicy.MaintenanceExclusionWindow.Builder clearStartDate()

Required. Start date of the exclusion period in UTC time zone. This date is inclusive.

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

Returns
Type Description
MaintenancePolicy.MaintenanceExclusionWindow.Builder

clearTime()

public MaintenancePolicy.MaintenanceExclusionWindow.Builder clearTime()

Required. Time in UTC when the exclusion window starts on start_date and ends on end_date. This can be:

  • Full time OR
  • All zeros for 00:00:00 UTC

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

Returns
Type Description
MaintenancePolicy.MaintenanceExclusionWindow.Builder

getDefaultInstanceForType()

public MaintenancePolicy.MaintenanceExclusionWindow getDefaultInstanceForType()
Returns
Type Description
MaintenancePolicy.MaintenanceExclusionWindow

getDescriptorForType()

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

getEndDate()

public Date getEndDate()

Required. End date of the exclusion period in UTC time zone. This date is inclusive.

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

Returns
Type Description
com.google.type.Date

The endDate.

getEndDateBuilder()

public Date.Builder getEndDateBuilder()

Required. End date of the exclusion period in UTC time zone. This date is inclusive.

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

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

getEndDateOrBuilder()

public DateOrBuilder getEndDateOrBuilder()

Required. End date of the exclusion period in UTC time zone. This date is inclusive.

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

Returns
Type Description
com.google.type.DateOrBuilder

getStartDate()

public Date getStartDate()

Required. Start date of the exclusion period in UTC time zone. This date is inclusive.

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

Returns
Type Description
com.google.type.Date

The startDate.

getStartDateBuilder()

public Date.Builder getStartDateBuilder()

Required. Start date of the exclusion period in UTC time zone. This date is inclusive.

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

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

getStartDateOrBuilder()

public DateOrBuilder getStartDateOrBuilder()

Required. Start date of the exclusion period in UTC time zone. This date is inclusive.

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

Returns
Type Description
com.google.type.DateOrBuilder

getTime()

public TimeOfDay getTime()

Required. Time in UTC when the exclusion window starts on start_date and ends on end_date. This can be:

  • Full time OR
  • All zeros for 00:00:00 UTC

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

Returns
Type Description
com.google.type.TimeOfDay

The time.

getTimeBuilder()

public TimeOfDay.Builder getTimeBuilder()

Required. Time in UTC when the exclusion window starts on start_date and ends on end_date. This can be:

  • Full time OR
  • All zeros for 00:00:00 UTC

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

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

getTimeOrBuilder()

public TimeOfDayOrBuilder getTimeOrBuilder()

Required. Time in UTC when the exclusion window starts on start_date and ends on end_date. This can be:

  • Full time OR
  • All zeros for 00:00:00 UTC

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

Returns
Type Description
com.google.type.TimeOfDayOrBuilder

hasEndDate()

public boolean hasEndDate()

Required. End date of the exclusion period in UTC time zone. This date is inclusive.

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

Returns
Type Description
boolean

Whether the endDate field is set.

hasStartDate()

public boolean hasStartDate()

Required. Start date of the exclusion period in UTC time zone. This date is inclusive.

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

Returns
Type Description
boolean

Whether the startDate field is set.

hasTime()

public boolean hasTime()

Required. Time in UTC when the exclusion window starts on start_date and ends on end_date. This can be:

  • Full time OR
  • All zeros for 00:00:00 UTC

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

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 MaintenancePolicy.MaintenanceExclusionWindow.Builder mergeEndDate(Date value)

Required. End date of the exclusion period in UTC time zone. This date is inclusive.

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

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

mergeFrom(MaintenancePolicy.MaintenanceExclusionWindow other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartDate(Date value)

public MaintenancePolicy.MaintenanceExclusionWindow.Builder mergeStartDate(Date value)

Required. Start date of the exclusion period in UTC time zone. This date is inclusive.

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

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

mergeTime(TimeOfDay value)

public MaintenancePolicy.MaintenanceExclusionWindow.Builder mergeTime(TimeOfDay value)

Required. Time in UTC when the exclusion window starts on start_date and ends on end_date. This can be:

  • Full time OR
  • All zeros for 00:00:00 UTC

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

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

setEndDate(Date value)

public MaintenancePolicy.MaintenanceExclusionWindow.Builder setEndDate(Date value)

Required. End date of the exclusion period in UTC time zone. This date is inclusive.

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

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

setEndDate(Date.Builder builderForValue)

public MaintenancePolicy.MaintenanceExclusionWindow.Builder setEndDate(Date.Builder builderForValue)

Required. End date of the exclusion period in UTC time zone. This date is inclusive.

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

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

setStartDate(Date value)

public MaintenancePolicy.MaintenanceExclusionWindow.Builder setStartDate(Date value)

Required. Start date of the exclusion period in UTC time zone. This date is inclusive.

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

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

setStartDate(Date.Builder builderForValue)

public MaintenancePolicy.MaintenanceExclusionWindow.Builder setStartDate(Date.Builder builderForValue)

Required. Start date of the exclusion period in UTC time zone. This date is inclusive.

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

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

setTime(TimeOfDay value)

public MaintenancePolicy.MaintenanceExclusionWindow.Builder setTime(TimeOfDay value)

Required. Time in UTC when the exclusion window starts on start_date and ends on end_date. This can be:

  • Full time OR
  • All zeros for 00:00:00 UTC

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

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

setTime(TimeOfDay.Builder builderForValue)

public MaintenancePolicy.MaintenanceExclusionWindow.Builder setTime(TimeOfDay.Builder builderForValue)

Required. Time in UTC when the exclusion window starts on start_date and ends on end_date. This can be:

  • Full time OR
  • All zeros for 00:00:00 UTC

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

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