Class Instance.MachineConfig.Builder (0.65.0)
public static final class Instance.MachineConfig.Builder extends GeneratedMessageV3.Builder<Instance.MachineConfig.Builder> implements Instance.MachineConfigOrBuilder
MachineConfig describes the configuration of a machine.
Protobuf type google.cloud.alloydb.v1beta.Instance.MachineConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Instance.MachineConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Instance.MachineConfig build()
buildPartial()
public Instance.MachineConfig buildPartial()
clear()
public Instance.MachineConfig.Builder clear()
Overrides
clearCpuCount()
public Instance.MachineConfig.Builder clearCpuCount()
The number of CPU's in the VM instance.
int32 cpu_count = 1;
clearField(Descriptors.FieldDescriptor field)
public Instance.MachineConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public Instance.MachineConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Instance.MachineConfig.Builder clone()
Overrides
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Instance.MachineConfig other)
public Instance.MachineConfig.Builder mergeFrom(Instance.MachineConfig other)
public Instance.MachineConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Instance.MachineConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Instance.MachineConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public Instance.MachineConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Instance.MachineConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Instance.MachineConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-10 UTC."],[],[]]