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 class
Lun.Builder
A storage volume logical unit number (LUN).static class
Lun.MultiprotocolType
Display the operating systems present for the LUN multiprotocol type.static class
Lun.State
The possible states for the LUN.static class
Lun.StorageType
The 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 int
BOOT_LUN_FIELD_NUMBER
static int
EXPIRE_TIME_FIELD_NUMBER
static int
ID_FIELD_NUMBER
static int
INSTANCES_FIELD_NUMBER
static int
MULTIPROTOCOL_TYPE_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
SHAREABLE_FIELD_NUMBER
static int
SIZE_GB_FIELD_NUMBER
static int
STATE_FIELD_NUMBER
static int
STORAGE_TYPE_FIELD_NUMBER
static int
STORAGE_VOLUME_FIELD_NUMBER
static int
WWID_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
boolean
getBootLun()
Display if this LUN is a boot LUN.static Lun
getDefaultInstance()
Lun
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Timestamp
getExpireTime()
Output only.com.google.protobuf.TimestampOrBuilder
getExpireTimeOrBuilder()
Output only.String
getId()
An identifier for the LUN, generated by the backend.com.google.protobuf.ByteString
getIdBytes()
An identifier for the LUN, 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.Lun.MultiprotocolType
getMultiprotocolType()
The LUN multiprotocol type ensures the characteristics of the LUN are optimized for each operating system.int
getMultiprotocolTypeValue()
The LUN multiprotocol type ensures the characteristics of the LUN are optimized for each operating system.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.com.google.protobuf.Parser<Lun>
getParserForType()
int
getSerializedSize()
boolean
getShareable()
Display if this LUN can be shared between multiple physical servers.long
getSizeGb()
The size of this LUN, in gigabytes.Lun.State
getState()
The state of this storage volume.int
getStateValue()
The state of this storage volume.Lun.StorageType
getStorageType()
The storage type for this LUN.int
getStorageTypeValue()
The storage type for this LUN.String
getStorageVolume()
Display the storage volume for this LUN.com.google.protobuf.ByteString
getStorageVolumeBytes()
Display the storage volume for this LUN.String
getWwid()
The WWID for this LUN.com.google.protobuf.ByteString
getWwidBytes()
The WWID for this LUN.boolean
hasExpireTime()
Output only.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Lun.Builder
newBuilder()
static Lun.Builder
newBuilder(Lun prototype)
Lun.Builder
newBuilderForType()
protected Lun.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Lun
parseDelimitedFrom(InputStream input)
static Lun
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Lun
parseFrom(byte[] data)
static Lun
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Lun
parseFrom(com.google.protobuf.ByteString data)
static Lun
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Lun
parseFrom(com.google.protobuf.CodedInputStream input)
static Lun
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Lun
parseFrom(InputStream input)
static Lun
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Lun
parseFrom(ByteBuffer data)
static Lun
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Lun>
parser()
Lun.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, 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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
getName
in 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:
getNameBytes
in interfaceLunOrBuilder
- Returns:
- The bytes for name.
-
getId
public String getId()
An identifier for the LUN, generated by the backend.
string id = 10;
- Specified by:
getId
in 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:
getIdBytes
in 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:
getStateValue
in 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:
getState
in interfaceLunOrBuilder
- Returns:
- The state.
-
getSizeGb
public long getSizeGb()
The size of this LUN, in gigabytes.
int64 size_gb = 3;
- Specified by:
getSizeGb
in 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:
getMultiprotocolTypeValue
in 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:
getMultiprotocolType
in 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:
getStorageVolume
in 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:
getStorageVolumeBytes
in 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:
getShareable
in interfaceLunOrBuilder
- Returns:
- The shareable.
-
getBootLun
public boolean getBootLun()
Display if this LUN is a boot LUN.
bool boot_lun = 7;
- Specified by:
getBootLun
in 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:
getStorageTypeValue
in 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:
getStorageType
in interfaceLunOrBuilder
- Returns:
- The storageType.
-
getWwid
public String getWwid()
The WWID for this LUN.
string wwid = 9;
- Specified by:
getWwid
in interfaceLunOrBuilder
- Returns:
- The wwid.
-
getWwidBytes
public com.google.protobuf.ByteString getWwidBytes()
The WWID for this LUN.
string wwid = 9;
- Specified by:
getWwidBytes
in 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:
hasExpireTime
in 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:
getExpireTime
in 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:
getExpireTimeOrBuilder
in 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:
getInstancesList
in 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:
getInstancesCount
in 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:
getInstances
in 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:
getInstancesBytes
in 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:
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 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Lun.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Lun getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-