Class Lun (0.16.0)

public final class Lun extends GeneratedMessageV3 implements LunOrBuilder

A storage volume logical unit number (LUN).

Protobuf type google.cloud.baremetalsolution.v2.Lun

Implements

LunOrBuilder

Static Fields

BOOT_LUN_FIELD_NUMBER

public static final int BOOT_LUN_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

MULTIPROTOCOL_TYPE_FIELD_NUMBER

public static final int MULTIPROTOCOL_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SHAREABLE_FIELD_NUMBER

public static final int SHAREABLE_FIELD_NUMBER
Field Value
TypeDescription
int

SIZE_GB_FIELD_NUMBER

public static final int SIZE_GB_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

STORAGE_TYPE_FIELD_NUMBER

public static final int STORAGE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

STORAGE_VOLUME_FIELD_NUMBER

public static final int STORAGE_VOLUME_FIELD_NUMBER
Field Value
TypeDescription
int

WWID_FIELD_NUMBER

public static final int WWID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Lun getDefaultInstance()
Returns
TypeDescription
Lun

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Lun.Builder newBuilder()
Returns
TypeDescription
Lun.Builder

newBuilder(Lun prototype)

public static Lun.Builder newBuilder(Lun prototype)
Parameter
NameDescription
prototypeLun
Returns
TypeDescription
Lun.Builder

parseDelimitedFrom(InputStream input)

public static Lun parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Lun
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Lun parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Lun
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Lun parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Lun
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Lun parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Lun
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Lun parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Lun
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Lun parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Lun
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Lun parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Lun
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Lun parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Lun
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Lun parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Lun
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Lun parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Lun
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Lun parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Lun
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Lun parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Lun
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Lun> parser()
Returns
TypeDescription
Parser<Lun>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBootLun()

public boolean getBootLun()

Display if this LUN is a boot LUN.

bool boot_lun = 7;

Returns
TypeDescription
boolean

The bootLun.

getDefaultInstanceForType()

public Lun getDefaultInstanceForType()
Returns
TypeDescription
Lun

getId()

public String getId()

An identifier for the LUN, generated by the backend.

string id = 10;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

An identifier for the LUN, generated by the backend.

string id = 10;

Returns
TypeDescription
ByteString

The bytes for id.

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;

Returns
TypeDescription
Lun.MultiprotocolType

The multiprotocolType.

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;

Returns
TypeDescription
int

The enum numeric value on the wire for multiprotocolType.

getName()

public String getName()

Output only. The name of the LUN.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the LUN.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<Lun> getParserForType()
Returns
TypeDescription
Parser<Lun>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getShareable()

public boolean getShareable()

Display if this LUN can be shared between multiple physical servers.

bool shareable = 6;

Returns
TypeDescription
boolean

The shareable.

getSizeGb()

public long getSizeGb()

The size of this LUN, in gigabytes.

int64 size_gb = 3;

Returns
TypeDescription
long

The sizeGb.

getState()

public Lun.State getState()

The state of this storage volume.

.google.cloud.baremetalsolution.v2.Lun.State state = 2;

Returns
TypeDescription
Lun.State

The state.

getStateValue()

public int getStateValue()

The state of this storage volume.

.google.cloud.baremetalsolution.v2.Lun.State state = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getStorageType()

public Lun.StorageType getStorageType()

The storage type for this LUN.

.google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8;

Returns
TypeDescription
Lun.StorageType

The storageType.

getStorageTypeValue()

public int getStorageTypeValue()

The storage type for this LUN.

.google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8;

Returns
TypeDescription
int

The enum numeric value on the wire for storageType.

getStorageVolume()

public String getStorageVolume()

Display the storage volume for this LUN.

string storage_volume = 5 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The storageVolume.

getStorageVolumeBytes()

public ByteString getStorageVolumeBytes()

Display the storage volume for this LUN.

string storage_volume = 5 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for storageVolume.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getWwid()

public String getWwid()

The WWID for this LUN.

string wwid = 9;

Returns
TypeDescription
String

The wwid.

getWwidBytes()

public ByteString getWwidBytes()

The WWID for this LUN.

string wwid = 9;

Returns
TypeDescription
ByteString

The bytes for wwid.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Lun.Builder newBuilderForType()
Returns
TypeDescription
Lun.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Lun.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Lun.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Lun.Builder toBuilder()
Returns
TypeDescription
Lun.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException