Class ExclusionWindow.DayOfWeekList.Builder (0.40.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.type.DayOfWeek>

The daysOfWeek to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
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
NameDescription
valuecom.google.type.DayOfWeek

The daysOfWeek to add.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
ExclusionWindow.DayOfWeekList.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExclusionWindow.DayOfWeekList.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExclusionWindow.DayOfWeekList.Builder
Overrides

build()

public ExclusionWindow.DayOfWeekList build()
Returns
TypeDescription
ExclusionWindow.DayOfWeekList

buildPartial()

public ExclusionWindow.DayOfWeekList buildPartial()
Returns
TypeDescription
ExclusionWindow.DayOfWeekList

clear()

public ExclusionWindow.DayOfWeekList.Builder clear()
Returns
TypeDescription
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
TypeDescription
ExclusionWindow.DayOfWeekList.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ExclusionWindow.DayOfWeekList.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ExclusionWindow.DayOfWeekList.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExclusionWindow.DayOfWeekList.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ExclusionWindow.DayOfWeekList.Builder
Overrides

clone()

public ExclusionWindow.DayOfWeekList.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for daysOfWeek.

getDefaultInstanceForType()

public ExclusionWindow.DayOfWeekList getDefaultInstanceForType()
Returns
TypeDescription
ExclusionWindow.DayOfWeekList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExclusionWindow.DayOfWeekList other)

public ExclusionWindow.DayOfWeekList.Builder mergeFrom(ExclusionWindow.DayOfWeekList other)
Parameter
NameDescription
otherExclusionWindow.DayOfWeekList
Returns
TypeDescription
ExclusionWindow.DayOfWeekList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExclusionWindow.DayOfWeekList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExclusionWindow.DayOfWeekList.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ExclusionWindow.DayOfWeekList.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ExclusionWindow.DayOfWeekList.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExclusionWindow.DayOfWeekList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valuecom.google.type.DayOfWeek

The daysOfWeek to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
ExclusionWindow.DayOfWeekList.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ExclusionWindow.DayOfWeekList.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExclusionWindow.DayOfWeekList.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ExclusionWindow.DayOfWeekList.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExclusionWindow.DayOfWeekList.Builder
Overrides