# Data Analytics API with Gemini V1 API - Class Google::Cloud::GeminiDataAnalytics::V1::CitationAnchor::TextMessageCitationAnchor (v0.2.0)

0.2.0 (latest) 0.1.0 Reference documentation and code samples for the Data Analytics API with Gemini V1 API class Google::Cloud::GeminiDataAnalytics::V1::CitationAnchor::TextMessageCitationAnchor.

Citation anchor within a TextMessage.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #end_offset_bytes

    def end_offset_bytes() -> ::Integer

**Returns**

- (::Integer) --- 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.

### #part_index

    def part_index() -> ::Integer

**Returns**

- (::Integer) --- Output only. The 0-based index of the part within the TextMessage.parts field.

### #source_ids

    def source_ids() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Output only. The ids of the sources that are cited.

### #start_offset_bytes

    def start_offset_bytes() -> ::Integer

**Returns**

- (::Integer) --- 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.