# Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::Answer::GroundingSupport (v0.28.0)

0.28.0 (latest) 0.27.0 0.26.0 0.25.0 0.24.0 0.23.1 0.22.0 0.21.0 0.20.1 0.19.1 0.18.0 0.17.0 0.16.0 0.15.0 0.14.2 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.2 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::Answer::GroundingSupport.

Grounding support for a claim in `answer_text`.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #end_index

    def end_index() -> ::Integer

**Returns**

- (::Integer) --- Required. End of the claim, exclusive.

### #end_index=

    def end_index=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Required. End of the claim, exclusive.
**Returns**

- (::Integer) --- Required. End of the claim, exclusive.

### #grounding_check_required

    def grounding_check_required() -> ::Boolean

**Returns**

- (::Boolean) --- 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.

### #grounding_check_required=

    def grounding_check_required=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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**

- (::Boolean) --- 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.

### #grounding_score

    def grounding_score() -> ::Float

**Returns**

- (::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_score=

    def grounding_score=(value) -> ::Float

**Parameter**

- **value** (::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.
**Returns**

- (::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.

### #sources

    def sources() -> ::Array<::Google::Cloud::DiscoveryEngine::V1beta::Answer::CitationSource>

**Returns**

- (::Array\<[::Google::Cloud::DiscoveryEngine::V1beta::Answer::CitationSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Answer-CitationSource)\>) --- Optional. Citation sources for the claim.

### #sources=

    def sources=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1beta::Answer::CitationSource>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DiscoveryEngine::V1beta::Answer::CitationSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Answer-CitationSource)\>) --- Optional. Citation sources for the claim.
**Returns**

- (::Array\<[::Google::Cloud::DiscoveryEngine::V1beta::Answer::CitationSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Answer-CitationSource)\>) --- Optional. Citation sources for the claim.

### #start_index

    def start_index() -> ::Integer

**Returns**

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

### #start_index=

    def start_index=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Required. Index indicates the start of the claim, measured in bytes (UTF-8 unicode).
**Returns**

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