Class Lun.Builder (0.44.0)

public static final class Lun.Builder extends GeneratedMessageV3.Builder<Lun.Builder> implements LunOrBuilder

A storage volume logical unit number (LUN).

Protobuf type google.cloud.baremetalsolution.v2.Lun

Implements

LunOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllInstances(Iterable<String> values)

public Lun.Builder addAllInstances(Iterable<String> values)

Output only. Instances this Lun is attached to.

repeated string instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The instances to add.

Returns
Type Description
Lun.Builder

This builder for chaining.

addInstances(String value)

public Lun.Builder addInstances(String value)

Output only. Instances this Lun is attached to.

repeated string instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The instances to add.

Returns
Type Description
Lun.Builder

This builder for chaining.

addInstancesBytes(ByteString value)

public Lun.Builder addInstancesBytes(ByteString value)

Output only. Instances this Lun is attached to.

repeated string instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the instances to add.

Returns
Type Description
Lun.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Lun.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Lun.Builder
Overrides

build()

public Lun build()
Returns
Type Description
Lun

buildPartial()

public Lun buildPartial()
Returns
Type Description
Lun

clear()

public Lun.Builder clear()
Returns
Type Description
Lun.Builder
Overrides

clearBootLun()

public Lun.Builder clearBootLun()

Display if this LUN is a boot LUN.

bool boot_lun = 7;

Returns
Type Description
Lun.Builder

This builder for chaining.

clearExpireTime()

public Lun.Builder clearExpireTime()

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];

Returns
Type Description
Lun.Builder

clearField(Descriptors.FieldDescriptor field)

public Lun.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Lun.Builder
Overrides

clearId()

public Lun.Builder clearId()

An identifier for the LUN, generated by the backend.

string id = 10;

Returns
Type Description
Lun.Builder

This builder for chaining.

clearInstances()

public Lun.Builder clearInstances()

Output only. Instances this Lun is attached to.

repeated string instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
Lun.Builder

This builder for chaining.

clearMultiprotocolType()

public Lun.Builder clearMultiprotocolType()

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
Type Description
Lun.Builder

This builder for chaining.

clearName()

public Lun.Builder clearName()

Output only. The name of the LUN.

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

Returns
Type Description
Lun.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Lun.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Lun.Builder
Overrides

clearShareable()

public Lun.Builder clearShareable()

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

bool shareable = 6;

Returns
Type Description
Lun.Builder

This builder for chaining.

clearSizeGb()

public Lun.Builder clearSizeGb()

The size of this LUN, in gigabytes.

int64 size_gb = 3;

Returns
Type Description
Lun.Builder

This builder for chaining.

clearState()

public Lun.Builder clearState()

The state of this storage volume.

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

Returns
Type Description
Lun.Builder

This builder for chaining.

clearStorageType()

public Lun.Builder clearStorageType()

The storage type for this LUN.

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

Returns
Type Description
Lun.Builder

This builder for chaining.

clearStorageVolume()

public Lun.Builder clearStorageVolume()

Display the storage volume for this LUN.

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

Returns
Type Description
Lun.Builder

This builder for chaining.

clearWwid()

public Lun.Builder clearWwid()

The WWID for this LUN.

string wwid = 9;

Returns
Type Description
Lun.Builder

This builder for chaining.

clone()

public Lun.Builder clone()
Returns
Type Description
Lun.Builder
Overrides

getBootLun()

public boolean getBootLun()

Display if this LUN is a boot LUN.

bool boot_lun = 7;

Returns
Type Description
boolean

The bootLun.

getDefaultInstanceForType()

public Lun getDefaultInstanceForType()
Returns
Type Description
Lun

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExpireTime()

public 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];

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

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];

Returns
Type Description
Builder

getExpireTimeOrBuilder()

public 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];

Returns
Type Description
TimestampOrBuilder

getId()

public String getId()

An identifier for the LUN, generated by the backend.

string id = 10;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

An identifier for the LUN, generated by the backend.

string id = 10;

Returns
Type Description
ByteString

The bytes for id.

getInstances(int index)

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) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The instances at the given index.

getInstancesBytes(int index)

public 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) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the instances at the given index.

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) = { ... }

Returns
Type Description
int

The count of instances.

getInstancesList()

public ProtocolStringList getInstancesList()

Output only. Instances this Lun is attached to.

repeated string instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the instances.

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
Type Description
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
Type Description
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
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the LUN.

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

Returns
Type Description
ByteString

The bytes for name.

getShareable()

public boolean getShareable()

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

bool shareable = 6;

Returns
Type Description
boolean

The shareable.

getSizeGb()

public long getSizeGb()

The size of this LUN, in gigabytes.

int64 size_gb = 3;

Returns
Type Description
long

The sizeGb.

getState()

public Lun.State getState()

The state of this storage volume.

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

Returns
Type Description
Lun.State

The state.

getStateValue()

public int getStateValue()

The state of this storage volume.

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

Returns
Type Description
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
Type Description
Lun.StorageType

The storageType.

getStorageTypeValue()

public int getStorageTypeValue()

The storage type for this LUN.

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

Returns
Type Description
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
Type Description
String

The storageVolume.

getStorageVolumeBytes()

public ByteString getStorageVolumeBytes()

Display the storage volume for this LUN.

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

Returns
Type Description
ByteString

The bytes for storageVolume.

getWwid()

public String getWwid()

The WWID for this LUN.

string wwid = 9;

Returns
Type Description
String

The wwid.

getWwidBytes()

public ByteString getWwidBytes()

The WWID for this LUN.

string wwid = 9;

Returns
Type Description
ByteString

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];

Returns
Type Description
boolean

Whether the expireTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExpireTime(Timestamp value)

public Lun.Builder mergeExpireTime(Timestamp value)

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];

Parameter
Name Description
value Timestamp
Returns
Type Description
Lun.Builder

mergeFrom(Lun other)

public Lun.Builder mergeFrom(Lun other)
Parameter
Name Description
other Lun
Returns
Type Description
Lun.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Lun.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Lun.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Lun.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Lun.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Lun.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Lun.Builder
Overrides

setBootLun(boolean value)

public Lun.Builder setBootLun(boolean value)

Display if this LUN is a boot LUN.

bool boot_lun = 7;

Parameter
Name Description
value boolean

The bootLun to set.

Returns
Type Description
Lun.Builder

This builder for chaining.

setExpireTime(Timestamp value)

public Lun.Builder setExpireTime(Timestamp value)

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];

Parameter
Name Description
value Timestamp
Returns
Type Description
Lun.Builder

setExpireTime(Timestamp.Builder builderForValue)

public Lun.Builder setExpireTime(Timestamp.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Lun.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Lun.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Lun.Builder
Overrides

setId(String value)

public Lun.Builder setId(String value)

An identifier for the LUN, generated by the backend.

string id = 10;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
Lun.Builder

This builder for chaining.

setIdBytes(ByteString value)

public Lun.Builder setIdBytes(ByteString value)

An identifier for the LUN, generated by the backend.

string id = 10;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
Lun.Builder

This builder for chaining.

setInstances(int index, String value)

public Lun.Builder setInstances(int index, String value)

Output only. Instances this Lun is attached to.

repeated string instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The instances to set.

Returns
Type Description
Lun.Builder

This builder for chaining.

setMultiprotocolType(Lun.MultiprotocolType value)

public Lun.Builder setMultiprotocolType(Lun.MultiprotocolType value)

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;

Parameter
Name Description
value Lun.MultiprotocolType

The multiprotocolType to set.

Returns
Type Description
Lun.Builder

This builder for chaining.

setMultiprotocolTypeValue(int value)

public Lun.Builder setMultiprotocolTypeValue(int value)

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;

Parameter
Name Description
value int

The enum numeric value on the wire for multiprotocolType to set.

Returns
Type Description
Lun.Builder

This builder for chaining.

setName(String value)

public Lun.Builder setName(String value)

Output only. The name of the LUN.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Lun.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Lun.Builder setNameBytes(ByteString value)

Output only. The name of the LUN.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Lun.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Lun.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Lun.Builder
Overrides

setShareable(boolean value)

public Lun.Builder setShareable(boolean value)

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

bool shareable = 6;

Parameter
Name Description
value boolean

The shareable to set.

Returns
Type Description
Lun.Builder

This builder for chaining.

setSizeGb(long value)

public Lun.Builder setSizeGb(long value)

The size of this LUN, in gigabytes.

int64 size_gb = 3;

Parameter
Name Description
value long

The sizeGb to set.

Returns
Type Description
Lun.Builder

This builder for chaining.

setState(Lun.State value)

public Lun.Builder setState(Lun.State value)

The state of this storage volume.

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

Parameter
Name Description
value Lun.State

The state to set.

Returns
Type Description
Lun.Builder

This builder for chaining.

setStateValue(int value)

public Lun.Builder setStateValue(int value)

The state of this storage volume.

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

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Lun.Builder

This builder for chaining.

setStorageType(Lun.StorageType value)

public Lun.Builder setStorageType(Lun.StorageType value)

The storage type for this LUN.

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

Parameter
Name Description
value Lun.StorageType

The storageType to set.

Returns
Type Description
Lun.Builder

This builder for chaining.

setStorageTypeValue(int value)

public Lun.Builder setStorageTypeValue(int value)

The storage type for this LUN.

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

Parameter
Name Description
value int

The enum numeric value on the wire for storageType to set.

Returns
Type Description
Lun.Builder

This builder for chaining.

setStorageVolume(String value)

public Lun.Builder setStorageVolume(String value)

Display the storage volume for this LUN.

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

Parameter
Name Description
value String

The storageVolume to set.

Returns
Type Description
Lun.Builder

This builder for chaining.

setStorageVolumeBytes(ByteString value)

public Lun.Builder setStorageVolumeBytes(ByteString value)

Display the storage volume for this LUN.

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

Parameter
Name Description
value ByteString

The bytes for storageVolume to set.

Returns
Type Description
Lun.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Lun.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Lun.Builder
Overrides

setWwid(String value)

public Lun.Builder setWwid(String value)

The WWID for this LUN.

string wwid = 9;

Parameter
Name Description
value String

The wwid to set.

Returns
Type Description
Lun.Builder

This builder for chaining.

setWwidBytes(ByteString value)

public Lun.Builder setWwidBytes(ByteString value)

The WWID for this LUN.

string wwid = 9;

Parameter
Name Description
value ByteString

The bytes for wwid to set.

Returns
Type Description
Lun.Builder

This builder for chaining.