# Interface DocumentMaskOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.firestore.v1.DocumentMaskOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.firestore.v1.DocumentMaskOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.firestore.v1.DocumentMaskOrBuilder)

    public interface DocumentMaskOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getFieldPaths(int index)

    public abstract String getFieldPaths(int index)

The list of field paths in the mask.
See Document.fields
for a field path syntax reference.

`repeated string field_paths = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The fieldPaths at the given index. |

### getFieldPathsBytes(int index)

    public abstract ByteString getFieldPathsBytes(int index)

The list of field paths in the mask.
See Document.fields
for a field path syntax reference.

`repeated string field_paths = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the fieldPaths at the given index. |

### getFieldPathsCount()

    public abstract int getFieldPathsCount()

The list of field paths in the mask.
See Document.fields
for a field path syntax reference.

`repeated string field_paths = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of fieldPaths. |

### getFieldPathsList()

    public abstract List<String> getFieldPathsList()

The list of field paths in the mask.
See Document.fields
for a field path syntax reference.

`repeated string field_paths = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the fieldPaths. |