public static final class Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder extends GeneratedMessage.Builder<Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder> implements Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDiskOrBuilderA 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.BuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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.DiskInterfaceThe 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 |
intThe 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 |
longThe diskSizeGb to set. |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.Builder |
This builder for chaining. |