# Dataproc Metastore V1beta API - Class Google::Cloud::Metastore::V1beta::ScalingConfig (v0.21.0)

0.21.0 (latest) 0.20.0 0.19.1 0.18.0 0.17.0 0.16.1 0.15.0 0.14.0 0.13.1 0.12.2 0.11.0 0.10.0 0.9.0 0.8.1 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.5 Reference documentation and code samples for the Dataproc Metastore V1beta API class Google::Cloud::Metastore::V1beta::ScalingConfig.

Represents the scaling configuration of a metastore service.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #instance_size

    def instance_size() -> ::Google::Cloud::Metastore::V1beta::ScalingConfig::InstanceSize

**Returns**

- ([::Google::Cloud::Metastore::V1beta::ScalingConfig::InstanceSize](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-metastore-v1beta/latest/Google-Cloud-Metastore-V1beta-ScalingConfig-InstanceSize)) --- An enum of readable instance sizes, with each instance size mapping to a float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))


  Note: The following fields are mutually exclusive: `instance_size`, `scaling_factor`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #instance_size=

    def instance_size=(value) -> ::Google::Cloud::Metastore::V1beta::ScalingConfig::InstanceSize

**Parameter**

- **value** ([::Google::Cloud::Metastore::V1beta::ScalingConfig::InstanceSize](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-metastore-v1beta/latest/Google-Cloud-Metastore-V1beta-ScalingConfig-InstanceSize)) --- An enum of readable instance sizes, with each instance size mapping to a float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))


  Note: The following fields are mutually exclusive: `instance_size`, `scaling_factor`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Metastore::V1beta::ScalingConfig::InstanceSize](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-metastore-v1beta/latest/Google-Cloud-Metastore-V1beta-ScalingConfig-InstanceSize)) --- An enum of readable instance sizes, with each instance size mapping to a float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))


  Note: The following fields are mutually exclusive: `instance_size`, `scaling_factor`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #scaling_factor

    def scaling_factor() -> ::Float

**Returns**

- (::Float) --- Scaling factor, increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0.

  Note: The following fields are mutually exclusive: `scaling_factor`, `instance_size`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #scaling_factor=

    def scaling_factor=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Scaling factor, increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0.


  Note: The following fields are mutually exclusive: `scaling_factor`, `instance_size`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::Float) --- Scaling factor, increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0.

  Note: The following fields are mutually exclusive: `scaling_factor`, `instance_size`. If a field in that set is populated, all other fields in the set will automatically be cleared.