If set to RETENTION_SOURCE, the option will be omitted from the binary.
Note: as of January 2023, support for this is in progress and does not yet
have an effect (b/264593489).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eFieldOptions.Types.OptionRetention\u003c/code\u003e is 3.27.1, with older versions 3.23.0 and 3.15.8 also available for reference.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFieldOptions.Types.OptionRetention\u003c/code\u003e is an enum within the \u003ccode\u003eGoogle.Protobuf.Reflection\u003c/code\u003e namespace, found in the \u003ccode\u003eGoogle.Protobuf.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThis enum can be set to \u003ccode\u003eRETENTION_SOURCE\u003c/code\u003e to omit the option from the binary, though support for this feature was in progress as of January 2023.\u003c/p\u003e\n"],["\u003cp\u003eThe enum contains three fields : \u003ccode\u003eRetentionRuntime\u003c/code\u003e, \u003ccode\u003eRetentionSource\u003c/code\u003e, and \u003ccode\u003eRetentionUnknown\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum FieldOptions.Types.OptionRetention (3.27.1)\n\nVersion latestkeyboard_arrow_down\n\n- [3.27.1 (latest)](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.FieldOptions.Types.OptionRetention)\n- [3.23.0](/dotnet/docs/reference/Google.Protobuf/3.23.0/Google.Protobuf.Reflection.FieldOptions.Types.OptionRetention)\n- [3.15.8](/dotnet/docs/reference/Google.Protobuf/3.15.8/Google.Protobuf.Reflection.FieldOptions.Types.OptionRetention) \n\n public enum FieldOptions.Types.OptionRetention\n\nIf set to RETENTION_SOURCE, the option will be omitted from the binary.\nNote: as of January 2023, support for this is in progress and does not yet\nhave an effect (b/264593489).\n\nNamespace\n---------\n\n[Google.Protobuf.Reflection](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection)\n\nAssembly\n--------\n\nGoogle.Protobuf.dll"]]