public static final class MaintenanceWindow.Builder extends GeneratedMessage.Builder<MaintenanceWindow.Builder> implements MaintenanceWindowOrBuilderThe 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.v1.MaintenanceWindow
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > MaintenanceWindow.BuilderImplements
MaintenanceWindowOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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 |
|
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 |
|
getDefaultInstanceForType()
public MaintenanceWindow getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public MaintenanceWindow.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
|
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 |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for recurrence to set. |
| Returns | |
|---|---|
| Type | Description |
MaintenanceWindow.Builder |
This builder for chaining. |
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 |
|