# Interface InefficientQueryInfoOrBuilder (0.14.0)

0.14.0 (latest) 0.12.0 0.9.0 0.8.0 0.6.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface InefficientQueryInfoOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getDatabase()

    public abstract String getDatabase()

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

`string database = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The database. |

### getDatabaseBytes()

    public abstract ByteString getDatabaseBytes()

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

`string database = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for database. |

### getImpactedQueriesCount()

    public abstract long getImpactedQueriesCount()

Count of queries to be impacted if index is applied

`int64 impacted_queries_count = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The impactedQueriesCount. |

### getSqlIndexStatement()

    public abstract String getSqlIndexStatement()

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

`string sql_index_statement = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The sqlIndexStatement. |

### getSqlIndexStatementBytes()

    public abstract ByteString getSqlIndexStatementBytes()

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

`string sql_index_statement = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for sqlIndexStatement. |

### getStorageCostBytes()

    public abstract long getStorageCostBytes()

Cost of additional disk usage in bytes

`int64 storage_cost_bytes = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The storageCostBytes. |

### getTable()

    public abstract String getTable()

Name of the table where index is required

`string table = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The table. |

### getTableBytes()

    public abstract ByteString getTableBytes()

Name of the table where index is required

`string table = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for table. |