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.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()
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
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
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.
|
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()
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
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.
|
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