# GCSFileLoader

> **Class** in `langchain_community`

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

Load from GCS file.

## 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-community/document_loaders/gcs_file/GCSFileLoader/load)

## ⚠️ Deprecated

Deprecated since version 0.0.32.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/document_loaders/gcs_file.py#L13)