Class HourlySchedule.Builder (0.7.0)

public static final class HourlySchedule.Builder extends GeneratedMessageV3.Builder<HourlySchedule.Builder> implements HourlyScheduleOrBuilder

Make a snapshot every hour e.g. at 04:00, 05:00, 06:00.

Protobuf type google.cloud.netapp.v1.HourlySchedule

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HourlySchedule build()
Returns
TypeDescription
HourlySchedule

buildPartial()

public HourlySchedule buildPartial()
Returns
TypeDescription
HourlySchedule

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMinute()

public HourlySchedule.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
HourlySchedule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSnapshotsToKeep()

public HourlySchedule.Builder clearSnapshotsToKeep()

The maximum number of Snapshots to keep for the hourly schedule

optional double snapshots_to_keep = 1;

Returns
TypeDescription
HourlySchedule.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public HourlySchedule getDefaultInstanceForType()
Returns
TypeDescription
HourlySchedule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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

public HourlySchedule.Builder mergeFrom(HourlySchedule other)
Parameter
NameDescription
otherHourlySchedule
Returns
TypeDescription
HourlySchedule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMinute(double value)

public HourlySchedule.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
HourlySchedule.Builder

This builder for chaining.

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

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

setSnapshotsToKeep(double value)

public HourlySchedule.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
HourlySchedule.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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