# DataStoreDocumentStorage

> **Class** in `langchain_google_vertexai`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-vertexai/vectorstores/document_storage/DataStoreDocumentStorage)

Stores documents in Google Cloud DataStore.

## Signature

```python
DataStoreDocumentStorage(
    self,
    datastore_client: datastore.Client,
    kind: str = 'document_id',
    text_property_name: str = 'text',
    metadata_property_name: str = 'metadata',
    exclude_from_indexes: list[str] | None = None,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `datastore_client` | `datastore.Client` | Yes | Google Cloud DataStore client. |
| `kind` | `str` | No | The kind (table name) for storing documents. (default: `'document_id'`) |
| `text_property_name` | `str` | No | Property name for storing document text content. (default: `'text'`) |
| `metadata_property_name` | `str` | No | Property name for storing document metadata. (default: `'metadata'`) |
| `exclude_from_indexes` | `list[str] \| None` | No | List of properties to exclude from indexing. (default: `None`) |

## Extends

- `DocumentStorage`

## Constructors

```python
__init__(
    self,
    datastore_client: datastore.Client,
    kind: str = 'document_id',
    text_property_name: str = 'text',
    metadata_property_name: str = 'metadata',
    exclude_from_indexes: list[str] | None = None,
) -> None
```

| Name | Type |
|------|------|
| `datastore_client` | `datastore.Client` |
| `kind` | `str` |
| `text_property_name` | `str` |
| `metadata_property_name` | `str` |
| `exclude_from_indexes` | `list[str] \| None` |


## Properties

- `exclude_from_indexes`

## Methods

- [`mget()`](https://reference.langchain.com/python/langchain-google-vertexai/vectorstores/document_storage/DataStoreDocumentStorage/mget)
- [`mset()`](https://reference.langchain.com/python/langchain-google-vertexai/vectorstores/document_storage/DataStoreDocumentStorage/mset)
- [`mdelete()`](https://reference.langchain.com/python/langchain-google-vertexai/vectorstores/document_storage/DataStoreDocumentStorage/mdelete)
- [`yield_keys()`](https://reference.langchain.com/python/langchain-google-vertexai/vectorstores/document_storage/DataStoreDocumentStorage/yield_keys)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/a3f016b2a6c4af535df275545f76fa7424aa39e5/libs/vertexai/langchain_google_vertexai/vectorstores/document_storage.py#L225)