Class Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder (0.6.0)

public static final class Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder extends GeneratedMessage.Builder<Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder> implements Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDiskOrBuilder

A specification of the interface and size of disk attached to the instance.

Protobuf type google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder

Static Methods

getDescriptor()

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

Methods

build()

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk build()
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk

buildPartial()

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk buildPartial()
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk

clear()

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder clear()
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder
Overrides

clearDiskInterface()

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder clearDiskInterface()

Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI.

.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.DiskInterface disk_interface = 2;

Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder

This builder for chaining.

clearDiskSizeGb()

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder clearDiskSizeGb()

Specifies the size of the disk in base-2 GB.

int64 disk_size_gb = 1;

Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder

This builder for chaining.

getDefaultInstanceForType()

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk getDefaultInstanceForType()
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk

getDescriptorForType()

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

getDiskInterface()

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.DiskInterface getDiskInterface()

Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI.

.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.DiskInterface disk_interface = 2;

Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.DiskInterface

The diskInterface.

getDiskInterfaceValue()

public int getDiskInterfaceValue()

Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI.

.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.DiskInterface disk_interface = 2;

Returns
Type Description
int

The enum numeric value on the wire for diskInterface.

getDiskSizeGb()

public long getDiskSizeGb()

Specifies the size of the disk in base-2 GB.

int64 disk_size_gb = 1;

Returns
Type Description
long

The diskSizeGb.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk other)

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder mergeFrom(Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk other)
Parameter
Name Description
other Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder
Overrides

setDiskInterface(Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.DiskInterface value)

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder setDiskInterface(Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.DiskInterface value)

Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI.

.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.DiskInterface disk_interface = 2;

Parameter
Name Description
value Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.DiskInterface

The diskInterface to set.

Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder

This builder for chaining.

setDiskInterfaceValue(int value)

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder setDiskInterfaceValue(int value)

Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI.

.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.DiskInterface disk_interface = 2;

Parameter
Name Description
value int

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

Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder

This builder for chaining.

setDiskSizeGb(long value)

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder setDiskSizeGb(long value)

Specifies the size of the disk in base-2 GB.

int64 disk_size_gb = 1;

Parameter
Name Description
value long

The diskSizeGb to set.

Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder

This builder for chaining.