Class ResourcePolicyWeeklyCycle.Builder (1.39.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek>
Returns
TypeDescription
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
NameDescription
valueResourcePolicyWeeklyCycleDayOfWeek
Returns
TypeDescription
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
NameDescription
builderForValueResourcePolicyWeeklyCycleDayOfWeek.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueResourcePolicyWeeklyCycleDayOfWeek
Returns
TypeDescription
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
NameDescription
indexint
builderForValueResourcePolicyWeeklyCycleDayOfWeek.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ResourcePolicyWeeklyCycleDayOfWeek.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResourcePolicyWeeklyCycle build()
Returns
TypeDescription
ResourcePolicyWeeklyCycle

buildPartial()

public ResourcePolicyWeeklyCycle buildPartial()
Returns
TypeDescription
ResourcePolicyWeeklyCycle

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ResourcePolicyWeeklyCycle.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeekOrBuilder>

getDefaultInstanceForType()

public ResourcePolicyWeeklyCycle getDefaultInstanceForType()
Returns
TypeDescription
ResourcePolicyWeeklyCycle

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

public ResourcePolicyWeeklyCycle.Builder mergeFrom(ResourcePolicyWeeklyCycle other)
Parameter
NameDescription
otherResourcePolicyWeeklyCycle
Returns
TypeDescription
ResourcePolicyWeeklyCycle.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ResourcePolicyWeeklyCycle.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResourcePolicyWeeklyCycle.Builder
Overrides

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

public ResourcePolicyWeeklyCycle.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ResourcePolicyWeeklyCycle.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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