Class SnapshotPolicy.Builder (0.22.0)

public static final class SnapshotPolicy.Builder extends GeneratedMessageV3.Builder<SnapshotPolicy.Builder> implements SnapshotPolicyOrBuilder

Snapshot Policy for a volume.

Protobuf type google.cloud.netapp.v1.SnapshotPolicy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SnapshotPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SnapshotPolicy.Builder
Overrides

build()

public SnapshotPolicy build()
Returns
Type Description
SnapshotPolicy

buildPartial()

public SnapshotPolicy buildPartial()
Returns
Type Description
SnapshotPolicy

clear()

public SnapshotPolicy.Builder clear()
Returns
Type Description
SnapshotPolicy.Builder
Overrides

clearDailySchedule()

public SnapshotPolicy.Builder clearDailySchedule()

Daily schedule policy.

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

Returns
Type Description
SnapshotPolicy.Builder

clearEnabled()

public SnapshotPolicy.Builder clearEnabled()

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

optional bool enabled = 1;

Returns
Type Description
SnapshotPolicy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SnapshotPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SnapshotPolicy.Builder
Overrides

clearHourlySchedule()

public SnapshotPolicy.Builder clearHourlySchedule()

Hourly schedule policy.

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

Returns
Type Description
SnapshotPolicy.Builder

clearMonthlySchedule()

public SnapshotPolicy.Builder clearMonthlySchedule()

Monthly schedule policy.

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

Returns
Type Description
SnapshotPolicy.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SnapshotPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SnapshotPolicy.Builder
Overrides

clearWeeklySchedule()

public SnapshotPolicy.Builder clearWeeklySchedule()

Weekly schedule policy.

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

Returns
Type Description
SnapshotPolicy.Builder

clone()

public SnapshotPolicy.Builder clone()
Returns
Type Description
SnapshotPolicy.Builder
Overrides

getDailySchedule()

public DailySchedule getDailySchedule()

Daily schedule policy.

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

Returns
Type Description
DailySchedule

The dailySchedule.

getDailyScheduleBuilder()

public DailySchedule.Builder getDailyScheduleBuilder()

Daily schedule policy.

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

Returns
Type Description
DailySchedule.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getHourlyScheduleBuilder()

public HourlySchedule.Builder getHourlyScheduleBuilder()

Hourly schedule policy.

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

Returns
Type Description
HourlySchedule.Builder

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.

getMonthlyScheduleBuilder()

public MonthlySchedule.Builder getMonthlyScheduleBuilder()

Monthly schedule policy.

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

Returns
Type Description
MonthlySchedule.Builder

getMonthlyScheduleOrBuilder()

public MonthlyScheduleOrBuilder getMonthlyScheduleOrBuilder()

Monthly schedule policy.

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

Returns
Type Description
MonthlyScheduleOrBuilder

getWeeklySchedule()

public WeeklySchedule getWeeklySchedule()

Weekly schedule policy.

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

Returns
Type Description
WeeklySchedule

The weeklySchedule.

getWeeklyScheduleBuilder()

public WeeklySchedule.Builder getWeeklyScheduleBuilder()

Weekly schedule policy.

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

Returns
Type Description
WeeklySchedule.Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDailySchedule(DailySchedule value)

public SnapshotPolicy.Builder mergeDailySchedule(DailySchedule value)

Daily schedule policy.

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

Parameter
Name Description
value DailySchedule
Returns
Type Description
SnapshotPolicy.Builder

mergeFrom(SnapshotPolicy other)

public SnapshotPolicy.Builder mergeFrom(SnapshotPolicy other)
Parameter
Name Description
other SnapshotPolicy
Returns
Type Description
SnapshotPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SnapshotPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SnapshotPolicy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SnapshotPolicy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SnapshotPolicy.Builder
Overrides

mergeHourlySchedule(HourlySchedule value)

public SnapshotPolicy.Builder mergeHourlySchedule(HourlySchedule value)

Hourly schedule policy.

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

Parameter
Name Description
value HourlySchedule
Returns
Type Description
SnapshotPolicy.Builder

mergeMonthlySchedule(MonthlySchedule value)

public SnapshotPolicy.Builder mergeMonthlySchedule(MonthlySchedule value)

Monthly schedule policy.

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

Parameter
Name Description
value MonthlySchedule
Returns
Type Description
SnapshotPolicy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SnapshotPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SnapshotPolicy.Builder
Overrides

mergeWeeklySchedule(WeeklySchedule value)

public SnapshotPolicy.Builder mergeWeeklySchedule(WeeklySchedule value)

Weekly schedule policy.

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

Parameter
Name Description
value WeeklySchedule
Returns
Type Description
SnapshotPolicy.Builder

setDailySchedule(DailySchedule value)

public SnapshotPolicy.Builder setDailySchedule(DailySchedule value)

Daily schedule policy.

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

Parameter
Name Description
value DailySchedule
Returns
Type Description
SnapshotPolicy.Builder

setDailySchedule(DailySchedule.Builder builderForValue)

public SnapshotPolicy.Builder setDailySchedule(DailySchedule.Builder builderForValue)

Daily schedule policy.

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

Parameter
Name Description
builderForValue DailySchedule.Builder
Returns
Type Description
SnapshotPolicy.Builder

setEnabled(boolean value)

public SnapshotPolicy.Builder setEnabled(boolean value)

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

optional bool enabled = 1;

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
SnapshotPolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SnapshotPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SnapshotPolicy.Builder
Overrides

setHourlySchedule(HourlySchedule value)

public SnapshotPolicy.Builder setHourlySchedule(HourlySchedule value)

Hourly schedule policy.

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

Parameter
Name Description
value HourlySchedule
Returns
Type Description
SnapshotPolicy.Builder

setHourlySchedule(HourlySchedule.Builder builderForValue)

public SnapshotPolicy.Builder setHourlySchedule(HourlySchedule.Builder builderForValue)

Hourly schedule policy.

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

Parameter
Name Description
builderForValue HourlySchedule.Builder
Returns
Type Description
SnapshotPolicy.Builder

setMonthlySchedule(MonthlySchedule value)

public SnapshotPolicy.Builder setMonthlySchedule(MonthlySchedule value)

Monthly schedule policy.

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

Parameter
Name Description
value MonthlySchedule
Returns
Type Description
SnapshotPolicy.Builder

setMonthlySchedule(MonthlySchedule.Builder builderForValue)

public SnapshotPolicy.Builder setMonthlySchedule(MonthlySchedule.Builder builderForValue)

Monthly schedule policy.

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

Parameter
Name Description
builderForValue MonthlySchedule.Builder
Returns
Type Description
SnapshotPolicy.Builder

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

public SnapshotPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SnapshotPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SnapshotPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SnapshotPolicy.Builder
Overrides

setWeeklySchedule(WeeklySchedule value)

public SnapshotPolicy.Builder setWeeklySchedule(WeeklySchedule value)

Weekly schedule policy.

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

Parameter
Name Description
value WeeklySchedule
Returns
Type Description
SnapshotPolicy.Builder

setWeeklySchedule(WeeklySchedule.Builder builderForValue)

public SnapshotPolicy.Builder setWeeklySchedule(WeeklySchedule.Builder builderForValue)

Weekly schedule policy.

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

Parameter
Name Description
builderForValue WeeklySchedule.Builder
Returns
Type Description
SnapshotPolicy.Builder