# GCSFileLoader

> **Class** in `langchain_google_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-community/gcs_file/GCSFileLoader)

Load documents from Google Cloud Storage file.

Inherits from [`BaseLoader`][langchain_core.document_loaders.BaseLoader].

Downloads and loads a single file from GCS bucket using configurable loader.

!!! note "Installation"

    Requires additional dependencies:

    ```bash
    pip install langchain-google-community[gcs]
    ```

## Signature

```python
GCSFileLoader(
    self,
    project_name: str,
    bucket: str,
    blob: str,
    loader_func: Optional[Callable[[str], BaseLoader]] = None,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `project_name` | `str` | Yes | The name of the project to load |
| `bucket` | `str` | Yes | The name of the GCS bucket. |
| `blob` | `str` | Yes | The name of the GCS blob to load. |
| `loader_func` | `Optional[Callable[[str], BaseLoader]]` | No | A loader function that instantiates a loader based on a `file_path` argument. If nothing is provided, the `UnstructuredFileLoader` is used. (default: `None`) |

## Extends

- `BaseLoader`

## Constructors

```python
__init__(
    self,
    project_name: str,
    bucket: str,
    blob: str,
    loader_func: Optional[Callable[[str], BaseLoader]] = None,
)
```

| Name | Type |
|------|------|
| `project_name` | `str` |
| `bucket` | `str` |
| `blob` | `str` |
| `loader_func` | `Optional[Callable[[str], BaseLoader]]` |


## Properties

- `bucket`
- `blob`
- `project_name`

## Methods

- [`load()`](https://reference.langchain.com/python/langchain-google-community/gcs_file/GCSFileLoader/load)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/a3f016b2a6c4af535df275545f76fa7424aa39e5/libs/community/langchain_google_community/gcs_file.py#L11)