public static final class WeeklyWindow.Builder extends GeneratedMessage.Builder<WeeklyWindow.Builder> implements WeeklyWindowOrBuilderWeekly windows. For example, blocking actions every Saturday and Sunday. Another example would be blocking actions every weekday from 5pm to midnight.
Protobuf type google.cloud.deploy.v1.WeeklyWindow
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > WeeklyWindow.BuilderImplements
WeeklyWindowOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDaysOfWeek(Iterable<? extends DayOfWeek> values)
public WeeklyWindow.Builder addAllDaysOfWeek(Iterable<? extends DayOfWeek> values)Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.type.DayOfWeek>The daysOfWeek to add. |
| Returns | |
|---|---|
| Type | Description |
WeeklyWindow.Builder |
This builder for chaining. |
addAllDaysOfWeekValue(Iterable<Integer> values)
public WeeklyWindow.Builder addAllDaysOfWeekValue(Iterable<Integer> values)Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.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 |
WeeklyWindow.Builder |
This builder for chaining. |
addDaysOfWeek(DayOfWeek value)
public WeeklyWindow.Builder addDaysOfWeek(DayOfWeek value)Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.DayOfWeekThe daysOfWeek to add. |
| Returns | |
|---|---|
| Type | Description |
WeeklyWindow.Builder |
This builder for chaining. |
addDaysOfWeekValue(int value)
public WeeklyWindow.Builder addDaysOfWeekValue(int value)Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for daysOfWeek to add. |
| Returns | |
|---|---|
| Type | Description |
WeeklyWindow.Builder |
This builder for chaining. |
build()
public WeeklyWindow build()| Returns | |
|---|---|
| Type | Description |
WeeklyWindow |
|
buildPartial()
public WeeklyWindow buildPartial()| Returns | |
|---|---|
| Type | Description |
WeeklyWindow |
|
clear()
public WeeklyWindow.Builder clear()| Returns | |
|---|---|
| Type | Description |
WeeklyWindow.Builder |
|
clearDaysOfWeek()
public WeeklyWindow.Builder clearDaysOfWeek()Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
WeeklyWindow.Builder |
This builder for chaining. |
clearEndTime()
public WeeklyWindow.Builder clearEndTime()Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
WeeklyWindow.Builder |
|
clearStartTime()
public WeeklyWindow.Builder clearStartTime()Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
WeeklyWindow.Builder |
|
getDaysOfWeek(int index)
public DayOfWeek getDaysOfWeek(int index)Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe 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 of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of daysOfWeek. |
getDaysOfWeekList()
public List<DayOfWeek> getDaysOfWeekList()Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.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 of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe 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 of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for daysOfWeek. |
getDefaultInstanceForType()
public WeeklyWindow getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
WeeklyWindow |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEndTime()
public TimeOfDay getEndTime()Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.TimeOfDay |
The endTime. |
getEndTimeBuilder()
public TimeOfDay.Builder getEndTimeBuilder()Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.TimeOfDay.Builder |
|
getEndTimeOrBuilder()
public TimeOfDayOrBuilder getEndTimeOrBuilder()Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.TimeOfDayOrBuilder |
|
getStartTime()
public TimeOfDay getStartTime()Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.TimeOfDay |
The startTime. |
getStartTimeBuilder()
public TimeOfDay.Builder getStartTimeBuilder()Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.TimeOfDay.Builder |
|
getStartTimeOrBuilder()
public TimeOfDayOrBuilder getStartTimeOrBuilder()Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.TimeOfDayOrBuilder |
|
hasEndTime()
public boolean hasEndTime()Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the endTime field is set. |
hasStartTime()
public boolean hasStartTime()Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
| 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(TimeOfDay value)
public WeeklyWindow.Builder mergeEndTime(TimeOfDay value)Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.TimeOfDay |
| Returns | |
|---|---|
| Type | Description |
WeeklyWindow.Builder |
|
mergeFrom(WeeklyWindow other)
public WeeklyWindow.Builder mergeFrom(WeeklyWindow other)| Parameter | |
|---|---|
| Name | Description |
other |
WeeklyWindow |
| Returns | |
|---|---|
| Type | Description |
WeeklyWindow.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WeeklyWindow.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
WeeklyWindow.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public WeeklyWindow.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
WeeklyWindow.Builder |
|
mergeStartTime(TimeOfDay value)
public WeeklyWindow.Builder mergeStartTime(TimeOfDay value)Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.TimeOfDay |
| Returns | |
|---|---|
| Type | Description |
WeeklyWindow.Builder |
|
setDaysOfWeek(int index, DayOfWeek value)
public WeeklyWindow.Builder setDaysOfWeek(int index, DayOfWeek value)Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
com.google.type.DayOfWeekThe daysOfWeek to set. |
| Returns | |
|---|---|
| Type | Description |
WeeklyWindow.Builder |
This builder for chaining. |
setDaysOfWeekValue(int index, int value)
public WeeklyWindow.Builder setDaysOfWeekValue(int index, int value)Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
intThe enum numeric value on the wire for daysOfWeek to set. |
| Returns | |
|---|---|
| Type | Description |
WeeklyWindow.Builder |
This builder for chaining. |
setEndTime(TimeOfDay value)
public WeeklyWindow.Builder setEndTime(TimeOfDay value)Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.TimeOfDay |
| Returns | |
|---|---|
| Type | Description |
WeeklyWindow.Builder |
|
setEndTime(TimeOfDay.Builder builderForValue)
public WeeklyWindow.Builder setEndTime(TimeOfDay.Builder builderForValue)Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.TimeOfDay.Builder |
| Returns | |
|---|---|
| Type | Description |
WeeklyWindow.Builder |
|
setStartTime(TimeOfDay value)
public WeeklyWindow.Builder setStartTime(TimeOfDay value)Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.TimeOfDay |
| Returns | |
|---|---|
| Type | Description |
WeeklyWindow.Builder |
|
setStartTime(TimeOfDay.Builder builderForValue)
public WeeklyWindow.Builder setStartTime(TimeOfDay.Builder builderForValue)Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.TimeOfDay.Builder |
| Returns | |
|---|---|
| Type | Description |
WeeklyWindow.Builder |
|