# Interface Instance.QueryInsightsInstanceConfigOrBuilder (0.16.0)

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

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfigOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfigOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfigOrBuilder)

    public static interface Instance.QueryInsightsInstanceConfigOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getQueryPlansPerMinute()

    public abstract int getQueryPlansPerMinute()

Number of query execution plans captured by Insights per minute
for all queries combined. The default value is 5.
Any integer between 0 and 20 is considered valid.

`optional uint32 query_plans_per_minute = 5;`

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

### getQueryStringLength()

    public abstract int getQueryStringLength()

Query string length. The default value is 1024.
Any integer between 256 and 4500 is considered valid.

`uint32 query_string_length = 4;`

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

### getRecordApplicationTags()

    public abstract boolean getRecordApplicationTags()

Record application tags for an instance.
This flag is turned "on" by default.

`optional bool record_application_tags = 2;`

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

### getRecordClientAddress()

    public abstract boolean getRecordClientAddress()

Record client address for an instance. Client address is PII information.
This flag is turned "on" by default.

`optional bool record_client_address = 3;`

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

### hasQueryPlansPerMinute()

    public abstract boolean hasQueryPlansPerMinute()

Number of query execution plans captured by Insights per minute
for all queries combined. The default value is 5.
Any integer between 0 and 20 is considered valid.

`optional uint32 query_plans_per_minute = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the queryPlansPerMinute field is set. |

### hasRecordApplicationTags()

    public abstract boolean hasRecordApplicationTags()

Record application tags for an instance.
This flag is turned "on" by default.

`optional bool record_application_tags = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the recordApplicationTags field is set. |

### hasRecordClientAddress()

    public abstract boolean hasRecordClientAddress()

Record client address for an instance. Client address is PII information.
This flag is turned "on" by default.

`optional bool record_client_address = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the recordClientAddress field is set. |