Class MonthlySchedule (0.12.0)

public final class MonthlySchedule extends GeneratedMessageV3 implements MonthlyScheduleOrBuilder

Make a snapshot once a month e.g. at 2nd 04:00, 7th 05:20, 24th 23:50

Protobuf type google.cloud.netapp.v1.MonthlySchedule

Static Fields

DAYS_OF_MONTH_FIELD_NUMBER

public static final int DAYS_OF_MONTH_FIELD_NUMBER
Field Value
TypeDescription
int

HOUR_FIELD_NUMBER

public static final int HOUR_FIELD_NUMBER
Field Value
TypeDescription
int

MINUTE_FIELD_NUMBER

public static final int MINUTE_FIELD_NUMBER
Field Value
TypeDescription
int

SNAPSHOTS_TO_KEEP_FIELD_NUMBER

public static final int SNAPSHOTS_TO_KEEP_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MonthlySchedule getDefaultInstance()
Returns
TypeDescription
MonthlySchedule

getDescriptor()

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

newBuilder()

public static MonthlySchedule.Builder newBuilder()
Returns
TypeDescription
MonthlySchedule.Builder

newBuilder(MonthlySchedule prototype)

public static MonthlySchedule.Builder newBuilder(MonthlySchedule prototype)
Parameter
NameDescription
prototypeMonthlySchedule
Returns
TypeDescription
MonthlySchedule.Builder

parseDelimitedFrom(InputStream input)

public static MonthlySchedule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MonthlySchedule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MonthlySchedule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MonthlySchedule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MonthlySchedule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MonthlySchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MonthlySchedule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MonthlySchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MonthlySchedule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MonthlySchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MonthlySchedule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MonthlySchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MonthlySchedule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MonthlySchedule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MonthlySchedule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MonthlySchedule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MonthlySchedule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MonthlySchedule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MonthlySchedule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MonthlySchedule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MonthlySchedule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MonthlySchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MonthlySchedule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MonthlySchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MonthlySchedule> parser()
Returns
TypeDescription
Parser<MonthlySchedule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDaysOfMonth()

public String getDaysOfMonth()

Set the day or days of the month to make a snapshot (1-31). Accepts a comma separated number of days. Defaults to '1'.

optional string days_of_month = 4;

Returns
TypeDescription
String

The daysOfMonth.

getDaysOfMonthBytes()

public ByteString getDaysOfMonthBytes()

Set the day or days of the month to make a snapshot (1-31). Accepts a comma separated number of days. Defaults to '1'.

optional string days_of_month = 4;

Returns
TypeDescription
ByteString

The bytes for daysOfMonth.

getDefaultInstanceForType()

public MonthlySchedule getDefaultInstanceForType()
Returns
TypeDescription
MonthlySchedule

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.

getParserForType()

public Parser<MonthlySchedule> getParserForType()
Returns
TypeDescription
Parser<MonthlySchedule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hasDaysOfMonth()

public boolean hasDaysOfMonth()

Set the day or days of the month to make a snapshot (1-31). Accepts a comma separated number of days. Defaults to '1'.

optional string days_of_month = 4;

Returns
TypeDescription
boolean

Whether the daysOfMonth field is set.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MonthlySchedule.Builder newBuilderForType()
Returns
TypeDescription
MonthlySchedule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MonthlySchedule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MonthlySchedule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MonthlySchedule.Builder toBuilder()
Returns
TypeDescription
MonthlySchedule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException