# Dataproc Metastore v1alpha API - Class ScalingConfig (2.0.0-alpha12)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-alpha12 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/latest/Google.Cloud.Metastore.V1Alpha.ScalingConfig)
- [2.0.0-alpha11](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/2.0.0-alpha11/Google.Cloud.Metastore.V1Alpha.ScalingConfig)
- [1.0.0-alpha04](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/1.0.0-alpha04/Google.Cloud.Metastore.V1Alpha.ScalingConfig)

    public sealed class ScalingConfig : IMessage<ScalingConfig>, IEquatable<ScalingConfig>, IDeepCloneable<ScalingConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Dataproc Metastore v1alpha API class ScalingConfig.

Represents the scaling configuration of a metastore service.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ScalingConfig

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ScalingConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/latest/Google.Cloud.Metastore.V1Alpha.ScalingConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ScalingConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/latest/Google.Cloud.Metastore.V1Alpha.ScalingConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ScalingConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/latest/Google.Cloud.Metastore.V1Alpha.ScalingConfig), [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)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Metastore.V1Alpha](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/latest/Google.Cloud.Metastore.V1Alpha)

## Assembly

Google.Cloud.Metastore.V1Alpha.dll

## Constructors

### ScalingConfig()

    public ScalingConfig()

### ScalingConfig(ScalingConfig)

    public ScalingConfig(ScalingConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/latest/Google.Cloud.Metastore.V1Alpha.ScalingConfig` |

## Properties

### HasInstanceSize

    public bool HasInstanceSize { get; }

Gets whether the "instance_size" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasScalingFactor

    public bool HasScalingFactor { get; }

Gets whether the "scaling_factor" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### InstanceSize

    public ScalingConfig.Types.InstanceSize InstanceSize { get; set; }

An enum of readable instance sizes, with each instance size mapping to a
float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/latest/Google.Cloud.Metastore.V1Alpha.ScalingConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/latest/Google.Cloud.Metastore.V1Alpha.ScalingConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/latest/Google.Cloud.Metastore.V1Alpha.ScalingConfig.Types.InstanceSize` |   |

### ScalingFactor

    public float ScalingFactor { get; set; }

Scaling factor, increments of 0.1 for values less than 1.0, and
increments of 1.0 for values greater than 1.0.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.single` |   |

### ScalingModelCase

    public ScalingConfig.ScalingModelOneofCase ScalingModelCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/latest/Google.Cloud.Metastore.V1Alpha.ScalingConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/latest/Google.Cloud.Metastore.V1Alpha.ScalingConfig.ScalingModelOneofCase` |   |