Class Volume.SnapshotReservationDetail.Builder

    • 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<Volume.SnapshotReservationDetail.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<Volume.SnapshotReservationDetail.Builder>
      • getDefaultInstanceForType

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

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

        public Volume.SnapshotReservationDetail buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public Volume.SnapshotReservationDetail.Builder setReservedSpaceGib​(long value)
         The space on this storage volume reserved for snapshots, shown in GiB.
         
        int64 reserved_space_gib = 1;
        Parameters:
        value - The reservedSpaceGib to set.
        Returns:
        This builder for chaining.
      • clearReservedSpaceGib

        public Volume.SnapshotReservationDetail.Builder clearReservedSpaceGib()
         The space on this storage volume reserved for snapshots, shown in GiB.
         
        int64 reserved_space_gib = 1;
        Returns:
        This builder for chaining.
      • getReservedSpaceUsedPercent

        public int getReservedSpaceUsedPercent()
         The percent of snapshot space on this storage volume actually being used
         by the snapshot copies. This value might be higher than 100% if the
         snapshot copies have overflowed into the data portion of the storage
         volume.
         
        int32 reserved_space_used_percent = 2;
        Specified by:
        getReservedSpaceUsedPercent in interface Volume.SnapshotReservationDetailOrBuilder
        Returns:
        The reservedSpaceUsedPercent.
      • setReservedSpaceUsedPercent

        public Volume.SnapshotReservationDetail.Builder setReservedSpaceUsedPercent​(int value)
         The percent of snapshot space on this storage volume actually being used
         by the snapshot copies. This value might be higher than 100% if the
         snapshot copies have overflowed into the data portion of the storage
         volume.
         
        int32 reserved_space_used_percent = 2;
        Parameters:
        value - The reservedSpaceUsedPercent to set.
        Returns:
        This builder for chaining.
      • clearReservedSpaceUsedPercent

        public Volume.SnapshotReservationDetail.Builder clearReservedSpaceUsedPercent()
         The percent of snapshot space on this storage volume actually being used
         by the snapshot copies. This value might be higher than 100% if the
         snapshot copies have overflowed into the data portion of the storage
         volume.
         
        int32 reserved_space_used_percent = 2;
        Returns:
        This builder for chaining.
      • setReservedSpaceRemainingGib

        public Volume.SnapshotReservationDetail.Builder setReservedSpaceRemainingGib​(long value)
         The amount, in GiB, of available space in this storage volume's reserved
         snapshot space.
         
        int64 reserved_space_remaining_gib = 3;
        Parameters:
        value - The reservedSpaceRemainingGib to set.
        Returns:
        This builder for chaining.
      • clearReservedSpaceRemainingGib

        public Volume.SnapshotReservationDetail.Builder clearReservedSpaceRemainingGib()
         The amount, in GiB, of available space in this storage volume's reserved
         snapshot space.
         
        int64 reserved_space_remaining_gib = 3;
        Returns:
        This builder for chaining.
      • getReservedSpacePercent

        public int getReservedSpacePercent()
         Percent of the total Volume size reserved for snapshot copies.
         Enabling snapshots requires reserving 20% or more of
         the storage volume space for snapshots. Maximum reserved space for
         snapshots is 40%.
         Setting this field will effectively set snapshot_enabled to true.
         
        int32 reserved_space_percent = 4;
        Specified by:
        getReservedSpacePercent in interface Volume.SnapshotReservationDetailOrBuilder
        Returns:
        The reservedSpacePercent.
      • setReservedSpacePercent

        public Volume.SnapshotReservationDetail.Builder setReservedSpacePercent​(int value)
         Percent of the total Volume size reserved for snapshot copies.
         Enabling snapshots requires reserving 20% or more of
         the storage volume space for snapshots. Maximum reserved space for
         snapshots is 40%.
         Setting this field will effectively set snapshot_enabled to true.
         
        int32 reserved_space_percent = 4;
        Parameters:
        value - The reservedSpacePercent to set.
        Returns:
        This builder for chaining.
      • clearReservedSpacePercent

        public Volume.SnapshotReservationDetail.Builder clearReservedSpacePercent()
         Percent of the total Volume size reserved for snapshot copies.
         Enabling snapshots requires reserving 20% or more of
         the storage volume space for snapshots. Maximum reserved space for
         snapshots is 40%.
         Setting this field will effectively set snapshot_enabled to true.
         
        int32 reserved_space_percent = 4;
        Returns:
        This builder for chaining.