Class 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 type google.cloud.netapp.v1.MonthlySchedule
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
      • clear

        public MonthlySchedule.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
      • getDefaultInstanceForType

        public MonthlySchedule getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public MonthlySchedule build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public MonthlySchedule buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public MonthlySchedule.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
      • setField

        public MonthlySchedule.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
      • clearField

        public MonthlySchedule.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
      • clearOneof

        public MonthlySchedule.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
      • addRepeatedField

        public MonthlySchedule.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
      • mergeFrom

        public MonthlySchedule.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MonthlySchedule.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface MonthlyScheduleOrBuilder
        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 interface MonthlyScheduleOrBuilder
        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 interface MonthlyScheduleOrBuilder
        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 interface MonthlyScheduleOrBuilder
        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 interface MonthlyScheduleOrBuilder
        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 interface MonthlyScheduleOrBuilder
        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 interface MonthlyScheduleOrBuilder
        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 interface MonthlyScheduleOrBuilder
        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 interface MonthlyScheduleOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>
      • mergeUnknownFields

        public final MonthlySchedule.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MonthlySchedule.Builder>