# Enum FileOptions.Types.OptimizeMode (3.27.1)

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

- [3.27.1 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode)
- [3.23.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/3.23.0/Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode)
- [3.15.8](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/3.15.8/Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode)

    public enum FileOptions.Types.OptimizeMode

Generated classes can be optimized for speed or code size.

## Namespace

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

## Assembly

Google.Protobuf.dll

| ## Fields ||
|---|---|
| **Name** | **Description** |
| `CodeSize` | etc. |
| `LiteRuntime` | Generate code using MessageLite and the lite runtime. |
| `Speed` | Generate complete code for parsing, serialization, |