0.2.1 (latest) 0.1.0 Reference documentation and code samples for the Google Developer Knowledge V1 Client class DocumentReference.

Represents a reference to a document.

Generated from protobuf message `google.developers.knowledge.v1.Answer.DocumentReference`

## Namespace

Google \\ Developers \\ DeveloperKnowledge \\ V1 \\ Answer

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ document_chunk` | `https://developers.google.com/php/docs/reference/developer-knowledge/latest/V1.DocumentChunk` Output only. Contains the document chunk. The `document_chunk.id` field is not set and will be empty. |

### getDocumentChunk

Output only. Contains the document chunk. The `document_chunk.id` field
is not set and will be empty.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://developers.google.com/php/docs/reference/developer-knowledge/latest/V1.DocumentChunk|null` |   |

### hasDocumentChunk

### clearDocumentChunk

### setDocumentChunk

Output only. Contains the document chunk. The `document_chunk.id` field
is not set and will be empty.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://developers.google.com/php/docs/reference/developer-knowledge/latest/V1.DocumentChunk` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |