Class DailySchedule.Builder (0.62.0)

public static final class DailySchedule.Builder extends GeneratedMessage.Builder<DailySchedule.Builder> implements DailyScheduleOrBuilder

Make a snapshot every day e.g. at 04:00, 05:20, 23:50

Protobuf type google.cloud.netapp.v1.DailySchedule

Static Methods

getDescriptor()

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

Methods

build()

public DailySchedule build()
Returns
Type Description
DailySchedule

buildPartial()

public DailySchedule buildPartial()
Returns
Type Description
DailySchedule

clear()

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

clearHour()

public DailySchedule.Builder clearHour()

Set the hour to start the snapshot (0-23), defaults to midnight (0).

optional double hour = 3;

Returns
Type Description
DailySchedule.Builder

This builder for chaining.

clearMinute()

public DailySchedule.Builder clearMinute()

Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).

optional double minute = 2;

Returns
Type Description
DailySchedule.Builder

This builder for chaining.

clearSnapshotsToKeep()

public DailySchedule.Builder clearSnapshotsToKeep()

The maximum number of Snapshots to keep for the hourly schedule

optional double snapshots_to_keep = 1;

Returns
Type Description
DailySchedule.Builder

This builder for chaining.

getDefaultInstanceForType()

public DailySchedule getDefaultInstanceForType()
Returns
Type Description
DailySchedule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHour()

public double getHour()

Set the hour to start the snapshot (0-23), defaults to midnight (0).

optional double hour = 3;

Returns
Type Description
double

The hour.

getMinute()

public double getMinute()

Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).

optional double minute = 2;

Returns
Type Description
double

The minute.

getSnapshotsToKeep()

public double getSnapshotsToKeep()

The maximum number of Snapshots to keep for the hourly schedule

optional double snapshots_to_keep = 1;

Returns
Type Description
double

The snapshotsToKeep.

hasHour()

public boolean hasHour()

Set the hour to start the snapshot (0-23), defaults to midnight (0).

optional double hour = 3;

Returns
Type Description
boolean

Whether the hour field is set.

hasMinute()

public boolean hasMinute()

Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).

optional double minute = 2;

Returns
Type Description
boolean

Whether the minute field is set.

hasSnapshotsToKeep()

public boolean hasSnapshotsToKeep()

The maximum number of Snapshots to keep for the hourly schedule

optional double snapshots_to_keep = 1;

Returns
Type Description
boolean

Whether the snapshotsToKeep field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DailySchedule other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setHour(double value)

public DailySchedule.Builder setHour(double value)

Set the hour to start the snapshot (0-23), defaults to midnight (0).

optional double hour = 3;

Parameter
Name Description
value double

The hour to set.

Returns
Type Description
DailySchedule.Builder

This builder for chaining.

setMinute(double value)

public DailySchedule.Builder setMinute(double value)

Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).

optional double minute = 2;

Parameter
Name Description
value double

The minute to set.

Returns
Type Description
DailySchedule.Builder

This builder for chaining.

setSnapshotsToKeep(double value)

public DailySchedule.Builder setSnapshotsToKeep(double value)

The maximum number of Snapshots to keep for the hourly schedule

optional double snapshots_to_keep = 1;

Parameter
Name Description
value double

The snapshotsToKeep to set.

Returns
Type Description
DailySchedule.Builder

This builder for chaining.