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
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public Volume.SnapshotReservationDetail.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Volume.SnapshotReservationDetail build()
Returns
public Volume.SnapshotReservationDetail buildPartial()
Returns
public Volume.SnapshotReservationDetail.Builder clear()
Returns
Overrides
public Volume.SnapshotReservationDetail.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public Volume.SnapshotReservationDetail.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public Volume.SnapshotReservationDetail.Builder clearReservedSpaceGib()
The space on this storage volume reserved for snapshots, shown in GiB.
int64 reserved_space_gib = 1;
Returns
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
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
public Volume.SnapshotReservationDetail.Builder clone()
Returns
Overrides
public Volume.SnapshotReservationDetail getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
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.
|
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()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Volume.SnapshotReservationDetail.Builder mergeFrom(Volume.SnapshotReservationDetail other)
Parameter
Returns
public Volume.SnapshotReservationDetail.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public Volume.SnapshotReservationDetail.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final Volume.SnapshotReservationDetail.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public Volume.SnapshotReservationDetail.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Volume.SnapshotReservationDetail.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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.
|
Returns
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.
|
Returns
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.
|
Returns
public final Volume.SnapshotReservationDetail.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides