public final class Volume extends com.google.protobuf.GeneratedMessageV3 implements VolumeOrBuilder
A storage volume.Protobuf type
google.cloud.baremetalsolution.v2.Volume| Modifier and Type | Class and Description |
|---|---|
static class |
Volume.Builder
A storage volume.
|
static class |
Volume.SnapshotAutoDeleteBehavior
The kinds of auto delete behavior to use when snapshot reserved space is
full.
|
static class |
Volume.SnapshotReservationDetail
Details about snapshot space reservation and usage on the storage volume.
|
static interface |
Volume.SnapshotReservationDetailOrBuilder |
static class |
Volume.State
The possible states for a storage volume.
|
static class |
Volume.StorageType
The storage type for a volume.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AUTO_GROWN_SIZE_GIB_FIELD_NUMBER |
static int |
CURRENT_SIZE_GIB_FIELD_NUMBER |
static int |
EMERGENCY_SIZE_GIB_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
POD_FIELD_NUMBER |
static int |
REMAINING_SPACE_GIB_FIELD_NUMBER |
static int |
REQUESTED_SIZE_GIB_FIELD_NUMBER |
static int |
SNAPSHOT_AUTO_DELETE_BEHAVIOR_FIELD_NUMBER |
static int |
SNAPSHOT_ENABLED_FIELD_NUMBER |
static int |
SNAPSHOT_RESERVATION_DETAIL_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
static int |
STORAGE_TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
Labels as key value pairs.
|
boolean |
equals(Object obj) |
long |
getAutoGrownSizeGib()
The size, in GiB, that this storage volume has expanded as a result of an
auto grow policy.
|
long |
getCurrentSizeGib()
The current size of this storage volume, in GiB, including space reserved
for snapshots.
|
static Volume |
getDefaultInstance() |
Volume |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
long |
getEmergencySizeGib()
Additional emergency size that was requested for this Volume, in GiB.
|
String |
getId()
An identifier for the `Volume`, generated by the backend.
|
com.google.protobuf.ByteString |
getIdBytes()
An identifier for the `Volume`, generated by the backend.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Labels as key value pairs.
|
Map<String,String> |
getLabelsMap()
Labels as key value pairs.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Labels as key value pairs.
|
String |
getLabelsOrThrow(String key)
Labels as key value pairs.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
com.google.protobuf.Parser<Volume> |
getParserForType() |
String |
getPod()
Immutable.
|
com.google.protobuf.ByteString |
getPodBytes()
Immutable.
|
long |
getRemainingSpaceGib()
The space remaining in the storage volume for new LUNs, in GiB, excluding
space reserved for snapshots.
|
long |
getRequestedSizeGib()
The requested size of this storage volume, in GiB.
|
int |
getSerializedSize() |
Volume.SnapshotAutoDeleteBehavior |
getSnapshotAutoDeleteBehavior()
The behavior to use when snapshot reserved space is full.
|
int |
getSnapshotAutoDeleteBehaviorValue()
The behavior to use when snapshot reserved space is full.
|
boolean |
getSnapshotEnabled()
Whether snapshots are enabled.
|
Volume.SnapshotReservationDetail |
getSnapshotReservationDetail()
Details about snapshot space reservation and usage on the storage volume.
|
Volume.SnapshotReservationDetailOrBuilder |
getSnapshotReservationDetailOrBuilder()
Details about snapshot space reservation and usage on the storage volume.
|
Volume.State |
getState()
The state of this storage volume.
|
int |
getStateValue()
The state of this storage volume.
|
Volume.StorageType |
getStorageType()
The storage type for this volume.
|
int |
getStorageTypeValue()
The storage type for this volume.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasSnapshotReservationDetail()
Details about snapshot space reservation and usage on the storage volume.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Volume.Builder |
newBuilder() |
static Volume.Builder |
newBuilder(Volume prototype) |
Volume.Builder |
newBuilderForType() |
protected Volume.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Volume |
parseDelimitedFrom(InputStream input) |
static Volume |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Volume |
parseFrom(byte[] data) |
static Volume |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Volume |
parseFrom(ByteBuffer data) |
static Volume |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Volume |
parseFrom(com.google.protobuf.ByteString data) |
static Volume |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Volume |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Volume |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Volume |
parseFrom(InputStream input) |
static Volume |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Volume> |
parser() |
Volume.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
public static final int STORAGE_TYPE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int REQUESTED_SIZE_GIB_FIELD_NUMBER
public static final int CURRENT_SIZE_GIB_FIELD_NUMBER
public static final int EMERGENCY_SIZE_GIB_FIELD_NUMBER
public static final int AUTO_GROWN_SIZE_GIB_FIELD_NUMBER
public static final int REMAINING_SPACE_GIB_FIELD_NUMBER
public static final int SNAPSHOT_RESERVATION_DETAIL_FIELD_NUMBER
public static final int SNAPSHOT_AUTO_DELETE_BEHAVIOR_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int SNAPSHOT_ENABLED_FIELD_NUMBER
public static final int POD_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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];getName in interface VolumeOrBuilderpublic com.google.protobuf.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];getNameBytes in interface VolumeOrBuilderpublic String getId()
An identifier for the `Volume`, generated by the backend.
string id = 11;getId in interface VolumeOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
An identifier for the `Volume`, generated by the backend.
string id = 11;getIdBytes in interface VolumeOrBuilderpublic int getStorageTypeValue()
The storage type for this volume.
.google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;getStorageTypeValue in interface VolumeOrBuilderpublic Volume.StorageType getStorageType()
The storage type for this volume.
.google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;getStorageType in interface VolumeOrBuilderpublic int getStateValue()
The state of this storage volume.
.google.cloud.baremetalsolution.v2.Volume.State state = 3;getStateValue in interface VolumeOrBuilderpublic Volume.State getState()
The state of this storage volume.
.google.cloud.baremetalsolution.v2.Volume.State state = 3;getState in interface VolumeOrBuilderpublic long getRequestedSizeGib()
The requested size of this storage volume, in GiB.
int64 requested_size_gib = 4;getRequestedSizeGib in interface VolumeOrBuilderpublic 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;getCurrentSizeGib in interface VolumeOrBuilderpublic long getEmergencySizeGib()
Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value.
int64 emergency_size_gib = 14;getEmergencySizeGib in interface VolumeOrBuilderpublic 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;getAutoGrownSizeGib in interface VolumeOrBuilderpublic long getRemainingSpaceGib()
The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.
int64 remaining_space_gib = 7;getRemainingSpaceGib in interface VolumeOrBuilderpublic boolean hasSnapshotReservationDetail()
Details about snapshot space reservation and usage on the storage volume.
.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
hasSnapshotReservationDetail in interface VolumeOrBuilderpublic Volume.SnapshotReservationDetail getSnapshotReservationDetail()
Details about snapshot space reservation and usage on the storage volume.
.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
getSnapshotReservationDetail in interface VolumeOrBuilderpublic Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder()
Details about snapshot space reservation and usage on the storage volume.
.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
getSnapshotReservationDetailOrBuilder in interface VolumeOrBuilderpublic int getSnapshotAutoDeleteBehaviorValue()
The behavior to use when snapshot reserved space is full.
.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9;
getSnapshotAutoDeleteBehaviorValue in interface VolumeOrBuilderpublic Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior()
The behavior to use when snapshot reserved space is full.
.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9;
getSnapshotAutoDeleteBehavior in interface VolumeOrBuilderpublic int getLabelsCount()
VolumeOrBuilderLabels as key value pairs.
map<string, string> labels = 12;getLabelsCount in interface VolumeOrBuilderpublic boolean containsLabels(String key)
Labels as key value pairs.
map<string, string> labels = 12;containsLabels in interface VolumeOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface VolumeOrBuilderpublic Map<String,String> getLabelsMap()
Labels as key value pairs.
map<string, string> labels = 12;getLabelsMap in interface VolumeOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs.
map<string, string> labels = 12;getLabelsOrDefault in interface VolumeOrBuilderpublic String getLabelsOrThrow(String key)
Labels as key value pairs.
map<string, string> labels = 12;getLabelsOrThrow in interface VolumeOrBuilderpublic boolean getSnapshotEnabled()
Whether snapshots are enabled.
bool snapshot_enabled = 13;getSnapshotEnabled in interface VolumeOrBuilderpublic String getPod()
Immutable. Pod name.
string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];getPod in interface VolumeOrBuilderpublic com.google.protobuf.ByteString getPodBytes()
Immutable. Pod name.
string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];getPodBytes in interface VolumeOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Volume parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Volume parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Volume parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Volume parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Volume parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Volume parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Volume parseFrom(InputStream input) throws IOException
IOExceptionpublic static Volume parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Volume parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Volume parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Volume parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Volume parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Volume.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Volume.Builder newBuilder()
public static Volume.Builder newBuilder(Volume prototype)
public Volume.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Volume.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Volume getDefaultInstance()
public static com.google.protobuf.Parser<Volume> parser()
public com.google.protobuf.Parser<Volume> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Volume getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.