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

public static final class Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder extends GeneratedMessageV3.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

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder
Overrides