# Enum FieldOptions.Types.OptionTargetType (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.FieldOptions.Types.OptionTargetType)
- [3.23.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/3.23.0/Google.Protobuf.Reflection.FieldOptions.Types.OptionTargetType)
- [3.15.8](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/3.15.8/Google.Protobuf.Reflection.FieldOptions.Types.OptionTargetType)

    public enum FieldOptions.Types.OptionTargetType

This indicates the types of entities that the field may apply to when used
as an option. If it is unset, then the field may be freely used as an
option on any kind of entity. Note: as of January 2023, support for this is
in progress and does not yet have an effect (b/264593489).

## 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** |
| `TargetTypeEnum` |   |
| `TargetTypeEnumEntry` |   |
| `TargetTypeExtensionRange` |   |
| `TargetTypeField` |   |
| `TargetTypeFile` |   |
| `TargetTypeMessage` |   |
| `TargetTypeMethod` |   |
| `TargetTypeOneof` |   |
| `TargetTypeService` |   |
| `TargetTypeUnknown` |   |