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.v1.MaintenanceWindow
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MaintenanceWindow.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public MaintenanceWindow build()
Returns
buildPartial()
public MaintenanceWindow buildPartial()
Returns
clear()
public MaintenanceWindow.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public MaintenanceWindow.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public MaintenanceWindow.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
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
clone()
public MaintenanceWindow.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public MaintenanceWindow getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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
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
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(MaintenanceWindow other)
public MaintenanceWindow.Builder mergeFrom(MaintenanceWindow other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MaintenanceWindow.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public MaintenanceWindow.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MaintenanceWindow.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public MaintenanceWindow.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MaintenanceWindow.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
setUnknownFields(UnknownFieldSet unknownFields)
public final MaintenanceWindow.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides