Package com.google.cloud.netapp.v1
Class MonthlySchedule.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
-
- com.google.cloud.netapp.v1.MonthlySchedule.Builder
-
- All Implemented Interfaces:
MonthlyScheduleOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- MonthlySchedule
public static final class MonthlySchedule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder> implements MonthlyScheduleOrBuilder
Make a snapshot once a month e.g. at 2nd 04:00, 7th 05:20, 24th 23:50
Protobuf typegoogle.cloud.netapp.v1.MonthlySchedule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MonthlySchedule.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MonthlySchedule
build()
MonthlySchedule
buildPartial()
MonthlySchedule.Builder
clear()
MonthlySchedule.Builder
clearDaysOfMonth()
Set the day or days of the month to make a snapshot (1-31).MonthlySchedule.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
MonthlySchedule.Builder
clearHour()
Set the hour to start the snapshot (0-23), defaults to midnight (0).MonthlySchedule.Builder
clearMinute()
Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).MonthlySchedule.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
MonthlySchedule.Builder
clearSnapshotsToKeep()
The maximum number of Snapshots to keep for the hourly scheduleMonthlySchedule.Builder
clone()
String
getDaysOfMonth()
Set the day or days of the month to make a snapshot (1-31).com.google.protobuf.ByteString
getDaysOfMonthBytes()
Set the day or days of the month to make a snapshot (1-31).MonthlySchedule
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
double
getHour()
Set the hour to start the snapshot (0-23), defaults to midnight (0).double
getMinute()
Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).double
getSnapshotsToKeep()
The maximum number of Snapshots to keep for the hourly scheduleboolean
hasDaysOfMonth()
Set the day or days of the month to make a snapshot (1-31).boolean
hasHour()
Set the hour to start the snapshot (0-23), defaults to midnight (0).boolean
hasMinute()
Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).boolean
hasSnapshotsToKeep()
The maximum number of Snapshots to keep for the hourly scheduleprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
MonthlySchedule.Builder
mergeFrom(MonthlySchedule other)
MonthlySchedule.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
MonthlySchedule.Builder
mergeFrom(com.google.protobuf.Message other)
MonthlySchedule.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
MonthlySchedule.Builder
setDaysOfMonth(String value)
Set the day or days of the month to make a snapshot (1-31).MonthlySchedule.Builder
setDaysOfMonthBytes(com.google.protobuf.ByteString value)
Set the day or days of the month to make a snapshot (1-31).MonthlySchedule.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MonthlySchedule.Builder
setHour(double value)
Set the hour to start the snapshot (0-23), defaults to midnight (0).MonthlySchedule.Builder
setMinute(double value)
Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).MonthlySchedule.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
MonthlySchedule.Builder
setSnapshotsToKeep(double value)
The maximum number of Snapshots to keep for the hourly scheduleMonthlySchedule.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
-
clear
public MonthlySchedule.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
-
getDefaultInstanceForType
public MonthlySchedule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public MonthlySchedule build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MonthlySchedule buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MonthlySchedule.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
-
setField
public MonthlySchedule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
-
clearField
public MonthlySchedule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
-
clearOneof
public MonthlySchedule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
-
setRepeatedField
public MonthlySchedule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
-
addRepeatedField
public MonthlySchedule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
-
mergeFrom
public MonthlySchedule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MonthlySchedule.Builder>
-
mergeFrom
public MonthlySchedule.Builder mergeFrom(MonthlySchedule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
-
mergeFrom
public MonthlySchedule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MonthlySchedule.Builder>
- Throws:
IOException
-
hasSnapshotsToKeep
public boolean hasSnapshotsToKeep()
The maximum number of Snapshots to keep for the hourly schedule
optional double snapshots_to_keep = 1;
- Specified by:
hasSnapshotsToKeep
in interfaceMonthlyScheduleOrBuilder
- Returns:
- Whether the snapshotsToKeep field is set.
-
getSnapshotsToKeep
public double getSnapshotsToKeep()
The maximum number of Snapshots to keep for the hourly schedule
optional double snapshots_to_keep = 1;
- Specified by:
getSnapshotsToKeep
in interfaceMonthlyScheduleOrBuilder
- Returns:
- The snapshotsToKeep.
-
setSnapshotsToKeep
public MonthlySchedule.Builder setSnapshotsToKeep(double value)
The maximum number of Snapshots to keep for the hourly schedule
optional double snapshots_to_keep = 1;
- Parameters:
value
- The snapshotsToKeep to set.- Returns:
- This builder for chaining.
-
clearSnapshotsToKeep
public MonthlySchedule.Builder clearSnapshotsToKeep()
The maximum number of Snapshots to keep for the hourly schedule
optional double snapshots_to_keep = 1;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasMinute
in interfaceMonthlyScheduleOrBuilder
- Returns:
- Whether the minute field is set.
-
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;
- Specified by:
getMinute
in interfaceMonthlyScheduleOrBuilder
- Returns:
- The minute.
-
setMinute
public MonthlySchedule.Builder setMinute(double value)
Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).
optional double minute = 2;
- Parameters:
value
- The minute to set.- Returns:
- This builder for chaining.
-
clearMinute
public MonthlySchedule.Builder clearMinute()
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:
- This builder for chaining.
-
hasHour
public boolean hasHour()
Set the hour to start the snapshot (0-23), defaults to midnight (0).
optional double hour = 3;
- Specified by:
hasHour
in interfaceMonthlyScheduleOrBuilder
- Returns:
- Whether the hour field is set.
-
getHour
public double getHour()
Set the hour to start the snapshot (0-23), defaults to midnight (0).
optional double hour = 3;
- Specified by:
getHour
in interfaceMonthlyScheduleOrBuilder
- Returns:
- The hour.
-
setHour
public MonthlySchedule.Builder setHour(double value)
Set the hour to start the snapshot (0-23), defaults to midnight (0).
optional double hour = 3;
- Parameters:
value
- The hour to set.- Returns:
- This builder for chaining.
-
clearHour
public MonthlySchedule.Builder clearHour()
Set the hour to start the snapshot (0-23), defaults to midnight (0).
optional double hour = 3;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasDaysOfMonth
in interfaceMonthlyScheduleOrBuilder
- Returns:
- Whether the daysOfMonth field is set.
-
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;
- Specified by:
getDaysOfMonth
in interfaceMonthlyScheduleOrBuilder
- Returns:
- The daysOfMonth.
-
getDaysOfMonthBytes
public com.google.protobuf.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;
- Specified by:
getDaysOfMonthBytes
in interfaceMonthlyScheduleOrBuilder
- Returns:
- The bytes for daysOfMonth.
-
setDaysOfMonth
public MonthlySchedule.Builder setDaysOfMonth(String value)
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;
- Parameters:
value
- The daysOfMonth to set.- Returns:
- This builder for chaining.
-
clearDaysOfMonth
public MonthlySchedule.Builder clearDaysOfMonth()
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:
- This builder for chaining.
-
setDaysOfMonthBytes
public MonthlySchedule.Builder setDaysOfMonthBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for daysOfMonth to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final MonthlySchedule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
-
mergeUnknownFields
public final MonthlySchedule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
-
-