Class 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 type google.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
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • 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 interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.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 class com.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 interface LunOrBuilder
        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 interface LunOrBuilder
        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 interface LunOrBuilder
        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 interface LunOrBuilder
        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 interface LunOrBuilder
        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 interface LunOrBuilder
        Returns:
        The state.
      • getSizeGb

        public long getSizeGb()
         The size of this LUN, in gigabytes.
         
        int64 size_gb = 3;
        Specified by:
        getSizeGb in interface LunOrBuilder
        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 interface LunOrBuilder
        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 interface LunOrBuilder
        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 interface LunOrBuilder
        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 interface LunOrBuilder
        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 interface LunOrBuilder
        Returns:
        The shareable.
      • getBootLun

        public boolean getBootLun()
         Display if this LUN is a boot LUN.
         
        bool boot_lun = 7;
        Specified by:
        getBootLun in interface LunOrBuilder
        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 interface LunOrBuilder
        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 interface LunOrBuilder
        Returns:
        The storageType.
      • getWwid

        public String getWwid()
         The WWID for this LUN.
         
        string wwid = 9;
        Specified by:
        getWwid in interface LunOrBuilder
        Returns:
        The wwid.
      • getWwidBytes

        public com.google.protobuf.ByteString getWwidBytes()
         The WWID for this LUN.
         
        string wwid = 9;
        Specified by:
        getWwidBytes in interface LunOrBuilder
        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 interface LunOrBuilder
        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 interface LunOrBuilder
        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 interface LunOrBuilder
      • 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 interface LunOrBuilder
        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 interface LunOrBuilder
        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 interface LunOrBuilder
        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 interface LunOrBuilder
        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 interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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
      • 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 interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • newBuilder

        public static Lun.Builder newBuilder​(Lun prototype)
      • toBuilder

        public Lun.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Lun.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.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 interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Lun getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder