Class MaintenanceWindow.Builder (0.3.0)

public static final class MaintenanceWindow.Builder extends GeneratedMessageV3.Builder<MaintenanceWindow.Builder> implements MaintenanceWindowOrBuilder

Maintenance window as defined by Oracle. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/MaintenanceWindow

Protobuf type google.cloud.oracledatabase.v1.MaintenanceWindow

Static Methods

getDescriptor()

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

Methods

addAllDaysOfWeek(Iterable<? extends DayOfWeek> values)

public MaintenanceWindow.Builder addAllDaysOfWeek(Iterable<? extends DayOfWeek> values)

Optional. Days during the week when maintenance should be performed.

repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.type.DayOfWeek>

The daysOfWeek to add.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

addAllDaysOfWeekValue(Iterable<Integer> values)

public MaintenanceWindow.Builder addAllDaysOfWeekValue(Iterable<Integer> values)

Optional. Days during the week when maintenance should be performed.

repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for daysOfWeek to add.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

addAllHoursOfDay(Iterable<? extends Integer> values)

public MaintenanceWindow.Builder addAllHoursOfDay(Iterable<? extends Integer> values)

Optional. The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are: 0 - represents time slot 0:00 - 3:59 UTC 4 - represents time slot 4:00 - 7:59 UTC 8 - represents time slot 8:00 - 11:59 UTC 12 - represents time slot 12:00 - 15:59 UTC 16 - represents time slot 16:00 - 19:59 UTC 20 - represents time slot 20:00 - 23:59 UTC

repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends java.lang.Integer>

The hoursOfDay to add.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

addAllMonths(Iterable<? extends Month> values)

public MaintenanceWindow.Builder addAllMonths(Iterable<? extends Month> values)

Optional. Months during the year when maintenance should be performed.

repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.type.Month>

The months to add.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

addAllMonthsValue(Iterable<Integer> values)

public MaintenanceWindow.Builder addAllMonthsValue(Iterable<Integer> values)

Optional. Months during the year when maintenance should be performed.

repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for months to add.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

addAllWeeksOfMonth(Iterable<? extends Integer> values)

public MaintenanceWindow.Builder addAllWeeksOfMonth(Iterable<? extends Integer> values)

Optional. Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week.

repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends java.lang.Integer>

The weeksOfMonth to add.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

addDaysOfWeek(DayOfWeek value)

public MaintenanceWindow.Builder addDaysOfWeek(DayOfWeek value)

Optional. Days during the week when maintenance should be performed.

repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.DayOfWeek

The daysOfWeek to add.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

addDaysOfWeekValue(int value)

public MaintenanceWindow.Builder addDaysOfWeekValue(int value)

Optional. Days during the week when maintenance should be performed.

repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for daysOfWeek to add.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

addHoursOfDay(int value)

public MaintenanceWindow.Builder addHoursOfDay(int value)

Optional. The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are: 0 - represents time slot 0:00 - 3:59 UTC 4 - represents time slot 4:00 - 7:59 UTC 8 - represents time slot 8:00 - 11:59 UTC 12 - represents time slot 12:00 - 15:59 UTC 16 - represents time slot 16:00 - 19:59 UTC 20 - represents time slot 20:00 - 23:59 UTC

repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The hoursOfDay to add.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

addMonths(Month value)

public MaintenanceWindow.Builder addMonths(Month value)

Optional. Months during the year when maintenance should be performed.

repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.Month

The months to add.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

addMonthsValue(int value)

public MaintenanceWindow.Builder addMonthsValue(int value)

Optional. Months during the year when maintenance should be performed.

repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for months to add.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addWeeksOfMonth(int value)

public MaintenanceWindow.Builder addWeeksOfMonth(int value)

Optional. Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week.

repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The weeksOfMonth to add.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

build()

public MaintenanceWindow build()
Returns
Type Description
MaintenanceWindow

buildPartial()

public MaintenanceWindow buildPartial()
Returns
Type Description
MaintenanceWindow

clear()

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

clearCustomActionTimeoutMins()

public MaintenanceWindow.Builder clearCustomActionTimeoutMins()

Optional. Determines the amount of time the system will wait before the start of each database server patching operation. Custom action timeout is in minutes and valid value is between 15 to 120 (inclusive).

int32 custom_action_timeout_mins = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

clearDaysOfWeek()

public MaintenanceWindow.Builder clearDaysOfWeek()

Optional. Days during the week when maintenance should be performed.

repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHoursOfDay()

public MaintenanceWindow.Builder clearHoursOfDay()

Optional. The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are: 0 - represents time slot 0:00 - 3:59 UTC 4 - represents time slot 4:00 - 7:59 UTC 8 - represents time slot 8:00 - 11:59 UTC 12 - represents time slot 12:00 - 15:59 UTC 16 - represents time slot 16:00 - 19:59 UTC 20 - represents time slot 20:00 - 23:59 UTC

repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

clearIsCustomActionTimeoutEnabled()

public MaintenanceWindow.Builder clearIsCustomActionTimeoutEnabled()

Optional. If true, enables the configuration of a custom action timeout (waiting period) between database server patching operations.

bool is_custom_action_timeout_enabled = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

clearLeadTimeWeek()

public MaintenanceWindow.Builder clearLeadTimeWeek()

Optional. Lead time window allows user to set a lead time to prepare for a down time. The lead time is in weeks and valid value is between 1 to 4.

int32 lead_time_week = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

clearMonths()

public MaintenanceWindow.Builder clearMonths()

Optional. Months during the year when maintenance should be performed.

repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPatchingMode()

public MaintenanceWindow.Builder clearPatchingMode()

Optional. Cloud CloudExadataInfrastructure node patching method, either "ROLLING" or "NONROLLING". Default value is ROLLING.

.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode patching_mode = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

clearPreference()

public MaintenanceWindow.Builder clearPreference()

Optional. The maintenance window scheduling preference.

.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference preference = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

clearWeeksOfMonth()

public MaintenanceWindow.Builder clearWeeksOfMonth()

Optional. Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week.

repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

clone()

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

getCustomActionTimeoutMins()

public int getCustomActionTimeoutMins()

Optional. Determines the amount of time the system will wait before the start of each database server patching operation. Custom action timeout is in minutes and valid value is between 15 to 120 (inclusive).

int32 custom_action_timeout_mins = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The customActionTimeoutMins.

getDaysOfWeek(int index)

public DayOfWeek getDaysOfWeek(int index)

Optional. Days during the week when maintenance should be performed.

repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
com.google.type.DayOfWeek

The daysOfWeek at the given index.

getDaysOfWeekCount()

public int getDaysOfWeekCount()

Optional. Days during the week when maintenance should be performed.

repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of daysOfWeek.

getDaysOfWeekList()

public List<DayOfWeek> getDaysOfWeekList()

Optional. Days during the week when maintenance should be performed.

repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<com.google.type.DayOfWeek>

A list containing the daysOfWeek.

getDaysOfWeekValue(int index)

public int getDaysOfWeekValue(int index)

Optional. Days during the week when maintenance should be performed.

repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of daysOfWeek at the given index.

getDaysOfWeekValueList()

public List<Integer> getDaysOfWeekValueList()

Optional. Days during the week when maintenance should be performed.

repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for daysOfWeek.

getDefaultInstanceForType()

public MaintenanceWindow getDefaultInstanceForType()
Returns
Type Description
MaintenanceWindow

getDescriptorForType()

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

getHoursOfDay(int index)

public int getHoursOfDay(int index)

Optional. The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are: 0 - represents time slot 0:00 - 3:59 UTC 4 - represents time slot 4:00 - 7:59 UTC 8 - represents time slot 8:00 - 11:59 UTC 12 - represents time slot 12:00 - 15:59 UTC 16 - represents time slot 16:00 - 19:59 UTC 20 - represents time slot 20:00 - 23:59 UTC

repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
int

The hoursOfDay at the given index.

getHoursOfDayCount()

public int getHoursOfDayCount()

Optional. The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are: 0 - represents time slot 0:00 - 3:59 UTC 4 - represents time slot 4:00 - 7:59 UTC 8 - represents time slot 8:00 - 11:59 UTC 12 - represents time slot 12:00 - 15:59 UTC 16 - represents time slot 16:00 - 19:59 UTC 20 - represents time slot 20:00 - 23:59 UTC

repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of hoursOfDay.

getHoursOfDayList()

public List<Integer> getHoursOfDayList()

Optional. The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are: 0 - represents time slot 0:00 - 3:59 UTC 4 - represents time slot 4:00 - 7:59 UTC 8 - represents time slot 8:00 - 11:59 UTC 12 - represents time slot 12:00 - 15:59 UTC 16 - represents time slot 16:00 - 19:59 UTC 20 - represents time slot 20:00 - 23:59 UTC

repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Integer>

A list containing the hoursOfDay.

getIsCustomActionTimeoutEnabled()

public boolean getIsCustomActionTimeoutEnabled()

Optional. If true, enables the configuration of a custom action timeout (waiting period) between database server patching operations.

bool is_custom_action_timeout_enabled = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The isCustomActionTimeoutEnabled.

getLeadTimeWeek()

public int getLeadTimeWeek()

Optional. Lead time window allows user to set a lead time to prepare for a down time. The lead time is in weeks and valid value is between 1 to 4.

int32 lead_time_week = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The leadTimeWeek.

getMonths(int index)

public Month getMonths(int index)

Optional. Months during the year when maintenance should be performed.

repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
com.google.type.Month

The months at the given index.

getMonthsCount()

public int getMonthsCount()

Optional. Months during the year when maintenance should be performed.

repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of months.

getMonthsList()

public List<Month> getMonthsList()

Optional. Months during the year when maintenance should be performed.

repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<com.google.type.Month>

A list containing the months.

getMonthsValue(int index)

public int getMonthsValue(int index)

Optional. Months during the year when maintenance should be performed.

repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of months at the given index.

getMonthsValueList()

public List<Integer> getMonthsValueList()

Optional. Months during the year when maintenance should be performed.

repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for months.

getPatchingMode()

public MaintenanceWindow.PatchingMode getPatchingMode()

Optional. Cloud CloudExadataInfrastructure node patching method, either "ROLLING" or "NONROLLING". Default value is ROLLING.

.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode patching_mode = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MaintenanceWindow.PatchingMode

The patchingMode.

getPatchingModeValue()

public int getPatchingModeValue()

Optional. Cloud CloudExadataInfrastructure node patching method, either "ROLLING" or "NONROLLING". Default value is ROLLING.

.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode patching_mode = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for patchingMode.

getPreference()

public MaintenanceWindow.MaintenanceWindowPreference getPreference()

Optional. The maintenance window scheduling preference.

.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference preference = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MaintenanceWindow.MaintenanceWindowPreference

The preference.

getPreferenceValue()

public int getPreferenceValue()

Optional. The maintenance window scheduling preference.

.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference preference = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for preference.

getWeeksOfMonth(int index)

public int getWeeksOfMonth(int index)

Optional. Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week.

repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
int

The weeksOfMonth at the given index.

getWeeksOfMonthCount()

public int getWeeksOfMonthCount()

Optional. Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week.

repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of weeksOfMonth.

getWeeksOfMonthList()

public List<Integer> getWeeksOfMonthList()

Optional. Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week.

repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Integer>

A list containing the weeksOfMonth.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MaintenanceWindow other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCustomActionTimeoutMins(int value)

public MaintenanceWindow.Builder setCustomActionTimeoutMins(int value)

Optional. Determines the amount of time the system will wait before the start of each database server patching operation. Custom action timeout is in minutes and valid value is between 15 to 120 (inclusive).

int32 custom_action_timeout_mins = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The customActionTimeoutMins to set.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

setDaysOfWeek(int index, DayOfWeek value)

public MaintenanceWindow.Builder setDaysOfWeek(int index, DayOfWeek value)

Optional. Days during the week when maintenance should be performed.

repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value com.google.type.DayOfWeek

The daysOfWeek to set.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

setDaysOfWeekValue(int index, int value)

public MaintenanceWindow.Builder setDaysOfWeekValue(int index, int value)

Optional. Days during the week when maintenance should be performed.

repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHoursOfDay(int index, int value)

public MaintenanceWindow.Builder setHoursOfDay(int index, int value)

Optional. The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are: 0 - represents time slot 0:00 - 3:59 UTC 4 - represents time slot 4:00 - 7:59 UTC 8 - represents time slot 8:00 - 11:59 UTC 12 - represents time slot 12:00 - 15:59 UTC 16 - represents time slot 16:00 - 19:59 UTC 20 - represents time slot 20:00 - 23:59 UTC

repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value int

The hoursOfDay to set.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

setIsCustomActionTimeoutEnabled(boolean value)

public MaintenanceWindow.Builder setIsCustomActionTimeoutEnabled(boolean value)

Optional. If true, enables the configuration of a custom action timeout (waiting period) between database server patching operations.

bool is_custom_action_timeout_enabled = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The isCustomActionTimeoutEnabled to set.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

setLeadTimeWeek(int value)

public MaintenanceWindow.Builder setLeadTimeWeek(int value)

Optional. Lead time window allows user to set a lead time to prepare for a down time. The lead time is in weeks and valid value is between 1 to 4.

int32 lead_time_week = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The leadTimeWeek to set.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

setMonths(int index, Month value)

public MaintenanceWindow.Builder setMonths(int index, Month value)

Optional. Months during the year when maintenance should be performed.

repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value com.google.type.Month

The months to set.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

setMonthsValue(int index, int value)

public MaintenanceWindow.Builder setMonthsValue(int index, int value)

Optional. Months during the year when maintenance should be performed.

repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

setPatchingMode(MaintenanceWindow.PatchingMode value)

public MaintenanceWindow.Builder setPatchingMode(MaintenanceWindow.PatchingMode value)

Optional. Cloud CloudExadataInfrastructure node patching method, either "ROLLING" or "NONROLLING". Default value is ROLLING.

.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode patching_mode = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value MaintenanceWindow.PatchingMode

The patchingMode to set.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

setPatchingModeValue(int value)

public MaintenanceWindow.Builder setPatchingModeValue(int value)

Optional. Cloud CloudExadataInfrastructure node patching method, either "ROLLING" or "NONROLLING". Default value is ROLLING.

.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode patching_mode = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

setPreference(MaintenanceWindow.MaintenanceWindowPreference value)

public MaintenanceWindow.Builder setPreference(MaintenanceWindow.MaintenanceWindowPreference value)

Optional. The maintenance window scheduling preference.

.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference preference = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value MaintenanceWindow.MaintenanceWindowPreference

The preference to set.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

setPreferenceValue(int value)

public MaintenanceWindow.Builder setPreferenceValue(int value)

Optional. The maintenance window scheduling preference.

.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference preference = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWeeksOfMonth(int index, int value)

public MaintenanceWindow.Builder setWeeksOfMonth(int index, int value)

Optional. Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week.

repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value int

The weeksOfMonth to set.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.