# Interface AnswerOrBuilder (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0

```java
public interface AnswerOrBuilder extends MessageOrBuilder
```

## Implements

com.google.protobuf.MessageOrBuilder

## Methods

### getAnswerText()

```java
public abstract String getAnswerText()
```
Contains the text of the answer.

`string answer_text = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `String` | The answerText. |

### getAnswerTextBytes()

```java
public abstract ByteString getAnswerTextBytes()
```
Contains the text of the answer.

`string answer_text = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.protobuf.ByteString` | The bytes for answerText. |

### getCitations(int index)

```java
public abstract Answer.AnswerCitation getCitations(int index)
```
Output only. Contains citations for the answer.

`
repeated .google.developers.knowledge.v1.Answer.AnswerCitation citations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

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

### getCitationsCount()

```java
public abstract int getCitationsCount()
```
Output only. Contains citations for the answer.

`
repeated .google.developers.knowledge.v1.Answer.AnswerCitation citations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getCitationsList()

```java
public abstract List<Answer.AnswerCitation> getCitationsList()
```
Output only. Contains citations for the answer.

`
repeated .google.developers.knowledge.v1.Answer.AnswerCitation citations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getCitationsOrBuilder(int index)

```java
public abstract Answer.AnswerCitationOrBuilder getCitationsOrBuilder(int index)
```
Output only. Contains citations for the answer.

`
repeated .google.developers.knowledge.v1.Answer.AnswerCitation citations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

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

### getCitationsOrBuilderList()

```java
public abstract List<? extends Answer.AnswerCitationOrBuilder> getCitationsOrBuilderList()
```
Output only. Contains citations for the answer.

`
repeated .google.developers.knowledge.v1.Answer.AnswerCitation citations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getReferences(int index)

```java
public abstract Answer.AnswerReference getReferences(int index)
```
Output only. Contains references for the answer.

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

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

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

### getReferencesCount()

```java
public abstract int getReferencesCount()
```
Output only. Contains references for the answer.

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

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

### getReferencesList()

```java
public abstract List<Answer.AnswerReference> getReferencesList()
```
Output only. Contains references for the answer.

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

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

### getReferencesOrBuilder(int index)

```java
public abstract Answer.AnswerReferenceOrBuilder getReferencesOrBuilder(int index)
```
Output only. Contains references for the answer.

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

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

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

### getReferencesOrBuilderList()

```java
public abstract List<? extends Answer.AnswerReferenceOrBuilder> getReferencesOrBuilderList()
```
Output only. Contains references for the answer.

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

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