Class SnapshotPolicy.Builder (0.20.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SnapshotPolicy build()
Returns
TypeDescription
SnapshotPolicy

buildPartial()

public SnapshotPolicy buildPartial()
Returns
TypeDescription
SnapshotPolicy

clear()

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

clearDailySchedule()

public SnapshotPolicy.Builder clearDailySchedule()

Daily schedule policy.

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

Returns
TypeDescription
SnapshotPolicy.Builder

clearEnabled()

public SnapshotPolicy.Builder clearEnabled()

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

optional bool enabled = 1;

Returns
TypeDescription
SnapshotPolicy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHourlySchedule()

public SnapshotPolicy.Builder clearHourlySchedule()

Hourly schedule policy.

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

Returns
TypeDescription
SnapshotPolicy.Builder

clearMonthlySchedule()

public SnapshotPolicy.Builder clearMonthlySchedule()

Monthly schedule policy.

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

Returns
TypeDescription
SnapshotPolicy.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWeeklySchedule()

public SnapshotPolicy.Builder clearWeeklySchedule()

Weekly schedule policy.

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

Returns
TypeDescription
SnapshotPolicy.Builder

clone()

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

getDailySchedule()

public DailySchedule getDailySchedule()

Daily schedule policy.

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

Returns
TypeDescription
DailySchedule

The dailySchedule.

getDailyScheduleBuilder()

public DailySchedule.Builder getDailyScheduleBuilder()

Daily schedule policy.

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

Returns
TypeDescription
DailySchedule.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getHourlyScheduleBuilder()

public HourlySchedule.Builder getHourlyScheduleBuilder()

Hourly schedule policy.

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

Returns
TypeDescription
HourlySchedule.Builder

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.

getMonthlyScheduleBuilder()

public MonthlySchedule.Builder getMonthlyScheduleBuilder()

Monthly schedule policy.

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

Returns
TypeDescription
MonthlySchedule.Builder

getMonthlyScheduleOrBuilder()

public MonthlyScheduleOrBuilder getMonthlyScheduleOrBuilder()

Monthly schedule policy.

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

Returns
TypeDescription
MonthlyScheduleOrBuilder

getWeeklySchedule()

public WeeklySchedule getWeeklySchedule()

Weekly schedule policy.

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

Returns
TypeDescription
WeeklySchedule

The weeklySchedule.

getWeeklyScheduleBuilder()

public WeeklySchedule.Builder getWeeklyScheduleBuilder()

Weekly schedule policy.

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

Returns
TypeDescription
WeeklySchedule.Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDailySchedule(DailySchedule value)

public SnapshotPolicy.Builder mergeDailySchedule(DailySchedule value)

Daily schedule policy.

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

Parameter
NameDescription
valueDailySchedule
Returns
TypeDescription
SnapshotPolicy.Builder

mergeFrom(SnapshotPolicy other)

public SnapshotPolicy.Builder mergeFrom(SnapshotPolicy other)
Parameter
NameDescription
otherSnapshotPolicy
Returns
TypeDescription
SnapshotPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SnapshotPolicy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueHourlySchedule
Returns
TypeDescription
SnapshotPolicy.Builder

mergeMonthlySchedule(MonthlySchedule value)

public SnapshotPolicy.Builder mergeMonthlySchedule(MonthlySchedule value)

Monthly schedule policy.

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

Parameter
NameDescription
valueMonthlySchedule
Returns
TypeDescription
SnapshotPolicy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SnapshotPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueWeeklySchedule
Returns
TypeDescription
SnapshotPolicy.Builder

setDailySchedule(DailySchedule value)

public SnapshotPolicy.Builder setDailySchedule(DailySchedule value)

Daily schedule policy.

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

Parameter
NameDescription
valueDailySchedule
Returns
TypeDescription
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
NameDescription
builderForValueDailySchedule.Builder
Returns
TypeDescription
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
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
SnapshotPolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SnapshotPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueHourlySchedule
Returns
TypeDescription
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
NameDescription
builderForValueHourlySchedule.Builder
Returns
TypeDescription
SnapshotPolicy.Builder

setMonthlySchedule(MonthlySchedule value)

public SnapshotPolicy.Builder setMonthlySchedule(MonthlySchedule value)

Monthly schedule policy.

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

Parameter
NameDescription
valueMonthlySchedule
Returns
TypeDescription
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
NameDescription
builderForValueMonthlySchedule.Builder
Returns
TypeDescription
SnapshotPolicy.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final SnapshotPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueWeeklySchedule
Returns
TypeDescription
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
NameDescription
builderForValueWeeklySchedule.Builder
Returns
TypeDescription
SnapshotPolicy.Builder