# Interface CitationAnchor.TextMessageCitationAnchorOrBuilder (0.21.0)

0.21.0 (latest) 0.19.0 0.16.0 0.15.0 0.13.0 0.11.0 0.10.0 0.9.0 0.8.0 0.6.0 0.4.0 0.3.0 0.2.0 0.1.0

    public static interface CitationAnchor.TextMessageCitationAnchorOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getEndOffsetBytes()

    public abstract int getEndOffsetBytes()

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.

`int32 end_offset_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The endOffsetBytes. |

### getPartIndex()

    public abstract int getPartIndex()

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

`int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The partIndex. |

### getSourceIds(int index)

    public abstract String getSourceIds(int index)

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

`repeated string source_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The sourceIds at the given index. |

### getSourceIdsBytes(int index)

    public abstract ByteString getSourceIdsBytes(int index)

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

`repeated string source_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the sourceIds at the given index. |

### getSourceIdsCount()

    public abstract int getSourceIdsCount()

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

`repeated string source_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of sourceIds. |

### getSourceIdsList()

    public abstract List<String> getSourceIdsList()

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

`repeated string source_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the sourceIds. |

### getStartOffsetBytes()

    public abstract int getStartOffsetBytes()

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.

`int32 start_offset_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The startOffsetBytes. |