# Interface Answer.AnswerCitationOrBuilder (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0

```java
public static interface Answer.AnswerCitationOrBuilder extends MessageOrBuilder
```

## Implements

com.google.protobuf.MessageOrBuilder

## Methods

### getEndIndex()

```java
public abstract int getEndIndex()
```
Output only. Indicates the end of the segment, measured in bytes (UTF-8
unicode), exclusive. If there are multi-byte characters, such as
non-ASCII characters, the index measurement is longer than the string
length.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | The endIndex. |

### getSources(int index)

```java
public abstract Answer.CitationSource getSources(int index)
```
Output only. Contains citation sources for the attributed segment.

`
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Answer.CitationSource` |   |

### getSourcesCount()

```java
public abstract int getSourcesCount()
```
Output only. Contains citation sources for the attributed segment.

`
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### getSourcesList()

```java
public abstract List<Answer.CitationSource> getSourcesList()
```
Output only. Contains citation sources for the attributed segment.

`
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `List<CitationSource>` |   |

### getSourcesOrBuilder(int index)

```java
public abstract Answer.CitationSourceOrBuilder getSourcesOrBuilder(int index)
```
Output only. Contains citation sources for the attributed segment.

`
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Answer.CitationSourceOrBuilder` |   |

### getSourcesOrBuilderList()

```java
public abstract List<? extends Answer.CitationSourceOrBuilder> getSourcesOrBuilderList()
```
Output only. Contains citation sources for the attributed segment.

`
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `List<? extends com.google.developers.knowledge.v1.Answer.CitationSourceOrBuilder>` |   |

### getStartIndex()

```java
public abstract int getStartIndex()
```
Output only. Indicates the start of the segment, measured in bytes (UTF-8
unicode), inclusive. If there are multi-byte characters, such as
non-ASCII characters, the index measurement is longer than the string
length.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | The startIndex. |