Class MaintenanceWindow.Builder (1.22.0)

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

The configuration settings for Cloud Composer maintenance window. The following example:

<code><code> { "startTime":"2019-08-01T01:00:00Z" "endTime":"2019-08-01T07:00:00Z" "recurrence":"FREQ=WEEKLY;BYDAY=TU,WE" } </code></code>

would define a maintenance window between 01 and 07 hours UTC during each Tuesday and Wednesday.

Protobuf type google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow

Static Methods

getDescriptor()

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

Methods

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

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

clearEndTime()

public MaintenanceWindow.Builder clearEndTime()

Required. Maintenance window end time. It is used only to calculate the duration of the maintenance window. The value for end_time must be in the future, relative to start_time.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MaintenanceWindow.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRecurrence()

public MaintenanceWindow.Builder clearRecurrence()

Required. Maintenance window recurrence. Format is a subset of RFC-5545 RRULE. The only allowed values for FREQ field are FREQ=DAILY and FREQ=WEEKLY;BYDAY=... Example values: FREQ=WEEKLY;BYDAY=TU,WE, FREQ=DAILY.

string recurrence = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

clearStartTime()

public MaintenanceWindow.Builder clearStartTime()

Required. Start time of the first recurrence of the maintenance window.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MaintenanceWindow.Builder

clone()

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

getDefaultInstanceForType()

public MaintenanceWindow getDefaultInstanceForType()
Returns
Type Description
MaintenanceWindow

getDescriptorForType()

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

getEndTime()

public Timestamp getEndTime()

Required. Maintenance window end time. It is used only to calculate the duration of the maintenance window. The value for end_time must be in the future, relative to start_time.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Required. Maintenance window end time. It is used only to calculate the duration of the maintenance window. The value for end_time must be in the future, relative to start_time.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Required. Maintenance window end time. It is used only to calculate the duration of the maintenance window. The value for end_time must be in the future, relative to start_time.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

getRecurrence()

public String getRecurrence()

Required. Maintenance window recurrence. Format is a subset of RFC-5545 RRULE. The only allowed values for FREQ field are FREQ=DAILY and FREQ=WEEKLY;BYDAY=... Example values: FREQ=WEEKLY;BYDAY=TU,WE, FREQ=DAILY.

string recurrence = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The recurrence.

getRecurrenceBytes()

public ByteString getRecurrenceBytes()

Required. Maintenance window recurrence. Format is a subset of RFC-5545 RRULE. The only allowed values for FREQ field are FREQ=DAILY and FREQ=WEEKLY;BYDAY=... Example values: FREQ=WEEKLY;BYDAY=TU,WE, FREQ=DAILY.

string recurrence = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for recurrence.

getStartTime()

public Timestamp getStartTime()

Required. Start time of the first recurrence of the maintenance window.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Required. Start time of the first recurrence of the maintenance window.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Required. Start time of the first recurrence of the maintenance window.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

Required. Maintenance window end time. It is used only to calculate the duration of the maintenance window. The value for end_time must be in the future, relative to start_time.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Required. Start time of the first recurrence of the maintenance window.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public MaintenanceWindow.Builder mergeEndTime(Timestamp value)

Required. Maintenance window end time. It is used only to calculate the duration of the maintenance window. The value for end_time must be in the future, relative to start_time.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
MaintenanceWindow.Builder

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

mergeStartTime(Timestamp value)

public MaintenanceWindow.Builder mergeStartTime(Timestamp value)

Required. Start time of the first recurrence of the maintenance window.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
MaintenanceWindow.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEndTime(Timestamp value)

public MaintenanceWindow.Builder setEndTime(Timestamp value)

Required. Maintenance window end time. It is used only to calculate the duration of the maintenance window. The value for end_time must be in the future, relative to start_time.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
MaintenanceWindow.Builder

setEndTime(Timestamp.Builder builderForValue)

public MaintenanceWindow.Builder setEndTime(Timestamp.Builder builderForValue)

Required. Maintenance window end time. It is used only to calculate the duration of the maintenance window. The value for end_time must be in the future, relative to start_time.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MaintenanceWindow.Builder

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

setRecurrence(String value)

public MaintenanceWindow.Builder setRecurrence(String value)

Required. Maintenance window recurrence. Format is a subset of RFC-5545 RRULE. The only allowed values for FREQ field are FREQ=DAILY and FREQ=WEEKLY;BYDAY=... Example values: FREQ=WEEKLY;BYDAY=TU,WE, FREQ=DAILY.

string recurrence = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The recurrence to set.

Returns
Type Description
MaintenanceWindow.Builder

This builder for chaining.

setRecurrenceBytes(ByteString value)

public MaintenanceWindow.Builder setRecurrenceBytes(ByteString value)

Required. Maintenance window recurrence. Format is a subset of RFC-5545 RRULE. The only allowed values for FREQ field are FREQ=DAILY and FREQ=WEEKLY;BYDAY=... Example values: FREQ=WEEKLY;BYDAY=TU,WE, FREQ=DAILY.

string recurrence = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for recurrence 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

setStartTime(Timestamp value)

public MaintenanceWindow.Builder setStartTime(Timestamp value)

Required. Start time of the first recurrence of the maintenance window.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
MaintenanceWindow.Builder

setStartTime(Timestamp.Builder builderForValue)

public MaintenanceWindow.Builder setStartTime(Timestamp.Builder builderForValue)

Required. Start time of the first recurrence of the maintenance window.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MaintenanceWindow.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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