# GCSDocumentStorage

> **Class** in `langchain_google_vertexai`

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

Stores documents in Google Cloud Storage.

For each pair id, `document_text` the name of the blob will be `{prefix}/{id}`
stored in plain text format.

## Signature

```python
GCSDocumentStorage(
    self,
    bucket: storage.Bucket,
    prefix: str | None = 'documents',
    threaded = True,
    n_threads = 8,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `bucket` | `storage.Bucket` | Yes | Bucket where the documents will be stored. |
| `prefix` | `str \| None` | No | Prefix that is prepended to all document names. (default: `'documents'`) |

## Extends

- `DocumentStorage`

## Constructors

```python
__init__(
    self,
    bucket: storage.Bucket,
    prefix: str | None = 'documents',
    threaded = True,
    n_threads = 8,
) -> None
```

| Name | Type |
|------|------|
| `bucket` | `storage.Bucket` |
| `prefix` | `str \| None` |
| `threaded` | `unknown` |
| `n_threads` | `unknown` |


## Methods

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

---

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