# Google Cloud Discovery Engine V1 Client - Class GroundingSupport (1.11.1)

1.11.1 (latest) 1.11.0 1.10.1 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.3 1.2.0 1.1.0 1.0.0 0.11.3 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class GroundingSupport.

Grounding support for a claim in `answer_text`.

Generated from protobuf message `google.cloud.discoveryengine.v1.Answer.GroundingSupport`

## Namespace

Google \\ Cloud \\ DiscoveryEngine \\ V1 \\ Answer

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ start_index` | `int|string` Required. Index indicates the start of the claim, measured in bytes (UTF-8 unicode). |
| `↳ end_index` | `int|string` Required. End of the claim, exclusive. |
| `↳ grounding_score` | `float` A score in the range of \[0, 1\] describing how grounded is a specific claim by the references. Higher value means that the claim is better supported by the reference chunks. |
| `↳ grounding_check_required` | `bool` Indicates that this claim required grounding check. When the system decided this claim didn't require attribution/grounding check, this field is set to false. In that case, no grounding check was done for the claim and therefore `grounding_score`, `sources` is not returned. |
| `↳ sources` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Answer.CitationSource>` Optional. Citation sources for the claim. |

### getStartIndex

Required. Index indicates the start of the claim, measured in bytes
(UTF-8 unicode).

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

### setStartIndex

Required. Index indicates the start of the claim, measured in bytes
(UTF-8 unicode).

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

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

### getEndIndex

Required. End of the claim, exclusive.

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

### setEndIndex

Required. End of the claim, exclusive.

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

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

### getGroundingScore

A score in the range of \[0, 1\] describing how grounded is a specific
claim by the references.

Higher value means that the claim is better supported by the reference
chunks.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### hasGroundingScore

### clearGroundingScore

### setGroundingScore

A score in the range of \[0, 1\] describing how grounded is a specific
claim by the references.

Higher value means that the claim is better supported by the reference
chunks.

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

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

### getGroundingCheckRequired

Indicates that this claim required grounding check. When the
system decided this claim didn't require attribution/grounding check,
this field is set to false. In that case, no grounding check was
done for the claim and therefore `grounding_score`, `sources` is not
returned.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasGroundingCheckRequired

### clearGroundingCheckRequired

### setGroundingCheckRequired

Indicates that this claim required grounding check. When the
system decided this claim didn't require attribution/grounding check,
this field is set to false. In that case, no grounding check was
done for the claim and therefore `grounding_score`, `sources` is not
returned.

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

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

### getSources

Optional. Citation sources for the claim.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Answer.CitationSource>` |   |

### setSources

Optional. Citation sources for the claim.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Answer.CitationSource>` |

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