# Google Cloud Database Center V1beta Client - Class InefficientQueryInfo (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.1 0.3.1 0.2.0 0.1.0

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> 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 the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

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

Metadata about inefficient query signal info for a database resource.

Generated from protobuf message `google.cloud.databasecenter.v1beta.InefficientQueryInfo`

## Namespace

Google \\ Cloud \\ DatabaseCenter \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ database` | `string` Name of the database where index is required. For example, "db1", which is the name of the database present in the instance. |
| `↳ table` | `string` Name of the table where index is required |
| `↳ sql_index_statement` | `string` SQL statement of the index. Based on the ddl type, this will be either CREATE INDEX or DROP INDEX. |
| `↳ storage_cost_bytes` | `int|string` Cost of additional disk usage in bytes |
| `↳ impacted_queries_count` | `int|string` Count of queries to be impacted if index is applied |

### getDatabase

Name of the database where index is required. For example, "db1", which is
the name of the database present in the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDatabase

Name of the database where index is required. For example, "db1", which is
the name of the database present in the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTable

Name of the table where index is required

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setTable

Name of the table where index is required

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSqlIndexStatement

SQL statement of the index. Based on the ddl type, this will be either
CREATE INDEX or DROP INDEX.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setSqlIndexStatement

SQL statement of the index. Based on the ddl type, this will be either
CREATE INDEX or DROP INDEX.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getStorageCostBytes

Cost of additional disk usage in bytes

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setStorageCostBytes

Cost of additional disk usage in bytes

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getImpactedQueriesCount

Count of queries to be impacted if index is applied

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setImpactedQueriesCount

Count of queries to be impacted if index is applied

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |