Class ExclusionWindow.DayOfWeekList.Builder (0.41.0)

public static final class ExclusionWindow.DayOfWeekList.Builder extends GeneratedMessageV3.Builder<ExclusionWindow.DayOfWeekList.Builder> implements ExclusionWindow.DayOfWeekListOrBuilder

Holds repeated DaysOfWeek values as a container.

Protobuf type google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList

Static Methods

getDescriptor()

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

Methods

addAllDaysOfWeek(Iterable<? extends DayOfWeek> values)

public ExclusionWindow.DayOfWeekList.Builder addAllDaysOfWeek(Iterable<? extends DayOfWeek> values)

Optional. A list of days of week.

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
ExclusionWindow.DayOfWeekList.Builder

This builder for chaining.

addAllDaysOfWeekValue(Iterable<Integer> values)

public ExclusionWindow.DayOfWeekList.Builder addAllDaysOfWeekValue(Iterable<Integer> values)

Optional. A list of days of week.

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
ExclusionWindow.DayOfWeekList.Builder

This builder for chaining.

addDaysOfWeek(DayOfWeek value)

public ExclusionWindow.DayOfWeekList.Builder addDaysOfWeek(DayOfWeek value)

Optional. A list of days of week.

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
ExclusionWindow.DayOfWeekList.Builder

This builder for chaining.

addDaysOfWeekValue(int value)

public ExclusionWindow.DayOfWeekList.Builder addDaysOfWeekValue(int value)

Optional. A list of days of week.

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
ExclusionWindow.DayOfWeekList.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExclusionWindow.DayOfWeekList build()
Returns
Type Description
ExclusionWindow.DayOfWeekList

buildPartial()

public ExclusionWindow.DayOfWeekList buildPartial()
Returns
Type Description
ExclusionWindow.DayOfWeekList

clear()

public ExclusionWindow.DayOfWeekList.Builder clear()
Returns
Type Description
ExclusionWindow.DayOfWeekList.Builder
Overrides

clearDaysOfWeek()

public ExclusionWindow.DayOfWeekList.Builder clearDaysOfWeek()

Optional. A list of days of week.

repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExclusionWindow.DayOfWeekList.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ExclusionWindow.DayOfWeekList.Builder clone()
Returns
Type Description
ExclusionWindow.DayOfWeekList.Builder
Overrides

getDaysOfWeek(int index)

public DayOfWeek getDaysOfWeek(int index)

Optional. A list of days of week.

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. A list of days of week.

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. A list of days of week.

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. A list of days of week.

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. A list of days of week.

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 ExclusionWindow.DayOfWeekList getDefaultInstanceForType()
Returns
Type Description
ExclusionWindow.DayOfWeekList

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExclusionWindow.DayOfWeekList other)

public ExclusionWindow.DayOfWeekList.Builder mergeFrom(ExclusionWindow.DayOfWeekList other)
Parameter
Name Description
other ExclusionWindow.DayOfWeekList
Returns
Type Description
ExclusionWindow.DayOfWeekList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExclusionWindow.DayOfWeekList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExclusionWindow.DayOfWeekList.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDaysOfWeek(int index, DayOfWeek value)

public ExclusionWindow.DayOfWeekList.Builder setDaysOfWeek(int index, DayOfWeek value)

Optional. A list of days of week.

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
ExclusionWindow.DayOfWeekList.Builder

This builder for chaining.

setDaysOfWeekValue(int index, int value)

public ExclusionWindow.DayOfWeekList.Builder setDaysOfWeekValue(int index, int value)

Optional. A list of days of week.

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
ExclusionWindow.DayOfWeekList.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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