Class WeeklyWindow.Builder (1.50.0)

public static final class WeeklyWindow.Builder extends GeneratedMessageV3.Builder<WeeklyWindow.Builder> implements WeeklyWindowOrBuilder

Weekly 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

Static 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.DayOfWeek

The 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 int

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

Returns
Type Description
WeeklyWindow.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
Overrides

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

clone()

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

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 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 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 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 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
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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 int

The index to set the value at.

value com.google.type.DayOfWeek

The 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 int

The index to set the value at.

value int

The 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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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