public static final class Instance.MachineConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<Instance.MachineConfig.Builder> implements Instance.MachineConfigOrBuilder
MachineConfig describes the configuration of a machine.Protobuf type
google.cloud.alloydb.v1beta.Instance.MachineConfig| Modifier and Type | Method and Description |
|---|---|
Instance.MachineConfig |
build() |
Instance.MachineConfig |
buildPartial() |
Instance.MachineConfig.Builder |
clear() |
Instance.MachineConfig.Builder |
clearCpuCount()
The number of CPU's in the VM instance.
|
Instance.MachineConfig.Builder |
clearMachineType()
Machine type of the VM instance.
|
int |
getCpuCount()
The number of CPU's in the VM instance.
|
Instance.MachineConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getMachineType()
Machine type of the VM instance.
|
com.google.protobuf.ByteString |
getMachineTypeBytes()
Machine type of the VM instance.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Instance.MachineConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Instance.MachineConfig.Builder |
mergeFrom(Instance.MachineConfig other) |
Instance.MachineConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
Instance.MachineConfig.Builder |
setCpuCount(int value)
The number of CPU's in the VM instance.
|
Instance.MachineConfig.Builder |
setMachineType(String value)
Machine type of the VM instance.
|
Instance.MachineConfig.Builder |
setMachineTypeBytes(com.google.protobuf.ByteString value)
Machine type of the VM instance.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Instance.MachineConfig.Builder>public Instance.MachineConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Instance.MachineConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Instance.MachineConfig.Builder>public Instance.MachineConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Instance.MachineConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Instance.MachineConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Instance.MachineConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Instance.MachineConfig.Builder>public Instance.MachineConfig.Builder mergeFrom(Instance.MachineConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Instance.MachineConfig.Builder>public Instance.MachineConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Instance.MachineConfig.Builder>IOExceptionpublic int getCpuCount()
The number of CPU's in the VM instance.
int32 cpu_count = 1;getCpuCount in interface Instance.MachineConfigOrBuilderpublic Instance.MachineConfig.Builder setCpuCount(int value)
The number of CPU's in the VM instance.
int32 cpu_count = 1;value - The cpuCount to set.public Instance.MachineConfig.Builder clearCpuCount()
The number of CPU's in the VM instance.
int32 cpu_count = 1;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;getMachineType in interface Instance.MachineConfigOrBuilderpublic com.google.protobuf.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;getMachineTypeBytes in interface Instance.MachineConfigOrBuilderpublic 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;value - The machineType to set.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;public Instance.MachineConfig.Builder setMachineTypeBytes(com.google.protobuf.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;value - The bytes for machineType to set.Copyright © 2026 Google LLC. All rights reserved.