Class VmAttachmentDetails.Builder (1.83.0)

public static final class VmAttachmentDetails.Builder extends GeneratedMessage.Builder<VmAttachmentDetails.Builder> implements VmAttachmentDetailsOrBuilder

Details for attachment of the disk to a VM.

Protobuf type google.cloud.vmmigration.v1.VmAttachmentDetails

Static Methods

getDescriptor()

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

Methods

build()

public VmAttachmentDetails build()
Returns
Type Description
VmAttachmentDetails

buildPartial()

public VmAttachmentDetails buildPartial()
Returns
Type Description
VmAttachmentDetails

clear()

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

clearDeviceName()

public VmAttachmentDetails.Builder clearDeviceName()

Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.

string device_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VmAttachmentDetails.Builder

This builder for chaining.

getDefaultInstanceForType()

public VmAttachmentDetails getDefaultInstanceForType()
Returns
Type Description
VmAttachmentDetails

getDescriptorForType()

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

getDeviceName()

public String getDeviceName()

Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.

string device_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The deviceName.

getDeviceNameBytes()

public ByteString getDeviceNameBytes()

Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.

string device_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for deviceName.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VmAttachmentDetails other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDeviceName(String value)

public VmAttachmentDetails.Builder setDeviceName(String value)

Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.

string device_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The deviceName to set.

Returns
Type Description
VmAttachmentDetails.Builder

This builder for chaining.

setDeviceNameBytes(ByteString value)

public VmAttachmentDetails.Builder setDeviceNameBytes(ByteString value)

Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.

string device_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for deviceName to set.

Returns
Type Description
VmAttachmentDetails.Builder

This builder for chaining.