Google Cloud Database Center V1beta Client - Class MachineConfig (0.3.1)

Beta

This library is covered by thePre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see thelaunch stage descriptions.

Reference documentation and code samples for the Google Cloud Database Center V1beta Client class MachineConfig.

MachineConfig describes the configuration of a machine specific to a DatabaseResource.

Generated from protobuf messagegoogle.cloud.databasecenter.v1beta.MachineConfig

Namespace

Google \ Cloud \ DatabaseCenter \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ memory_size_bytesint|string

Memory size in bytes.

↳ shard_countint

Optional. The number of Shards (if applicable).

↳ vcpu_countfloat

Optional. The number of vCPUs (if applicable).

getMemorySizeBytes

Memory size in bytes.

Returns
TypeDescription
int|string

setMemorySizeBytes

Memory size in bytes.

Parameter
NameDescription
varint|string
Returns
TypeDescription
$this

getShardCount

Optional. The number of Shards (if applicable).

Returns
TypeDescription
int

hasShardCount

clearShardCount

setShardCount

Optional. The number of Shards (if applicable).

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getVcpuCount

Optional. The number of vCPUs (if applicable).

Returns
TypeDescription
float

hasVcpuCount

clearVcpuCount

setVcpuCount

Optional. The number of vCPUs (if applicable).

Parameter
NameDescription
varfloat
Returns
TypeDescription
$this

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-24 UTC.