Class ResourcePolicySnapshotSchedulePolicySchedule.Builder (1.26.0)

public static final class ResourcePolicySnapshotSchedulePolicySchedule.Builder extends GeneratedMessageV3.Builder<ResourcePolicySnapshotSchedulePolicySchedule.Builder> implements ResourcePolicySnapshotSchedulePolicyScheduleOrBuilder

A schedule for disks where the schedueled operations are performed.

Protobuf type google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicySchedule

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResourcePolicySnapshotSchedulePolicySchedule build()
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySchedule

buildPartial()

public ResourcePolicySnapshotSchedulePolicySchedule buildPartial()
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySchedule

clear()

public ResourcePolicySnapshotSchedulePolicySchedule.Builder clear()
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySchedule.Builder
Overrides

clearDailySchedule()

public ResourcePolicySnapshotSchedulePolicySchedule.Builder clearDailySchedule()

optional .google.cloud.compute.v1.ResourcePolicyDailyCycle daily_schedule = 86159869;

Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySchedule.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearHourlySchedule()

public ResourcePolicySnapshotSchedulePolicySchedule.Builder clearHourlySchedule()

optional .google.cloud.compute.v1.ResourcePolicyHourlyCycle hourly_schedule = 38328485;

Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySchedule.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWeeklySchedule()

public ResourcePolicySnapshotSchedulePolicySchedule.Builder clearWeeklySchedule()

optional .google.cloud.compute.v1.ResourcePolicyWeeklyCycle weekly_schedule = 359548053;

Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySchedule.Builder

clone()

public ResourcePolicySnapshotSchedulePolicySchedule.Builder clone()
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySchedule.Builder
Overrides

getDailySchedule()

public ResourcePolicyDailyCycle getDailySchedule()

optional .google.cloud.compute.v1.ResourcePolicyDailyCycle daily_schedule = 86159869;

Returns
TypeDescription
ResourcePolicyDailyCycle

The dailySchedule.

getDailyScheduleBuilder()

public ResourcePolicyDailyCycle.Builder getDailyScheduleBuilder()

optional .google.cloud.compute.v1.ResourcePolicyDailyCycle daily_schedule = 86159869;

Returns
TypeDescription
ResourcePolicyDailyCycle.Builder

getDailyScheduleOrBuilder()

public ResourcePolicyDailyCycleOrBuilder getDailyScheduleOrBuilder()

optional .google.cloud.compute.v1.ResourcePolicyDailyCycle daily_schedule = 86159869;

Returns
TypeDescription
ResourcePolicyDailyCycleOrBuilder

getDefaultInstanceForType()

public ResourcePolicySnapshotSchedulePolicySchedule getDefaultInstanceForType()
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySchedule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHourlySchedule()

public ResourcePolicyHourlyCycle getHourlySchedule()

optional .google.cloud.compute.v1.ResourcePolicyHourlyCycle hourly_schedule = 38328485;

Returns
TypeDescription
ResourcePolicyHourlyCycle

The hourlySchedule.

getHourlyScheduleBuilder()

public ResourcePolicyHourlyCycle.Builder getHourlyScheduleBuilder()

optional .google.cloud.compute.v1.ResourcePolicyHourlyCycle hourly_schedule = 38328485;

Returns
TypeDescription
ResourcePolicyHourlyCycle.Builder

getHourlyScheduleOrBuilder()

public ResourcePolicyHourlyCycleOrBuilder getHourlyScheduleOrBuilder()

optional .google.cloud.compute.v1.ResourcePolicyHourlyCycle hourly_schedule = 38328485;

Returns
TypeDescription
ResourcePolicyHourlyCycleOrBuilder

getWeeklySchedule()

public ResourcePolicyWeeklyCycle getWeeklySchedule()

optional .google.cloud.compute.v1.ResourcePolicyWeeklyCycle weekly_schedule = 359548053;

Returns
TypeDescription
ResourcePolicyWeeklyCycle

The weeklySchedule.

getWeeklyScheduleBuilder()

public ResourcePolicyWeeklyCycle.Builder getWeeklyScheduleBuilder()

optional .google.cloud.compute.v1.ResourcePolicyWeeklyCycle weekly_schedule = 359548053;

Returns
TypeDescription
ResourcePolicyWeeklyCycle.Builder

getWeeklyScheduleOrBuilder()

public ResourcePolicyWeeklyCycleOrBuilder getWeeklyScheduleOrBuilder()

optional .google.cloud.compute.v1.ResourcePolicyWeeklyCycle weekly_schedule = 359548053;

Returns
TypeDescription
ResourcePolicyWeeklyCycleOrBuilder

hasDailySchedule()

public boolean hasDailySchedule()

optional .google.cloud.compute.v1.ResourcePolicyDailyCycle daily_schedule = 86159869;

Returns
TypeDescription
boolean

Whether the dailySchedule field is set.

hasHourlySchedule()

public boolean hasHourlySchedule()

optional .google.cloud.compute.v1.ResourcePolicyHourlyCycle hourly_schedule = 38328485;

Returns
TypeDescription
boolean

Whether the hourlySchedule field is set.

hasWeeklySchedule()

public boolean hasWeeklySchedule()

optional .google.cloud.compute.v1.ResourcePolicyWeeklyCycle weekly_schedule = 359548053;

Returns
TypeDescription
boolean

Whether the weeklySchedule field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDailySchedule(ResourcePolicyDailyCycle value)

public ResourcePolicySnapshotSchedulePolicySchedule.Builder mergeDailySchedule(ResourcePolicyDailyCycle value)

optional .google.cloud.compute.v1.ResourcePolicyDailyCycle daily_schedule = 86159869;

Parameter
NameDescription
valueResourcePolicyDailyCycle
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySchedule.Builder

mergeFrom(ResourcePolicySnapshotSchedulePolicySchedule other)

public ResourcePolicySnapshotSchedulePolicySchedule.Builder mergeFrom(ResourcePolicySnapshotSchedulePolicySchedule other)
Parameter
NameDescription
otherResourcePolicySnapshotSchedulePolicySchedule
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySchedule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHourlySchedule(ResourcePolicyHourlyCycle value)

public ResourcePolicySnapshotSchedulePolicySchedule.Builder mergeHourlySchedule(ResourcePolicyHourlyCycle value)

optional .google.cloud.compute.v1.ResourcePolicyHourlyCycle hourly_schedule = 38328485;

Parameter
NameDescription
valueResourcePolicyHourlyCycle
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySchedule.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourcePolicySnapshotSchedulePolicySchedule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySchedule.Builder
Overrides

mergeWeeklySchedule(ResourcePolicyWeeklyCycle value)

public ResourcePolicySnapshotSchedulePolicySchedule.Builder mergeWeeklySchedule(ResourcePolicyWeeklyCycle value)

optional .google.cloud.compute.v1.ResourcePolicyWeeklyCycle weekly_schedule = 359548053;

Parameter
NameDescription
valueResourcePolicyWeeklyCycle
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySchedule.Builder

setDailySchedule(ResourcePolicyDailyCycle value)

public ResourcePolicySnapshotSchedulePolicySchedule.Builder setDailySchedule(ResourcePolicyDailyCycle value)

optional .google.cloud.compute.v1.ResourcePolicyDailyCycle daily_schedule = 86159869;

Parameter
NameDescription
valueResourcePolicyDailyCycle
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySchedule.Builder

setDailySchedule(ResourcePolicyDailyCycle.Builder builderForValue)

public ResourcePolicySnapshotSchedulePolicySchedule.Builder setDailySchedule(ResourcePolicyDailyCycle.Builder builderForValue)

optional .google.cloud.compute.v1.ResourcePolicyDailyCycle daily_schedule = 86159869;

Parameter
NameDescription
builderForValueResourcePolicyDailyCycle.Builder
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySchedule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHourlySchedule(ResourcePolicyHourlyCycle value)

public ResourcePolicySnapshotSchedulePolicySchedule.Builder setHourlySchedule(ResourcePolicyHourlyCycle value)

optional .google.cloud.compute.v1.ResourcePolicyHourlyCycle hourly_schedule = 38328485;

Parameter
NameDescription
valueResourcePolicyHourlyCycle
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySchedule.Builder

setHourlySchedule(ResourcePolicyHourlyCycle.Builder builderForValue)

public ResourcePolicySnapshotSchedulePolicySchedule.Builder setHourlySchedule(ResourcePolicyHourlyCycle.Builder builderForValue)

optional .google.cloud.compute.v1.ResourcePolicyHourlyCycle hourly_schedule = 38328485;

Parameter
NameDescription
builderForValueResourcePolicyHourlyCycle.Builder
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySchedule.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWeeklySchedule(ResourcePolicyWeeklyCycle value)

public ResourcePolicySnapshotSchedulePolicySchedule.Builder setWeeklySchedule(ResourcePolicyWeeklyCycle value)

optional .google.cloud.compute.v1.ResourcePolicyWeeklyCycle weekly_schedule = 359548053;

Parameter
NameDescription
valueResourcePolicyWeeklyCycle
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySchedule.Builder

setWeeklySchedule(ResourcePolicyWeeklyCycle.Builder builderForValue)

public ResourcePolicySnapshotSchedulePolicySchedule.Builder setWeeklySchedule(ResourcePolicyWeeklyCycle.Builder builderForValue)

optional .google.cloud.compute.v1.ResourcePolicyWeeklyCycle weekly_schedule = 359548053;

Parameter
NameDescription
builderForValueResourcePolicyWeeklyCycle.Builder
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySchedule.Builder