Class DailySchedule.Builder (0.18.0)

public static final class DailySchedule.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DailySchedule build()
Returns
TypeDescription
DailySchedule

buildPartial()

public DailySchedule buildPartial()
Returns
TypeDescription
DailySchedule

clear()

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

clearField(Descriptors.FieldDescriptor field)

public DailySchedule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DailySchedule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSnapshotsToKeep()

public DailySchedule.Builder clearSnapshotsToKeep()

The maximum number of Snapshots to keep for the hourly schedule

optional double snapshots_to_keep = 1;

Returns
TypeDescription
DailySchedule.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DailySchedule getDefaultInstanceForType()
Returns
TypeDescription
DailySchedule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHour()

public double getHour()

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

optional double hour = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the snapshotsToKeep field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DailySchedule other)

public DailySchedule.Builder mergeFrom(DailySchedule other)
Parameter
NameDescription
otherDailySchedule
Returns
TypeDescription
DailySchedule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public DailySchedule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuedouble

The hour to set.

Returns
TypeDescription
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
NameDescription
valuedouble

The minute to set.

Returns
TypeDescription
DailySchedule.Builder

This builder for chaining.

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

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

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
NameDescription
valuedouble

The snapshotsToKeep to set.

Returns
TypeDescription
DailySchedule.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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