Class Volume (0.2.1)

public final class Volume extends GeneratedMessageV3 implements VolumeOrBuilder

A storage volume.

Protobuf type google.cloud.baremetalsolution.v2.Volume

Implements

VolumeOrBuilder

Static Fields

AUTO_GROWN_SIZE_GIB_FIELD_NUMBER

public static final int AUTO_GROWN_SIZE_GIB_FIELD_NUMBER
Field Value
TypeDescription
int

CURRENT_SIZE_GIB_FIELD_NUMBER

public static final int CURRENT_SIZE_GIB_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

REMAINING_SPACE_GIB_FIELD_NUMBER

public static final int REMAINING_SPACE_GIB_FIELD_NUMBER
Field Value
TypeDescription
int

REQUESTED_SIZE_GIB_FIELD_NUMBER

public static final int REQUESTED_SIZE_GIB_FIELD_NUMBER
Field Value
TypeDescription
int

SNAPSHOT_AUTO_DELETE_BEHAVIOR_FIELD_NUMBER

public static final int SNAPSHOT_AUTO_DELETE_BEHAVIOR_FIELD_NUMBER
Field Value
TypeDescription
int

SNAPSHOT_RESERVATION_DETAIL_FIELD_NUMBER

public static final int SNAPSHOT_RESERVATION_DETAIL_FIELD_NUMBER
Field Value
TypeDescription
int

SNAPSHOT_SCHEDULE_POLICY_FIELD_NUMBER

public static final int SNAPSHOT_SCHEDULE_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

STORAGE_TYPE_FIELD_NUMBER

public static final int STORAGE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Volume getDefaultInstance()
Returns
TypeDescription
Volume

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Volume.Builder newBuilder()
Returns
TypeDescription
Volume.Builder

newBuilder(Volume prototype)

public static Volume.Builder newBuilder(Volume prototype)
Parameter
NameDescription
prototypeVolume
Returns
TypeDescription
Volume.Builder

parseDelimitedFrom(InputStream input)

public static Volume parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Volume
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Volume parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Volume
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Volume parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Volume
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Volume parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Volume
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Volume parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Volume
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Volume parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Volume
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Volume parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Volume
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Volume parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Volume
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Volume parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Volume
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Volume parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Volume
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Volume parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Volume
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Volume parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Volume
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Volume> parser()
Returns
TypeDescription
Parser<Volume>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAutoGrownSizeGib()

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
TypeDescription
long

The autoGrownSizeGib.

getCurrentSizeGib()

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
TypeDescription
long

The currentSizeGib.

getDefaultInstanceForType()

public Volume getDefaultInstanceForType()
Returns
TypeDescription
Volume

getName()

public String getName()

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
TypeDescription
String

The name.

getNameBytes()

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
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<Volume> getParserForType()
Returns
TypeDescription
Parser<Volume>
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
TypeDescription
long

The remainingSpaceGib.

getRequestedSizeGib()

public long getRequestedSizeGib()

The requested size of this storage volume, in GiB.

int64 requested_size_gib = 4;

Returns
TypeDescription
long

The requestedSizeGib.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSnapshotAutoDeleteBehavior()

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
TypeDescription
Volume.SnapshotAutoDeleteBehavior

The snapshotAutoDeleteBehavior.

getSnapshotAutoDeleteBehaviorValue()

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
TypeDescription
int

The enum numeric value on the wire for snapshotAutoDeleteBehavior.

getSnapshotReservationDetail()

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
TypeDescription
Volume.SnapshotReservationDetail

The snapshotReservationDetail.

getSnapshotReservationDetailOrBuilder()

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
TypeDescription
Volume.SnapshotReservationDetailOrBuilder

getSnapshotSchedulePolicy()

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
TypeDescription
String

The snapshotSchedulePolicy.

getSnapshotSchedulePolicyBytes()

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
TypeDescription
ByteString

The bytes for snapshotSchedulePolicy.

getState()

public Volume.State getState()

The state of this storage volume.

.google.cloud.baremetalsolution.v2.Volume.State state = 3;

Returns
TypeDescription
Volume.State

The state.

getStateValue()

public int getStateValue()

The state of this storage volume.

.google.cloud.baremetalsolution.v2.Volume.State state = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getStorageType()

public Volume.StorageType getStorageType()

The storage type for this volume.

.google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;

Returns
TypeDescription
Volume.StorageType

The storageType.

getStorageTypeValue()

public int getStorageTypeValue()

The storage type for this volume.

.google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for storageType.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasSnapshotReservationDetail()

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
TypeDescription
boolean

Whether the snapshotReservationDetail field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Volume.Builder newBuilderForType()
Returns
TypeDescription
Volume.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Volume.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Volume.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Volume.Builder toBuilder()
Returns
TypeDescription
Volume.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException