Class Lun
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.baremetalsolution.v2.Lun
-
- All Implemented Interfaces:
LunOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Lun extends com.google.protobuf.GeneratedMessageV3 implements LunOrBuilder
A storage volume logical unit number (LUN).
Protobuf typegoogle.cloud.baremetalsolution.v2.Lun- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLun.BuilderA storage volume logical unit number (LUN).static classLun.MultiprotocolTypeDisplay the operating systems present for the LUN multiprotocol type.static classLun.StateThe possible states for the LUN.static classLun.StorageTypeThe storage types for a LUN.-
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 intBOOT_LUN_FIELD_NUMBERstatic intEXPIRE_TIME_FIELD_NUMBERstatic intID_FIELD_NUMBERstatic intINSTANCES_FIELD_NUMBERstatic intMULTIPROTOCOL_TYPE_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intSHAREABLE_FIELD_NUMBERstatic intSIZE_GB_FIELD_NUMBERstatic intSTATE_FIELD_NUMBERstatic intSTORAGE_TYPE_FIELD_NUMBERstatic intSTORAGE_VOLUME_FIELD_NUMBERstatic intWWID_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleangetBootLun()Display if this LUN is a boot LUN.static LungetDefaultInstance()LungetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.TimestampgetExpireTime()Output only.com.google.protobuf.TimestampOrBuildergetExpireTimeOrBuilder()Output only.StringgetId()An identifier for the LUN, generated by the backend.com.google.protobuf.ByteStringgetIdBytes()An identifier for the LUN, generated by the backend.StringgetInstances(int index)Output only.com.google.protobuf.ByteStringgetInstancesBytes(int index)Output only.intgetInstancesCount()Output only.com.google.protobuf.ProtocolStringListgetInstancesList()Output only.Lun.MultiprotocolTypegetMultiprotocolType()The LUN multiprotocol type ensures the characteristics of the LUN are optimized for each operating system.intgetMultiprotocolTypeValue()The LUN multiprotocol type ensures the characteristics of the LUN are optimized for each operating system.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.com.google.protobuf.Parser<Lun>getParserForType()intgetSerializedSize()booleangetShareable()Display if this LUN can be shared between multiple physical servers.longgetSizeGb()The size of this LUN, in gigabytes.Lun.StategetState()The state of this storage volume.intgetStateValue()The state of this storage volume.Lun.StorageTypegetStorageType()The storage type for this LUN.intgetStorageTypeValue()The storage type for this LUN.StringgetStorageVolume()Display the storage volume for this LUN.com.google.protobuf.ByteStringgetStorageVolumeBytes()Display the storage volume for this LUN.StringgetWwid()The WWID for this LUN.com.google.protobuf.ByteStringgetWwidBytes()The WWID for this LUN.booleanhasExpireTime()Output only.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Lun.BuildernewBuilder()static Lun.BuildernewBuilder(Lun prototype)Lun.BuildernewBuilderForType()protected Lun.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static LunparseDelimitedFrom(InputStream input)static LunparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LunparseFrom(byte[] data)static LunparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LunparseFrom(com.google.protobuf.ByteString data)static LunparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LunparseFrom(com.google.protobuf.CodedInputStream input)static LunparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LunparseFrom(InputStream input)static LunparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LunparseFrom(ByteBuffer data)static LunparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Lun>parser()Lun.BuildertoBuilder()voidwriteTo(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, internalGetMapField, 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
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SIZE_GB_FIELD_NUMBER
public static final int SIZE_GB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MULTIPROTOCOL_TYPE_FIELD_NUMBER
public static final int MULTIPROTOCOL_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STORAGE_VOLUME_FIELD_NUMBER
public static final int STORAGE_VOLUME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SHAREABLE_FIELD_NUMBER
public static final int SHAREABLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOT_LUN_FIELD_NUMBER
public static final int BOOT_LUN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STORAGE_TYPE_FIELD_NUMBER
public static final int STORAGE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WWID_FIELD_NUMBER
public static final int WWID_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
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
Output only. The name of the LUN.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceLunOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The name of the LUN.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceLunOrBuilder- Returns:
- The bytes for name.
-
getId
public String getId()
An identifier for the LUN, generated by the backend.
string id = 10;- Specified by:
getIdin interfaceLunOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
An identifier for the LUN, generated by the backend.
string id = 10;- Specified by:
getIdBytesin interfaceLunOrBuilder- Returns:
- The bytes for id.
-
getStateValue
public int getStateValue()
The state of this storage volume.
.google.cloud.baremetalsolution.v2.Lun.State state = 2;- Specified by:
getStateValuein interfaceLunOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
public Lun.State getState()
The state of this storage volume.
.google.cloud.baremetalsolution.v2.Lun.State state = 2;- Specified by:
getStatein interfaceLunOrBuilder- Returns:
- The state.
-
getSizeGb
public long getSizeGb()
The size of this LUN, in gigabytes.
int64 size_gb = 3;- Specified by:
getSizeGbin interfaceLunOrBuilder- Returns:
- The sizeGb.
-
getMultiprotocolTypeValue
public int getMultiprotocolTypeValue()
The LUN multiprotocol type ensures the characteristics of the LUN are optimized for each operating system.
.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4;- Specified by:
getMultiprotocolTypeValuein interfaceLunOrBuilder- Returns:
- The enum numeric value on the wire for multiprotocolType.
-
getMultiprotocolType
public Lun.MultiprotocolType getMultiprotocolType()
The LUN multiprotocol type ensures the characteristics of the LUN are optimized for each operating system.
.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4;- Specified by:
getMultiprotocolTypein interfaceLunOrBuilder- Returns:
- The multiprotocolType.
-
getStorageVolume
public String getStorageVolume()
Display the storage volume for this LUN.
string storage_volume = 5 [(.google.api.resource_reference) = { ... }- Specified by:
getStorageVolumein interfaceLunOrBuilder- Returns:
- The storageVolume.
-
getStorageVolumeBytes
public com.google.protobuf.ByteString getStorageVolumeBytes()
Display the storage volume for this LUN.
string storage_volume = 5 [(.google.api.resource_reference) = { ... }- Specified by:
getStorageVolumeBytesin interfaceLunOrBuilder- Returns:
- The bytes for storageVolume.
-
getShareable
public boolean getShareable()
Display if this LUN can be shared between multiple physical servers.
bool shareable = 6;- Specified by:
getShareablein interfaceLunOrBuilder- Returns:
- The shareable.
-
getBootLun
public boolean getBootLun()
Display if this LUN is a boot LUN.
bool boot_lun = 7;- Specified by:
getBootLunin interfaceLunOrBuilder- Returns:
- The bootLun.
-
getStorageTypeValue
public int getStorageTypeValue()
The storage type for this LUN.
.google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8;- Specified by:
getStorageTypeValuein interfaceLunOrBuilder- Returns:
- The enum numeric value on the wire for storageType.
-
getStorageType
public Lun.StorageType getStorageType()
The storage type for this LUN.
.google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8;- Specified by:
getStorageTypein interfaceLunOrBuilder- Returns:
- The storageType.
-
getWwid
public String getWwid()
The WWID for this LUN.
string wwid = 9;- Specified by:
getWwidin interfaceLunOrBuilder- Returns:
- The wwid.
-
getWwidBytes
public com.google.protobuf.ByteString getWwidBytes()
The WWID for this LUN.
string wwid = 9;- Specified by:
getWwidBytesin interfaceLunOrBuilder- Returns:
- The bytes for wwid.
-
hasExpireTime
public boolean hasExpireTime()
Output only. Time after which LUN will be fully deleted. It is filled only for LUNs in COOL_OFF state.
.google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasExpireTimein interfaceLunOrBuilder- Returns:
- Whether the expireTime field is set.
-
getExpireTime
public com.google.protobuf.Timestamp getExpireTime()
Output only. Time after which LUN will be fully deleted. It is filled only for LUNs in COOL_OFF state.
.google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExpireTimein interfaceLunOrBuilder- Returns:
- The expireTime.
-
getExpireTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
Output only. Time after which LUN will be fully deleted. It is filled only for LUNs in COOL_OFF state.
.google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExpireTimeOrBuilderin interfaceLunOrBuilder
-
getInstancesList
public com.google.protobuf.ProtocolStringList getInstancesList()
Output only. Instances this Lun is attached to.
repeated string instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getInstancesListin interfaceLunOrBuilder- Returns:
- A list containing the instances.
-
getInstancesCount
public int getInstancesCount()
Output only. Instances this Lun is attached to.
repeated string instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getInstancesCountin interfaceLunOrBuilder- Returns:
- The count of instances.
-
getInstances
public String getInstances(int index)
Output only. Instances this Lun is attached to.
repeated string instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getInstancesin interfaceLunOrBuilder- 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 Lun is attached to.
repeated string instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getInstancesBytesin interfaceLunOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the instances at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Lun parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Lun parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Lun parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Lun parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Lun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Lun parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Lun parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Lun parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Lun parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Lun parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Lun parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Lun parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Lun.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Lun.Builder newBuilder()
-
newBuilder
public static Lun.Builder newBuilder(Lun prototype)
-
toBuilder
public Lun.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Lun.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Lun getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Lun> parser()
-
getParserForType
public com.google.protobuf.Parser<Lun> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Lun getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-