Google Cloud Dialogflow V2 Client - Class GroundingSupport (2.8.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class GroundingSupport.

A collection of supporting references for a segment or part of the model's response.

Generated from protobuf message google.cloud.dialogflow.v2.GroundingSupport

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ segment Segment

Optional. Segment of the content this support belongs to.

↳ grounding_chunk_indices int[]

Optional. A list of indices into grounding_chunks field specifying the citations associated with the claim. For instance [1, 3] means that grounding_chunks[1] and grounding_chunks[3] are the retrieved contents attributed to the claim.

getSegment

Optional. Segment of the content this support belongs to.

Returns
Type Description
Segment|null

hasSegment

clearSegment

setSegment

Optional. Segment of the content this support belongs to.

Parameter
Name Description
var Segment
Returns
Type Description
$this

getGroundingChunkIndices

Optional. A list of indices into grounding_chunks field specifying the citations associated with the claim. For instance [1, 3] means that grounding_chunks[1] and grounding_chunks[3] are the retrieved contents attributed to the claim.

Returns
Type Description
Google\Protobuf\RepeatedField<int>

setGroundingChunkIndices

Optional. A list of indices into grounding_chunks field specifying the citations associated with the claim. For instance [1, 3] means that grounding_chunks[1] and grounding_chunks[3] are the retrieved contents attributed to the claim.

Parameter
Name Description
var int[]
Returns
Type Description
$this