Class MachineConfig.Builder (0.3.0)
Version 0.3.0keyboard_arrow_down
public static final class MachineConfig . Builder extends GeneratedMessageV3 . Builder<MachineConfig . Builder > implements MachineConfigOrBuilder
MachineConfig describes the configuration of a machine specific to a Database
Resource.
NextID: 5
Protobuf type google.cloud.databasecenter.v1beta.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 MachineConfig . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public MachineConfig build ()
buildPartial()
public MachineConfig buildPartial ()
clear()
public MachineConfig . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public MachineConfig . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearMemorySizeBytes()
public MachineConfig . Builder clearMemorySizeBytes ()
Memory size in bytes.
int64 memory_size_bytes = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public MachineConfig . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearShardCount()
public MachineConfig . Builder clearShardCount ()
Optional. The number of Shards (if applicable).
optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL];
clearVcpuCount()
public MachineConfig . Builder clearVcpuCount ()
Optional. The number of vCPUs (if applicable).
optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL];
clone()
public MachineConfig . Builder clone ()
Overrides
getDefaultInstanceForType()
public MachineConfig getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getMemorySizeBytes()
public long getMemorySizeBytes ()
Memory size in bytes.
int64 memory_size_bytes = 2;
Returns
Type
Description
long
The memorySizeBytes.
getShardCount()
public int getShardCount ()
Optional. The number of Shards (if applicable).
optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
int
The shardCount.
getVcpuCount()
public double getVcpuCount ()
Optional. The number of vCPUs (if applicable).
optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
double
The vcpuCount.
hasShardCount()
public boolean hasShardCount ()
Optional. The number of Shards (if applicable).
optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
Whether the shardCount field is set.
hasVcpuCount()
public boolean hasVcpuCount ()
Optional. The number of vCPUs (if applicable).
optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
Whether the vcpuCount field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(MachineConfig other)
public MachineConfig . Builder mergeFrom ( MachineConfig other )
public MachineConfig . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public MachineConfig . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MachineConfig . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public MachineConfig . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setMemorySizeBytes(long value)
public MachineConfig . Builder setMemorySizeBytes ( long value )
Memory size in bytes.
int64 memory_size_bytes = 2;
Parameter
Name
Description
value
long The memorySizeBytes to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MachineConfig . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setShardCount(int value)
public MachineConfig . Builder setShardCount ( int value )
Optional. The number of Shards (if applicable).
optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
int The shardCount to set.
setUnknownFields(UnknownFieldSet unknownFields)
public final MachineConfig . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setVcpuCount(double value)
public MachineConfig . Builder setVcpuCount ( double value )
Optional. The number of vCPUs (if applicable).
optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
double The vcpuCount to set.
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 2026-03-09 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 2026-03-09 UTC."],[],[]]