Class WeeklySchedule.Builder

  • All Implemented Interfaces:
    WeeklyScheduleOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    WeeklySchedule

    public static final class WeeklySchedule.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<WeeklySchedule.Builder>
    implements WeeklyScheduleOrBuilder
     Make a snapshot every week e.g. at Monday 04:00, Wednesday 05:20, Sunday
     23:50
     
    Protobuf type google.cloud.netapp.v1.WeeklySchedule
    • 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<WeeklySchedule.Builder>
      • clear

        public WeeklySchedule.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<WeeklySchedule.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<WeeklySchedule.Builder>
      • getDefaultInstanceForType

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

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

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

        public WeeklySchedule.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<WeeklySchedule.Builder>
      • setField

        public WeeklySchedule.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<WeeklySchedule.Builder>
      • clearField

        public WeeklySchedule.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<WeeklySchedule.Builder>
      • clearOneof

        public WeeklySchedule.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<WeeklySchedule.Builder>
      • setRepeatedField

        public WeeklySchedule.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<WeeklySchedule.Builder>
      • addRepeatedField

        public WeeklySchedule.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<WeeklySchedule.Builder>
      • mergeFrom

        public WeeklySchedule.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<WeeklySchedule.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<WeeklySchedule.Builder>
      • mergeFrom

        public WeeklySchedule.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<WeeklySchedule.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 WeeklyScheduleOrBuilder
        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 WeeklyScheduleOrBuilder
        Returns:
        The snapshotsToKeep.
      • setSnapshotsToKeep

        public WeeklySchedule.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 WeeklySchedule.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 WeeklyScheduleOrBuilder
        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 WeeklyScheduleOrBuilder
        Returns:
        The minute.
      • setMinute

        public WeeklySchedule.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 WeeklySchedule.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 WeeklyScheduleOrBuilder
        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 WeeklyScheduleOrBuilder
        Returns:
        The hour.
      • setHour

        public WeeklySchedule.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 WeeklySchedule.Builder clearHour()
         Set the hour to start the snapshot (0-23), defaults to midnight (0).
         
        optional double hour = 3;
        Returns:
        This builder for chaining.
      • hasDay

        public boolean hasDay()
         Set the day or days of the week to make a snapshot. Accepts a comma
         separated days of the week. Defaults to 'Sunday'.
         
        optional string day = 4;
        Specified by:
        hasDay in interface WeeklyScheduleOrBuilder
        Returns:
        Whether the day field is set.
      • getDay

        public String getDay()
         Set the day or days of the week to make a snapshot. Accepts a comma
         separated days of the week. Defaults to 'Sunday'.
         
        optional string day = 4;
        Specified by:
        getDay in interface WeeklyScheduleOrBuilder
        Returns:
        The day.
      • getDayBytes

        public com.google.protobuf.ByteString getDayBytes()
         Set the day or days of the week to make a snapshot. Accepts a comma
         separated days of the week. Defaults to 'Sunday'.
         
        optional string day = 4;
        Specified by:
        getDayBytes in interface WeeklyScheduleOrBuilder
        Returns:
        The bytes for day.
      • setDay

        public WeeklySchedule.Builder setDay​(String value)
         Set the day or days of the week to make a snapshot. Accepts a comma
         separated days of the week. Defaults to 'Sunday'.
         
        optional string day = 4;
        Parameters:
        value - The day to set.
        Returns:
        This builder for chaining.
      • clearDay

        public WeeklySchedule.Builder clearDay()
         Set the day or days of the week to make a snapshot. Accepts a comma
         separated days of the week. Defaults to 'Sunday'.
         
        optional string day = 4;
        Returns:
        This builder for chaining.
      • setDayBytes

        public WeeklySchedule.Builder setDayBytes​(com.google.protobuf.ByteString value)
         Set the day or days of the week to make a snapshot. Accepts a comma
         separated days of the week. Defaults to 'Sunday'.
         
        optional string day = 4;
        Parameters:
        value - The bytes for day to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final WeeklySchedule.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<WeeklySchedule.Builder>
      • mergeUnknownFields

        public final WeeklySchedule.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<WeeklySchedule.Builder>