2.1.0 (latest) 2.0.0 1.1.0 1.0.0

    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](https://learn.microsoft.com/dotnet/api/system.object) \> CitationAnchor.Types.TextMessageCitationAnchor

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CitationAnchor](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.CitationAnchor)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.CitationAnchor.Types)[TextMessageCitationAnchor](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.CitationAnchor.Types.TextMessageCitationAnchor), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CitationAnchor](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.CitationAnchor)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.CitationAnchor.Types)[TextMessageCitationAnchor](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.CitationAnchor.Types.TextMessageCitationAnchor), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CitationAnchor](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.CitationAnchor)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.CitationAnchor.Types)[TextMessageCitationAnchor](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.CitationAnchor.Types.TextMessageCitationAnchor), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.GeminiDataAnalytics.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.CitationAnchorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.CitationAnchor.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.CitationAnchor.Types.TextMessageCitationAnchor` |

## 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** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### PartIndex

    public int PartIndex { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### SourceIds

    public RepeatedField<string> SourceIds { get; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### 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** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |