# Google Developers Knowledge V1 Client - Class DocumentView (0.1.0)

Reference documentation and code samples for the Google Developers Knowledge V1 Client class DocumentView.

Specifies which fields of the
[Document](https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.Document) are included.

Protobuf type `google.developers.knowledge.v1.DocumentView`

## Namespace

Google \\ Developers \\ Knowledge \\ V1

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### DOCUMENT_VIEW_UNSPECIFIED

    Value: 0

The default / unset value. See each API method for its default value if
[DocumentView](https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.DocumentView) is not
specified.

Generated from protobuf enum `DOCUMENT_VIEW_UNSPECIFIED = 0;`

### DOCUMENT_VIEW_BASIC

    Value: 1

Includes only the basic metadata fields:

- `name`
- `uri`
- `data_source`
- `title`
- `description`
- `update_time`
- `view` This is the default of view for [DeveloperKnowledge.SearchDocumentChunks](https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.Client.DeveloperKnowledgeClient#_Google_Developers_Knowledge_V1_Client_DeveloperKnowledgeClient__searchDocumentChunks__).

Generated from protobuf enum `DOCUMENT_VIEW_BASIC = 1;`

### DOCUMENT_VIEW_FULL

    Value: 2

Includes all [Document](https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.Document) fields.

Generated from protobuf enum `DOCUMENT_VIEW_FULL = 2;`

### DOCUMENT_VIEW_CONTENT

    Value: 3

Includes the `DOCUMENT_VIEW_BASIC` fields and the `content` field.

This is the default of view for
[DeveloperKnowledge.GetDocument](https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.Client.DeveloperKnowledgeClient#_Google_Developers_Knowledge_V1_Client_DeveloperKnowledgeClient__getDocument__)
and
[DeveloperKnowledge.BatchGetDocuments](https://docs.cloud.google.com/php/docs/reference/developers-knowledge/latest/V1.Client.DeveloperKnowledgeClient#_Google_Developers_Knowledge_V1_Client_DeveloperKnowledgeClient__batchGetDocuments__).

Generated from protobuf enum `DOCUMENT_VIEW_CONTENT = 3;`