4.6.0 (latest) 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.1 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.5.0 2.4.0 2.3.1

    public sealed class FieldMask : IEquatable<FieldMask>

Reference documentation and code samples for the Firestore API class FieldMask.

An immutable set of field paths, used to limit the data returned by calls to
[GetAllSnapshotsAsync(IEnumerable\<DocumentReference\>, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Firestore/latest/Google.Cloud.Firestore.FirestoreDb#Google_Cloud_Firestore_FirestoreDb_GetAllSnapshotsAsync_System_Collections_Generic_IEnumerable_Google_Cloud_Firestore_DocumentReference__System_Threading_CancellationToken_)
and similar calls.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> FieldMask

## Implements

[IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[FieldMask](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Firestore/latest/Google.Cloud.Firestore.FieldMask)

## Inherited Members

[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Firestore](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Firestore/latest/Google.Cloud.Firestore)

## Assembly

Google.Cloud.Firestore.dll

## Constructors

### FieldMask(params FieldPath\[\])

    public FieldMask(params FieldPath[] paths)

Creates a mask from the given paths.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `paths` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Firestore/latest/Google.Cloud.Firestore.FieldPath` The segments of the path. This must not be null, and it must not contain any null elements. |

### FieldMask(params string\[\])

    public FieldMask(params string[] paths)

Creates a mask from the given paths. Each path is treated as a dot-separated sequence of field names.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `paths` | `https://learn.microsoft.com/dotnet/api/system.string` The paths, as dot-separated strings. This must not be null, and it must not contain any null or empty elements. |

## Methods

### GetHashCode()

    public override int GetHashCode()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

**Overrides** [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)