public static final class Instance.MachineConfig.Builder extends GeneratedMessage.Builder<Instance.MachineConfig.Builder> implements Instance.MachineConfigOrBuilderMachineConfig describes the configuration of a machine.
Protobuf type google.cloud.alloydb.v1beta.Instance.MachineConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Instance.MachineConfig.BuilderImplements
Instance.MachineConfigOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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 |
intThe 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 |
StringThe 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 |
ByteStringThe bytes for machineType to set. |
| Returns | |
|---|---|
| Type | Description |
Instance.MachineConfig.Builder |
This builder for chaining. |