[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis page provides reference documentation for the \u003ccode\u003eCapacityConfig\u003c/code\u003e class within the Managed Service for Apache Kafka API v1.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCapacityConfig\u003c/code\u003e is used to define the capacity configuration for a Kafka cluster, implementing interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties \u003ccode\u003eMemoryBytes\u003c/code\u003e which sets the required cluster memory in bytes, with a minimum of 3 GiB, and \u003ccode\u003eVcpuCount\u003c/code\u003e which sets the number of vCPUs, with a minimum of 3.\u003c/p\u003e\n"],["\u003cp\u003eThe code provides two versions of this class, one is the most recent version: 1.0.0-beta04 and the previous one is 1.0.0-beta03.\u003c/p\u003e\n"]]],[],null,["# Managed Service for Apache Kafka API v1 API - Class CapacityConfig (1.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.CapacityConfig)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/1.0.0-beta06/Google.Cloud.ManagedKafka.V1.CapacityConfig) \n\n public sealed class CapacityConfig : IMessage\u003cCapacityConfig\u003e, IEquatable\u003cCapacityConfig\u003e, IDeepCloneable\u003cCapacityConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Managed Service for Apache Kafka API v1 API class CapacityConfig.\n\nA capacity configuration of a Kafka cluster. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CapacityConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CapacityConfig](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.CapacityConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CapacityConfig](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.CapacityConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CapacityConfig](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.CapacityConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.ManagedKafka.V1](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ManagedKafka.V1.dll\n\nConstructors\n------------\n\n### CapacityConfig()\n\n public CapacityConfig()\n\n### CapacityConfig(CapacityConfig)\n\n public CapacityConfig(CapacityConfig other)\n\nProperties\n----------\n\n### MemoryBytes\n\n public long MemoryBytes { get; set; }\n\nRequired. The memory to provision for the cluster in bytes.\nThe CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8.\nMinimum: 3221225472 (3 GiB).\n\n### VcpuCount\n\n public long VcpuCount { get; set; }\n\nRequired. The number of vCPUs to provision for the cluster. Minimum: 3."]]