Class BootDisk.Builder (2.86.0)

public static final class BootDisk.Builder extends GeneratedMessage.Builder<BootDisk.Builder> implements BootDiskOrBuilder

BootDisk specifies the boot disk configuration for nodepools.

Protobuf type google.container.v1beta1.BootDisk

Implements

BootDiskOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public BootDisk build()
Returns
Type Description
BootDisk

buildPartial()

public BootDisk buildPartial()
Returns
Type Description
BootDisk

clear()

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

clearDiskType()

public BootDisk.Builder clearDiskType()

Disk type of the boot disk. (i.e. Hyperdisk-Balanced, PD-Balanced, etc.)

string disk_type = 1;

Returns
Type Description
BootDisk.Builder

This builder for chaining.

clearProvisionedIops()

public BootDisk.Builder clearProvisionedIops()

For Hyperdisk-Balanced only, the provisioned IOPS config value.

int64 provisioned_iops = 3;

Returns
Type Description
BootDisk.Builder

This builder for chaining.

clearProvisionedThroughput()

public BootDisk.Builder clearProvisionedThroughput()

For Hyperdisk-Balanced only, the provisioned throughput config value.

int64 provisioned_throughput = 4;

Returns
Type Description
BootDisk.Builder

This builder for chaining.

clearSizeGb()

public BootDisk.Builder clearSizeGb()

Disk size in GB. Replaces NodeConfig.disk_size_gb

int64 size_gb = 2;

Returns
Type Description
BootDisk.Builder

This builder for chaining.

getDefaultInstanceForType()

public BootDisk getDefaultInstanceForType()
Returns
Type Description
BootDisk

getDescriptorForType()

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

getDiskType()

public String getDiskType()

Disk type of the boot disk. (i.e. Hyperdisk-Balanced, PD-Balanced, etc.)

string disk_type = 1;

Returns
Type Description
String

The diskType.

getDiskTypeBytes()

public ByteString getDiskTypeBytes()

Disk type of the boot disk. (i.e. Hyperdisk-Balanced, PD-Balanced, etc.)

string disk_type = 1;

Returns
Type Description
ByteString

The bytes for diskType.

getProvisionedIops()

public long getProvisionedIops()

For Hyperdisk-Balanced only, the provisioned IOPS config value.

int64 provisioned_iops = 3;

Returns
Type Description
long

The provisionedIops.

getProvisionedThroughput()

public long getProvisionedThroughput()

For Hyperdisk-Balanced only, the provisioned throughput config value.

int64 provisioned_throughput = 4;

Returns
Type Description
long

The provisionedThroughput.

getSizeGb()

public long getSizeGb()

Disk size in GB. Replaces NodeConfig.disk_size_gb

int64 size_gb = 2;

Returns
Type Description
long

The sizeGb.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BootDisk other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDiskType(String value)

public BootDisk.Builder setDiskType(String value)

Disk type of the boot disk. (i.e. Hyperdisk-Balanced, PD-Balanced, etc.)

string disk_type = 1;

Parameter
Name Description
value String

The diskType to set.

Returns
Type Description
BootDisk.Builder

This builder for chaining.

setDiskTypeBytes(ByteString value)

public BootDisk.Builder setDiskTypeBytes(ByteString value)

Disk type of the boot disk. (i.e. Hyperdisk-Balanced, PD-Balanced, etc.)

string disk_type = 1;

Parameter
Name Description
value ByteString

The bytes for diskType to set.

Returns
Type Description
BootDisk.Builder

This builder for chaining.

setProvisionedIops(long value)

public BootDisk.Builder setProvisionedIops(long value)

For Hyperdisk-Balanced only, the provisioned IOPS config value.

int64 provisioned_iops = 3;

Parameter
Name Description
value long

The provisionedIops to set.

Returns
Type Description
BootDisk.Builder

This builder for chaining.

setProvisionedThroughput(long value)

public BootDisk.Builder setProvisionedThroughput(long value)

For Hyperdisk-Balanced only, the provisioned throughput config value.

int64 provisioned_throughput = 4;

Parameter
Name Description
value long

The provisionedThroughput to set.

Returns
Type Description
BootDisk.Builder

This builder for chaining.

setSizeGb(long value)

public BootDisk.Builder setSizeGb(long value)

Disk size in GB. Replaces NodeConfig.disk_size_gb

int64 size_gb = 2;

Parameter
Name Description
value long

The sizeGb to set.

Returns
Type Description
BootDisk.Builder

This builder for chaining.