# Interface DataStoreTool.GroundingConfigOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public static interface DataStoreTool.GroundingConfigOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getDisabled()

    public abstract boolean getDisabled()

Optional. Whether grounding is disabled.

`bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getGroundingLevel()

    public abstract float getGroundingLevel()

Optional. The groundedness threshold of the answer based on the retrieved
sources. The value has a configurable range of \[1, 5\]. The level is used
to threshold the groundedness of the answer, meaning that all responses
with a groundedness score below the threshold will fall back to returning
relevant snippets only.

For example, a level of 3 means that the groundedness score must be
3 or higher for the response to be returned.

`float grounding_level = 1 [(.google.api.field_behavior) = OPTIONAL];`

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