**Signature:**

    export declare class NamespaceBuilder 

## Constructors

| Constructor | Modifiers | Description |
|---|---|---|
| [(constructor)(database, options, namespace)](https://firebase.google.com/docs/reference/functions/firebase-functions.firestore.namespacebuilder#firestorenamespacebuilderconstructor) |   | Constructs a new instance of the `NamespaceBuilder` class |

## Methods

| Method | Modifiers | Description |
|---|---|---|
| [document(path)](https://firebase.google.com/docs/reference/functions/firebase-functions.firestore.namespacebuilder#firestorenamespacebuilderdocument) |   |   |

## firestore.NamespaceBuilder.(constructor)

Constructs a new instance of the `NamespaceBuilder` class

**Signature:**

    constructor(database: string | Expression<string>, options: DeploymentOptions, namespace?: string | Expression<string>);

### Parameters

| Parameter | Type | Description |
|---|---|---|
| database | string \| [Expression](https://firebase.google.com/docs/reference/functions/firebase-functions.params.expression#paramsexpression_class)\<string\> |   |
| options | [DeploymentOptions](https://firebase.google.com/docs/reference/functions/firebase-functions.deploymentoptions#deploymentoptions_interface) |   |
| namespace | string \| [Expression](https://firebase.google.com/docs/reference/functions/firebase-functions.params.expression#paramsexpression_class)\<string\> |   |

## firestore.NamespaceBuilder.document()

**Signature:**

    document<Path extends string>(path: Path | Expression<string>): DocumentBuilder<Path>;

### Parameters

| Parameter | Type | Description |
|---|---|---|
| path | Path \| [Expression](https://firebase.google.com/docs/reference/functions/firebase-functions.params.expression#paramsexpression_class)\<string\> |   |

**Returns:**

[DocumentBuilder](https://firebase.google.com/docs/reference/functions/firebase-functions.firestore.documentbuilder#firestoredocumentbuilder_class)\<Path\>