# GenerateFieldIds

Package: [Microsoft.Orleans.Serialization.Abstractions](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Serialization.Abstractions) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization.Abstractions/GenerateFieldIds.cs#L6)

```csharp
public enum GenerateFieldIds
```

This enum provides options for controlling the field id generation logic.

## Fields

- `None` = `0` - Only members explicitly annotated with a field id will be serialized. This is the default.
- `PublicProperties` = `1` - Field ids will be automatically assigned to eligible public properties. To qualify, a property must have an accessible getter, and either an accessible setter or a corresponding constructor parameter.
