Send feedback
Class Volume (0.1.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.1.1 keyboard_arrow_down
public final class Volume extends GeneratedMessageV3 implements VolumeOrBuilder
A storage volume.
Protobuf type google.cloud.baremetalsolution.v2.Volume
Static Fields
public static final int AUTO_GROWN_SIZE_GIB_FIELD_NUMBER
Field Value
public static final int CURRENT_SIZE_GIB_FIELD_NUMBER
Field Value
public static final int NAME_FIELD_NUMBER
Field Value
REMAINING_SPACE_GIB_FIELD_NUMBER
public static final int REMAINING_SPACE_GIB_FIELD_NUMBER
Field Value
public static final int REQUESTED_SIZE_GIB_FIELD_NUMBER
Field Value
public static final int SNAPSHOT_AUTO_DELETE_BEHAVIOR_FIELD_NUMBER
Field Value
public static final int SNAPSHOT_RESERVATION_DETAIL_FIELD_NUMBER
Field Value
public static final int SNAPSHOT_SCHEDULE_POLICY_FIELD_NUMBER
Field Value
public static final int STATE_FIELD_NUMBER
Field Value
public static final int STORAGE_TYPE_FIELD_NUMBER
Field Value
Static Methods
public static Volume getDefaultInstance ()
Returns
public static final Descriptors . Descriptor getDescriptor ()
Returns
public static Volume . Builder newBuilder ()
Returns
public static Volume . Builder newBuilder ( Volume prototype )
Parameter
Name Description prototype Volume
Returns
public static Volume parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static Volume parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Volume parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
public static Volume parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Volume parseFrom ( ByteString data )
Parameter
Returns
Exceptions
public static Volume parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Volume parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static Volume parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Volume parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static Volume parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Volume parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
public static Volume parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Parser<Volume> parser ()
Returns
Methods
public boolean equals ( Object obj )
Parameter
Returns
Overrides
public long getAutoGrownSizeGib ()
The size, in GiB, that this storage volume has expanded as a result of an
auto grow policy. In the absence of auto-grow, the value is 0.
int64 auto_grown_size_gib = 6;
Returns
Type Description long The autoGrownSizeGib.
public long getCurrentSizeGib ()
The current size of this storage volume, in GiB, including space reserved
for snapshots. This size might be different than the requested size if the
storage volume has been configured with auto grow or auto shrink.
int64 current_size_gib = 5;
Returns
Type Description long The currentSizeGib.
public Volume getDefaultInstanceForType ()
Returns
Output only. The resource name of this Volume
.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names .
Format:
projects/{project}/locations/{location}/volumes/{volume}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type Description String The name.
public ByteString getNameBytes ()
Output only. The resource name of this Volume
.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names .
Format:
projects/{project}/locations/{location}/volumes/{volume}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public Parser<Volume> getParserForType ()
Returns
Overrides
getRemainingSpaceGib()
public long getRemainingSpaceGib ()
The space remaining in the storage volume for new LUNs, in GiB, excluding
space reserved for snapshots.
int64 remaining_space_gib = 7;
Returns
Type Description long The remainingSpaceGib.
public long getRequestedSizeGib ()
The requested size of this storage volume, in GiB.
int64 requested_size_gib = 4;
Returns
Type Description long The requestedSizeGib.
public int getSerializedSize ()
Returns
Overrides
public Volume . SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior ()
The behavior to use when snapshot reserved space is full.
.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9;
Returns
public int getSnapshotAutoDeleteBehaviorValue ()
The behavior to use when snapshot reserved space is full.
.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9;
Returns
Type Description int The enum numeric value on the wire for snapshotAutoDeleteBehavior.
public Volume . SnapshotReservationDetail getSnapshotReservationDetail ()
Details about snapshot space reservation and usage on the storage volume.
.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
Returns
public Volume . SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder ()
Details about snapshot space reservation and usage on the storage volume.
.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
Returns
public String getSnapshotSchedulePolicy ()
The name of the snapshot schedule policy in use for this volume, if any.
string snapshot_schedule_policy = 10 [(.google.api.resource_reference) = { ... }
Returns
Type Description String The snapshotSchedulePolicy.
public ByteString getSnapshotSchedulePolicyBytes ()
The name of the snapshot schedule policy in use for this volume, if any.
string snapshot_schedule_policy = 10 [(.google.api.resource_reference) = { ... }
Returns
Type Description ByteString The bytes for snapshotSchedulePolicy.
public Volume . State getState ()
The state of this storage volume.
.google.cloud.baremetalsolution.v2.Volume.State state = 3;
Returns
public int getStateValue ()
The state of this storage volume.
.google.cloud.baremetalsolution.v2.Volume.State state = 3;
Returns
Type Description int The enum numeric value on the wire for state.
public Volume . StorageType getStorageType ()
The storage type for this volume.
.google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;
Returns
public int getStorageTypeValue ()
The storage type for this volume.
.google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;
Returns
Type Description int The enum numeric value on the wire for storageType.
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
public boolean hasSnapshotReservationDetail ()
Details about snapshot space reservation and usage on the storage volume.
.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
Returns
Type Description boolean Whether the snapshotReservationDetail field is set.
Returns
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
public final boolean isInitialized ()
Returns
Overrides
public Volume . Builder newBuilderForType ()
Returns
protected Volume . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
public Volume . Builder toBuilder ()
Returns
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
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-14 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-14 UTC."],[],[]]