# Google Cloud Discovery Engine V1 Client - Class CheckGroundingResponse (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 CheckGroundingResponse.

Response message for the
[GroundedGenerationService.CheckGrounding](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Client.GroundedGenerationServiceClient#_Google_Cloud_DiscoveryEngine_V1_Client_GroundedGenerationServiceClient__checkGrounding__)
method.

Generated from protobuf message `google.cloud.discoveryengine.v1.CheckGroundingResponse`

## Namespace

Google \\ Cloud \\ DiscoveryEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ support_score` | `float` The support score for the input answer candidate. Higher the score, higher is the fraction of claims that are supported by the provided facts. This is always set when a response is returned. |
| `↳ cited_chunks` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.FactChunk>` List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request. |
| `↳ cited_facts` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.CheckGroundingResponse.CheckGroundingFactChunk>` List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request. |
| `↳ claims` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.CheckGroundingResponse.Claim>` Claim texts and citation info across all claims in the answer candidate. |

### getSupportScore

The support score for the input answer candidate.

Higher the score, higher is the fraction of claims that are supported by
the provided facts. This is always set when a response is returned.

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

### hasSupportScore

### clearSupportScore

### setSupportScore

The support score for the input answer candidate.

Higher the score, higher is the fraction of claims that are supported by
the provided facts. This is always set when a response is returned.

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

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

### getCitedChunks

List of facts cited across all claims in the answer candidate.

These are derived from the facts supplied in the request.

| **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.FactChunk>` |   |

### setCitedChunks

List of facts cited across all claims in the answer candidate.

These are derived from the facts supplied in the request.

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

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

### getCitedFacts

List of facts cited across all claims in the answer candidate.

These are derived from the facts supplied in the request.

| **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.CheckGroundingResponse.CheckGroundingFactChunk>` |   |

### setCitedFacts

List of facts cited across all claims in the answer candidate.

These are derived from the facts supplied in the request.

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

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

### getClaims

Claim texts and citation info across all claims in the answer candidate.

| **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.CheckGroundingResponse.Claim>` |   |

### setClaims

Claim texts and citation info across all claims in the answer candidate.

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

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