Class AzureVmDetails.Disk.Builder (1.83.0)

public static final class AzureVmDetails.Disk.Builder extends GeneratedMessage.Builder<AzureVmDetails.Disk.Builder> implements AzureVmDetails.DiskOrBuilder

A message describing a data disk.

Protobuf type google.cloud.vmmigration.v1.AzureVmDetails.Disk

Static Methods

getDescriptor()

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

Methods

build()

public AzureVmDetails.Disk build()
Returns
Type Description
AzureVmDetails.Disk

buildPartial()

public AzureVmDetails.Disk buildPartial()
Returns
Type Description
AzureVmDetails.Disk

clear()

public AzureVmDetails.Disk.Builder clear()
Returns
Type Description
AzureVmDetails.Disk.Builder
Overrides

clearLun()

public AzureVmDetails.Disk.Builder clearLun()

The disk's Logical Unit Number (LUN).

int32 lun = 3;

Returns
Type Description
AzureVmDetails.Disk.Builder

This builder for chaining.

clearName()

public AzureVmDetails.Disk.Builder clearName()

The disk name.

string name = 1;

Returns
Type Description
AzureVmDetails.Disk.Builder

This builder for chaining.

clearSizeGb()

public AzureVmDetails.Disk.Builder clearSizeGb()

The disk size in GB.

int32 size_gb = 2;

Returns
Type Description
AzureVmDetails.Disk.Builder

This builder for chaining.

getDefaultInstanceForType()

public AzureVmDetails.Disk getDefaultInstanceForType()
Returns
Type Description
AzureVmDetails.Disk

getDescriptorForType()

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

getLun()

public int getLun()

The disk's Logical Unit Number (LUN).

int32 lun = 3;

Returns
Type Description
int

The lun.

getName()

public String getName()

The disk name.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The disk name.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getSizeGb()

public int getSizeGb()

The disk size in GB.

int32 size_gb = 2;

Returns
Type Description
int

The sizeGb.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AzureVmDetails.Disk other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setLun(int value)

public AzureVmDetails.Disk.Builder setLun(int value)

The disk's Logical Unit Number (LUN).

int32 lun = 3;

Parameter
Name Description
value int

The lun to set.

Returns
Type Description
AzureVmDetails.Disk.Builder

This builder for chaining.

setName(String value)

public AzureVmDetails.Disk.Builder setName(String value)

The disk name.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AzureVmDetails.Disk.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AzureVmDetails.Disk.Builder setNameBytes(ByteString value)

The disk name.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AzureVmDetails.Disk.Builder

This builder for chaining.

setSizeGb(int value)

public AzureVmDetails.Disk.Builder setSizeGb(int value)

The disk size in GB.

int32 size_gb = 2;

Parameter
Name Description
value int

The sizeGb to set.

Returns
Type Description
AzureVmDetails.Disk.Builder

This builder for chaining.