# TEXTCONTENTEXTRACTIONFLAGS

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.TEXTCONTENTEXTRACTIONFLAGS/

Get text content option flags (bitfields).

- **Full name:** `MFiles.TEXTCONTENTEXTRACTIONFLAGS`
- **Proto file:** [`mfiles/enums.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/enums.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-all"></a>`all` | `bool` | 1 | Specifies all flags set; Including any future flags. |
| <a id="f-unpackcontainers"></a>`unpackcontainers` | `bool` | 2 | Unpack container files. |
| <a id="f-useplaintextcache"></a>`useplaintextcache` | `bool` | 3 | Use plain text cache. This makes other options, such as UNPACKCONTAINERS and max. content size ineffective. The operation returns the text content in same way it is returned for e.g. search indexing. |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCObjectOperations.GetTextContentForFile](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetTextContentForFile/index.md): Gets the plain text content of a file version.
- [IRPCObjectOperations.GetTextContentForFileWithFormat](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetTextContentForFileWithFormat/index.md): Gets the text content of a file version as plain text or Markdown, and reports which format was produced.

<a id="used-in-fields"></a>

## Used in fields

- [`GetTextContentForFileRequest.options`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetTextContentForFile/index.md#request): Extraction flags. Leave unset for a fresh extraction.
- [`GetTextContentForFileWithFormatRequest.option_flags`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetTextContentForFileWithFormat/index.md#request): Extraction flags. Leave unset for a fresh extraction.
