# build_resource_service

> **Function** in `langchain_google_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-community/gmail/utils/build_resource_service)

Build a Gmail resource service.

## Signature

```python
build_resource_service(
    credentials: Optional[Credentials] = None,
    service_name: str = 'gmail',
    service_version: str = 'v1',
    use_domain_wide: bool = False,
    delegated_user: Optional[str] = None,
    service_account_file: Optional[str] = None,
    scopes: Optional[List[str]] = None,
) -> Resource
```

---

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