public static final class Lun.Builder extends GeneratedMessage.Builder<Lun.Builder> implements LunOrBuilderA storage volume logical unit number (LUN).
Protobuf type google.cloud.baremetalsolution.v2.Lun
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Lun.BuilderImplements
LunOrBuilderStatic 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 |
StringThe 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 |
ByteStringThe bytes of the instances to add. |
| Returns | |
|---|---|
| Type | Description |
Lun.Builder |
This builder for chaining. |
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 |
|
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 |
|
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. |
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. |
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 |
|
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 |
intThe 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 |
intThe 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Lun.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Lun.Builder |
|
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 |
booleanThe 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 |
|
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 |
StringThe 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 |
ByteStringThe 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 |
intThe index to set the value at. |
value |
StringThe 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.MultiprotocolTypeThe 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 |
intThe 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 |
StringThe 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 |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Lun.Builder |
This builder for chaining. |
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 |
booleanThe 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 |
longThe 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.StateThe 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 |
intThe 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.StorageTypeThe 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 |
intThe 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 |
StringThe 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 |
ByteStringThe bytes for storageVolume to set. |
| Returns | |
|---|---|
| Type | Description |
Lun.Builder |
This builder for chaining. |
setWwid(String value)
public Lun.Builder setWwid(String value)The WWID for this LUN.
string wwid = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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 |
ByteStringThe bytes for wwid to set. |
| Returns | |
|---|---|
| Type | Description |
Lun.Builder |
This builder for chaining. |