Class Instance.MachineConfig.Builder (0.72.0)

public static final class Instance.MachineConfig.Builder extends GeneratedMessage.Builder<Instance.MachineConfig.Builder> implements Instance.MachineConfigOrBuilder

MachineConfig describes the configuration of a machine.

Protobuf type google.cloud.alloydb.v1alpha.Instance.MachineConfig

Static Methods

getDescriptor()

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

Methods

build()

public Instance.MachineConfig build()
Returns
Type Description
Instance.MachineConfig

buildPartial()

public Instance.MachineConfig buildPartial()
Returns
Type Description
Instance.MachineConfig

clear()

public Instance.MachineConfig.Builder clear()
Returns
Type Description
Instance.MachineConfig.Builder
Overrides

clearCpuCount()

public Instance.MachineConfig.Builder clearCpuCount()

The number of CPU's in the VM instance.

int32 cpu_count = 1;

Returns
Type Description
Instance.MachineConfig.Builder

This builder for chaining.

clearMachineType()

public Instance.MachineConfig.Builder clearMachineType()

Machine type of the VM instance. E.g. "n2-highmem-4", "n2-highmem-8", "c4a-highmem-4-lssd". cpu_count must match the number of vCPUs in the machine type.

string machine_type = 4;

Returns
Type Description
Instance.MachineConfig.Builder

This builder for chaining.

getCpuCount()

public int getCpuCount()

The number of CPU's in the VM instance.

int32 cpu_count = 1;

Returns
Type Description
int

The cpuCount.

getDefaultInstanceForType()

public Instance.MachineConfig getDefaultInstanceForType()
Returns
Type Description
Instance.MachineConfig

getDescriptorForType()

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

getMachineType()

public String getMachineType()

Machine type of the VM instance. E.g. "n2-highmem-4", "n2-highmem-8", "c4a-highmem-4-lssd". cpu_count must match the number of vCPUs in the machine type.

string machine_type = 4;

Returns
Type Description
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

Machine type of the VM instance. E.g. "n2-highmem-4", "n2-highmem-8", "c4a-highmem-4-lssd". cpu_count must match the number of vCPUs in the machine type.

string machine_type = 4;

Returns
Type Description
ByteString

The bytes for machineType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Instance.MachineConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCpuCount(int value)

public Instance.MachineConfig.Builder setCpuCount(int value)

The number of CPU's in the VM instance.

int32 cpu_count = 1;

Parameter
Name Description
value int

The cpuCount to set.

Returns
Type Description
Instance.MachineConfig.Builder

This builder for chaining.

setMachineType(String value)

public Instance.MachineConfig.Builder setMachineType(String value)

Machine type of the VM instance. E.g. "n2-highmem-4", "n2-highmem-8", "c4a-highmem-4-lssd". cpu_count must match the number of vCPUs in the machine type.

string machine_type = 4;

Parameter
Name Description
value String

The machineType to set.

Returns
Type Description
Instance.MachineConfig.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public Instance.MachineConfig.Builder setMachineTypeBytes(ByteString value)

Machine type of the VM instance. E.g. "n2-highmem-4", "n2-highmem-8", "c4a-highmem-4-lssd". cpu_count must match the number of vCPUs in the machine type.

string machine_type = 4;

Parameter
Name Description
value ByteString

The bytes for machineType to set.

Returns
Type Description
Instance.MachineConfig.Builder

This builder for chaining.