Send feedback
Class Volume.SnapshotReservationDetail.Builder (0.58.0)
bookmark_border bookmark
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public static final class Volume . SnapshotReservationDetail . Builder extends GeneratedMessageV3 . Builder<Volume . SnapshotReservationDetail . Builder > implements Volume . SnapshotReservationDetailOrBuilder
Details about snapshot space reservation and usage on the storage volume.
Protobuf type google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
Methods
public Volume . SnapshotReservationDetail . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public Volume . SnapshotReservationDetail build ()
public Volume . SnapshotReservationDetail buildPartial ()
public Volume . SnapshotReservationDetail . Builder clear ()
Overrides
public Volume . SnapshotReservationDetail . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
public Volume . SnapshotReservationDetail . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
public Volume . SnapshotReservationDetail . Builder clearReservedSpaceGib ()
The space on this storage volume reserved for snapshots, shown in GiB.
int64 reserved_space_gib = 1;
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;
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;
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;
public Volume . SnapshotReservationDetail . Builder clone ()
Overrides
public Volume . SnapshotReservationDetail getDefaultInstanceForType ()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
public long getReservedSpaceGib ()
The space on this storage volume reserved for snapshots, shown in GiB.
int64 reserved_space_gib = 1;
Returns
Type
Description
long
The reservedSpaceGib.
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;
Returns
Type
Description
int
The reservedSpacePercent.
getReservedSpaceRemainingGib()
public long getReservedSpaceRemainingGib ()
The amount, in GiB, of available space in this storage volume's reserved
snapshot space.
int64 reserved_space_remaining_gib = 3;
Returns
Type
Description
long
The reservedSpaceRemainingGib.
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;
Returns
Type
Description
int
The reservedSpaceUsedPercent.
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public Volume . SnapshotReservationDetail . Builder mergeFrom ( Volume . SnapshotReservationDetail other )
public Volume . SnapshotReservationDetail . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
public Volume . SnapshotReservationDetail . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
public final Volume . SnapshotReservationDetail . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public Volume . SnapshotReservationDetail . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public Volume . SnapshotReservationDetail . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
public Volume . SnapshotReservationDetail . Builder setReservedSpaceGib ( long value )
The space on this storage volume reserved for snapshots, shown in GiB.
int64 reserved_space_gib = 1;
Parameter
Name
Description
value
long
The reservedSpaceGib to set.
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;
Parameter
Name
Description
value
int
The reservedSpacePercent to set.
setReservedSpaceRemainingGib(long value)
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;
Parameter
Name
Description
value
long
The reservedSpaceRemainingGib to set.
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;
Parameter
Name
Description
value
int
The reservedSpaceUsedPercent to set.
public final Volume . SnapshotReservationDetail . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-23 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-23 UTC."],[],[]]