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 \ AnswerMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ document_chunk |
Google\Developers\DeveloperKnowledge\V1\DocumentChunk
Output only. Contains the document chunk. The |
getDocumentChunk
Output only. Contains the document chunk. The document_chunk.id field
is not set and will be empty.
| Returns | |
|---|---|
| Type | Description |
Google\Developers\DeveloperKnowledge\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 |
Google\Developers\DeveloperKnowledge\V1\DocumentChunk
|
| Returns | |
|---|---|
| Type | Description |
$this |
|