Discovery Engine v1 API - Class AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment (1.9.0)

public sealed class AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment : IMessage<AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment>, IEquatable<AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment>, IDeepCloneable<AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment>, IBufferMessage, IMessage

Reference documentation and code samples for the Discovery Engine v1 API class AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment.

Grounding information for a segment of the text.

Inheritance

object > AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

Google.Cloud.DiscoveryEngine.V1.dll

Constructors

Segment()

public Segment()

Segment(Segment)

public Segment(AssistantGroundedContent.Types.TextGroundingMetadata.Types.Segment other)
Parameter
Name Description
other AssistantGroundedContentTypesTextGroundingMetadataTypesSegment

Properties

EndIndex

public long EndIndex { get; set; }

End of the segment, exclusive.

Property Value
Type Description
long

GroundingScore

public float GroundingScore { get; set; }

Score for the segment.

Property Value
Type Description
float

ReferenceIndices

public RepeatedField<int> ReferenceIndices { get; }

References for the segment.

Property Value
Type Description
RepeatedFieldint

StartIndex

public long StartIndex { get; set; }

Zero-based index indicating the start of the segment, measured in bytes of a UTF-8 string (i.e. characters encoded on multiple bytes have a length of more than one).

Property Value
Type Description
long

Text

public string Text { get; set; }

The text segment itself.

Property Value
Type Description
string