Class ResourcePolicyWeeklyCycle.Builder (1.63.0)

public static final class ResourcePolicyWeeklyCycle.Builder extends GeneratedMessageV3.Builder<ResourcePolicyWeeklyCycle.Builder> implements ResourcePolicyWeeklyCycleOrBuilder

Time window specified for weekly operations.

Protobuf type google.cloud.compute.v1.ResourcePolicyWeeklyCycle

Static Methods

getDescriptor()

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

Methods

addAllDayOfWeeks(Iterable<? extends ResourcePolicyWeeklyCycleDayOfWeek> values)

public ResourcePolicyWeeklyCycle.Builder addAllDayOfWeeks(Iterable<? extends ResourcePolicyWeeklyCycleDayOfWeek> values)

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek>
Returns
Type Description
ResourcePolicyWeeklyCycle.Builder

addDayOfWeeks(ResourcePolicyWeeklyCycleDayOfWeek value)

public ResourcePolicyWeeklyCycle.Builder addDayOfWeeks(ResourcePolicyWeeklyCycleDayOfWeek value)

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Parameter
Name Description
value ResourcePolicyWeeklyCycleDayOfWeek
Returns
Type Description
ResourcePolicyWeeklyCycle.Builder

addDayOfWeeks(ResourcePolicyWeeklyCycleDayOfWeek.Builder builderForValue)

public ResourcePolicyWeeklyCycle.Builder addDayOfWeeks(ResourcePolicyWeeklyCycleDayOfWeek.Builder builderForValue)

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Parameter
Name Description
builderForValue ResourcePolicyWeeklyCycleDayOfWeek.Builder
Returns
Type Description
ResourcePolicyWeeklyCycle.Builder

addDayOfWeeks(int index, ResourcePolicyWeeklyCycleDayOfWeek value)

public ResourcePolicyWeeklyCycle.Builder addDayOfWeeks(int index, ResourcePolicyWeeklyCycleDayOfWeek value)

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Parameters
Name Description
index int
value ResourcePolicyWeeklyCycleDayOfWeek
Returns
Type Description
ResourcePolicyWeeklyCycle.Builder

addDayOfWeeks(int index, ResourcePolicyWeeklyCycleDayOfWeek.Builder builderForValue)

public ResourcePolicyWeeklyCycle.Builder addDayOfWeeks(int index, ResourcePolicyWeeklyCycleDayOfWeek.Builder builderForValue)

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Parameters
Name Description
index int
builderForValue ResourcePolicyWeeklyCycleDayOfWeek.Builder
Returns
Type Description
ResourcePolicyWeeklyCycle.Builder

addDayOfWeeksBuilder()

public ResourcePolicyWeeklyCycleDayOfWeek.Builder addDayOfWeeksBuilder()

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Returns
Type Description
ResourcePolicyWeeklyCycleDayOfWeek.Builder

addDayOfWeeksBuilder(int index)

public ResourcePolicyWeeklyCycleDayOfWeek.Builder addDayOfWeeksBuilder(int index)

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Parameter
Name Description
index int
Returns
Type Description
ResourcePolicyWeeklyCycleDayOfWeek.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResourcePolicyWeeklyCycle build()
Returns
Type Description
ResourcePolicyWeeklyCycle

buildPartial()

public ResourcePolicyWeeklyCycle buildPartial()
Returns
Type Description
ResourcePolicyWeeklyCycle

clear()

public ResourcePolicyWeeklyCycle.Builder clear()
Returns
Type Description
ResourcePolicyWeeklyCycle.Builder
Overrides

clearDayOfWeeks()

public ResourcePolicyWeeklyCycle.Builder clearDayOfWeeks()

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Returns
Type Description
ResourcePolicyWeeklyCycle.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDayOfWeeks(int index)

public ResourcePolicyWeeklyCycleDayOfWeek getDayOfWeeks(int index)

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Parameter
Name Description
index int
Returns
Type Description
ResourcePolicyWeeklyCycleDayOfWeek

getDayOfWeeksBuilder(int index)

public ResourcePolicyWeeklyCycleDayOfWeek.Builder getDayOfWeeksBuilder(int index)

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Parameter
Name Description
index int
Returns
Type Description
ResourcePolicyWeeklyCycleDayOfWeek.Builder

getDayOfWeeksBuilderList()

public List<ResourcePolicyWeeklyCycleDayOfWeek.Builder> getDayOfWeeksBuilderList()

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Returns
Type Description
List<Builder>

getDayOfWeeksCount()

public int getDayOfWeeksCount()

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Returns
Type Description
int

getDayOfWeeksList()

public List<ResourcePolicyWeeklyCycleDayOfWeek> getDayOfWeeksList()

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Returns
Type Description
List<ResourcePolicyWeeklyCycleDayOfWeek>

getDayOfWeeksOrBuilder(int index)

public ResourcePolicyWeeklyCycleDayOfWeekOrBuilder getDayOfWeeksOrBuilder(int index)

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Parameter
Name Description
index int
Returns
Type Description
ResourcePolicyWeeklyCycleDayOfWeekOrBuilder

getDayOfWeeksOrBuilderList()

public List<? extends ResourcePolicyWeeklyCycleDayOfWeekOrBuilder> getDayOfWeeksOrBuilderList()

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeekOrBuilder>

getDefaultInstanceForType()

public ResourcePolicyWeeklyCycle getDefaultInstanceForType()
Returns
Type Description
ResourcePolicyWeeklyCycle

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(ResourcePolicyWeeklyCycle other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDayOfWeeks(int index)

public ResourcePolicyWeeklyCycle.Builder removeDayOfWeeks(int index)

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Parameter
Name Description
index int
Returns
Type Description
ResourcePolicyWeeklyCycle.Builder

setDayOfWeeks(int index, ResourcePolicyWeeklyCycleDayOfWeek value)

public ResourcePolicyWeeklyCycle.Builder setDayOfWeeks(int index, ResourcePolicyWeeklyCycleDayOfWeek value)

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Parameters
Name Description
index int
value ResourcePolicyWeeklyCycleDayOfWeek
Returns
Type Description
ResourcePolicyWeeklyCycle.Builder

setDayOfWeeks(int index, ResourcePolicyWeeklyCycleDayOfWeek.Builder builderForValue)

public ResourcePolicyWeeklyCycle.Builder setDayOfWeeks(int index, ResourcePolicyWeeklyCycleDayOfWeek.Builder builderForValue)

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Parameters
Name Description
index int
builderForValue ResourcePolicyWeeklyCycleDayOfWeek.Builder
Returns
Type Description
ResourcePolicyWeeklyCycle.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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