Interface GroundingSupportOrBuilder (4.105.0)

public interface GroundingSupportOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getGroundingChunkIndices(int index)

public abstract int getGroundingChunkIndices(int index)

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.

repeated int32 grounding_chunk_indices = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
int

The groundingChunkIndices at the given index.

getGroundingChunkIndicesCount()

public abstract int getGroundingChunkIndicesCount()

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.

repeated int32 grounding_chunk_indices = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of groundingChunkIndices.

getGroundingChunkIndicesList()

public abstract List<Integer> getGroundingChunkIndicesList()

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.

repeated int32 grounding_chunk_indices = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Integer>

A list containing the groundingChunkIndices.

getSegment()

public abstract Segment getSegment()

Optional. Segment of the content this support belongs to.

.google.cloud.dialogflow.v2.Segment segment = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Segment

The segment.

getSegmentOrBuilder()

public abstract SegmentOrBuilder getSegmentOrBuilder()

Optional. Segment of the content this support belongs to.

.google.cloud.dialogflow.v2.Segment segment = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SegmentOrBuilder

hasSegment()

public abstract boolean hasSegment()

Optional. Segment of the content this support belongs to.

.google.cloud.dialogflow.v2.Segment segment = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the segment field is set.