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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
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.
|
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.
|
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.
|
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.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ExclusionWindow.DayOfWeekList.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ExclusionWindow.DayOfWeekList build()
buildPartial()
public ExclusionWindow.DayOfWeekList buildPartial()
clear()
public ExclusionWindow.DayOfWeekList.Builder clear()
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];
clearField(Descriptors.FieldDescriptor field)
public ExclusionWindow.DayOfWeekList.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ExclusionWindow.DayOfWeekList.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public ExclusionWindow.DayOfWeekList.Builder clone()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ExclusionWindow.DayOfWeekList other)
public ExclusionWindow.DayOfWeekList.Builder mergeFrom(ExclusionWindow.DayOfWeekList other)
public ExclusionWindow.DayOfWeekList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ExclusionWindow.DayOfWeekList.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ExclusionWindow.DayOfWeekList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public ExclusionWindow.DayOfWeekList.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ExclusionWindow.DayOfWeekList.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ExclusionWindow.DayOfWeekList.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides