Class Lun.Builder (0.37.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
TypeDescription
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
NameDescription
valuesIterable<String>

The instances to add.

Returns
TypeDescription
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
NameDescription
valueString

The instances to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the instances to add.

Returns
TypeDescription
Lun.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Lun.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Lun.Builder
Overrides

build()

public Lun build()
Returns
TypeDescription
Lun

buildPartial()

public Lun buildPartial()
Returns
TypeDescription
Lun

clear()

public Lun.Builder clear()
Returns
TypeDescription
Lun.Builder
Overrides

clearBootLun()

public Lun.Builder clearBootLun()

Display if this LUN is a boot LUN.

bool boot_lun = 7;

Returns
TypeDescription
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
TypeDescription
Lun.Builder

clearField(Descriptors.FieldDescriptor field)

public Lun.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Lun.Builder
Overrides

clearId()

public Lun.Builder clearId()

An identifier for the LUN, generated by the backend.

string id = 10;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Lun.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Lun.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Lun.Builder
Overrides

clearShareable()

public Lun.Builder clearShareable()

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

bool shareable = 6;

Returns
TypeDescription
Lun.Builder

This builder for chaining.

clearSizeGb()

public Lun.Builder clearSizeGb()

The size of this LUN, in gigabytes.

int64 size_gb = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Lun.Builder

This builder for chaining.

clearWwid()

public Lun.Builder clearWwid()

The WWID for this LUN.

string wwid = 9;

Returns
TypeDescription
Lun.Builder

This builder for chaining.

clone()

public Lun.Builder clone()
Returns
TypeDescription
Lun.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

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.

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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
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.

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.

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.

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
TypeDescription
boolean

Whether the expireTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Lun.Builder

mergeFrom(Lun other)

public Lun.Builder mergeFrom(Lun other)
Parameter
NameDescription
otherLun
Returns
TypeDescription
Lun.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Lun.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Lun.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Lun.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Lun.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Lun.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The bootLun to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Lun.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Lun.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The id to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The instances to set.

Returns
TypeDescription
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
NameDescription
valueLun.MultiprotocolType

The multiprotocolType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The shareable to set.

Returns
TypeDescription
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
NameDescription
valuelong

The sizeGb to set.

Returns
TypeDescription
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
NameDescription
valueLun.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueLun.StorageType

The storageType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The storageVolume to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for storageVolume to set.

Returns
TypeDescription
Lun.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Lun.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Lun.Builder
Overrides

setWwid(String value)

public Lun.Builder setWwid(String value)

The WWID for this LUN.

string wwid = 9;

Parameter
NameDescription
valueString

The wwid to set.

Returns
TypeDescription
Lun.Builder

This builder for chaining.

setWwidBytes(ByteString value)

public Lun.Builder setWwidBytes(ByteString value)

The WWID for this LUN.

string wwid = 9;

Parameter
NameDescription
valueByteString

The bytes for wwid to set.

Returns
TypeDescription
Lun.Builder

This builder for chaining.