Class Volume
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.baremetalsolution.v2.Volume
-
- All Implemented Interfaces:
VolumeOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class Volume extends com.google.protobuf.GeneratedMessageV3 implements VolumeOrBuilder
A storage volume.
Protobuf typegoogle.cloud.baremetalsolution.v2.Volume
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Volume.Builder
A storage volume.static class
Volume.Protocol
Storage protocol.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.static class
Volume.WorkloadProfile
The possible values for a workload profile.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ATTACHED_FIELD_NUMBER
static int
AUTO_GROWN_SIZE_GIB_FIELD_NUMBER
static int
BOOT_VOLUME_FIELD_NUMBER
static int
CURRENT_SIZE_GIB_FIELD_NUMBER
static int
EMERGENCY_SIZE_GIB_FIELD_NUMBER
static int
EXPIRE_TIME_FIELD_NUMBER
static int
ID_FIELD_NUMBER
static int
INSTANCES_FIELD_NUMBER
static int
LABELS_FIELD_NUMBER
static int
MAX_SIZE_GIB_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
NOTES_FIELD_NUMBER
static int
ORIGINALLY_REQUESTED_SIZE_GIB_FIELD_NUMBER
static int
PERFORMANCE_TIER_FIELD_NUMBER
static int
POD_FIELD_NUMBER
static int
PROTOCOL_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
static int
WORKLOAD_PROFILE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Labels as key value pairs.boolean
equals(Object obj)
boolean
getAttached()
Output only.long
getAutoGrownSizeGib()
The size, in GiB, that this storage volume has expanded as a result of an auto grow policy.boolean
getBootVolume()
Output only.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.com.google.protobuf.Timestamp
getExpireTime()
Output only.com.google.protobuf.TimestampOrBuilder
getExpireTimeOrBuilder()
Output only.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.String
getInstances(int index)
Output only.com.google.protobuf.ByteString
getInstancesBytes(int index)
Output only.int
getInstancesCount()
Output only.com.google.protobuf.ProtocolStringList
getInstancesList()
Output only.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.long
getMaxSizeGib()
Maximum size volume can be expanded to in case of evergency, in GiB.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.String
getNotes()
Input only.com.google.protobuf.ByteString
getNotesBytes()
Input only.long
getOriginallyRequestedSizeGib()
Originally requested size, in GiB.com.google.protobuf.Parser<Volume>
getParserForType()
VolumePerformanceTier
getPerformanceTier()
Immutable.int
getPerformanceTierValue()
Immutable.String
getPod()
Immutable.com.google.protobuf.ByteString
getPodBytes()
Immutable.Volume.Protocol
getProtocol()
Output only.int
getProtocolValue()
Output only.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.Volume.WorkloadProfile
getWorkloadProfile()
The workload profile for the volume.int
getWorkloadProfileValue()
The workload profile for the volume.boolean
hasExpireTime()
Output only.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(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 Volume
parseFrom(ByteBuffer data)
static Volume
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Volume>
parser()
Volume.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STORAGE_TYPE_FIELD_NUMBER
public static final int STORAGE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUESTED_SIZE_GIB_FIELD_NUMBER
public static final int REQUESTED_SIZE_GIB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ORIGINALLY_REQUESTED_SIZE_GIB_FIELD_NUMBER
public static final int ORIGINALLY_REQUESTED_SIZE_GIB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CURRENT_SIZE_GIB_FIELD_NUMBER
public static final int CURRENT_SIZE_GIB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EMERGENCY_SIZE_GIB_FIELD_NUMBER
public static final int EMERGENCY_SIZE_GIB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_SIZE_GIB_FIELD_NUMBER
public static final int MAX_SIZE_GIB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AUTO_GROWN_SIZE_GIB_FIELD_NUMBER
public static final int AUTO_GROWN_SIZE_GIB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REMAINING_SPACE_GIB_FIELD_NUMBER
public static final int REMAINING_SPACE_GIB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SNAPSHOT_RESERVATION_DETAIL_FIELD_NUMBER
public static final int SNAPSHOT_RESERVATION_DETAIL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SNAPSHOT_AUTO_DELETE_BEHAVIOR_FIELD_NUMBER
public static final int SNAPSHOT_AUTO_DELETE_BEHAVIOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SNAPSHOT_ENABLED_FIELD_NUMBER
public static final int SNAPSHOT_ENABLED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
POD_FIELD_NUMBER
public static final int POD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROTOCOL_FIELD_NUMBER
public static final int PROTOCOL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOT_VOLUME_FIELD_NUMBER
public static final int BOOT_VOLUME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PERFORMANCE_TIER_FIELD_NUMBER
public static final int PERFORMANCE_TIER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NOTES_FIELD_NUMBER
public static final int NOTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WORKLOAD_PROFILE_FIELD_NUMBER
public static final int WORKLOAD_PROFILE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXPIRE_TIME_FIELD_NUMBER
public static final int EXPIRE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INSTANCES_FIELD_NUMBER
public static final int INSTANCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ATTACHED_FIELD_NUMBER
public static final int ATTACHED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
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];
- Specified by:
getName
in interfaceVolumeOrBuilder
- Returns:
- The name.
-
getNameBytes
public 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];
- Specified by:
getNameBytes
in interfaceVolumeOrBuilder
- Returns:
- The bytes for name.
-
getId
public String getId()
An identifier for the `Volume`, generated by the backend.
string id = 11;
- Specified by:
getId
in interfaceVolumeOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
An identifier for the `Volume`, generated by the backend.
string id = 11;
- Specified by:
getIdBytes
in interfaceVolumeOrBuilder
- Returns:
- The bytes for id.
-
getStorageTypeValue
public int getStorageTypeValue()
The storage type for this volume.
.google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;
- Specified by:
getStorageTypeValue
in interfaceVolumeOrBuilder
- Returns:
- The enum numeric value on the wire for storageType.
-
getStorageType
public Volume.StorageType getStorageType()
The storage type for this volume.
.google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;
- Specified by:
getStorageType
in interfaceVolumeOrBuilder
- Returns:
- The storageType.
-
getStateValue
public int getStateValue()
The state of this storage volume.
.google.cloud.baremetalsolution.v2.Volume.State state = 3;
- Specified by:
getStateValue
in interfaceVolumeOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
getState
public Volume.State getState()
The state of this storage volume.
.google.cloud.baremetalsolution.v2.Volume.State state = 3;
- Specified by:
getState
in interfaceVolumeOrBuilder
- Returns:
- The state.
-
getRequestedSizeGib
public long getRequestedSizeGib()
The requested size of this storage volume, in GiB.
int64 requested_size_gib = 4;
- Specified by:
getRequestedSizeGib
in interfaceVolumeOrBuilder
- Returns:
- The requestedSizeGib.
-
getOriginallyRequestedSizeGib
public long getOriginallyRequestedSizeGib()
Originally requested size, in GiB.
int64 originally_requested_size_gib = 16;
- Specified by:
getOriginallyRequestedSizeGib
in interfaceVolumeOrBuilder
- Returns:
- The originallyRequestedSizeGib.
-
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;
- Specified by:
getCurrentSizeGib
in interfaceVolumeOrBuilder
- Returns:
- The currentSizeGib.
-
getEmergencySizeGib
public long getEmergencySizeGib()
Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value.
int64 emergency_size_gib = 14;
- Specified by:
getEmergencySizeGib
in interfaceVolumeOrBuilder
- Returns:
- The emergencySizeGib.
-
getMaxSizeGib
public long getMaxSizeGib()
Maximum size volume can be expanded to in case of evergency, in GiB.
int64 max_size_gib = 17;
- Specified by:
getMaxSizeGib
in interfaceVolumeOrBuilder
- Returns:
- The maxSizeGib.
-
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;
- Specified by:
getAutoGrownSizeGib
in interfaceVolumeOrBuilder
- Returns:
- The autoGrownSizeGib.
-
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;
- Specified by:
getRemainingSpaceGib
in interfaceVolumeOrBuilder
- Returns:
- The remainingSpaceGib.
-
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;
- Specified by:
hasSnapshotReservationDetail
in interfaceVolumeOrBuilder
- Returns:
- Whether the snapshotReservationDetail field is set.
-
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;
- Specified by:
getSnapshotReservationDetail
in interfaceVolumeOrBuilder
- Returns:
- 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;
- Specified by:
getSnapshotReservationDetailOrBuilder
in interfaceVolumeOrBuilder
-
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;
- Specified by:
getSnapshotAutoDeleteBehaviorValue
in interfaceVolumeOrBuilder
- Returns:
- The enum numeric value on the wire for snapshotAutoDeleteBehavior.
-
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;
- Specified by:
getSnapshotAutoDeleteBehavior
in interfaceVolumeOrBuilder
- Returns:
- The snapshotAutoDeleteBehavior.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:VolumeOrBuilder
Labels as key value pairs.
map<string, string> labels = 12;
- Specified by:
getLabelsCount
in interfaceVolumeOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels as key value pairs.
map<string, string> labels = 12;
- Specified by:
containsLabels
in interfaceVolumeOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceVolumeOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels as key value pairs.
map<string, string> labels = 12;
- Specified by:
getLabelsMap
in interfaceVolumeOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs.
map<string, string> labels = 12;
- Specified by:
getLabelsOrDefault
in interfaceVolumeOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels as key value pairs.
map<string, string> labels = 12;
- Specified by:
getLabelsOrThrow
in interfaceVolumeOrBuilder
-
getSnapshotEnabled
public boolean getSnapshotEnabled()
Whether snapshots are enabled.
bool snapshot_enabled = 13;
- Specified by:
getSnapshotEnabled
in interfaceVolumeOrBuilder
- Returns:
- The snapshotEnabled.
-
getPod
public String getPod()
Immutable. Pod name.
string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getPod
in interfaceVolumeOrBuilder
- Returns:
- The pod.
-
getPodBytes
public com.google.protobuf.ByteString getPodBytes()
Immutable. Pod name.
string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getPodBytes
in interfaceVolumeOrBuilder
- Returns:
- The bytes for pod.
-
getProtocolValue
public int getProtocolValue()
Output only. Storage protocol for the Volume.
.google.cloud.baremetalsolution.v2.Volume.Protocol protocol = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getProtocolValue
in interfaceVolumeOrBuilder
- Returns:
- The enum numeric value on the wire for protocol.
-
getProtocol
public Volume.Protocol getProtocol()
Output only. Storage protocol for the Volume.
.google.cloud.baremetalsolution.v2.Volume.Protocol protocol = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getProtocol
in interfaceVolumeOrBuilder
- Returns:
- The protocol.
-
getBootVolume
public boolean getBootVolume()
Output only. Whether this volume is a boot volume. A boot volume is one which contains a boot LUN.
bool boot_volume = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getBootVolume
in interfaceVolumeOrBuilder
- Returns:
- The bootVolume.
-
getPerformanceTierValue
public int getPerformanceTierValue()
Immutable. Performance tier of the Volume. Default is SHARED.
.google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 20 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getPerformanceTierValue
in interfaceVolumeOrBuilder
- Returns:
- The enum numeric value on the wire for performanceTier.
-
getPerformanceTier
public VolumePerformanceTier getPerformanceTier()
Immutable. Performance tier of the Volume. Default is SHARED.
.google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 20 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getPerformanceTier
in interfaceVolumeOrBuilder
- Returns:
- The performanceTier.
-
getNotes
public String getNotes()
Input only. User-specified notes for new Volume. Used to provision Volumes that require manual intervention.
string notes = 21 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getNotes
in interfaceVolumeOrBuilder
- Returns:
- The notes.
-
getNotesBytes
public com.google.protobuf.ByteString getNotesBytes()
Input only. User-specified notes for new Volume. Used to provision Volumes that require manual intervention.
string notes = 21 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getNotesBytes
in interfaceVolumeOrBuilder
- Returns:
- The bytes for notes.
-
getWorkloadProfileValue
public int getWorkloadProfileValue()
The workload profile for the volume.
.google.cloud.baremetalsolution.v2.Volume.WorkloadProfile workload_profile = 22;
- Specified by:
getWorkloadProfileValue
in interfaceVolumeOrBuilder
- Returns:
- The enum numeric value on the wire for workloadProfile.
-
getWorkloadProfile
public Volume.WorkloadProfile getWorkloadProfile()
The workload profile for the volume.
.google.cloud.baremetalsolution.v2.Volume.WorkloadProfile workload_profile = 22;
- Specified by:
getWorkloadProfile
in interfaceVolumeOrBuilder
- Returns:
- The workloadProfile.
-
hasExpireTime
public boolean hasExpireTime()
Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.
.google.protobuf.Timestamp expire_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasExpireTime
in interfaceVolumeOrBuilder
- Returns:
- Whether the expireTime field is set.
-
getExpireTime
public com.google.protobuf.Timestamp getExpireTime()
Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.
.google.protobuf.Timestamp expire_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getExpireTime
in interfaceVolumeOrBuilder
- Returns:
- The expireTime.
-
getExpireTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.
.google.protobuf.Timestamp expire_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getExpireTimeOrBuilder
in interfaceVolumeOrBuilder
-
getInstancesList
public com.google.protobuf.ProtocolStringList getInstancesList()
Output only. Instances this Volume is attached to. This field is set only in Get requests.
repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Specified by:
getInstancesList
in interfaceVolumeOrBuilder
- Returns:
- A list containing the instances.
-
getInstancesCount
public int getInstancesCount()
Output only. Instances this Volume is attached to. This field is set only in Get requests.
repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Specified by:
getInstancesCount
in interfaceVolumeOrBuilder
- Returns:
- The count of instances.
-
getInstances
public String getInstances(int index)
Output only. Instances this Volume is attached to. This field is set only in Get requests.
repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Specified by:
getInstances
in interfaceVolumeOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The instances at the given index.
-
getInstancesBytes
public com.google.protobuf.ByteString getInstancesBytes(int index)
Output only. Instances this Volume is attached to. This field is set only in Get requests.
repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Specified by:
getInstancesBytes
in interfaceVolumeOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the instances at the given index.
-
getAttached
public boolean getAttached()
Output only. Is the Volume attached at at least one instance. This field is a lightweight counterpart of `instances` field. It is filled in List responses as well.
bool attached = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getAttached
in interfaceVolumeOrBuilder
- Returns:
- The attached.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Volume parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Volume parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Volume parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Volume parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Volume parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Volume parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Volume parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Volume parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Volume parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Volume parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Volume parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Volume parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Volume.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Volume.Builder newBuilder()
-
newBuilder
public static Volume.Builder newBuilder(Volume prototype)
-
toBuilder
public Volume.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Volume.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Volume getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Volume> parser()
-
getParserForType
public com.google.protobuf.Parser<Volume> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Volume getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-