# Interface Answer.DocumentReferenceOrBuilder (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0

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

## Implements

com.google.protobuf.MessageOrBuilder

## Methods

### getDocumentChunk()

```java
public abstract DocumentChunk getDocumentChunk()
```
Output only. Contains the document chunk. The `document_chunk.id` field
is not set and will be empty.

`
.google.developers.knowledge.v1.DocumentChunk document_chunk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `DocumentChunk` | The documentChunk. |

### getDocumentChunkOrBuilder()

```java
public abstract DocumentChunkOrBuilder getDocumentChunkOrBuilder()
```
Output only. Contains the document chunk. The `document_chunk.id` field
is not set and will be empty.

`
.google.developers.knowledge.v1.DocumentChunk document_chunk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `DocumentChunkOrBuilder` |   |

### hasDocumentChunk()

```java
public abstract boolean hasDocumentChunk()
```
Output only. Contains the document chunk. The `document_chunk.id` field
is not set and will be empty.

`
.google.developers.knowledge.v1.DocumentChunk document_chunk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `boolean` | Whether the documentChunk field is set. |