Data Analytics API with Gemini v1 API - Class CitationAnchor.Types.TextMessageCitationAnchor (1.0.0-beta01)

public sealed class CitationAnchor.Types.TextMessageCitationAnchor : IMessage<CitationAnchor.Types.TextMessageCitationAnchor>, IEquatable<CitationAnchor.Types.TextMessageCitationAnchor>, IDeepCloneable<CitationAnchor.Types.TextMessageCitationAnchor>, IBufferMessage, IMessage

Reference documentation and code samples for the Data Analytics API with Gemini v1 API class CitationAnchor.Types.TextMessageCitationAnchor.

Citation anchor within a TextMessage.

Inheritance

object > CitationAnchor.Types.TextMessageCitationAnchor

Namespace

Google.Cloud.GeminiDataAnalytics.V1

Assembly

Google.Cloud.GeminiDataAnalytics.V1.dll

Constructors

TextMessageCitationAnchor()

public TextMessageCitationAnchor()

TextMessageCitationAnchor(TextMessageCitationAnchor)

public TextMessageCitationAnchor(CitationAnchor.Types.TextMessageCitationAnchor other)
Parameter
Name Description
other CitationAnchorTypesTextMessageCitationAnchor

Properties

EndOffsetBytes

public int EndOffsetBytes { get; set; }

Output only. The offset, measured in UTF-8 bytes, within the part string where the citation ends (exclusive). Example: For the text "Hello, world" where "world" is cited, the start offset bytes (inclusive) is 7 and the end offset bytes (exclusive) is 12.

Property Value
Type Description
int

PartIndex

public int PartIndex { get; set; }

Output only. The 0-based index of the part within the TextMessage.parts field.

Property Value
Type Description
int

SourceIds

public RepeatedField<string> SourceIds { get; }

Output only. The ids of the sources that are cited.

Property Value
Type Description
RepeatedFieldstring

StartOffsetBytes

public int StartOffsetBytes { get; set; }

Output only. The offset, measured in UTF-8 bytes, within the part string where the citation begins (inclusive). Example: For the text "Hello, world" where "world" is cited, the start offset bytes (inclusive) is 7 and the end offset bytes (exclusive) is 12.

Property Value
Type Description
int