Class SnapshotPolicy (0.7.0)

public final class SnapshotPolicy extends GeneratedMessageV3 implements SnapshotPolicyOrBuilder

Snapshot Policy for a volume.

Protobuf type google.cloud.netapp.v1.SnapshotPolicy

Static Fields

DAILY_SCHEDULE_FIELD_NUMBER

public static final int DAILY_SCHEDULE_FIELD_NUMBER
Field Value
TypeDescription
int

ENABLED_FIELD_NUMBER

public static final int ENABLED_FIELD_NUMBER
Field Value
TypeDescription
int

HOURLY_SCHEDULE_FIELD_NUMBER

public static final int HOURLY_SCHEDULE_FIELD_NUMBER
Field Value
TypeDescription
int

MONTHLY_SCHEDULE_FIELD_NUMBER

public static final int MONTHLY_SCHEDULE_FIELD_NUMBER
Field Value
TypeDescription
int

WEEKLY_SCHEDULE_FIELD_NUMBER

public static final int WEEKLY_SCHEDULE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SnapshotPolicy getDefaultInstance()
Returns
TypeDescription
SnapshotPolicy

getDescriptor()

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

newBuilder()

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

newBuilder(SnapshotPolicy prototype)

public static SnapshotPolicy.Builder newBuilder(SnapshotPolicy prototype)
Parameter
NameDescription
prototypeSnapshotPolicy
Returns
TypeDescription
SnapshotPolicy.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDailySchedule()

public DailySchedule getDailySchedule()

Daily schedule policy.

optional .google.cloud.netapp.v1.DailySchedule daily_schedule = 3;

Returns
TypeDescription
DailySchedule

The dailySchedule.

getDailyScheduleOrBuilder()

public DailyScheduleOrBuilder getDailyScheduleOrBuilder()

Daily schedule policy.

optional .google.cloud.netapp.v1.DailySchedule daily_schedule = 3;

Returns
TypeDescription
DailyScheduleOrBuilder

getDefaultInstanceForType()

public SnapshotPolicy getDefaultInstanceForType()
Returns
TypeDescription
SnapshotPolicy

getEnabled()

public boolean getEnabled()

If enabled, make snapshots automatically according to the schedules. Default is false.

optional bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

getHourlySchedule()

public HourlySchedule getHourlySchedule()

Hourly schedule policy.

optional .google.cloud.netapp.v1.HourlySchedule hourly_schedule = 2;

Returns
TypeDescription
HourlySchedule

The hourlySchedule.

getHourlyScheduleOrBuilder()

public HourlyScheduleOrBuilder getHourlyScheduleOrBuilder()

Hourly schedule policy.

optional .google.cloud.netapp.v1.HourlySchedule hourly_schedule = 2;

Returns
TypeDescription
HourlyScheduleOrBuilder

getMonthlySchedule()

public MonthlySchedule getMonthlySchedule()

Monthly schedule policy.

optional .google.cloud.netapp.v1.MonthlySchedule monthly_schedule = 5;

Returns
TypeDescription
MonthlySchedule

The monthlySchedule.

getMonthlyScheduleOrBuilder()

public MonthlyScheduleOrBuilder getMonthlyScheduleOrBuilder()

Monthly schedule policy.

optional .google.cloud.netapp.v1.MonthlySchedule monthly_schedule = 5;

Returns
TypeDescription
MonthlyScheduleOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getWeeklySchedule()

public WeeklySchedule getWeeklySchedule()

Weekly schedule policy.

optional .google.cloud.netapp.v1.WeeklySchedule weekly_schedule = 4;

Returns
TypeDescription
WeeklySchedule

The weeklySchedule.

getWeeklyScheduleOrBuilder()

public WeeklyScheduleOrBuilder getWeeklyScheduleOrBuilder()

Weekly schedule policy.

optional .google.cloud.netapp.v1.WeeklySchedule weekly_schedule = 4;

Returns
TypeDescription
WeeklyScheduleOrBuilder

hasDailySchedule()

public boolean hasDailySchedule()

Daily schedule policy.

optional .google.cloud.netapp.v1.DailySchedule daily_schedule = 3;

Returns
TypeDescription
boolean

Whether the dailySchedule field is set.

hasEnabled()

public boolean hasEnabled()

If enabled, make snapshots automatically according to the schedules. Default is false.

optional bool enabled = 1;

Returns
TypeDescription
boolean

Whether the enabled field is set.

hasHourlySchedule()

public boolean hasHourlySchedule()

Hourly schedule policy.

optional .google.cloud.netapp.v1.HourlySchedule hourly_schedule = 2;

Returns
TypeDescription
boolean

Whether the hourlySchedule field is set.

hasMonthlySchedule()

public boolean hasMonthlySchedule()

Monthly schedule policy.

optional .google.cloud.netapp.v1.MonthlySchedule monthly_schedule = 5;

Returns
TypeDescription
boolean

Whether the monthlySchedule field is set.

hasWeeklySchedule()

public boolean hasWeeklySchedule()

Weekly schedule policy.

optional .google.cloud.netapp.v1.WeeklySchedule weekly_schedule = 4;

Returns
TypeDescription
boolean

Whether the weeklySchedule 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 SnapshotPolicy.Builder newBuilderForType()
Returns
TypeDescription
SnapshotPolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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