public final class SnapshotPolicy extends GeneratedMessageV3 implements SnapshotPolicyOrBuilder
Snapshot Policy for a volume.
Protobuf type google.cloud.netapp.v1.SnapshotPolicy
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SnapshotPolicyImplements
SnapshotPolicyOrBuilderStatic Fields
DAILY_SCHEDULE_FIELD_NUMBER
public static final int DAILY_SCHEDULE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
ENABLED_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
HOURLY_SCHEDULE_FIELD_NUMBER
public static final int HOURLY_SCHEDULE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
MONTHLY_SCHEDULE_FIELD_NUMBER
public static final int MONTHLY_SCHEDULE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
WEEKLY_SCHEDULE_FIELD_NUMBER
public static final int WEEKLY_SCHEDULE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static SnapshotPolicy getDefaultInstance()
Returns | |
---|---|
Type | Description |
SnapshotPolicy |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static SnapshotPolicy.Builder newBuilder()
Returns | |
---|---|
Type | Description |
SnapshotPolicy.Builder |
newBuilder(SnapshotPolicy prototype)
public static SnapshotPolicy.Builder newBuilder(SnapshotPolicy prototype)
Parameter | |
---|---|
Name | Description |
prototype | SnapshotPolicy |
Returns | |
---|---|
Type | Description |
SnapshotPolicy.Builder |
parseDelimitedFrom(InputStream input)
public static SnapshotPolicy parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input | InputStream |
Returns | |
---|---|
Type | Description |
SnapshotPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SnapshotPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SnapshotPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static SnapshotPolicy parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data | byte[] |
Returns | |
---|---|
Type | Description |
SnapshotPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SnapshotPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SnapshotPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static SnapshotPolicy parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data | ByteString |
Returns | |
---|---|
Type | Description |
SnapshotPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SnapshotPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SnapshotPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static SnapshotPolicy parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input | CodedInputStream |
Returns | |
---|---|
Type | Description |
SnapshotPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SnapshotPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SnapshotPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static SnapshotPolicy parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input | InputStream |
Returns | |
---|---|
Type | Description |
SnapshotPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SnapshotPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SnapshotPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static SnapshotPolicy parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data | ByteBuffer |
Returns | |
---|---|
Type | Description |
SnapshotPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SnapshotPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SnapshotPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<SnapshotPolicy> parser()
Returns | |
---|---|
Type | Description |
Parser<SnapshotPolicy> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj | Object |
Returns | |
---|---|
Type | Description |
boolean |
getDailySchedule()
public DailySchedule getDailySchedule()
Daily schedule policy.
optional .google.cloud.netapp.v1.DailySchedule daily_schedule = 3;
Returns | |
---|---|
Type | Description |
DailySchedule | The dailySchedule. |
getDailyScheduleOrBuilder()
public DailyScheduleOrBuilder getDailyScheduleOrBuilder()
Daily schedule policy.
optional .google.cloud.netapp.v1.DailySchedule daily_schedule = 3;
Returns | |
---|---|
Type | Description |
DailyScheduleOrBuilder |
getDefaultInstanceForType()
public SnapshotPolicy getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
SnapshotPolicy |
getEnabled()
public boolean getEnabled()
If enabled, make snapshots automatically according to the schedules. Default is false.
optional bool enabled = 1;
Returns | |
---|---|
Type | Description |
boolean | The enabled. |
getHourlySchedule()
public HourlySchedule getHourlySchedule()
Hourly schedule policy.
optional .google.cloud.netapp.v1.HourlySchedule hourly_schedule = 2;
Returns | |
---|---|
Type | Description |
HourlySchedule | The hourlySchedule. |
getHourlyScheduleOrBuilder()
public HourlyScheduleOrBuilder getHourlyScheduleOrBuilder()
Hourly schedule policy.
optional .google.cloud.netapp.v1.HourlySchedule hourly_schedule = 2;
Returns | |
---|---|
Type | Description |
HourlyScheduleOrBuilder |
getMonthlySchedule()
public MonthlySchedule getMonthlySchedule()
Monthly schedule policy.
optional .google.cloud.netapp.v1.MonthlySchedule monthly_schedule = 5;
Returns | |
---|---|
Type | Description |
MonthlySchedule | The monthlySchedule. |
getMonthlyScheduleOrBuilder()
public MonthlyScheduleOrBuilder getMonthlyScheduleOrBuilder()
Monthly schedule policy.
optional .google.cloud.netapp.v1.MonthlySchedule monthly_schedule = 5;
Returns | |
---|---|
Type | Description |
MonthlyScheduleOrBuilder |
getParserForType()
public Parser<SnapshotPolicy> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<SnapshotPolicy> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
getWeeklySchedule()
public WeeklySchedule getWeeklySchedule()
Weekly schedule policy.
optional .google.cloud.netapp.v1.WeeklySchedule weekly_schedule = 4;
Returns | |
---|---|
Type | Description |
WeeklySchedule | The weeklySchedule. |
getWeeklyScheduleOrBuilder()
public WeeklyScheduleOrBuilder getWeeklyScheduleOrBuilder()
Weekly schedule policy.
optional .google.cloud.netapp.v1.WeeklySchedule weekly_schedule = 4;
Returns | |
---|---|
Type | Description |
WeeklyScheduleOrBuilder |
hasDailySchedule()
public boolean hasDailySchedule()
Daily schedule policy.
optional .google.cloud.netapp.v1.DailySchedule daily_schedule = 3;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean | Whether the enabled field is set. |
hasHourlySchedule()
public boolean hasHourlySchedule()
Hourly schedule policy.
optional .google.cloud.netapp.v1.HourlySchedule hourly_schedule = 2;
Returns | |
---|---|
Type | Description |
boolean | Whether the hourlySchedule field is set. |
hasMonthlySchedule()
public boolean hasMonthlySchedule()
Monthly schedule policy.
optional .google.cloud.netapp.v1.MonthlySchedule monthly_schedule = 5;
Returns | |
---|---|
Type | Description |
boolean | Whether the monthlySchedule field is set. |
hasWeeklySchedule()
public boolean hasWeeklySchedule()
Weekly schedule policy.
optional .google.cloud.netapp.v1.WeeklySchedule weekly_schedule = 4;
Returns | |
---|---|
Type | Description |
boolean | Whether the weeklySchedule field is set. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public SnapshotPolicy.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
SnapshotPolicy.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SnapshotPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent | BuilderParent |
Returns | |
---|---|
Type | Description |
SnapshotPolicy.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused | UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public SnapshotPolicy.Builder toBuilder()
Returns | |
---|---|
Type | Description |
SnapshotPolicy.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output | CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |