Class DetachLunRequest.Builder (0.83.0)

public static final class DetachLunRequest.Builder extends GeneratedMessage.Builder<DetachLunRequest.Builder> implements DetachLunRequestOrBuilder

Message for detach specific LUN from an Instance.

Protobuf type google.cloud.baremetalsolution.v2.DetachLunRequest

Static Methods

getDescriptor()

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

Methods

build()

public DetachLunRequest build()
Returns
Type Description
DetachLunRequest

buildPartial()

public DetachLunRequest buildPartial()
Returns
Type Description
DetachLunRequest

clear()

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

clearInstance()

public DetachLunRequest.Builder clearInstance()

Required. Name of the instance.

string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
DetachLunRequest.Builder

This builder for chaining.

clearLun()

public DetachLunRequest.Builder clearLun()

Required. Name of the Lun to detach.

string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
DetachLunRequest.Builder

This builder for chaining.

clearSkipReboot()

public DetachLunRequest.Builder clearSkipReboot()

If true, performs lun unmapping without instance reboot.

bool skip_reboot = 3;

Returns
Type Description
DetachLunRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public DetachLunRequest getDefaultInstanceForType()
Returns
Type Description
DetachLunRequest

getDescriptorForType()

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

getInstance()

public String getInstance()

Required. Name of the instance.

string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

Required. Name of the instance.

string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for instance.

getLun()

public String getLun()

Required. Name of the Lun to detach.

string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The lun.

getLunBytes()

public ByteString getLunBytes()

Required. Name of the Lun to detach.

string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for lun.

getSkipReboot()

public boolean getSkipReboot()

If true, performs lun unmapping without instance reboot.

bool skip_reboot = 3;

Returns
Type Description
boolean

The skipReboot.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DetachLunRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setInstance(String value)

public DetachLunRequest.Builder setInstance(String value)

Required. Name of the instance.

string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The instance to set.

Returns
Type Description
DetachLunRequest.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public DetachLunRequest.Builder setInstanceBytes(ByteString value)

Required. Name of the instance.

string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for instance to set.

Returns
Type Description
DetachLunRequest.Builder

This builder for chaining.

setLun(String value)

public DetachLunRequest.Builder setLun(String value)

Required. Name of the Lun to detach.

string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The lun to set.

Returns
Type Description
DetachLunRequest.Builder

This builder for chaining.

setLunBytes(ByteString value)

public DetachLunRequest.Builder setLunBytes(ByteString value)

Required. Name of the Lun to detach.

string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for lun to set.

Returns
Type Description
DetachLunRequest.Builder

This builder for chaining.

setSkipReboot(boolean value)

public DetachLunRequest.Builder setSkipReboot(boolean value)

If true, performs lun unmapping without instance reboot.

bool skip_reboot = 3;

Parameter
Name Description
value boolean

The skipReboot to set.

Returns
Type Description
DetachLunRequest.Builder

This builder for chaining.